You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Fursov (JIRA)" <ji...@apache.org> on 2007/06/19 08:23:26 UTC
[jira] Assigned: (HARMONY-3349) [drlvm][jit][opt]
FinalizerThread.startFinalization() does not run for finalizer threads.
[ https://issues.apache.org/jira/browse/HARMONY-3349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mikhail Fursov reassigned HARMONY-3349:
---------------------------------------
Assignee: Mikhail Fursov
> [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
> Assignee: Mikhail Fursov
> Attachments: h3349.patch
>
>
> 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.