< prev index next >

src/share/vm/prims/whitebox.cpp

Print this page

        

*** 301,311 **** return !gch->is_in_young(p); WB_END WB_ENTRY(jlong, WB_GetObjectSize(JNIEnv* env, jobject o, jobject obj)) oop p = JNIHandles::resolve(obj); ! return p->size() * HeapWordSize; WB_END #if INCLUDE_ALL_GCS WB_ENTRY(jboolean, WB_G1IsHumongous(JNIEnv* env, jobject o, jobject obj)) G1CollectedHeap* g1 = G1CollectedHeap::heap(); --- 301,311 ---- return !gch->is_in_young(p); WB_END WB_ENTRY(jlong, WB_GetObjectSize(JNIEnv* env, jobject o, jobject obj)) oop p = JNIHandles::resolve(obj); ! return (p->size() + Universe::heap()->oop_extra_words()) * HeapWordSize; WB_END #if INCLUDE_ALL_GCS WB_ENTRY(jboolean, WB_G1IsHumongous(JNIEnv* env, jobject o, jobject obj)) G1CollectedHeap* g1 = G1CollectedHeap::heap();
< prev index next >