Hi please oblige and review the following changes http://cr.openjdk.java.net/~msheppar/8035930/webrev/
to address the issues raised in https://bugs.openjdk.java.net/browse/JDK-8035930 this adds additional NULL check for malloc and JNI calls and check for pending exceptions as appropriate regards Mark