# HG changeset patch # User fparain # Date 1460104793 -7200 # Node ID 1d902bc02bc2f55806e18157f808b64ae220afc0 # Parent 303d15f45adf86681892a224952075c52009b170# Parent e7aff5e5eff9da384e5bf6fcc1ff9e148a6ab490 Merge diff -r 303d15f45adf -r 1d902bc02bc2 hotspot/src/cpu/sparc/vm/templateInterpreterGenerator_sparc.cpp --- a/hotspot/src/cpu/sparc/vm/templateInterpreterGenerator_sparc.cpp Fri Apr 08 08:51:45 2016 +0200 +++ b/hotspot/src/cpu/sparc/vm/templateInterpreterGenerator_sparc.cpp Fri Apr 08 10:39:53 2016 +0200 @@ -616,7 +616,7 @@ // compute the beginning of the protected zone minus the requested frame size __ sub( Rscratch, Rscratch2, Rscratch ); - __ set( JavaThread::stack_red_zone_size() + JavaThread::stack_yellow_zone_size(), Rscratch2 ); + __ set(MAX2(JavaThread::stack_shadow_zone_size(), JavaThread::stack_guard_zone_size()), Rscratch2 ); __ add( Rscratch, Rscratch2, Rscratch ); // Add in the size of the frame (which is the same as subtracting it from the diff -r 303d15f45adf -r 1d902bc02bc2 hotspot/src/share/vm/interpreter/interpreterRuntime.cpp --- a/hotspot/src/share/vm/interpreter/interpreterRuntime.cpp Fri Apr 08 08:51:45 2016 +0200 +++ b/hotspot/src/share/vm/interpreter/interpreterRuntime.cpp Fri Apr 08 10:39:53 2016 +0200 @@ -313,18 +313,7 @@ THROW_HANDLE(exception); IRT_END -IRT_ENTRY(address, InterpreterRuntime::check_ReservedStackAccess_annotated_methods(JavaThread* thread)) - frame fr = thread->last_frame(); - assert(fr.is_java_frame(), "Must be a Java frame"); - frame activation = SharedRuntime::look_for_reserved_stack_annotated_method(thread, fr); - if (activation.sp() != NULL) { - thread->disable_stack_reserved_zone(); - thread->set_reserved_stack_activation((address)activation.unextended_sp()); - } - return (address)activation.sp(); -IRT_END - - IRT_ENTRY(void, InterpreterRuntime::throw_delayed_StackOverflowError(JavaThread* thread)) +IRT_ENTRY(void, InterpreterRuntime::throw_delayed_StackOverflowError(JavaThread* thread)) Handle exception = get_preinitialized_exception( SystemDictionary::StackOverflowError_klass(), CHECK); diff -r 303d15f45adf -r 1d902bc02bc2 hotspot/src/share/vm/interpreter/interpreterRuntime.hpp --- a/hotspot/src/share/vm/interpreter/interpreterRuntime.hpp Fri Apr 08 08:51:45 2016 +0200 +++ b/hotspot/src/share/vm/interpreter/interpreterRuntime.hpp Fri Apr 08 10:39:53 2016 +0200 @@ -91,8 +91,6 @@ // Quicken instance-of and check-cast bytecodes static void quicken_io_cc(JavaThread* thread); - static address check_ReservedStackAccess_annotated_methods(JavaThread* thread); - // Exceptions thrown by the interpreter static void throw_AbstractMethodError(JavaThread* thread); static void throw_IncompatibleClassChangeError(JavaThread* thread);