RFR: 8284274: Error reporting crashes because missing ResourceMarks

Thomas Stuefe stuefe at openjdk.java.net
Tue Apr 12 13:39:57 UTC 2022


On Tue, 12 Apr 2022 13:33:57 GMT, Harold Seigel <hseigel at openjdk.org> wrote:

>> src/hotspot/share/utilities/vmError.cpp line 550:
>> 
>>> 548:   // error handler after a secondary crash works.
>>> 549:   STEP("test secondary crash 1")
>>> 550:     if (_verbose && TestCrashInErrorHandler == 14) {
>> 
>> Where does the 14 come from ??
>
> Maybe "// 14 - SIGSEGV" in vmError.cpp?

See runtime/ErrorHandling/SecondaryErrorTest.java, it is fed into VMError::controlled_crash().

That test crashes the VM first with one signal, then inside the error handler with a second, different, signal, to test that the second error signal was correctly unblocked or left unblocked. Otherwise, the VM would just disappear.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8201


More information about the hotspot-dev mailing list