RFR: JDK-8298170 : Introduce a macro for exception check, free and return
Roger Riggs
rriggs at openjdk.org
Tue Dec 6 20:42:40 UTC 2022
On Tue, 6 Dec 2022 15:20:26 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> We have a number of places in the codebase where a macro could help when we check an exception and afterwrads free something and return.
The existing (and new) macro naming doesn't make clear that it always returns from the function. The presence of "RETURN" in the name only means there is a return value.
The existing code more obviously handles memory deallocation.
-------------
PR: https://git.openjdk.org/jdk/pull/11539
More information about the security-dev
mailing list