[RFA\JVMTI] Implement GetAllThreads

Kyle Galloway kgallowa@redhat.com
Thu Jan 11 21:54:00 GMT 2007


Hi,

This patch implements the JVMTI GetAllThreads function.  Nothing too 
complicated, finds the root thread group then grabs all the threads 
under it and allocates an array to send them all back using the pointer 
passed in by the agent.  Not sure if I submitted this a long time ago, 
but here it is again if I did.  Includes a test case which creates 20 
new threads then checks to make sure all the threads are found.

Changelog
2007-01-11  Kyle Galloway  <kgallowa@redhat.com>

	* jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
	* testsuite/libjava.jvmti/getallthreads.java: New test.
	* testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
	* testsuite/libjava.jvmti/getallthreads.out: Ditto.

Comments, Questions, Concerns?

- Kyle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getallthreads.patch
Type: text/x-patch
Size: 6180 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20070111/fcfcf674/attachment.bin>


More information about the Java-patches mailing list