Hello, please review this small fix . It deals with return value checking of ZALLOC .
ZALLOC is a macro using calloc, please see : jdk/src/java.desktop/unix/native/common/awt/awt_p.h /* allocated and initialize a structure */ #define ZALLOC(T) ((struct T *)calloc(1, sizeof(struct T))) ... so the return value has to be checked which is missing at some places. Bug/webrev : https://bugs.openjdk.java.net/browse/JDK-8231445 http://cr.openjdk.java.net/~mbaesken/webrevs/8231445.0/ Thanks, Matthias