Home
last modified time | relevance | path

Searched refs:thunk (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/sun/misc/
DCleaner.java111 private final Runnable thunk; field in Cleaner
113 private Cleaner(Object referent, Runnable thunk) { in Cleaner() argument
115 this.thunk = thunk; in Cleaner()
129 public static Cleaner create(Object ob, Runnable thunk) { in create() argument
130 if (thunk == null) in create()
132 return add(new Cleaner(ob, thunk)); in create()
142 thunk.run(); in clean()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DCleaner.java33 private Cleaner(java.lang.Object referent, java.lang.Runnable thunk) { in Cleaner() argument
47 public static sun.misc.Cleaner create(java.lang.Object ob, java.lang.Runnable thunk) { in create() argument
68 private final java.lang.Runnable thunk; field in Cleaner
71 thunk = null;
/libcore/luni/src/main/java/libcore/util/
DNativeAllocationRegistry.java264 CleanerThunk thunk; in registerNativeAllocation() local
267 thunk = new CleanerThunk(); in registerNativeAllocation()
268 Cleaner cleaner = Cleaner.create(referent, thunk); in registerNativeAllocation()
276 thunk.setNativePtr(nativePtr); in registerNativeAllocation()
/libcore/ojluni/annotations/mmodule/sun/misc/
DCleaner.annotated.java38 Cleaner(java.lang.Object referent, java.lang.Runnable thunk) { super(null, null); throw new Runtime… in Cleaner() argument
43 public static sun.misc.Cleaner create(java.lang.Object ob, java.lang.Runnable thunk) { throw new Ru… in create() argument
/libcore/ojluni/src/main/java/sun/nio/fs/
DPollingWatchService.java288 Runnable thunk = new Runnable() { public void run() { poll(); }};
290 .scheduleAtFixedRate(thunk, period, period, TimeUnit.SECONDS);