Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 84783 invoked from network); 30 May 2007 06:06:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 May 2007 06:06:38 -0000 Received: (qmail 96042 invoked by uid 500); 30 May 2007 06:06:41 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 96020 invoked by uid 500); 30 May 2007 06:06:41 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 95992 invoked by uid 99); 30 May 2007 06:06:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2007 23:06:41 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2007 23:06:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60398714183 for ; Tue, 29 May 2007 23:06:16 -0700 (PDT) Message-ID: <28516944.1180505176391.JavaMail.jira@brutus> Date: Tue, 29 May 2007 23:06:16 -0700 (PDT) From: "Pavel Ozhdikhin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3349) [drlvm][jit][opt] FinalizerThread.startFinalization() does not run for finalizer threads. In-Reply-To: <33413026.1173446904351.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.