OSDN Git Service

* stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 May 2006 23:50:03 +0000 (23:50 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 May 2006 23:50:03 +0000 (23:50 +0000)
interpreted classes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114253 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/stacktrace.cc

index 24e93cf..f47401c 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * scripts/makemake.tcl (emit_bc_rule): Do not skip
index 8b46181..6423bbd 100644 (file)
@@ -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