diff src/hotspot/share/prims/whitebox.cpp @ 56543:1a7f82c98eee

8224247: AllocateOldGenAt fires assertion failure Summary: Split the heap_reserved_size_bytes() into two methods - one for use during heap initialization and other for at later stages. Reviewed-by: sangheki, tschatzl
author kkharbas
date Mon, 03 Jun 2019 11:04:24 -0700
parents 9b70ebd131b4
children 2fe2063fe567
line wrap: on
line diff
--- a/src/hotspot/share/prims/whitebox.cpp	Mon Jun 03 14:15:11 2019 -0700
+++ b/src/hotspot/share/prims/whitebox.cpp	Mon Jun 03 11:04:24 2019 -0700
@@ -518,7 +518,7 @@
       uint end_region = HeterogeneousHeapRegionManager::manager()->end_index_of_dram();
       return (jlong)(g1h->base() + (end_region + 1) * HeapRegion::GrainBytes - 1);
     } else {
-      return (jlong)g1h->base() + G1Arguments::heap_reserved_size_bytes();
+      return (jlong)g1h->base() + G1Arguments::heap_max_size_bytes();
     }
   }
 #endif // INCLUDE_G1GC