RFR: 8345296: AArch64: VM crashes with SIGILL when prctl is disallowed [v3]

Evgeny Astigeevich eastigeevich at openjdk.org
Mon Dec 2 17:39:03 UTC 2024


On Mon, 2 Dec 2024 17:30:07 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> According to https://man7.org/linux/man-pages/man2/prctl.2.html, `prctl` returns a nonnegative value. So we need to check `vl` for zero.
>
> How? `0 < 16` => `TRUE`, but `(0 % 16) != 0` => `FALSE`.
> What I can see is that `0` is covered by `is_power_of_2`, however.

Yes, our implementation of `is_power_of_2` returns `false` for 0.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22479#discussion_r1866302171


More information about the hotspot-dev mailing list