7147740: add assertions to check stack alignment on VM entry from generated code (x64)

Check stack alignment on VM entry on x64.

Reviewed-by: kvn, never
This commit is contained in:
Roland Westrelin 2012-02-27 09:17:44 +01:00
parent 9c6ab6372f
commit 4012f6cd34
17 changed files with 124 additions and 19 deletions

View file

@ -1013,15 +1013,6 @@ extern "C" void breakpoint() {
// use debugger to set breakpoint here
}
// Returns an estimate of the current stack pointer. Result must be guaranteed to
// point into the calling threads stack, and be no lower than the current stack
// pointer.
address os::current_stack_pointer() {
volatile int dummy;
address sp = (address)&dummy + 8; // %%%% need to confirm if this is right
return sp;
}
static thread_t main_thread;
// Thread start routine for all new Java threads