Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 16991 invoked from network); 18 Jun 2007 06:18:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jun 2007 06:18:47 -0000 Received: (qmail 91935 invoked by uid 500); 18 Jun 2007 06:18:50 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 91921 invoked by uid 500); 18 Jun 2007 06:18:50 -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 91908 invoked by uid 99); 18 Jun 2007 06:18:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jun 2007 23:18:50 -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; Sun, 17 Jun 2007 23:18:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4C7817141AA for ; Sun, 17 Jun 2007 23:18:26 -0700 (PDT) Message-ID: <8381010.1182147506310.JavaMail.jira@brutus> Date: Sun, 17 Jun 2007 23:18:26 -0700 (PDT) From: "Pavel Ozhdikhin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (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:all-tabpanel ] Pavel Ozhdikhin updated HARMONY-3349: ------------------------------------- Attachment: h3349.patch The patch with the fix and test unexclusion attached. Testing passed on Windows/IA32: 1. build.bat test 2. build.bat -Dtest.mode="opt,srv" smoke.test > [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 > 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.