From 3d5aea2c1d3440301d2b71438d4b7a38282a12d8 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 12 May 2014 14:28:24 +0000 Subject: [PATCH] add assert to maybe trick G1GC into not doing this (or at least make the fail explicit) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1593971 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/src/java/org/apache/lucene/util/RamUsageEstimator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java b/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java index 4176539f155..a2dc7506023 100644 --- a/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java +++ b/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java @@ -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