Mercurial > hg > truffle
comparison src/os/solaris/vm/os_solaris.cpp @ 5903:da4be62fb889
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: kvn, never
author | roland |
---|---|
date | Mon, 27 Feb 2012 09:17:44 +0100 |
parents | 869be5c8882e |
children | 7432b9db36ff |
comparison
equal
deleted
inserted
replaced
5902:c7987cbaf2ca | 5903:da4be62fb889 |
---|---|
1009 return false; | 1009 return false; |
1010 } | 1010 } |
1011 | 1011 |
1012 extern "C" void breakpoint() { | 1012 extern "C" void breakpoint() { |
1013 // use debugger to set breakpoint here | 1013 // use debugger to set breakpoint here |
1014 } | |
1015 | |
1016 // Returns an estimate of the current stack pointer. Result must be guaranteed to | |
1017 // point into the calling threads stack, and be no lower than the current stack | |
1018 // pointer. | |
1019 address os::current_stack_pointer() { | |
1020 volatile int dummy; | |
1021 address sp = (address)&dummy + 8; // %%%% need to confirm if this is right | |
1022 return sp; | |
1023 } | 1014 } |
1024 | 1015 |
1025 static thread_t main_thread; | 1016 static thread_t main_thread; |
1026 | 1017 |
1027 // Thread start routine for all new Java threads | 1018 // Thread start routine for all new Java threads |