From 2a6bfcdb6193f403cc835ca05303f390c0c29e97 Mon Sep 17 00:00:00 2001 From: kseitz Date: Fri, 21 Jul 2006 23:45:03 +0000 Subject: * boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration, just the contents. (_Jv_ResumeThread): Likewise. * posix-threads.cc: Revert 2006-06-19 _Jv_ThreadDebugSuspend, _Jv_ThreadDebugResume, _Jv_ThreadDebugSuspendCount patch. Moving to JVMTI instead. * include/posix-threads.h: Likewise. * win32-threads.cc: Likewise. * include/win32-threads.h: Likewise. * jvmti.cc (_Jv_JVMTI_SuspentThread): New function. (_Jv_JVMTI_ResumeThread): New function. (_Jv_JVMTI_Interface): Define SuspendThread and ResumeThread. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115655 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/boehm.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libjava/boehm.cc') diff --git a/libjava/boehm.cc b/libjava/boehm.cc index 3b013dae3d6..6a5603d78a5 100644 --- a/libjava/boehm.cc +++ b/libjava/boehm.cc @@ -678,19 +678,20 @@ _Jv_RegisterLibForGc (const void *p __attribute__ ((__unused__))) #endif } -#if defined(GC_PTHREADS) && !defined(GC_SOLARIS_THREADS) \ - && !defined(GC_WIN32_THREADS) && !defined(GC_DARWIN_THREADS) - void _Jv_SuspendThread (_Jv_Thread_t *thread) { +#if defined(GC_PTHREADS) && !defined(GC_SOLARIS_THREADS) \ + && !defined(GC_WIN32_THREADS) && !defined(GC_DARWIN_THREADS) GC_suspend_thread (_Jv_GetPlatformThreadID (thread)); +#endif } void _Jv_ResumeThread (_Jv_Thread_t *thread) { +#if defined(GC_PTHREADS) && !defined(GC_SOLARIS_THREADS) \ + && !defined(GC_WIN32_THREADS) && !defined(GC_DARWIN_THREADS) GC_resume_thread (_Jv_GetPlatformThreadID (thread)); -} - #endif +} -- cgit v1.2.1