harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r450400 - in /incubator/harmony/enhanced/drlvm/trunk/vm/thread/src: hythr.def hythr.exp thread_native_basic.c
Date Wed, 27 Sep 2006 11:37:25 GMT
Author: geirm
Date: Wed Sep 27 04:37:24 2006
New Revision: 450400

URL: http://svn.apache.org/viewvc?view=rev&rev=450400
Log:
HARMONY-1590

Our own impl of hythread_exit() 

Ubuntu 6, c-unit, smoke


Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/hythr.def
    incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/hythr.exp
    incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_basic.c

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/hythr.def
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/hythr.def?view=diff&rev=450400&r1=450399&r2=450400
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/hythr.def (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/hythr.def Wed Sep 27 04:37:24 2006
@@ -136,6 +136,7 @@
 hythread_is_waiting_indefinitely
 hythread_is_runnable
 hythread_thin_monitor_get_recursion
+hythread_exit
 array_add
 array_create
 array_delete

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/hythr.exp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/hythr.exp?view=diff&rev=450400&r1=450399&r2=450400
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/hythr.exp (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/hythr.exp Wed Sep 27 04:37:24 2006
@@ -119,7 +119,7 @@
 hymutex_trylock;
 hymutex_unlock;
 hymutex_destroy;
-
+hythread_exit;
 
 hythread_wait_for_all_nondaemon_threads;
 hythread_is_alive;

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_basic.c
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_basic.c?view=diff&rev=450400&r1=450399&r2=450400
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_basic.c (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/thread/src/thread_native_basic.c Wed Sep 27
04:37:24 2006
@@ -719,6 +719,18 @@
     return (void *)(IDATA)apr_thread_exit(thd, APR_SUCCESS);
 }
 
+extern HY_CFUNC void VMCALL 
+    hythread_exit (hythread_monitor_t monitor) {
+   
+    if (monitor !=NULL && monitor->owner == hythread_self()) {
+        monitor->recursion_count = 0;
+        hythread_monitor_exit(monitor);
+    }
+    apr_thread_exit(hythread_self()->os_handle, APR_SUCCESS);     
+    // unreachable statement
+    abort();
+}
+
 apr_pool_t* get_local_pool() {
   hythread_t self = tm_self_tls;
   if(self == NULL) {



Mime
View raw message