harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Ozhdikhin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3349) [drlvm][jit][opt] FinalizerThread.startFinalization() does not run for finalizer threads.
Date Wed, 30 May 2007 06:06:16 GMT

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

Pavel Ozhdikhin commented on HARMONY-3349:
------------------------------------------

This might be caused by a bug in the scalar replacement optimization which erroneously removed
unused objects with finalizers. The problem was fixed in HARMONY-3984, need to check if reproducible
with that patch.


> [drlvm][jit][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