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] Commented: (HARMONY-3349) [drlvm][gc][opt] FinalizerThread.startFinalization() does not run for finalizer threads.
Date Tue, 13 Mar 2007 11:05:09 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480349
] 

Elena Semukhina commented on HARMONY-3349:
------------------------------------------

It seems that the smoke test gc.RunFinalizersOnExitTest fails in OPT because of this bug.


> [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