8249137: Remove CollectedHeap::obj_size

Reviewed-by: rkennke, tschatzl, cjplummer
This commit is contained in:
Aleksey Shipilev 2020-07-13 07:39:39 +02:00
parent faf4d7ccb7
commit 2d3c928f0b
5 changed files with 3 additions and 9 deletions

View file

@ -1065,7 +1065,7 @@ class JvmtiObjectAllocEventMark : public JvmtiClassEventMark {
public:
JvmtiObjectAllocEventMark(JavaThread *thread, oop obj) : JvmtiClassEventMark(thread, oop_to_klass(obj)) {
_jobj = (jobject)to_jobject(obj);
_size = Universe::heap()->obj_size(obj) * wordSize;
_size = obj->size() * wordSize;
};
jobject jni_jobject() { return _jobj; }
jlong size() { return _size; }