< prev index next >

src/hotspot/share/classfile/classFileParser.cpp

Print this page
rev 52360 : 8212605: Pure-Java implementation of AccessController.doPrivileged

*** 1064,1074 **** _method_CallerSensitive, _method_ForceInline, _method_DontInline, _method_InjectedProfile, _method_LambdaForm_Compiled, ! _method_LambdaForm_Hidden, _method_HotSpotIntrinsicCandidate, _jdk_internal_vm_annotation_Contended, _field_Stable, _jdk_internal_vm_annotation_ReservedStackAccess, _annotation_LIMIT --- 1064,1074 ---- _method_CallerSensitive, _method_ForceInline, _method_DontInline, _method_InjectedProfile, _method_LambdaForm_Compiled, ! _method_Hidden, _method_HotSpotIntrinsicCandidate, _jdk_internal_vm_annotation_Contended, _field_Stable, _jdk_internal_vm_annotation_ReservedStackAccess, _annotation_LIMIT
*** 2119,2129 **** return _method_LambdaForm_Compiled; } case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_LambdaForm_Hidden_signature): { if (_location != _in_method) break; // only allow for methods if (!privileged) break; // only allow in privileged code ! return _method_LambdaForm_Hidden; } case vmSymbols::VM_SYMBOL_ENUM_NAME(jdk_internal_HotSpotIntrinsicCandidate_signature): { if (_location != _in_method) break; // only allow for methods if (!privileged) break; // only allow in privileged code return _method_HotSpotIntrinsicCandidate; --- 2119,2134 ---- return _method_LambdaForm_Compiled; } case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_LambdaForm_Hidden_signature): { if (_location != _in_method) break; // only allow for methods if (!privileged) break; // only allow in privileged code ! return _method_Hidden; ! } ! case vmSymbols::VM_SYMBOL_ENUM_NAME(java_security_AccessController_Hidden_signature): { ! if (_location != _in_method) break; // only allow for methods ! if (!privileged) break; // only allow in privileged code ! return _method_Hidden; } case vmSymbols::VM_SYMBOL_ENUM_NAME(jdk_internal_HotSpotIntrinsicCandidate_signature): { if (_location != _in_method) break; // only allow for methods if (!privileged) break; // only allow in privileged code return _method_HotSpotIntrinsicCandidate;
*** 2176,2186 **** m->set_dont_inline(true); if (has_annotation(_method_InjectedProfile)) m->set_has_injected_profile(true); if (has_annotation(_method_LambdaForm_Compiled) && m->intrinsic_id() == vmIntrinsics::_none) m->set_intrinsic_id(vmIntrinsics::_compiledLambdaForm); ! if (has_annotation(_method_LambdaForm_Hidden)) m->set_hidden(true); if (has_annotation(_method_HotSpotIntrinsicCandidate) && !m->is_synthetic()) m->set_intrinsic_candidate(true); if (has_annotation(_jdk_internal_vm_annotation_ReservedStackAccess)) m->set_has_reserved_stack_access(true); --- 2181,2191 ---- m->set_dont_inline(true); if (has_annotation(_method_InjectedProfile)) m->set_has_injected_profile(true); if (has_annotation(_method_LambdaForm_Compiled) && m->intrinsic_id() == vmIntrinsics::_none) m->set_intrinsic_id(vmIntrinsics::_compiledLambdaForm); ! if (has_annotation(_method_Hidden)) m->set_hidden(true); if (has_annotation(_method_HotSpotIntrinsicCandidate) && !m->is_synthetic()) m->set_intrinsic_candidate(true); if (has_annotation(_jdk_internal_vm_annotation_ReservedStackAccess)) m->set_has_reserved_stack_access(true);
< prev index next >