Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 70716 invoked from network); 4 Nov 2006 15:01:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Nov 2006 15:01:41 -0000 Received: (qmail 60031 invoked by uid 500); 4 Nov 2006 15:01:51 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 59927 invoked by uid 500); 4 Nov 2006 15:01:51 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 59916 invoked by uid 99); 4 Nov 2006 15:01:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Nov 2006 07:01:51 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Nov 2006 07:01:21 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 33FDD1A984D; Sat, 4 Nov 2006 07:00:52 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r471210 - /incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp Date: Sat, 04 Nov 2006 15:00:52 -0000 To: harmony-commits@incubator.apache.org From: geirm@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061104150052.33FDD1A984D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: geirm Date: Sat Nov 4 07:00:51 2006 New Revision: 471210 URL: http://svn.apache.org/viewvc?view=rev&rev=471210 Log: HARMONY-1844 [drlvm][jit] -Xem opt: crash when use getstatic instruction for method getstatic java.util.zip.ZipConstants.CENSIG Fixed test case. Ubuntu 6 - smoke, c-unit, ~kernel Modified: incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp Modified: incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp?view=diff&rev=471210&r1=471209&r2=471210 ============================================================================== --- incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp (original) +++ incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp Sat Nov 4 07:00:51 2006 @@ -1076,7 +1076,9 @@ } // generate helper call for throwing respective exception linkingException(constPoolIndex, OPCODE_GETSTATIC); - pushOpnd(irBuilder.genLdNull()); + Type* type = compilationInterface.getFieldType(&methodToCompile, constPoolIndex); + ConstInst::ConstValue nullValue; + pushOpnd(irBuilder.genLdConstant(type,nullValue)); } void