RFR: 8298128: runtime/ErrorHandling/TestSigInfoInHsErrFile.java fails to find pattern with slowdebug [v2]
David Holmes
dholmes at openjdk.org
Sun Dec 18 21:49:51 UTC 2022
On Sat, 17 Dec 2022 10:25:40 GMT, Afshin Zafari <duke at openjdk.org> wrote:
>> ### Description
>> The following problems found and solved:
>>
>> 1) Reporting which regex pattern did not match with error messages was incorrect. To report the mismatched pattern, the head of the pattern list was peeked, while it was the already peeked item from that did not match. So the next pattern to the mismatched one was reported.
>>
>> 2) The pattern for finding a crash was incorrectly set to "# .*VMError::controlled_crash.*", while it has to be "# .*crash_with_segfault.*".
>>
>> 3) `crash_with_segfault` function is too small and was `inline`d in compiler optimisations. So it was not in the stack trace when the error message is created.
>>
>> ### Patch
>> 1 and 2 corrected and added the `NOINLINE` to the `crash_with_segfault` signature. The same applied for `crash_with_sigfpe` function.
>>
>> ### Test
>> runtime/ErrorHandling/* and tier1-5
>
> Afshin Zafari has updated the pull request incrementally with one additional commit since the last revision:
>
> 8298128: runtime/ErrorHandling/TestSigInfoInHsErrFile.java fails to find pattern with slowdebug
The error was only occurring on a slow debug build, has the fix been tested on all builds?
Thanks.
src/hotspot/share/utilities/vmError.cpp line 1806:
> 1804: // Crash with an authentic sigfpe
> 1805: volatile int sigfpe_int = 0;
> 1806: static void NOINLINE crash_with_sigfpe() {
Did you consider ALWAYSINLINE instead so the tests could be left unchanged?
-------------
PR: https://git.openjdk.org/jdk/pull/11704
More information about the hotspot-dev
mailing list