comparison src/share/vm/utilities/vmError.cpp @ 2044:06f017f7daa7

Merge.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Fri, 07 Jan 2011 18:18:08 +0100
parents 2d4762ec74af
children 36c186bcc085
comparison
equal deleted inserted replaced
1942:00bc9eaf0e24 2044:06f017f7daa7
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24 24
25 # include "incls/_precompiled.incl" 25 #include "precompiled.hpp"
26 # include "incls/_vmError.cpp.incl" 26 #include "compiler/compileBroker.hpp"
27 #include "gc_interface/collectedHeap.hpp"
28 #include "runtime/arguments.hpp"
29 #include "runtime/frame.inline.hpp"
30 #include "runtime/init.hpp"
31 #include "runtime/os.hpp"
32 #include "runtime/thread.hpp"
33 #include "runtime/vmThread.hpp"
34 #include "runtime/vm_operations.hpp"
35 #include "utilities/debug.hpp"
36 #include "utilities/decoder.hpp"
37 #include "utilities/defaultStream.hpp"
38 #include "utilities/top.hpp"
39 #include "utilities/vmError.hpp"
27 40
28 // List of environment variables that should be reported in error log file. 41 // List of environment variables that should be reported in error log file.
29 const char *env_list[] = { 42 const char *env_list[] = {
30 // All platforms 43 // All platforms
31 "JAVA_HOME", "JRE_HOME", "JAVA_TOOL_OPTIONS", "_JAVA_OPTIONS", "CLASSPATH", 44 "JAVA_HOME", "JRE_HOME", "JAVA_TOOL_OPTIONS", "_JAVA_OPTIONS", "CLASSPATH",
502 515
503 // see if it's a valid frame 516 // see if it's a valid frame
504 if (fr.pc()) { 517 if (fr.pc()) {
505 st->print_cr("Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)"); 518 st->print_cr("Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)");
506 519
520 // initialize decoder to decode C frames
521 Decoder decoder;
522
507 int count = 0; 523 int count = 0;
508
509 while (count++ < StackPrintLimit) { 524 while (count++ < StackPrintLimit) {
510 fr.print_on_error(st, buf, sizeof(buf)); 525 fr.print_on_error(st, buf, sizeof(buf));
511 st->cr(); 526 st->cr();
512 if (os::is_first_C_frame(&fr)) break; 527 if (os::is_first_C_frame(&fr)) break;
513 fr = os::get_sender_for_C_frame(&fr); 528 fr = os::get_sender_for_C_frame(&fr);