This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Idea for stack traces


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]