< prev index next >

src/hotspot/share/prims/jvmtiEnv.cpp

Print this page

        

*** 467,477 **** // size_ptr - pre-checked for NULL jvmtiError JvmtiEnv::GetObjectSize(jobject object, jlong* size_ptr) { oop mirror = JNIHandles::resolve_external_guard(object); NULL_CHECK(mirror, JVMTI_ERROR_INVALID_OBJECT); ! *size_ptr = (jlong)mirror->size() * wordSize; return JVMTI_ERROR_NONE; } /* end GetObjectSize */ // // Method functions --- 467,477 ---- // size_ptr - pre-checked for NULL jvmtiError JvmtiEnv::GetObjectSize(jobject object, jlong* size_ptr) { oop mirror = JNIHandles::resolve_external_guard(object); NULL_CHECK(mirror, JVMTI_ERROR_INVALID_OBJECT); ! *size_ptr = (jlong)(mirror->size() + Universe::heap()->oop_extra_words()) * wordSize; return JVMTI_ERROR_NONE; } /* end GetObjectSize */ // // Method functions
< prev index next >