harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r509268 - /harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_fat_monitor.c
Date Mon, 19 Feb 2007 17:39:04 GMT
Author: gshimansky
Date: Mon Feb 19 09:39:03 2007
New Revision: 509268

URL: http://svn.apache.org/viewvc?view=rev&rev=509268
Log:
Applied HARMONY-3044 [drlvm][thread manager] smoke test gc.LOS hangs from time to time on
SUSE9 Linux x86 and x86_64

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


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

Modified: harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_fat_monitor.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_fat_monitor.c?view=diff&rev=509268&r1=509267&r2=509268
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_fat_monitor.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_fat_monitor.c Mon Feb 19 09:39:03
2007
@@ -216,9 +216,12 @@
     mon_ptr->wait_count--;
 
     if (self->suspend_request) {
+        int save_count;
         hymutex_unlock(mon_ptr->mutex);
         hythread_safe_point();
+        save_count = reset_suspend_disable();
         hymutex_lock(mon_ptr->mutex);
+        set_suspend_disable(save_count);
     }
 
     mon_ptr->recursion_count = saved_recursion;



Mime
View raw message