RFR: 8283225: [AIX] ClassLoader.c produces incorrect OutOfMemory Exception when length is 0

Tyler Steele duke at openjdk.java.net
Wed Mar 16 15:11:36 UTC 2022


On Wed, 16 Mar 2022 14:37:57 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> The way we solve this usually is by homogenizing malloc behavior across all platforms with `if (len == 0) len=1;`

Interesting! That idea didn't occur to me until after I submitted the PR. I'm happy to test that out and see how it works.

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

PR: https://git.openjdk.java.net/jdk/pull/7829


More information about the core-libs-dev mailing list