mirror of https://github.com/apache/lucene.git
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:
parent
8da5f6301c
commit
3d5aea2c1d
|
@ -420,6 +420,7 @@ public final class RamUsageEstimator {
|
||||||
seen.add(ob);
|
seen.add(ob);
|
||||||
|
|
||||||
final Class<?> obClazz = ob.getClass();
|
final Class<?> obClazz = ob.getClass();
|
||||||
|
assert obClazz != null : "jvm bug detected (Object.getClass() == null). please report this to your vendor";
|
||||||
if (obClazz.isArray()) {
|
if (obClazz.isArray()) {
|
||||||
/*
|
/*
|
||||||
* Consider an array, possibly of primitive types. Push any of its references to
|
* Consider an array, possibly of primitive types. Push any of its references to
|
||||||
|
|
Loading…
Reference in New Issue