--- a/hotspot/src/share/vm/utilities/vmError.cpp Fri Nov 09 08:36:17 2012 -0800
+++ b/hotspot/src/share/vm/utilities/vmError.cpp Mon Nov 12 14:03:53 2012 -0800
@@ -1009,6 +1009,15 @@
OnError = NULL;
}
+ static bool skip_replay = false;
+ if (DumpReplayDataOnError && _thread && _thread->is_Compiler_thread() && !skip_replay) {
+ skip_replay = true;
+ ciEnv* env = ciEnv::current();
+ if (env != NULL) {
+ env->dump_replay_data();
+ }
+ }
+
static bool skip_bug_url = !should_report_bug(first_error->_id);
if (!skip_bug_url) {
skip_bug_url = true;