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

Evgeny Astigeevich eastigeevich at openjdk.org
Mon Dec 2 18:01:40 UTC 2024


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

> > On 12/2/24 17:33, Evgeny Astigeevich wrote: Yes, our implementation of |is_power_of_2| returns |false| for 0.
> > Even if it does, callers shouldn't depend on that. Someone might fix it.
> 
> Honestly, let's just test for `== 0` directly to close the gap that `%` exposes.

Maybe my math is too rusty :)

`2^x` cannot be zero for any integer `x >= 0`.

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

PR Comment: https://git.openjdk.org/jdk/pull/22479#issuecomment-2512293330


More information about the hotspot-dev mailing list