diff src/cpu/x86/vm/sharedRuntime_x86_64.cpp @ 10479:40b8c383bc31

Throw InvalidInstalledCodeException directly in the stubs.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 23 Jun 2013 15:49:01 +0200
parents 3489047ffea2
children 0b1b5356b566
line wrap: on
line diff
--- a/src/cpu/x86/vm/sharedRuntime_x86_64.cpp	Sun Jun 23 15:27:39 2013 +0200
+++ b/src/cpu/x86/vm/sharedRuntime_x86_64.cpp	Sun Jun 23 15:49:01 2013 +0200
@@ -1691,8 +1691,8 @@
     __ jmp(Address(j_rarg3, nmethod::verified_entry_point_offset()));
 
     __ bind(invalid_nmethod);
-    __ xorq(rax, rax);
-    __ ret(0);
+
+    __ jump(RuntimeAddress(StubRoutines::throw_InvalidInstalledCodeException_entry()));
     return;
   }
 #endif