harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elena Semukhina (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3349) [drlvm][gc][opt] FinalizerThread.startFinalization() does not run for finalizer threads.
Date Fri, 09 Mar 2007 13:28:24 GMT
[drlvm][gc][opt] FinalizerThread.startFinalization() does not run for finalizer threads.
----------------------------------------------------------------------------------------

                 Key: HARMONY-3349
                 URL: https://issues.apache.org/jira/browse/HARMONY-3349
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Elena Semukhina


Here is a test which fails in OPT mode while passes in JET.

It is the simplified gc.Finalizer test:

public class Finalizer {

    static volatile boolean passed = false;

    public static void main (String[] args) {
        new Finalizer();
        int n = 10;
        while (!passed && --n >= 0) {
            System.gc();
            try { Thread.sleep(1000); } catch (InterruptedException e) {}
        }
        if (passed) {
            System.out.println("PASSED");
        } else {
            System.out.println("FAILED");
        }
    }

    public void finalize () {
        System.out.println("finalizer is being run");
        passed = true;
    }
}

It seems that FinalizerThread objects don't run their startFinalization() methods.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message