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
This commit is contained in:
Robert Muir 2014-05-12 14:28:24 +00:00
parent 8da5f6301c
commit 3d5aea2c1d
1 changed files with 1 additions and 0 deletions

View File

@ -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