File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lucene/core/src/java/org/apache/lucene/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments