added volatile

This commit is contained in:
javasabr 2017-02-24 06:52:34 +03:00
parent 2136dc4484
commit 449f83f4a6

View File

@ -29,7 +29,7 @@ public class LWJGLBufferAllocator implements BufferAllocator {
/**
* The address of LWJGL byte buffer.
*/
private Long address;
private volatile Long address;
public Deallocator(final ByteBuffer referent, final ReferenceQueue<? super ByteBuffer> queue,
final Long address) {