Hello, please review the following change. I noticed that we miss at some places (for example in case of early returns) where GetByteArrayElements is used, the corresponding ReleaseByteArrayElements call.
In VirtualMachineImpl.c I also removed a check for isCopy (is the returned byte array a copy ?) because from what I read at https://docs.oracle.com/javase/8/docs/technotes/guides/jni/spec/functions.html the ReleaseByteArrayElements routine should always be called. bug/webrev : https://bugs.openjdk.java.net/browse/JDK-8215411 http://cr.openjdk.java.net/~mbaesken/webrevs/8215411.0/ Thanks, Matthias