Home
last modified time | relevance | path

Searched refs:finalizerWait (Results 1 – 2 of 2) sorted by relevance

/art/test/1336-short-finalizer-timeout/src/
DMain.java30 CountDownLatch finalizerWait = new CountDownLatch(1); in main() local
35 createBadFinalizer(finalizerWait); in main()
42 if (!finalizerWait.await(1, MINUTES)) { in main()
57 private static void createBadFinalizer(CountDownLatch finalizerWait) { in createBadFinalizer() argument
58 BadFinalizer bf = new BadFinalizer(finalizerWait); in createBadFinalizer()
76 private CountDownLatch finalizerWait; field in Main.BadFinalizer
79 public BadFinalizer(CountDownLatch finalizerWait) { in BadFinalizer() argument
80 this.finalizerWait = finalizerWait; in BadFinalizer()
85 finalizerWait.countDown(); in finalize()
/art/test/030-bad-finalizer/src/
DMain.java29 CountDownLatch finalizerWait = new CountDownLatch(1); in main() local
32 createBadFinalizer(finalizerWait); in main()
41 finalizerWait.await(1, MINUTES); in main()
67 private static void createBadFinalizer(CountDownLatch finalizerWait) { in createBadFinalizer() argument
68 BadFinalizer bf = new BadFinalizer(finalizerWait); in createBadFinalizer()
85 private CountDownLatch finalizerWait; field in Main.BadFinalizer
88 public BadFinalizer(CountDownLatch finalizerWait) { in BadFinalizer() argument
89 this.finalizerWait = finalizerWait; in BadFinalizer()
93 finalizerWait.countDown(); in finalize()