[RFA/JVMTI] SuspendThread and ResumeThread
Keith Seitz
keiths@redhat.com
Fri Jul 21 19:06:00 GMT 2006
Hi,
As requested here are the JVMTI functions SuspendThread and
ResumeThread. They're very basic. They don't check for some error
conditions (like checking whether the thread to be suspended is already
suspended). I have them working in my sandbox breakpoint-enabled gij.
I've also taken this moment to correct two inconsistencies: removed
_Jv_ThreadDebug* from posix-threads.cc since this JVMTI implementation
supplants it; and moved the ifdefs governing the inclusion of
_Jv_SuspendThread and _Jv_ResumeThread in boehm.cc. Now those functions
are always defined, but the contents are ifdef'd. If/when my other GC
cleanup patch is accepted, we can remove these ifdefs altogether.
Keith
ChangeLog
2006-07-21 Keith Seitz <keiths@redhat.com>
* boehm.cc (_Jv_SuspendThread): Don't ifdef the function
declaration,
just the contents.
(_Jv_ResumeThread): Likewise.
* posix-threads.cc (_Jv_ThreadDebugResume): Remove. Moving to
JVMTI.
(_Jv_ThreadDebugSuspend): Ditto.
(_Jv_ThreadDebugSuspendCount): Ditto.
* jvmti.cc (_Jv_JVMTI_SuspentThread): New function.
(_Jv_JVMTI_ResumeThread): New function.
(_Jv_JVMTI_Interface): Define SuspendThread and ResumeThread.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jvmti-thread-suspension.patch
Type: text/x-patch
Size: 2614 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20060721/6fc706fb/attachment.bin>
More information about the Java-patches
mailing list