printing collector statistics
Delvin Defoe
delvin.defoe@gmail.com
Fri May 4 17:47:00 GMT 2007
Thanks much. That works out just fine.
Regards,
Delvin
On 5/3/07, David Daney <ddaney@avtrex.com> wrote:
> Delvin Defoe wrote:
> > 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.
> >
>
> Look at:
>
> gnu/java/lang/natMainThread.cc
>
> David Daney
>
--
***********************************************************
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