RFR: JDK-8298170 : Introduce a macro for exception check, free and return

Roger Riggs rriggs at openjdk.org
Fri Dec 9 14:43:49 UTC 2022


On Fri, 9 Dec 2022 12:23:04 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> Hi Roger , the new proposed version JNU_CHECK_EXCEPTION_DO is now almost as lengthy as the original coding, Is it really worth it introducing a macro when it gets so lengthy ?

Its easier to understand the flow and cleanup being done if its visible in the source. 
I (or new readers) don't have to go unwrap the macro to know what's going to happen.

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

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



More information about the security-dev mailing list