Mercurial > hg > truffle
comparison src/share/vm/utilities/vmError.cpp @ 6972:bd7a7ce2e264
6830717: replay of compilations would help with debugging
Summary: When java process crashed in compiler thread, repeat the compilation process will help finding root cause. This is done with using SA dump application class data and replay data from core dump, then use debug version of jvm to recompile the problematic java method.
Reviewed-by: kvn, twisti, sspitsyn
Contributed-by: yumin.qi@oracle.com
author | minqi |
---|---|
date | Mon, 12 Nov 2012 14:03:53 -0800 |
parents | a1b8cf9cf970 |
children | 679e6584c177 9deda4d8e126 |
comparison
equal
deleted
inserted
replaced
6965:3be318ecfae5 | 6972:bd7a7ce2e264 |
---|---|
1007 | 1007 |
1008 // done with OnError | 1008 // done with OnError |
1009 OnError = NULL; | 1009 OnError = NULL; |
1010 } | 1010 } |
1011 | 1011 |
1012 static bool skip_replay = false; | |
1013 if (DumpReplayDataOnError && _thread && _thread->is_Compiler_thread() && !skip_replay) { | |
1014 skip_replay = true; | |
1015 ciEnv* env = ciEnv::current(); | |
1016 if (env != NULL) { | |
1017 env->dump_replay_data(); | |
1018 } | |
1019 } | |
1020 | |
1012 static bool skip_bug_url = !should_report_bug(first_error->_id); | 1021 static bool skip_bug_url = !should_report_bug(first_error->_id); |
1013 if (!skip_bug_url) { | 1022 if (!skip_bug_url) { |
1014 skip_bug_url = true; | 1023 skip_bug_url = true; |
1015 | 1024 |
1016 out.print_raw_cr("#"); | 1025 out.print_raw_cr("#"); |