RFR: 8297138: UB leading to crash in Amalloc with optimized builds

Thomas Stuefe stuefe at openjdk.org
Mon Nov 28 12:35:25 UTC 2022


On Mon, 28 Nov 2022 11:06:55 GMT, Afshin Zafari <duke at openjdk.org> wrote:

> I have no idea about other possible patches. Please, let me know specifically what should I do?

Guard the free with `ifdef ASSERT`. Even better, check all mentionings of UseMallocOnly and make sure those only apply for debug builds.

Cheers, Thomas

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

PR: https://git.openjdk.org/jdk/pull/11320


More information about the hotspot-runtime-dev mailing list