changeset 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 cdeb79879757
children 48a2505efb54 494332f39ee8
files src/cpu/x86/vm/c1_Runtime1_x86.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;
     }