comparison src/share/vm/utilities/vmError.cpp @ 14422:2b8e28fdf503

Merge
author kvn
date Tue, 05 Nov 2013 17:38:04 -0800
parents 5cc2d82aa82a
children 096c224171c4 183bd5c00828 5656140324ed
comparison
equal deleted inserted replaced
14421:3068270ba476 14422:2b8e28fdf503
572 } 572 }
573 573
574 STEP(120, "(printing native stack)" ) 574 STEP(120, "(printing native stack)" )
575 575
576 if (_verbose) { 576 if (_verbose) {
577 if (os::platform_print_native_stack(st, _context, buf, sizeof(buf))) {
578 // We have printed the native stack in platform-specific code
579 // Windows/x64 needs special handling.
580 } else {
577 frame fr = _context ? os::fetch_frame_from_context(_context) 581 frame fr = _context ? os::fetch_frame_from_context(_context)
578 : os::current_frame(); 582 : os::current_frame();
579 583
580 // see if it's a valid frame 584 // see if it's a valid frame
581 if (fr.pc()) { 585 if (fr.pc()) {
602 } 606 }
603 607
604 st->cr(); 608 st->cr();
605 } 609 }
606 } 610 }
611 }
607 612
608 STEP(130, "(printing Java stack)" ) 613 STEP(130, "(printing Java stack)" )
609 614
610 if (_verbose && _thread && _thread->is_Java_thread()) { 615 if (_verbose && _thread && _thread->is_Java_thread()) {
611 print_stack_trace(st, (JavaThread*)_thread, buf, sizeof(buf)); 616 print_stack_trace(st, (JavaThread*)_thread, buf, sizeof(buf));
1043 int fd = prepare_log_file(ReplayDataFile, "replay_pid%p.log", buffer, sizeof(buffer)); 1048 int fd = prepare_log_file(ReplayDataFile, "replay_pid%p.log", buffer, sizeof(buffer));
1044 if (fd != -1) { 1049 if (fd != -1) {
1045 FILE* replay_data_file = os::open(fd, "w"); 1050 FILE* replay_data_file = os::open(fd, "w");
1046 if (replay_data_file != NULL) { 1051 if (replay_data_file != NULL) {
1047 fileStream replay_data_stream(replay_data_file, /*need_close=*/true); 1052 fileStream replay_data_stream(replay_data_file, /*need_close=*/true);
1048 env->dump_replay_data(&replay_data_stream); 1053 env->dump_replay_data_unsafe(&replay_data_stream);
1049 out.print_raw("#\n# Compiler replay data is saved as:\n# "); 1054 out.print_raw("#\n# Compiler replay data is saved as:\n# ");
1050 out.print_raw_cr(buffer); 1055 out.print_raw_cr(buffer);
1051 } else { 1056 } else {
1052 out.print_raw("#\n# Can't open file to dump replay data. Error: "); 1057 out.print_raw("#\n# Can't open file to dump replay data. Error: ");
1053 out.print_raw_cr(strerror(os::get_last_error())); 1058 out.print_raw_cr(strerror(os::get_last_error()));