--- a/src/hotspot/share/utilities/vmError.cpp Mon Oct 29 08:38:59 2018 -0400
+++ b/src/hotspot/share/utilities/vmError.cpp Mon Oct 29 10:21:34 2018 -0400
@@ -1467,6 +1467,8 @@
log.set_fd(-1);
}
+ // Error handling generates replay data without the compile lock.
+ NOT_PRODUCT(FlagSetting fs(IgnoreLockingAssertions, true));
static bool skip_replay = ReplayCompiles; // Do not overwrite file during replay
if (DumpReplayDataOnError && _thread && _thread->is_Compiler_thread() && !skip_replay) {
skip_replay = true;