mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8249137: Remove CollectedHeap::obj_size
Reviewed-by: rkennke, tschatzl, cjplummer
This commit is contained in:
parent
faf4d7ccb7
commit
2d3c928f0b
5 changed files with 3 additions and 9 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue