On Fri, 3 Dec 2021 20:14:23 GMT, Alexander Zuev <kiz...@openjdk.org> wrote:

> Yes, but then handle_bad_alloc() will not be called which will not raise the 
> OutOfMemoryError on the java side.

Can't we call it explicitly in the case where `colorBits == NULL`?

Alternatively, since you don't use the macros for try and catch, you can 
re-arrange code and perform cleanup after the catch-block. Just an idea… It may 
not work.

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

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

Reply via email to