Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 32706 invoked from network); 29 Dec 2006 03:19:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Dec 2006 03:19:21 -0000 Received: (qmail 45386 invoked by uid 500); 29 Dec 2006 03:15:52 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 42641 invoked by uid 500); 29 Dec 2006 03:15:36 -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 40295 invoked by uid 99); 29 Dec 2006 03:15:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Dec 2006 19:15:21 -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; Thu, 28 Dec 2006 16:39:17 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id A6D521A981C; Thu, 28 Dec 2006 16:38:09 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r490881 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp Date: Fri, 29 Dec 2006 00:38:09 -0000 To: commits@harmony.apache.org From: gshimansky@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061229003809.A6D521A981C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gshimansky Date: Thu Dec 28 16:38:08 2006 New Revision: 490881 URL: http://svn.apache.org/viewvc?view=rev&rev=490881 Log: Fially applied the patch for HARMONY-2528 [drlvm] VM crashes instead of throwing AbstractMethodError Tests passed on Ubuntu6 x86, WindowsXP x86 and SuSE9 x86_64. The attached test passed as well Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp?view=diff&rev=490881&r1=490880&r2=490881 ============================================================================== --- harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp (original) +++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp Thu Dec 28 16:38:08 2006 @@ -764,6 +764,11 @@ compile_protect_arguments(method, &gc); tmn_suspend_enable(); + if (method->is_abstract()) { + compile_raise_exception("java/lang/AbstractMethodError", "", method); + tmn_suspend_disable(); + return NULL; + } JIT_Result res = compile_do_compilation(method); if (res != JIT_SUCCESS) { INFO2("compile", "Cannot compile " << method);