/libcore/ojluni/src/main/java/java/lang/ref/ |
D | Cleaner.java | 130 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 …]
|
D | ReferenceQueue.java | 93 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/ |
D | Cleaner.java | 31 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/ |
D | Cleaner.java | 59 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()
|
D | CleanerImpl.java | 28 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) {
|
D | CleanerFactory.java | 28 import java.lang.ref.Cleaner; 54 private static final Cleaner commonCleaner = Cleaner.createSystemCleaner(); 65 public static Cleaner cleaner() { in cleaner()
|
D | PhantomCleanable.java | 28 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/ |
D | CleanerTest.java | 28 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/ |
D | Cleaner.java | 58 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/ |
D | NativeBuffer.java | 29 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/ |
D | NativeAllocationRegistry.java | 24 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/ |
D | Cleaner.annotated.java | 34 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/ |
D | DirectBuffer.java | 28 import sun.misc.Cleaner; 37 public Cleaner cleaner(); in cleaner()
|
D | Util.java | 34 import sun.misc.Cleaner; 296 Cleaner cleaner = ((DirectBuffer)buf).cleaner(); in free()
|
D | IOVecWrapper.java | 104 Cleaner.create(wrapper, new Deallocator(wrapper.vecArray)); in get()
|
/libcore/luni/src/main/java/android/system/ |
D | SystemCleaner.java | 19 import java.lang.ref.Cleaner; 49 @NonNull public static Cleaner cleaner() { in cleaner()
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | ReferenceQueueTest.java | 26 import sun.misc.Cleaner; 121 Cleaner cleaner = Cleaner.create(object, new Runnable() { in testCleanersCleaned()
|
/libcore/ojluni/annotations/mmodule/sun/nio/ch/ |
D | DirectBuffer.annotated.java | 38 public sun.misc.Cleaner cleaner(); in cleaner()
|
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/ |
D | DirectBuffer.java | 39 public sun.misc.Cleaner cleaner(); in cleaner()
|
/libcore/libart/src/main/java/java/lang/ |
D | Daemons.java | 25 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/ |
D | Direct-X-Buffer.java.template | 36 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);
|
D | DirectByteBuffer.java | 36 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/ |
D | DirectByteBuffer.java | 83 public final sun.misc.Cleaner cleaner() { in cleaner() 438 final sun.misc.Cleaner cleaner;
|
/libcore/ojluni/annotations/hiddenapi/java/util/logging/ |
D | LogManager.java | 330 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/ |
D | Timer.java | 30 import java.lang.ref.Cleaner.Cleanable;
|