src/share/vm/utilities/vmError.cpp

Print this page

        

@@ -451,10 +451,12 @@
                    Abstract_VM_Version::vm_platform_string(),
                    UseCompressedOops ? "compressed oops" : ""
                  );
 
   STEP(60, "(printing problematic frame)")
+      // initialize decoder to decode C frames
+      Decoder decoder;
 
      // Print current frame if we have a context (i.e. it's a crash)
      if (_context) {
        st->print_cr("# Problematic frame:");
        st->print("# ");

@@ -564,13 +566,10 @@
 
        // see if it's a valid frame
        if (fr.pc()) {
           st->print_cr("Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)");
 
-          // initialize decoder to decode C frames
-          Decoder decoder;
-
           int count = 0;
           while (count++ < StackPrintLimit) {
              fr.print_on_error(st, buf, sizeof(buf));
              st->cr();
              if (os::is_first_C_frame(&fr)) break;