8087120: [GCC5] java.lang.StackOverflowError on Zero JVM initialization on non x86 platforms

Use __builtin_frame_address(0) rather than returning address of local variable.

Reviewed-by: dholmes
This commit is contained in:
Severin Gehwolf 2015-06-12 16:09:45 +01:00
parent 733c4e989f
commit 9ac0d9d341

View File

@ -59,8 +59,8 @@
extern sigjmp_buf* get_jmp_buf_for_continuation();
address os::current_stack_pointer() {
address dummy = (address) &dummy;
return dummy;
// return the address of the current function
return (address)__builtin_frame_address(0);
}
frame os::get_sender_for_C_frame(frame* fr) {