harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r573305 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_java_suspend.cpp
Date Thu, 06 Sep 2007 15:57:14 GMT
Author: gshimansky
Date: Thu Sep  6 08:57:14 2007
New Revision: 573305

URL: http://svn.apache.org/viewvc?rev=573305&view=rev
Log:
Improved jthread_suspend function because everywhere in the code the return value is basically
ignored.
So this function is expected to actually suspend the target thread.


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

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_java_suspend.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_java_suspend.cpp?rev=573305&r1=573304&r2=573305&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_java_suspend.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/thread/thread_java_suspend.cpp Thu Sep  6 08:57:14
2007
@@ -82,7 +82,15 @@
 IDATA VMCALL jthread_suspend(jthread java_thread)
 {
     hythread_t native_thread = vm_jthread_get_tm_data(java_thread);
-    return hythread_suspend_other(native_thread);
+    IDATA status;
+
+    while ((status= hythread_suspend_other(native_thread)) != TM_ERROR_NONE)
+    {
+        hythread_safe_point();
+        hythread_exception_safe_point();
+    }
+
+    return TM_ERROR_NONE;
 } // jthread_suspend
 
 /**



Mime
View raw message