harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r490881 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp
Date Fri, 29 Dec 2006 00:38:09 GMT
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);



Mime
View raw message