diff src/cpu/x86/vm/c1_Runtime1_x86.cpp @ 5665:17639f600cda

made graal_verify_oop stub create a frame to improve crash log when it fails
author Doug Simon <doug.simon@oracle.com>
date Thu, 21 Jun 2012 10:52:23 +0200
parents 7d25723b7699
children 957c266d8bc5
line wrap: on
line diff
--- a/src/cpu/x86/vm/c1_Runtime1_x86.cpp	Wed Jun 20 21:38:44 2012 +0200
+++ b/src/cpu/x86/vm/c1_Runtime1_x86.cpp	Thu Jun 21 10:52:23 2012 +0200
@@ -1956,7 +1956,10 @@
     }
 
     case graal_verify_oop_id: {
+      // We use enter & leave so that a better stack trace is produced in the hs_err file
+      __ enter();
       __ verify_oop(r13, "graal verify oop");
+      __ leave();
       __ ret(0);
       break;
     }