Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 98205 invoked from network); 17 Oct 2007 11:07:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2007 11:07:11 -0000 Received: (qmail 54404 invoked by uid 500); 17 Oct 2007 11:06:59 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 54308 invoked by uid 500); 17 Oct 2007 11:06:59 -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 54299 invoked by uid 99); 17 Oct 2007 11:06:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 04:06:59 -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, 17 Oct 2007 11:07:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B63C171403F for ; Wed, 17 Oct 2007 04:06:50 -0700 (PDT) Message-ID: <9643835.1192619210720.JavaMail.jira@brutus> Date: Wed, 17 Oct 2007 04:06:50 -0700 (PDT) From: "Mikhail Fursov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4667) [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64. In-Reply-To: <4295253.1187781631261.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-4667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Fursov updated HARMONY-4667: ------------------------------------ Attachment: fix.diff The problem source is: 1) Old non-lazy code uses resolve_virtual method instead of resolve_special for invokespecial methods 2) Lazy-resolution mode is not enabled for EM64T platform today by default. So this is the bug can be reproduced only on this platform but not on IA32. To reproduce this bug on IA32 platform you need to turn lazy resolution off: -XX:jit.arg.lazyResolution=off The patch fixes the problem in our old, non-lazy mode. However I think we need to switch to lazy-resolution mode on EM64T platform as soon as possible. > [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64. > ---------------------------------------------------------------- > > Key: HARMONY-4667 > URL: https://issues.apache.org/jira/browse/HARMONY-4667 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Pavel Afremov > Assignee: Mikhail Fursov > Attachments: fix.diff, test.java, test_2a.java, test_2b.java > > > On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK. > Looks Like bug is in the Jet. > To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory. > Compile test_2a.java, then test.java and after it test_2b.java, like in example: > $ javac test_2a.java > $ javac test.java > $ javac test_2b.java > Outputs are following: > 1. RI: > $ java test > PASSED Exception was thrown: java.lang.NoSuchMethodError: > 2. DRLVM default > $ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test > FAILED No exception was thrown > 3. DRLVM interpreter > $ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test > PASSED Exception was thrown: java.lang.NoSuchMethodError: > 4. DRLVM jet > $ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test > FAILED No exception was thrown > 5. DRLVM opt > $ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test > PASSED Exception was thrown: java.lang.NoSuchMethodError: -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.