harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r546843 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_capability.cpp
Date Wed, 13 Jun 2007 12:42:22 GMT
Author: gshimansky
Date: Wed Jun 13 05:42:22 2007
New Revision: 546843

URL: http://svn.apache.org/viewvc?view=rev&rev=546843
Log:
Fixed bug HARMONY-3866
[drlvm][jvmti] GetOwnedMonitorInfo returns information about 1 monitor even if there are no
monitors owned by the specified thread

It is necessary to set TI_GC_ENABLE_MONITOR_EVENTS when can_get_owned_monitor_info is requested
because
otherwise TM doesn't use slow path all the time and so JVMTI doesn't know about some entered
monitors.


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_capability.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_capability.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_capability.cpp?view=diff&rev=546843&r1=546842&r2=546843
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_capability.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_capability.cpp Wed Jun 13 05:42:22
2007
@@ -300,7 +300,8 @@
     if (capabilities_ptr->can_pop_frame)
         ti->set_global_capability(DebugUtilsTI::TI_GC_ENABLE_POP_FRAME);
 
-    if (capabilities_ptr->can_generate_monitor_events)
+    if (capabilities_ptr->can_generate_monitor_events ||
+        capabilities_ptr->can_get_owned_monitor_info)
         ti->set_global_capability(DebugUtilsTI::TI_GC_ENABLE_MONITOR_EVENTS);
 
     if (capabilities_ptr->can_tag_objects) {



Mime
View raw message