Idea for stack traces
Tom Tromey
tromey@redhat.com
Fri Mar 8 11:40:00 GMT 2002
>>>>> "Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
Bryce> During class initialization, some data structure is built up
Bryce> with the code pointers (from _Jv_Method) for each method in the
Bryce> class. When a stack trace is required, we traverse this data
Bryce> structure to determine which method each stack PC value belongs
Bryce> to, and the method name and argument values from the _Jv_Method
Bryce> structure are used when printing the stack trace.
We also need a way to handle interpreted methods, where the PC range
is always the same but the actual method is determined in the frame
itself. This can be a slower method if need be. Looking at the ORP
interfaces here would be good.
Tom
More information about the Java
mailing list