> 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 .
I have not been tracking this patch closely, but the use of
Reference.reachabilityFence looks good to me.
>  https://github.com/dmlloyd/openjdk/commit/zlib-bytebuffer-v8
> - DML