< prev index next >

src/hotspot/share/prims/whitebox.cpp

Print this page

        

@@ -516,11 +516,11 @@
     G1CollectedHeap* g1h = G1CollectedHeap::heap();
     if (g1h->is_heterogeneous_heap()) {
       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_max_size_bytes();
+      return (jlong)g1h->base() + G1Arguments::heap_reserved_size_bytes();
     }
   }
 #endif // INCLUDE_G1GC
 #if INCLUDE_PARALLELGC
   if (UseParallelGC) {

@@ -917,13 +917,13 @@
 WB_ENTRY(void, WB_MakeMethodNotCompilable(JNIEnv* env, jobject o, jobject method, jint comp_level, jboolean is_osr))
   jmethodID jmid = reflected_method_to_jmid(thread, env, method);
   CHECK_JNI_EXCEPTION(env);
   methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid));
   if (is_osr) {
-    mh->set_not_osr_compilable("WhiteBox", comp_level);
+    mh->set_not_osr_compilable(comp_level, true /* report */, "WhiteBox");
   } else {
-    mh->set_not_compilable("WhiteBox", comp_level);
+    mh->set_not_compilable(comp_level, true /* report */, "WhiteBox");
   }
 WB_END
 
 WB_ENTRY(jint, WB_GetMethodEntryBci(JNIEnv* env, jobject o, jobject method))
   jmethodID jmid = reflected_method_to_jmid(thread, env, method);
< prev index next >