Home
last modified time | relevance | path

Searched refs:Cleaner (Results 1 – 25 of 35) sorted by relevance

12

/libcore/ojluni/src/main/java/java/lang/ref/
DCleaner.java130 public final class Cleaner { class
138 CleanerImpl.setCleanerImplAccess(new Function<Cleaner, CleanerImpl>() { in CleanerImpl.setCleanerImplAccess() argument
140 public CleanerImpl apply(Cleaner cleaner) { in CleanerImpl.setCleanerImplAccess()
149 private Cleaner() { in Cleaner() method in Cleaner
153 private Cleaner(ReferenceQueue queue) { in Cleaner() method in Cleaner
178 public static Cleaner create() { in create()
179 Cleaner cleaner = new Cleaner(); in create()
205 public static Cleaner create(ThreadFactory threadFactory) { in create()
207 Cleaner cleaner = new Cleaner(); in create()
218 public static Cleaner createSystemCleaner() { in createSystemCleaner()
[all …]
DReferenceQueue.java93 if (currentTarget instanceof sun.misc.Cleaner cleaner) { in getCurrentTarget()
121 if (reference instanceof sun.misc.Cleaner cl) { in enqueue()
240 if (queue == null || sun.misc.Cleaner.isCleanerQueue(queue)) { in enqueuePending()
248 sun.misc.Cleaner cl = (sun.misc.Cleaner) list; in enqueuePending()
278 sun.misc.Cleaner.checkCleanerQueueEmpty(); in enqueuePending()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DCleaner.java31 public class Cleaner extends java.lang.ref.PhantomReference<java.lang.Object> { class
33 private Cleaner(java.lang.Object referent, java.lang.Runnable thunk) { in Cleaner() method in Cleaner
38 private static synchronized sun.misc.Cleaner add(sun.misc.Cleaner cl) { in add()
42 private static synchronized boolean remove(sun.misc.Cleaner cl) { in remove()
47 public static sun.misc.Cleaner create(java.lang.Object ob, java.lang.Runnable thunk) { in create()
62 private static sun.misc.Cleaner first;
64 private sun.misc.Cleaner next;
66 private sun.misc.Cleaner prev;
/libcore/ojluni/src/main/java/jdk/internal/ref/
DCleaner.java59 public class Cleaner class
72 private static Cleaner first = null;
74 private Cleaner
78 private static synchronized Cleaner add(Cleaner cl) { in add()
87 private static synchronized boolean remove(Cleaner cl) { in remove()
114 private Cleaner(Object referent, Runnable thunk) { in Cleaner() method in Cleaner
130 public static Cleaner create(Object ob, Runnable thunk) { in create()
133 return add(new Cleaner(ob, thunk)); in create()
DCleanerImpl.java28 import java.lang.ref.Cleaner;
29 import java.lang.ref.Cleaner.Cleanable;
49 private static Function<Cleaner, CleanerImpl> cleanerImplAccess = null;
70 public static void setCleanerImplAccess(Function<Cleaner, CleanerImpl> access) { in setCleanerImplAccess() argument
83 static CleanerImpl getCleanerImpl(Cleaner cleaner) { in getCleanerImpl()
113 public void start(Cleaner cleaner, ThreadFactory threadFactory) { in start()
140 public void start(Cleaner cleaner) { in start()
197 public PhantomCleanableRef(Object obj, Cleaner cleaner, Runnable action) { in PhantomCleanableRef()
371 static final class CleanerCleanable extends PhantomCleanable<Cleaner> {
372 CleanerCleanable(Cleaner cleaner) {
DCleanerFactory.java28 import java.lang.ref.Cleaner;
54 private static final Cleaner commonCleaner = Cleaner.createSystemCleaner();
65 public static Cleaner cleaner() { in cleaner()
DPhantomCleanable.java28 import java.lang.ref.Cleaner;
44 implements Cleaner.Cleanable {
65 public PhantomCleanable(T referent, Cleaner cleaner) { in PhantomCleanable()
/libcore/ojluni/src/test/java/lang/ref/
DCleanerTest.java28 import java.lang.ref.Cleaner;
70 static final Cleaner COMMON = CleanerFactory.cleaner();
78 Supplier<Cleaner> supplier1 = () -> Cleaner.create(); in factories()
82 Supplier<Cleaner> supplier2 = () -> Cleaner.create(Executors.defaultThreadFactory()); in factories()
98 public void testCleanableActions(Supplier<Cleaner> supplier) { in testCleanableActions()
99 Cleaner cleaner = supplier.get(); in testCleanableActions()
119 public void testSystemCleanerActions(Supplier<Cleaner> supplier) { in testSystemCleanerActions()
120 Cleaner cleaner = supplier.get(); in testSystemCleanerActions()
142 public void testRefSubtypes(Supplier<Cleaner> supplier) { in testRefSubtypes()
143 Cleaner cleaner = supplier.get(); in testRefSubtypes()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DCleaner.java58 public class Cleaner class
71 static private Cleaner first = null;
73 private Cleaner
77 private static synchronized Cleaner add(Cleaner cl) { in add()
86 private static synchronized boolean remove(Cleaner cl) { in remove()
113 private Cleaner(Object referent, Runnable thunk) { in Cleaner() method in Cleaner
157 public static Cleaner create(Object ob, Runnable thunk) { in create()
160 return add(new Cleaner(ob, thunk)); in create()
/libcore/ojluni/src/main/java/sun/nio/fs/
DNativeBuffer.java29 import sun.misc.Cleaner;
40 private final Cleaner cleaner;
59 this.cleaner = Cleaner.create(this, new Deallocator(address)); in NativeBuffer()
80 Cleaner cleaner() { in cleaner()
/libcore/luni/src/main/java/libcore/util/
DNativeAllocationRegistry.java24 import sun.misc.Cleaner;
271 Cleaner cleaner = Cleaner.create(referent, thunk); in registerNativeAllocation()
311 private final Cleaner cleaner;
313 public CleanerRunner(Cleaner cleaner) { in CleanerRunner()
/libcore/ojluni/annotations/mmodule/sun/misc/
DCleaner.annotated.java34 public class Cleaner extends java.lang.ref.PhantomReference<java.lang.Object> { class
37 Cleaner(java.lang.Object referent, java.lang.Runnable thunk) { super(null, null); throw new Runtime… in Cleaner() method in Cleaner
41 public static sun.misc.Cleaner create(java.lang.Object ob, java.lang.Runnable thunk) { throw new Ru… in create()
/libcore/ojluni/src/main/java/sun/nio/ch/
DDirectBuffer.java28 import sun.misc.Cleaner;
37 public Cleaner cleaner(); in cleaner()
DUtil.java34 import sun.misc.Cleaner;
296 Cleaner cleaner = ((DirectBuffer)buf).cleaner(); in free()
DIOVecWrapper.java104 Cleaner.create(wrapper, new Deallocator(wrapper.vecArray)); in get()
/libcore/luni/src/main/java/android/system/
DSystemCleaner.java19 import java.lang.ref.Cleaner;
49 @NonNull public static Cleaner cleaner() { in cleaner()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java26 import sun.misc.Cleaner;
121 Cleaner cleaner = Cleaner.create(object, new Runnable() { in testCleanersCleaned()
/libcore/ojluni/annotations/mmodule/sun/nio/ch/
DDirectBuffer.annotated.java38 public sun.misc.Cleaner cleaner(); in cleaner()
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/
DDirectBuffer.java39 public sun.misc.Cleaner cleaner(); in cleaner()
/libcore/libart/src/main/java/java/lang/
DDaemons.java25 import java.lang.ref.Cleaner;
356 } else if (ref instanceof Cleaner.Cleanable cleanableReference) { in processReference()
386 private void doClean(Cleaner.Cleanable cleanable) { in doClean()
630 if (object instanceof Cleaner.Cleanable) { in finalizerTimeoutException()
649 if (obj instanceof Cleaner.Cleanable) { in finalizingObjectAsString()
/libcore/ojluni/src/main/java/java/nio/
DDirect-X-Buffer.java.template36 import jdk.internal.ref.Cleaner;
99 private final Cleaner cleaner;
101 public Cleaner cleaner() { return cleaner; }
105 public Cleaner cleaner() { return null; }
137 cleaner = Cleaner.create(this, new Deallocator(base, size, cap));
188 cleaner = Cleaner.create(this, unmapper);
DDirectByteBuffer.java36 import sun.misc.Cleaner;
98 final Cleaner cleaner;
130 cleaner = Cleaner.create(memoryRef, unmapper); in DirectByteBuffer()
159 public final Cleaner cleaner() { in cleaner()
/libcore/ojluni/annotations/hiddenapi/java/nio/
DDirectByteBuffer.java83 public final sun.misc.Cleaner cleaner() { in cleaner()
438 final sun.misc.Cleaner cleaner;
/libcore/ojluni/annotations/hiddenapi/java/util/logging/
DLogManager.java330 private class Cleaner extends java.lang.Thread { class in LogManager
332 private Cleaner() { in Cleaner() method in LogManager.Cleaner
/libcore/ojluni/src/main/java/java/util/
DTimer.java30 import java.lang.ref.Cleaner.Cleanable;

12