summaryrefslogtreecommitdiff
path: root/libjava/boehm.cc
diff options
context:
space:
mode:
authorkseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4>2006-06-26 16:31:06 +0000
committerkseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4>2006-06-26 16:31:06 +0000
commit357620a14f8d63b53923d50577b1ea773f0379fa (patch)
tree1fa6120b44c9750c14438a1be5fa7c56c5336ae7 /libjava/boehm.cc
parent5da2078a593001a6b7c16798e40054d78a9aa84f (diff)
downloadgcc-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.cc11
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));
+}