8225104: 32-bit build failures after JDK-8222252
authorshade
Sun, 02 Jun 2019 10:08:37 +0200
changeset 55144 65896ed82849
parent 55143 905b2a416250
child 55145 249b2b4fcb7d
8225104: 32-bit build failures after JDK-8222252 Reviewed-by: bobv, rkennke, dholmes
src/hotspot/share/runtime/arguments.cpp
--- a/src/hotspot/share/runtime/arguments.cpp	Sat Jun 01 14:09:59 2019 -0700
+++ b/src/hotspot/share/runtime/arguments.cpp	Sun Jun 02 10:08:37 2019 +0200
@@ -1782,6 +1782,8 @@
       // Limit the heap size to ErgoHeapSizeLimit
       reasonable_max = MIN2(reasonable_max, (julong)ErgoHeapSizeLimit);
     }
+
+#ifdef _LP64
     if (UseCompressedOops) {
       // Limit the heap size to the maximum possible when using compressed oops
       julong max_coop_heap = (julong)max_heap_for_compressed_oops();
@@ -1818,6 +1820,8 @@
         }
       }
     }
+#endif // _LP64
+
     reasonable_max = limit_by_allocatable_memory(reasonable_max);
 
     if (!FLAG_IS_DEFAULT(InitialHeapSize)) {