RFR: JDK-8297523 : Various GetPrimitiveArrayCritical miss result - NULL check

Thomas Stuefe stuefe at openjdk.org
Fri Nov 25 13:13:01 UTC 2022


On Fri, 25 Nov 2022 09:15:08 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> There are still a few places where GetPrimitiveArrayCritical calls miss the result check. This should be adjusted.
> A similar case was recently adjusted here : https://bugs.openjdk.org/browse/JDK-8297480

Hi Matthias,

But all this is just theoretical, right, since GPAC does not allocate memory in hotspot? Your patch is fine, though I would prefer OOMEs instead of silently omitting code.

Cheers, Thomas

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

Marked as reviewed by stuefe (Reviewer).

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



More information about the client-libs-dev mailing list