diff options
author | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-26 16:31:06 +0000 |
---|---|---|
committer | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-26 16:31:06 +0000 |
commit | 357620a14f8d63b53923d50577b1ea773f0379fa (patch) | |
tree | 1fa6120b44c9750c14438a1be5fa7c56c5336ae7 /libjava/boehm.cc | |
parent | 5da2078a593001a6b7c16798e40054d78a9aa84f (diff) | |
download | gcc-357620a14f8d63b53923d50577b1ea773f0379fa.tar.gz |
* include/no-gc.h (_Jv_SuspendThread): Declare.
(_Jv_ResumeThread): Likewise.
* include/boehm-gc.h (_Jv_SuspendThread): Declare.
(_Jv_ResumeThread): Likewise.
* nogc.cc (_Jv_SuspendThread): New function.
(_Jv_ResumeThread): Likewise.
* boehm.cc (_Jv_SuspendThread): New function.
(_Jv_ResumeThread): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115019 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r-- | libjava/boehm.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libjava/boehm.cc b/libjava/boehm.cc index a6f7fdf4826..7b2c031730b 100644 --- a/libjava/boehm.cc +++ b/libjava/boehm.cc @@ -673,3 +673,14 @@ _Jv_RegisterLibForGc (const void *p __attribute__ ((__unused__))) #endif } +void +_Jv_SuspendThread (_Jv_Thread_t *thread) +{ + GC_suspend_thread (_Jv_GetPlatformThreadID (thread)); +} + +void +_Jv_ResumeThread (_Jv_Thread_t *thread) +{ + GC_resume_thread (_Jv_GetPlatformThreadID (thread)); +} |