Home
last modified time | relevance | path

Searched refs:cleanup (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/test/java/lang/ref/
DCleanerTest.java420 private volatile Cleaner.Cleanable cleanup; field in CleanerTest.CleanableCase
433 CleanableCase(Reference<Object> ref, Cleaner.Cleanable cleanup, in CleanableCase() argument
436 this.cleanup = cleanup; in CleanableCase()
442 CleanableCase(Reference<Object> ref, Cleaner.Cleanable cleanup, in CleanableCase() argument
446 this.cleanup = cleanup; in CleanableCase()
463 return cleanup; in getCleanable()
469 cleanup.clean(); in doClean()
480 ((Reference)cleanup).clear(); in doClear()
485 cleanup = null; in clearCleanable()
/libcore/ojluni/src/main/java/java/io/
DExpiringCache.java81 cleanup(); in get()
92 cleanup(); in put()
119 private void cleanup() { in cleanup() method in ExpiringCache
/libcore/ojluni/src/test/java/lang/invoke/
DTryFinallyTest.java120 public static void testTryFinallyOmitTrailingArguments(MethodHandle cleanup) throws Throwable { in testTryFinallyOmitTrailingArguments() argument
121 MethodHandle tf = MethodHandles.tryFinally(TryFinally.MH_dummyTarget, cleanup); in testTryFinallyOmitTrailingArguments()
151 …public static void testTryFinallyNegative(MethodHandle target, MethodHandle cleanup, String expect… in testTryFinallyNegative() argument
154 MethodHandles.tryFinally(target, cleanup); in testTryFinallyNegative()
DMethodHandlesGeneralTest.java1667 …void testTryFinally(MethodHandle target, MethodHandle cleanup, String input, String msg, boolean m… in testTryFinally() argument
1670 MethodHandle tf = MethodHandles.tryFinally(target, cleanup); in testTryFinally()
/libcore/ojluni/src/main/java/java/util/
DTimer.java135 private final Cleanable cleanup; field in Timer
192 this.cleanup = CleanerFactory.cleaner().register(this, threadReaper); in Timer()
450 cleanup.clean(); in cancel()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java5608 public static MethodHandle tryFinally(MethodHandle target, MethodHandle cleanup) { in tryFinally() argument
5612 tryFinallyChecks(target, cleanup); in tryFinally()
5617 cleanup = dropArgumentsToMatch(cleanup, (rtype == void.class ? 1 : 2), targetParamTypes, 0); in tryFinally()
5621 cleanup = cleanup.asType(cleanup.type().changeParameterType(0, Throwable.class)); in tryFinally()
5626 return new Transformers.TryFinally(target.asFixedArity(), cleanup.asFixedArity()); in tryFinally()
5629 private static void tryFinallyChecks(MethodHandle target, MethodHandle cleanup) { in tryFinallyChecks() argument
5631 if (rtype != cleanup.type().returnType()) { in tryFinallyChecks()
5632 throw misMatchedTypes("target and return types", cleanup.type().returnType(), rtype); in tryFinallyChecks()
5634 MethodType cleanupType = cleanup.type(); in tryFinallyChecks()
5636 … throw misMatchedTypes("cleanup first argument and Throwable", cleanup.type(), Throwable.class); in tryFinallyChecks()
[all …]
DTransformers.java219 private final MethodHandle cleanup; field in Transformers.TryFinally
221 TryFinally(MethodHandle target, MethodHandle cleanup) { in TryFinally() argument
224 this.cleanup = cleanup; in TryFinally()
237 invokeExactFromTransform(cleanup, cleanupFrame); in transform()
238 if (cleanup.type().returnType() != void.class) { in transform()
247 final EmulatedStackFrame cleanupFrame = EmulatedStackFrame.create(cleanup.type()); in prepareCleanupFrame()
269 Class<?> [] cleanupTypes = cleanup.type().parameterArray(); in prepareCleanupFrame()
/libcore/luni/src/test/java/libcore/java/util/
DLegacyLocalesTest.java139 public void cleanup() throws Exception { in cleanup() method in LegacyLocalesTest
DFormatterTest.java78 public void cleanup() throws Exception { in cleanup() method in FormatterTest