lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1593974 - in /lucene/dev/branches/lucene_solr_4_8: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java
Date Mon, 12 May 2014 14:30:42 GMT
Author: rmuir
Date: Mon May 12 14:30:41 2014
New Revision: 1593974

URL: http://svn.apache.org/r1593974
Log:
add assert to maybe trick G1GC into not doing this (or at least make the fail explicit)

Modified:
    lucene/dev/branches/lucene_solr_4_8/   (props changed)
    lucene/dev/branches/lucene_solr_4_8/lucene/   (props changed)
    lucene/dev/branches/lucene_solr_4_8/lucene/core/   (props changed)
    lucene/dev/branches/lucene_solr_4_8/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java

Modified: lucene/dev/branches/lucene_solr_4_8/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_8/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java?rev=1593974&r1=1593973&r2=1593974&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_8/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java
(original)
+++ lucene/dev/branches/lucene_solr_4_8/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java
Mon May 12 14:30:41 2014
@@ -420,6 +420,7 @@ public final class RamUsageEstimator {
       seen.add(ob);
 
       final Class<?> obClazz = ob.getClass();
+      assert obClazz != null : "jvm bug detected (Object.getClass() == null). please report
this to your vendor";
       if (obClazz.isArray()) {
         /*
          * Consider an array, possibly of primitive types. Push any of its references to



Mime
View raw message