Apache Lucene open-source search software
Fix OpenJ9 regression introduced by #12754
Uwe Schindler5358b7251ec2
diff --git a/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java b/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.javaindex 7e0bdfdee84..e9941c7251e 100644--- a/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java+++ b/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java@@ -112,10 +112,10 @@ public final class RamUsageEstimator {/** Initialize constants and try to collect information about the JVM internals. */static {- if (Constants.JRE_IS_64BIT && HotspotVMOptions.IS_HOTSPOT) {+ if (Constants.JRE_IS_64BIT) {+ JVM_IS_HOTSPOT_64BIT = HotspotVMOptions.IS_HOTSPOT;// Try to get compressed oops and object alignment (the default seems to be 8 on Hotspot);// (this only works on 64 bit, on 32 bits the alignment and reference size is fixed):- JVM_IS_HOTSPOT_64BIT = true;COMPRESSED_REFS_ENABLED =HotspotVMOptions.get("UseCompressedOops").map(Boolean::valueOf).orElse(false);NUM_BYTES_OBJECT_ALIGNMENT =