src/macosx/classes/sun/lwawt/macosx/CFRetainedResource.java

Print this page

        

*** 31,42 **** * correct AppKit threading and Objective-C GC semantics. */ public class CFRetainedResource { private static native void nativeCFRelease(final long ptr, final boolean disposeOnAppKitThread); ! final boolean disposeOnAppKitThread; ! protected long ptr; /** * @param ptr CFRetained native object pointer * @param disposeOnAppKitThread is the object needs to be CFReleased on the main thread */ --- 31,42 ---- * correct AppKit threading and Objective-C GC semantics. */ public class CFRetainedResource { private static native void nativeCFRelease(final long ptr, final boolean disposeOnAppKitThread); ! private final boolean disposeOnAppKitThread; ! protected volatile long ptr; /** * @param ptr CFRetained native object pointer * @param disposeOnAppKitThread is the object needs to be CFReleased on the main thread */