diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-05-30 23:50:03 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2006-05-31 09:20:03 +0930 |
commit | 71860b0f615a6edf7fc9f327699d17f7d27d6665 (patch) | |
tree | c2080ba5a5023c011534f4bcbf42ebbe01e7c381 /libjava/stacktrace.cc | |
parent | 7074ea72d10e861505f70e2e12060c3909474bf7 (diff) | |
download | gcc-71860b0f615a6edf7fc9f327699d17f7d27d6665.tar.gz |
stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add interpreted classes.
* stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add
interpreted classes.
From-SVN: r114253
Diffstat (limited to 'libjava/stacktrace.cc')
-rw-r--r-- | libjava/stacktrace.cc | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/libjava/stacktrace.cc b/libjava/stacktrace.cc index 8b4618172fd..6423bbd8702 100644 --- a/libjava/stacktrace.cc +++ b/libjava/stacktrace.cc @@ -55,23 +55,21 @@ _Jv_StackTrace::UpdateNCodeMap () jclass klass; while ((klass = _Jv_PopClass ())) - { - //printf ("got %s\n", klass->name->data); -#ifdef INTERPRETER - JvAssert (! _Jv_IsInterpretedClass (klass)); -#endif - for (int i=0; i < klass->method_count; i++) - { - _Jv_Method *method = &klass->methods[i]; - void *ncode = method->ncode; - // Add non-abstract methods to ncodeMap. - if (ncode) - { - ncode = UNWRAP_FUNCTION_DESCRIPTOR (ncode); - ncodeMap->put ((java::lang::Object *)ncode, klass); - } - } - } + if (!_Jv_IsInterpretedClass (klass)) + { + //printf ("got %s\n", klass->name->data); + for (int i = 0; i < klass->method_count; i++) + { + _Jv_Method *method = &klass->methods[i]; + void *ncode = method->ncode; + // Add non-abstract methods to ncodeMap. + if (ncode) + { + ncode = UNWRAP_FUNCTION_DESCRIPTOR (ncode); + ncodeMap->put ((java::lang::Object *) ncode, klass); + } + } + } } // Given a native frame, return the class which this code belongs |