< prev index next >

src/hotspot/share/prims/jvmtiExport.cpp

Print this page

        

@@ -1041,11 +1041,11 @@
    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;
+     _size = (obj->size() + Universe::heap()->oop_extra_words()) * wordSize;
    };
    jobject jni_jobject() { return _jobj; }
    jlong size() { return _size; }
 };
 
< prev index next >