hotspot/src/share/vm/prims/jvmtiExport.cpp
// Post vm_object_alloc event for vm allocated objects visible to java
// world.
JvmtiVMObjectAllocEventCollector::~JvmtiVMObjectAllocEventCollector() {
{- -------------------------------------------
(1)
---------------------------------------- -}
if (_allocated != NULL) {
set_enabled(false);
for (int i = 0; i < _allocated->length(); i++) {
oop obj = _allocated->at(i);
if (ServiceUtil::visible_oop(obj)) {
JvmtiExport::post_vm_object_alloc(JavaThread::current(), obj);
}
}
delete _allocated;
}
unset_jvmti_thread_state();
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.