src/os_cpu/solaris_x86/vm/solaris_x86_32.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:

@@ -35,10 +35,16 @@
   // Get the raw thread ID from %gs:0
       .inline _raw_thread_id,0
       movl     %gs:0, %eax 
       .end
 
+  // Get current sp
+      .inline _get_current_sp,0
+      .volatile
+      movl     %esp, %eax 
+      .end
+
   // Get current fp
       .inline _get_current_fp,0
       .volatile
       movl     %ebp, %eax 
       .end