RFR: [XS] 8215411: some GetByteArrayElements calls miss corresponding Release

Baesken, Matthias matthias.baesken at sap.com
Mon Dec 17 08:59:18 UTC 2018

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


the ReleaseByteArrayElements  routine should always be called.

bug/webrev :



Thanks, Matthias

More information about the hotspot-dev mailing list