Skip to content

Commit 5358b72

Browse files
committed
Fix OpenJ9 regression introduced by #12754
1 parent 40e55b0 commit 5358b72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ private RamUsageEstimator() {}
112112

113113
/** Initialize constants and try to collect information about the JVM internals. */
114114
static {
115-
if (Constants.JRE_IS_64BIT && HotspotVMOptions.IS_HOTSPOT) {
115+
if (Constants.JRE_IS_64BIT) {
116+
JVM_IS_HOTSPOT_64BIT = HotspotVMOptions.IS_HOTSPOT;
116117
// Try to get compressed oops and object alignment (the default seems to be 8 on Hotspot);
117118
// (this only works on 64 bit, on 32 bits the alignment and reference size is fixed):
118-
JVM_IS_HOTSPOT_64BIT = true;
119119
COMPRESSED_REFS_ENABLED =
120120
HotspotVMOptions.get("UseCompressedOops").map(Boolean::valueOf).orElse(false);
121121
NUM_BYTES_OBJECT_ALIGNMENT =

0 commit comments

Comments
 (0)