Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/bugspot/BugSpot.java @ 6163:b87e5a681416
6310967: SA: jstack -m produce failures in output
Summary: While looking for the sender frame check that the frame pointer should not be less than the stack pointer.
Reviewed-by: dholmes, sla
author | poonam |
---|---|
date | Thu, 14 Jun 2012 02:12:46 -0700 |
parents | f6f3bb0ee072 |
children |
comparison
equal
deleted
inserted
replaced
6129:4d399f013e5a | 6163:b87e5a681416 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
655 java.util.List trace = new ArrayList(); | 655 java.util.List trace = new ArrayList(); |
656 CFrame fr = getCDebugger().topFrameForThread(t); | 656 CFrame fr = getCDebugger().topFrameForThread(t); |
657 while (fr != null) { | 657 while (fr != null) { |
658 trace.add(new StackTraceEntry(fr, getCDebugger())); | 658 trace.add(new StackTraceEntry(fr, getCDebugger())); |
659 try { | 659 try { |
660 fr = fr.sender(); | 660 fr = fr.sender(t); |
661 } catch (AddressException e) { | 661 } catch (AddressException e) { |
662 e.printStackTrace(); | 662 e.printStackTrace(); |
663 showMessageDialog("Error while walking stack; stack trace will be truncated\n(see console for details)", | 663 showMessageDialog("Error while walking stack; stack trace will be truncated\n(see console for details)", |
664 "Error walking stack", | 664 "Error walking stack", |
665 JOptionPane.WARNING_MESSAGE); | 665 JOptionPane.WARNING_MESSAGE); |