< prev index next >

src/hotspot/share/prims/methodHandles.cpp

Print this page
rev 56251 : imported patch 8226705-v1

*** 40,49 **** --- 40,50 ---- #include "oops/objArrayOop.inline.hpp" #include "oops/oop.inline.hpp" #include "oops/typeArrayOop.inline.hpp" #include "prims/methodHandles.hpp" #include "runtime/compilationPolicy.hpp" + #include "runtime/deoptimization.hpp" #include "runtime/fieldDescriptor.inline.hpp" #include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/javaCalls.hpp" #include "runtime/jniHandles.inline.hpp"
*** 1107,1118 **** DependencyContext deps = java_lang_invoke_MethodHandleNatives_CallSiteContext::vmdependencies(context); marked = deps.mark_dependent_nmethods(changes); } if (marked > 0) { // At least one nmethod has been marked for deoptimization. ! VM_Deoptimize op; ! VMThread::execute(&op); } } void MethodHandles::trace_method_handle_interpreter_entry(MacroAssembler* _masm, vmIntrinsics::ID iid) { if (TraceMethodHandles) { --- 1108,1118 ---- DependencyContext deps = java_lang_invoke_MethodHandleNatives_CallSiteContext::vmdependencies(context); marked = deps.mark_dependent_nmethods(changes); } if (marked > 0) { // At least one nmethod has been marked for deoptimization. ! Deoptimization::deoptimize_all_marked(); } } void MethodHandles::trace_method_handle_interpreter_entry(MacroAssembler* _masm, vmIntrinsics::ID iid) { if (TraceMethodHandles) {
*** 1504,1515 **** DependencyContext deps = java_lang_invoke_MethodHandleNatives_CallSiteContext::vmdependencies(context()); marked = deps.remove_all_dependents(); } if (marked > 0) { // At least one nmethod has been marked for deoptimization ! VM_Deoptimize op; ! VMThread::execute(&op); } } } JVM_END --- 1504,1514 ---- DependencyContext deps = java_lang_invoke_MethodHandleNatives_CallSiteContext::vmdependencies(context()); marked = deps.remove_all_dependents(); } if (marked > 0) { // At least one nmethod has been marked for deoptimization ! Deoptimization::deoptimize_all_marked(); } } } JVM_END
< prev index next >