Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 87183 invoked from network); 9 Feb 2007 10:38:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2007 10:38:27 -0000 Received: (qmail 11597 invoked by uid 500); 9 Feb 2007 10:38:34 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 11582 invoked by uid 500); 9 Feb 2007 10:38:34 -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 11573 invoked by uid 99); 9 Feb 2007 10:38:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Feb 2007 02:38:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Fri, 09 Feb 2007 02:38:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A83F541095A for ; Fri, 9 Feb 2007 02:38:05 -0800 (PST) Message-ID: <1730150.1171017485686.JavaMail.jira@brutus> Date: Fri, 9 Feb 2007 02:38:05 -0800 (PST) From: "Alexey Varlamov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-3116) [drlvm][jit][jet] finally block is unreachable when try statement uses while(true) loop In-Reply-To: <20685896.1170424385874.JavaMail.jira@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-3116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Varlamov resolved HARMONY-3116. -------------------------------------- Resolution: Fixed Applied at 505245, thanks! > [drlvm][jit][jet] finally block is unreachable when try statement uses while(true) loop > --------------------------------------------------------------------------------------- > > Key: HARMONY-3116 > URL: https://issues.apache.org/jira/browse/HARMONY-3116 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: Windows and Linux > Reporter: Vera Petrashkova > Assigned To: Alexey Varlamov > Attachments: 0001-drlvm-jet-.jet-does-not-insert-GC-safepoints-into-some-endless-loops.txt > > > The following test demonstrates that finally block becomes unreachable on Jitrino/JET when while(true) loop is used in try statement. > VM hangs. > On Jitrino/OPT and interpreter this test finishes successfully > -------------------- > public class testFinally { > public static boolean started= false; > public static void main(String[] args) throws Exception { > Thread t = new Thread(new TT()); > t.start(); > while(!started){ > } > t.stop(); > System.err.println("Thread.stop()"); > } > static class TT implements Runnable { > public void run() { > started = true; > try{ > synchronized(this) { > while (true){ > } > } > } finally { > System.err.println("PASSED: thread was interrupted "); > } > } > } > } > --------------------- > VM reports "Thread.stop()" and gangs. > On Jitrino/OPT output is: > Thread.stop() > PASSED: thread was interrupted -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.