diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-30 12:18:39 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-30 12:18:39 +0000 |
commit | 5cba613e21b7b704bcfd1340081c4b5a1b21ad4c (patch) | |
tree | 45acacc07816160e269cf47dd6cdeccef9036f29 /libjava/include | |
parent | 667143119042b4bd9747785b6f9e18857c22a44d (diff) | |
download | gcc-5cba613e21b7b704bcfd1340081c4b5a1b21ad4c.tar.gz |
For boehm-gc:
* configure.in: Rename THREADLIB to THREADLIBS.
* Makefile.am (LINK): Add $(THREADLIBS) to libtool command line. This
ensures that we link the correct version of the linuxthreads semaphore
functions.
* Makefile.in: Rebuilt.
* configure: Rebuilt.
* linux_thread.c (GC_thr_init, GC_suspend_handler): Add SIGABRT to the
list of signals which are not blocked during suspend in the NO_SIGNALS
case.
For libjava:
* Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
the correct versions of various linuxthreads functions get linked.
* Makefile.in: Rebuilt.
* java/lang/natThread.cc (finalize_native): New static function. Call
_Jv_ThreadDestroyData.
(initialize_native): Register finalizer for "data".
* include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
(_Jv_ThreadDestroyData): New prototype.
* include/win32-threads.h: Ditto.
* include/no-threads.h: Ditto.
* posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
(_Jv_ThreadDestroyData): New function. Free native thread "data" and
move mutex and condition variable destroy code from:
(really_start): ...here.
(_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
* win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
(_Jv_ThreadDestroyData): Implemented.
* nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
(_Jv_AllocArray): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38557 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/no-threads.h | 9 | ||||
-rw-r--r-- | libjava/include/posix-threads.h | 3 | ||||
-rw-r--r-- | libjava/include/win32-threads.h | 3 |
3 files changed, 11 insertions, 4 deletions
diff --git a/libjava/include/no-threads.h b/libjava/include/no-threads.h index e500184ca67..69b6d437ba1 100644 --- a/libjava/include/no-threads.h +++ b/libjava/include/no-threads.h @@ -102,10 +102,15 @@ _Jv_InitThreads (void) { } +inline _Jv_Thread_t * +_Jv_ThreadInitData (java::lang::Thread *) +{ + return NULL; +} + inline void -_Jv_ThreadInitData (_Jv_Thread_t **data, java::lang::Thread *) +_Jv_ThreadDestroyData (_Jv_Thread_t *data) { - *data = NULL; } inline java::lang::Thread * diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h index 5b1f075dc0d..75285ca6f50 100644 --- a/libjava/include/posix-threads.h +++ b/libjava/include/posix-threads.h @@ -169,7 +169,8 @@ _Jv_MutexDestroy (_Jv_Mutex_t *mu) void _Jv_InitThreads (void); -void _Jv_ThreadInitData (_Jv_Thread_t **data, java::lang::Thread *thread); +_Jv_Thread_t *_Jv_ThreadInitData (java::lang::Thread *thread); +void _Jv_ThreadDestroyData (_Jv_Thread_t *data); inline java::lang::Thread * _Jv_ThreadCurrent (void) diff --git a/libjava/include/win32-threads.h b/libjava/include/win32-threads.h index 4938d5faf57..31b961b253b 100644 --- a/libjava/include/win32-threads.h +++ b/libjava/include/win32-threads.h @@ -97,7 +97,8 @@ _Jv_MutexUnlock (_Jv_Mutex_t *mu) // void _Jv_InitThreads (void); -void _Jv_ThreadInitData (_Jv_Thread_t **data, java::lang::Thread *thread); +_Jv_Thread_t *_Jv_ThreadInitData (java::lang::Thread *thread); +void _Jv_ThreadDestroyData (_Jv_Thread_t *data); inline java::lang::Thread * _Jv_ThreadCurrent (void) |