RFR: 8327990: [macosx-aarch64] Various tests fail with -XX:+AssertWXAtThreadSync [v3]

dean.long at oracle.com dean.long at oracle.com
Tue Mar 19 16:28:25 UTC 2024


On 3/19/24 8:20 AM, Thomas Stuefe wrote:

> I wonder wheter we could - at least as workaround for if we missed a
> spot - do wx switching as a reaction to a SIBBUS related to WX violation
>   in code cache. Switch state around, return from signal handler and
> retry operation.
>
> (Edit: tested it, does not seem to work. I guess when the SIGBUS is
> triggered in the kernel thread WX state had already been processed
> somehow).


That makes sense if the WX state is part of the signal context saved and 
restored by the signal handler.

dl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-dev/attachments/20240319/1836f7ec/attachment.htm>


More information about the hotspot-dev mailing list