RFR: 8302837: Kernel32.cpp array memory release invokes undefined behaviour

Jan Lahoda jlahoda at openjdk.org
Tue Feb 21 11:43:24 UTC 2023


On Mon, 20 Feb 2023 07:47:48 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> When several arrays are allocated with the new operator in Kernel32, they use the wrong set of delete operators when freeing the allocated memory. In C++ this is undefined behaviour and they should be converted to use the correct operators

Looks sensible to me. Thanks!

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

Marked as reviewed by jlahoda (Reviewer).

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


More information about the kulla-dev mailing list