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] | |
It's clearly better to use the reflection data to do this job. Note that the *only* reason I didn't throw away all the business of calling an external addr2line a long while ago is that people were (and presumably still are) keen on getting line numbers in stack traces.
The existing code used for walking the stack to get a security context already does what you're suggesting -- it generates a hash table of ncode values and uses it to find the class of a call frame. The only case in which this fails to work is where a method is defined in a compilation unit other than that of the class to which it belongs, and the only time that happens is in native code.
So, what are you proposing to do that's really different? Please explain, and let us discuss the implications before we go any further.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |