< prev index next >

src/hotspot/share/prims/jvmtiExport.cpp

Print this page
rev 52174 : 8212186: JVMTI lacks a few GC barriers/hooks

*** 1042,1052 **** jobject _jobj; jlong _size; public: JvmtiObjectAllocEventMark(JavaThread *thread, oop obj) : JvmtiClassEventMark(thread, oop_to_klass(obj)) { _jobj = (jobject)to_jobject(obj); ! _size = obj->size() * wordSize; }; jobject jni_jobject() { return _jobj; } jlong size() { return _size; } }; --- 1042,1052 ---- jobject _jobj; jlong _size; public: JvmtiObjectAllocEventMark(JavaThread *thread, oop obj) : JvmtiClassEventMark(thread, oop_to_klass(obj)) { _jobj = (jobject)to_jobject(obj); ! _size = Universe::heap()->obj_size(obj) * wordSize; }; jobject jni_jobject() { return _jobj; } jlong size() { return _size; } };
< prev index next >