src/os_cpu/solaris_x86/vm/solaris_x86_64.il

Print this page
rev 3149 : 7147740: add assertions to check stack alignment on VM entry from generated code (x64)
Summary: check stack alignment on VM entry on x64.
Reviewed-by:

@@ -28,10 +28,16 @@
   // Get the raw thread ID from %gs:0
       .inline _raw_thread_id,0
       movq     %fs:0, %rax 
       .end
 
+  // Get current sp
+      .inline _get_current_sp,0
+      .volatile
+      movq     %rsp, %rax 
+      .end
+
   // Get current fp
       .inline _get_current_fp,0
       .volatile
       movq     %rbp, %rax 
       .end