OpenJDK / amber / amber
changeset 41315:7116d687d019
Merge
author | fparain |
---|---|
date | Mon, 26 Sep 2016 20:24:34 +0000 |
parents | 6593aed45a67 f815c3be1f2e |
children | 216f4f645fd8 |
files | |
diffstat | 4 files changed, 16 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/hotspot/src/os/windows/vm/os_windows.cpp Mon Sep 26 14:38:35 2016 -0400 +++ b/hotspot/src/os/windows/vm/os_windows.cpp Mon Sep 26 20:24:34 2016 +0000 @@ -2366,7 +2366,9 @@ if (Interpreter::contains(pc)) { *fr = os::fetch_frame_from_context((void*)exceptionInfo->ContextRecord); if (!fr->is_first_java_frame()) { - assert(fr->safe_for_sender(thread), "Safety check"); + // get_frame_at_stack_banging_point() is only called when we + // have well defined stacks so java_sender() calls do not need + // to assert safe_for_sender() first. *fr = fr->java_sender(); } } else { @@ -2383,7 +2385,7 @@ // has been pushed on the stack *fr = frame(fr->sp() + 1, fr->fp(), (address)*(fr->sp())); if (!fr->is_java_frame()) { - assert(fr->safe_for_sender(thread), "Safety check"); + // See java_sender() comment above. *fr = fr->java_sender(); } }
--- a/hotspot/src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp Mon Sep 26 14:38:35 2016 -0400 +++ b/hotspot/src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp Mon Sep 26 20:24:34 2016 +0000 @@ -378,7 +378,9 @@ // method returns the Java sender of the current frame. *fr = os::fetch_frame_from_ucontext(thread, uc); if (!fr->is_first_java_frame()) { - assert(fr->safe_for_sender(thread), "Safety check"); + // get_frame_at_stack_banging_point() is only called when we + // have well defined stacks so java_sender() calls do not need + // to assert safe_for_sender() first. *fr = fr->java_sender(); } } else { @@ -395,7 +397,7 @@ // has been pushed on the stack *fr = frame(fr->sp() + 1, fr->fp(), (address)*(fr->sp())); if (!fr->is_java_frame()) { - assert(fr->safe_for_sender(thread), "Safety check"); + // See java_sender() comment above. *fr = fr->java_sender(); } }
--- a/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp Mon Sep 26 14:38:35 2016 -0400 +++ b/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp Mon Sep 26 20:24:34 2016 +0000 @@ -191,7 +191,9 @@ // method returns the Java sender of the current frame. *fr = os::fetch_frame_from_ucontext(thread, uc); if (!fr->is_first_java_frame()) { - assert(fr->safe_for_sender(thread), "Safety check"); + // get_frame_at_stack_banging_point() is only called when we + // have well defined stacks so java_sender() calls do not need + // to assert safe_for_sender() first. *fr = fr->java_sender(); } } else { @@ -209,8 +211,8 @@ intptr_t* sp = os::Linux::ucontext_get_sp(uc); *fr = frame(sp + 1, fp, (address)*sp); if (!fr->is_java_frame()) { - assert(fr->safe_for_sender(thread), "Safety check"); assert(!fr->is_first_frame(), "Safety check"); + // See java_sender() comment above. *fr = fr->java_sender(); } }
--- a/hotspot/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp Mon Sep 26 14:38:35 2016 -0400 +++ b/hotspot/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp Mon Sep 26 20:24:34 2016 +0000 @@ -255,7 +255,9 @@ // method returns the Java sender of the current frame. *fr = os::fetch_frame_from_ucontext(thread, uc); if (!fr->is_first_java_frame()) { - assert(fr->safe_for_sender(thread), "Safety check"); + // get_frame_at_stack_banging_point() is only called when we + // have well defined stacks so java_sender() calls do not need + // to assert safe_for_sender() first. *fr = fr->java_sender(); } } else { @@ -273,7 +275,7 @@ intptr_t* sp = os::Solaris::ucontext_get_sp(uc); *fr = frame(sp + 1, fp, (address)*sp); if (!fr->is_java_frame()) { - assert(fr->safe_for_sender(thread), "Safety check"); + // See java_sender() comment above. *fr = fr->java_sender(); } }