[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: RFR: JDK-8298170 : Introduce a macro for exception check, free and return
From:       Matthias Baesken <mbaesken () openjdk ! org>
Date:       2022-12-28 14:30:56
Message-ID: lGGwZvwa0eAtXlap63EaW0vJxvWj_u_g1eG_0D7HaaI=.ee110e67-29a4-4120-a048-d1835913e3d0 () github ! com
[Download RAW message or body]

On Tue, 6 Dec 2022 15:20:26 GMT, Matthias Baesken <mbaesken@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.

okay, if keeping the block in the code that contains free and return, we probably \
just stay with what we have


if ((*env)->ExceptionCheck(env)) {
  free(xyz);
  return val;
}

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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic