@@ -718,32 +718,6 @@ public void printDiagnostics(Log log, ErrorContext context, int maxDiagnosticLev
718718 }
719719 }
720720
721- private static class DumpTopDeoptimizedFrame extends DiagnosticThunk {
722- @ Override
723- public int maxInvocationCount () {
724- return 1 ;
725- }
726-
727- @ Override
728- @ RestrictHeapAccess (access = RestrictHeapAccess .Access .NO_ALLOCATION , reason = "Must not allocate while printing diagnostics." )
729- public void printDiagnostics (Log log , ErrorContext context , int maxDiagnosticLevel , int invocationCount ) {
730- Pointer sp = context .getStackPointer ();
731- CodePointer ip = context .getInstructionPointer ();
732-
733- if (sp .isNonNull () && ip .isNonNull ()) {
734- long totalFrameSize = getTotalFrameSize (sp , ip );
735- DeoptimizedFrame deoptFrame = Deoptimizer .checkDeoptimized (sp );
736- if (deoptFrame != null ) {
737- log .string ("Top frame info:" ).indent (true );
738- log .string ("RSP " ).zhex (sp ).string (" frame was deoptimized:" ).newline ();
739- log .string ("SourcePC " ).zhex (deoptFrame .getSourcePC ()).newline ();
740- log .string ("SourceTotalFrameSize " ).signed (totalFrameSize ).newline ();
741- log .indent (false );
742- }
743- }
744- }
745- }
746-
747721 private static class DumpThreads extends DiagnosticThunk {
748722 @ Override
749723 public int maxInvocationCount () {
@@ -1254,9 +1228,6 @@ public static synchronized DiagnosticThunkRegistry singleton() {
12541228 thunks .add (new DumpRegisters ());
12551229 thunks .add (new DumpInstructions ());
12561230 thunks .add (new DumpTopOfCurrentThreadStack ());
1257- if (RuntimeCompilation .isEnabled ()) {
1258- thunks .add (new DumpTopDeoptimizedFrame ());
1259- }
12601231 thunks .add (new DumpCurrentThreadLocals ());
12611232 thunks .add (new DumpCurrentThreadFrameAnchors ());
12621233 thunks .add (new DumpCurrentThreadDecodedStackTrace ());
0 commit comments