printing collector statistics
Delvin Defoe
delvin.defoe@gmail.com
Thu May 3 23:33:00 GMT 2007
Hi:
I am implementing a garbage collector that supports multiple threads
on multiple processors. The collector mostly works however, I would
like to instrument it to generate timiing and other statistics for the
main thread and for every other thread. For the main thread, I would
need to know where it begins and where it ends its execution. I
believe it starts its execution in function _Jv_RunMain (vm_args,
klass, name, argc, argv, is_jar) in file libjava/prims.cc. I was
expecting to call the function that prints the statistis for that
thread at the end of this function. However, that does not work. Any
ideas on where I should call that function?
For other threads, I get it to work by placing the call at the end of
function really_start(void *x) in file libjava/posix-threads.cc.
I would appreciate any feedback you can give.
Regards,
Delvin
--
***********************************************************
Delvin Defoe
Doctoral Candidate
Department of Computer Science
Washington University in Saint Louis
314.935.4502
http://www.cs.wustl.edu/~dcd2/
***********************************************************
More information about the Java
mailing list