harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcfi...@apache.org
Subject svn commit: r643441 - in /harmony/enhanced/drlvm/trunk/vm/thread/src: thread_native_basic.c thread_native_thin_monitor.c
Date Tue, 01 Apr 2008 15:22:33 GMT
Author: mcfirst
Date: Tue Apr  1 08:22:32 2008
New Revision: 643441

URL: http://svn.apache.org/viewvc?rev=643441&view=rev
Log:
Applying the patch for HARMONY-5534 [drlvm][thread] RecursiveTest failure from the reliability
test suite

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

Modified: harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_basic.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_basic.c?rev=643441&r1=643440&r2=643441&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_basic.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_basic.c Tue Apr  1 08:22:32 2008
@@ -301,7 +301,10 @@
  * @return none
  */
 void VMCALL hythread_yield_other(hythread_t thread) {
-    port_thread_yield_other(thread->os_handle);
+    assert(thread);
+    if (hythread_is_alive(thread)) {
+        port_thread_yield_other(thread->os_handle);
+    }
 }
 
 /** 

Modified: harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_thin_monitor.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_thin_monitor.c?rev=643441&r1=643440&r2=643441&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_thin_monitor.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_thin_monitor.c Tue Apr  1 08:22:32
2008
@@ -243,7 +243,7 @@
 
     // resume owner
     if (owner) {
-        port_thread_yield_other(owner->os_handle);
+        hythread_yield_other(owner);
         hythread_resume(owner);
     }
 



Mime
View raw message