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/09/17 16:59:27 UTC
svn commit: r576465 -
/harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_ti_instr.cpp
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;