[JDK-6341887] RFR: Patch V3: java.util.zip: Add ByteBuffer methods to Inflater/Deflater
Paul Sandoz
paul.sandoz at oracle.com
Fri Mar 2 16:36:20 UTC 2018
> On Mar 2, 2018, at 8:07 AM, David Lloyd <david.lloyd at redhat.com> wrote:
>
> The third... and hopefully final... version of this patch is attached.
> It is the same as V2, however it also uses
> Reference.reachabilityFence() defensively on buffers. This may be
> necessary because there are code paths which may allow such buffers to
> be GCed after their address is acquired but before the native code
> successfully is able to read it.
>
> The online version of this patch is visible at [1].
>
I have not been tracking this patch closely, but the use of Reference.reachabilityFence looks good to me.
Paul.
> [1] https://github.com/dmlloyd/openjdk/commit/zlib-bytebuffer-v8
>
> --
> - DML
> <JDK-6341887-zlib-bytebuffer-patch-v3.txt>
More information about the core-libs-dev
mailing list