diff options
author | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-21 23:45:03 +0000 |
---|---|---|
committer | kseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-21 23:45:03 +0000 |
commit | 2a6bfcdb6193f403cc835ca05303f390c0c29e97 (patch) | |
tree | d9fcf70f352ec397fa6065457951b478894479a5 /libjava/boehm.cc | |
parent | ee7d0a6f2e65fa26985470946dab9c1d9d10fff5 (diff) | |
download | gcc-2a6bfcdb6193f403cc835ca05303f390c0c29e97.tar.gz |
* 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
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r-- | libjava/boehm.cc | 11 |
1 files changed, 6 insertions, 5 deletions
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 +} |