RFR: 8297138: UB leading to crash in Amalloc with optimized builds
Andrew Haley
aph at openjdk.org
Tue Nov 29 16:47:00 UTC 2022
On Mon, 28 Nov 2022 13:56:14 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> The UseMallocOnly flag is a develop only flag. Even without #ifdef ASSERT, the code under it is optimized out. There's no need to litter the code with debug_only() or DEBUG_ONLY() for this and that's error prone, as this bug complains.
Yes, exactly. The `debug_only() ` is just noise.
-------------
PR: https://git.openjdk.org/jdk/pull/11320
More information about the hotspot-runtime-dev
mailing list