> On Mar 2, 2018, at 8:07 AM, David Lloyd <david.ll...@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.


> [1] https://github.com/dmlloyd/openjdk/commit/zlib-bytebuffer-v8
> -- 
> - DML
> <JDK-6341887-zlib-bytebuffer-patch-v3.txt>

Reply via email to