Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 13301 invoked from network); 8 Aug 2007 14:11:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2007 14:11:20 -0000 Received: (qmail 62182 invoked by uid 500); 8 Aug 2007 14:11:19 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 62163 invoked by uid 500); 8 Aug 2007 14:11:19 -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 62154 invoked by uid 99); 8 Aug 2007 14:11:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 07:11:19 -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; Wed, 08 Aug 2007 14:11:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1D815714159 for ; Wed, 8 Aug 2007 07:10:59 -0700 (PDT) Message-ID: <7068196.1186582259111.JavaMail.jira@brutus> Date: Wed, 8 Aug 2007 07:10:59 -0700 (PDT) From: "Mikhail Fursov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4292) [drlvm][jit][opt] Jitrino.OPT crashes instead of throwing StackOverfowError when synchronized method is invoked recursively In-Reply-To: <4328936.1182956366246.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-4292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Fursov updated HARMONY-4292: ------------------------------------ Attachment: soe1.patch soe1.fix: a contract with VM: do not call monexit if SOE happens in synchronized method > [drlvm][jit][opt] Jitrino.OPT crashes instead of throwing StackOverfowError when synchronized method is invoked recursively > ---------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-4292 > URL: https://issues.apache.org/jira/browse/HARMONY-4292 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: Windows > Reporter: Vera Petrashkova > Assignee: Mikhail Fursov > Attachments: soe1.patch > > > The following test demonstrates that Jitrino.OPT crashes instead of throwing StackOverflowError > when synchronized method is invoked recursively > --------------------------recTest.java------------------ > public class recTest { > public static void main(String[] args) { > new recTest().test(); > } > private static int count; > public void test() { > try { > func(); > System.err.println("TEST FAILED. SOE was not thrown"); > } catch (StackOverflowError e) { > if (count > 255) { > System.err.println("TEST PASSED, count=" + count); > } else { > System.err.println("TEST FAILED: too short stack (" > + count + ")"); > } > } > } > private synchronized void func() { > count++; > func(); > } > } > ---------------------------------------------- > Output on Jitrino.opt > =============== > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r550333, (Jun 25 2007), Windows/ia32/msvc 1310, release build > http://harmony.apache.org > Output on Jitrino.jet > =============== > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r550333, (Jun 25 2007), Windows/ia32/msvc 1310, release build > http://harmony.apache.org > TEST PASSED, count=4169 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.