< prev index next >

src/hotspot/share/prims/whitebox.cpp

Print this page

        

*** 357,367 **** 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 WB_ENTRY(jlong, WB_GetHeapSpaceAlignment(JNIEnv* env, jobject o)) size_t alignment = Universe::heap()->collector_policy()->space_alignment(); return (jlong)alignment; --- 357,367 ---- 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 WB_ENTRY(jlong, WB_GetHeapSpaceAlignment(JNIEnv* env, jobject o)) size_t alignment = Universe::heap()->collector_policy()->space_alignment(); return (jlong)alignment;
< prev index next >