harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r505011 - /harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_suspend.c
Date Thu, 08 Feb 2007 19:20:05 GMT
Author: gshimansky
Date: Thu Feb  8 11:20:04 2007
New Revision: 505011

URL: http://svn.apache.org/viewvc?view=rev&rev=505011
Log:
Applied HARMONY-3002 [drlvm] Race condition in threading code leads to VM crash on SMP systems
on HARMONY-2386

Tests passed on Ubuntu6 x86, Windows 2003 server x86, SuSE9 x86 and x86_64


Modified:
    harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_suspend.c

Modified: harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_suspend.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_suspend.c?view=diff&rev=505011&r1=505010&r2=505011
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_suspend.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_suspend.c Thu Feb  8 11:20:04
2007
@@ -216,7 +216,7 @@
 // blocked in case was selfsuspended.
 static IDATA wait_safe_region_event(hythread_t thread) {
     assert(thread->suspend_request >= 1);
-    if(thread->suspend_request > 1 || thread == tm_self_tls) {
+    if(thread == tm_self_tls) {
         TRACE(("TM: suspend wait self exit thread: %p request count: %d",thread , thread->suspend_request));
         return TM_ERROR_NONE;
     }               



Mime
View raw message