Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 11897 invoked from network); 25 Jan 2007 15:20:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2007 15:20:54 -0000 Received: (qmail 16463 invoked by uid 500); 25 Jan 2007 15:20:57 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 16433 invoked by uid 500); 25 Jan 2007 15:20:57 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 16424 invoked by uid 99); 25 Jan 2007 15:20:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jan 2007 07:20:57 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [143.182.124.21] (HELO mga03.intel.com) (143.182.124.21) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jan 2007 07:20:48 -0800 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by mga03.intel.com with ESMTP; 25 Jan 2007 07:20:28 -0800 Received: from fmsmsx333.amr.corp.intel.com ([132.233.42.2]) by azsmga001.ch.intel.com with ESMTP; 25 Jan 2007 07:20:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: i="4.13,239,1167638400"; d="scan'208"; a="172898063:sNHT20615392" Received: from mssmsx411.ccr.corp.intel.com ([10.125.2.10]) by fmsmsx333.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 25 Jan 2007 07:20:27 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: [drlvm] If method throws exception after monitorenter, JIT does not release the lock Date: Thu, 25 Jan 2007 18:20:23 +0300 Message-ID: <2A786EB15713B544AB79607529273B047FADE4@mssmsx411> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [drlvm] If method throws exception after monitorenter, JIT does not release the lock Thread-Index: AcdAlFUGLIzwjWjyQaKsjU/kpjauIg== From: "Shipilov, Alexander D" To: X-OriginalArrivalTime: 25 Jan 2007 15:20:27.0717 (UTC) FILETIME=[57E2D750:01C74094] X-Virus-Checked: Checked by ClamAV on apache.org Hello, folks, Could you, please clarify one issue. The problem has described in JIRA https://issues.apache.org/jira/browse/HARMONY-2504. Thread makes monitorenter, and throws exception (NPE) to the output. JASMIN code: .method public run()V .limit stack 3 .limit locals 3 getstatic Test/testField Ljava/lang/Object; monitorenter new java/lang/NullPointerException dup =20 invokespecial java/lang/NullPointerException/()V athrow getstatic Test/testField Ljava/lang/Object; monitorexit return .end method Then other thread tries to get a lock. Deadlock occurs on Harmony. Does this behavior is correct? Thanks, Alexander Shipilov