--- old/src/share/vm/utilities/vmError.cpp 2019-01-28 17:45:04.000000000 +0800 +++ new/src/share/vm/utilities/vmError.cpp 2019-01-28 17:45:04.000000000 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -939,6 +939,14 @@ // are handled properly. reset_signal_handlers(); + EventShutdown e; + if (e.should_commit()) { + e.set_reason("VM Error"); + e.commit(); + } + + TRACE_VM_ERROR(); + } else { // If UseOsErrorReporting we call this for each level of the call stack // while searching for the exception handler. Only the first level needs