On Wed, 6 Mar 2024 09:26:25 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:

> We define the RESTARTABLE macro again and again at a lot of places in the JDK 
> native codebase. This could be centralized to avoid repeating it again and 
> again !

src/java.base/share/native/libjava/jni_util.h line 243:

> 241:   } while((_result == -1) && (errno == EINTR)); \
> 242: } while(0)
> 243: 

jni_util.h is for all platforms so not the right place for a Unix specific 
macro. We need think where the right place for this, might have to introduce a 
jni_util_md.h.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18132#discussion_r1514555111

Reply via email to