You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2007/06/13 14:39:41 UTC

svn commit: r546841 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_method.cpp

Author: gshimansky
Date: Wed Jun 13 05:39:40 2007
New Revision: 546841

URL: http://svn.apache.org/viewvc?view=rev&rev=546841
Log:
Added tracing for method enter/exit to improve debugging


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

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_method.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_method.cpp?view=diff&rev=546841&r1=546840&r2=546841
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_method.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_method.cpp Wed Jun 13 05:39:40 2007
@@ -678,6 +678,10 @@
 {
     BEGIN_RAISE_AREA;
 
+    TRACE2("jvmti.event.method.entry", "MethodEntry: " <<
+        class_get_name(method_get_class(method)) << "." <<
+        method_get_name(method) << method_get_descriptor(method));
+
     jvmti_process_method_entry_event(reinterpret_cast<jmethodID>(method));
 
     END_RAISE_AREA;
@@ -686,6 +690,10 @@
 void jvmti_method_exit_callback(Method_Handle method, jvalue* return_value)
 {
     BEGIN_RAISE_AREA;
+
+    TRACE2("jvmti.event.method.entry", "MethodExit: " <<
+        class_get_name(method_get_class(method)) << "." <<
+        method_get_name(method) << method_get_descriptor(method));
 
     Method *m = reinterpret_cast<Method *>(method);
     jmethodID mid = reinterpret_cast<jmethodID>(method);