jdk/test/java/lang/System/finalization/FinThreads.java
changeset 32649 2ee9017c7597
parent 5506 202f599c92aa
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
    42         boolean catchFinalizer = false;
    42         boolean catchFinalizer = false;
    43 
    43 
    44         /* Instances are only created in an auxiliary thread, in order to
    44         /* Instances are only created in an auxiliary thread, in order to
    45            guard against stray references from the current thread's stack
    45            guard against stray references from the current thread's stack
    46          */
    46          */
    47         static public void create(final boolean catchFinalizer)
    47         public static void create(final boolean catchFinalizer)
    48             throws InterruptedException
    48             throws InterruptedException
    49         {
    49         {
    50             Thread t = new Thread(new Runnable() {
    50             Thread t = new Thread(new Runnable() {
    51                 public void run() {
    51                 public void run() {
    52                     new Foo(catchFinalizer);
    52                     new Foo(catchFinalizer);