Commit 71860b0f by Alan Modra Committed by Alan Modra

stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add interpreted classes.

	* stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add
	interpreted classes.

From-SVN: r114253
parent 7074ea72
2006-05-31 Alan Modra <amodra@bigpond.net.au>
* stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add
interpreted classes.
2006-05-30 Thomas Fitzsimmons <fitzsim@redhat.com> 2006-05-30 Thomas Fitzsimmons <fitzsim@redhat.com>
* scripts/makemake.tcl (emit_bc_rule): Do not skip * scripts/makemake.tcl (emit_bc_rule): Do not skip
......
...@@ -55,23 +55,21 @@ _Jv_StackTrace::UpdateNCodeMap () ...@@ -55,23 +55,21 @@ _Jv_StackTrace::UpdateNCodeMap ()
jclass klass; jclass klass;
while ((klass = _Jv_PopClass ())) while ((klass = _Jv_PopClass ()))
{ if (!_Jv_IsInterpretedClass (klass))
//printf ("got %s\n", klass->name->data); {
#ifdef INTERPRETER //printf ("got %s\n", klass->name->data);
JvAssert (! _Jv_IsInterpretedClass (klass)); for (int i = 0; i < klass->method_count; i++)
#endif {
for (int i=0; i < klass->method_count; i++) _Jv_Method *method = &klass->methods[i];
{ void *ncode = method->ncode;
_Jv_Method *method = &klass->methods[i]; // Add non-abstract methods to ncodeMap.
void *ncode = method->ncode; if (ncode)
// Add non-abstract methods to ncodeMap. {
if (ncode) ncode = UNWRAP_FUNCTION_DESCRIPTOR (ncode);
{ ncodeMap->put ((java::lang::Object *) ncode, klass);
ncode = UNWRAP_FUNCTION_DESCRIPTOR (ncode); }
ncodeMap->put ((java::lang::Object *)ncode, klass); }
} }
}
}
} }
// Given a native frame, return the class which this code belongs // Given a native frame, return the class which this code belongs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment