You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2006/12/29 01:38:09 UTC
svn commit: r490881 -
/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp
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);