Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 71167 invoked from network); 23 Aug 2007 09:29:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Aug 2007 09:29:00 -0000 Received: (qmail 97032 invoked by uid 500); 23 Aug 2007 09:28:57 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 97004 invoked by uid 500); 23 Aug 2007 09:28:57 -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 96992 invoked by uid 99); 23 Aug 2007 09:28:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 02:28:57 -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; Thu, 23 Aug 2007 09:29:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6E4F8714204 for ; Thu, 23 Aug 2007 02:28:30 -0700 (PDT) Message-ID: <6121403.1187861310432.JavaMail.jira@brutus> Date: Thu, 23 Aug 2007 02:28:30 -0700 (PDT) From: "Pavel Afremov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-4675) [drlvm][jit][jet][x86-64] VM throws ArithmeticException during division on value which has zero in low 32 bits. In-Reply-To: <25736566.1187859751783.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-4675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522078 ] Pavel Afremov commented on HARMONY-4675: ---------------------------------------- Looks like JET compare divider with 32 bit zero. > [drlvm][jit][jet][x86-64] VM throws ArithmeticException during division on value which has zero in low 32 bits. > --------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-4675 > URL: https://issues.apache.org/jira/browse/HARMONY-4675 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Pavel Afremov > Attachments: test.java > > > Following test fails on x86-64 platform. > public class test { > public static void main(String[] args) { > test lock = new test(); > lock.func(); > } > private void func() { > try { > long test_long = 0x000000ff00000000L; > long res = test_long / test_long; > System.out.println("PASSED No exception was thrown"); > } catch (Throwable e) { > System.out.println("FAILED Exception was thrown: " + e); > } > } > } > Looks like bug in JET. On Interpreter and Opt test works OK. On the JET test throw arithmetic exception with non zero divider. > Output is following: > 1. RI > $ java test > PASSED No exception was thrown > 2. DRLVM default > $ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test > FAILED Exception was thrown: java.lang.ArithmeticException > 3. DRLVM interpreter > $ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test > PASSED No exception was thrown > 4.DRLVM jet > $ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test > FAILED Exception was thrown: java.lang.ArithmeticException > 5 DRLVM opt > $ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test > PASSED No exception was thrown -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.