< prev index next >

src/hotspot/share/prims/jvmtiExport.cpp

Print this page

        

*** 55,65 **** #include "runtime/objectMonitor.inline.hpp" #include "runtime/os.inline.hpp" #include "runtime/thread.inline.hpp" #include "runtime/threadSMR.hpp" #include "runtime/vframe.hpp" - #include "services/serviceUtil.hpp" #include "utilities/macros.hpp" #if INCLUDE_ALL_GCS #include "gc/parallel/psMarkSweep.hpp" #endif // INCLUDE_ALL_GCS --- 55,64 ----
*** 2361,2374 **** } } void JvmtiExport::post_monitor_contended_enter(JavaThread *thread, ObjectMonitor *obj_mntr) { oop object = (oop)obj_mntr->object(); - if (!ServiceUtil::visible_oop(object)) { - // Ignore monitor contended enter for vm internal object. - return; - } JvmtiThreadState *state = thread->jvmti_thread_state(); if (state == NULL) { return; } --- 2360,2369 ----
*** 2396,2409 **** } } void JvmtiExport::post_monitor_contended_entered(JavaThread *thread, ObjectMonitor *obj_mntr) { oop object = (oop)obj_mntr->object(); - if (!ServiceUtil::visible_oop(object)) { - // Ignore monitor contended entered for vm internal object. - return; - } JvmtiThreadState *state = thread->jvmti_thread_state(); if (state == NULL) { return; } --- 2391,2400 ----
*** 2463,2476 **** } } void JvmtiExport::post_monitor_waited(JavaThread *thread, ObjectMonitor *obj_mntr, jboolean timed_out) { oop object = (oop)obj_mntr->object(); - if (!ServiceUtil::visible_oop(object)) { - // Ignore monitor waited for vm internal object. - return; - } JvmtiThreadState *state = thread->jvmti_thread_state(); if (state == NULL) { return; } --- 2454,2463 ----
*** 2759,2772 **** JvmtiVMObjectAllocEventCollector::~JvmtiVMObjectAllocEventCollector() { 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(); } --- 2746,2757 ----
< prev index next >