harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r576465 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_ti_instr.cpp
Date Mon, 17 Sep 2007 14:59:27 GMT
Author: gshimansky
Date: Mon Sep 17 07:59:26 2007
New Revision: 576465

URL: http://svn.apache.org/viewvc?rev=576465&view=rev
Log:
Applied patch from HARMONY-4804
[drlvm][jvmti] GetOwnedMonitorInfo() reports monitors in the opposite order


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_ti_instr.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_ti_instr.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_ti_instr.cpp?rev=576465&r1=576464&r2=576465&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_ti_instr.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_ti_instr.cpp Mon Sep 17 07:59:26
2007
@@ -485,7 +485,9 @@
         return TM_ERROR_OUT_OF_MEMORY;
     }
     for (int i = 0; i < jvmti_thread->owned_monitors_nmb; i++) {
-        monitors[i] = jvmti_thread->owned_monitors[i];
+        // change the order of reported monitors to be compliant with RI
+        monitors[jvmti_thread->owned_monitors_nmb - 1 - i] =
+                jvmti_thread->owned_monitors[i];
     }
     *monitors_ptr = monitors;
     *monitor_count_ptr = jvmti_thread->owned_monitors_nmb;



Mime
View raw message