src/hotspot/share/classfile/classFileParser.cpp
changeset 52431 b0af758a092c
parent 51997 9ce37fa2e179
child 52692 bffef37beacb
equal deleted inserted replaced
52430:4ee78b5583f9 52431:b0af758a092c
  1064     _method_CallerSensitive,
  1064     _method_CallerSensitive,
  1065     _method_ForceInline,
  1065     _method_ForceInline,
  1066     _method_DontInline,
  1066     _method_DontInline,
  1067     _method_InjectedProfile,
  1067     _method_InjectedProfile,
  1068     _method_LambdaForm_Compiled,
  1068     _method_LambdaForm_Compiled,
  1069     _method_LambdaForm_Hidden,
  1069     _method_Hidden,
  1070     _method_HotSpotIntrinsicCandidate,
  1070     _method_HotSpotIntrinsicCandidate,
  1071     _jdk_internal_vm_annotation_Contended,
  1071     _jdk_internal_vm_annotation_Contended,
  1072     _field_Stable,
  1072     _field_Stable,
  1073     _jdk_internal_vm_annotation_ReservedStackAccess,
  1073     _jdk_internal_vm_annotation_ReservedStackAccess,
  1074     _annotation_LIMIT
  1074     _annotation_LIMIT
  2119       return _method_LambdaForm_Compiled;
  2119       return _method_LambdaForm_Compiled;
  2120     }
  2120     }
  2121     case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_LambdaForm_Hidden_signature): {
  2121     case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_LambdaForm_Hidden_signature): {
  2122       if (_location != _in_method)  break;  // only allow for methods
  2122       if (_location != _in_method)  break;  // only allow for methods
  2123       if (!privileged)              break;  // only allow in privileged code
  2123       if (!privileged)              break;  // only allow in privileged code
  2124       return _method_LambdaForm_Hidden;
  2124       return _method_Hidden;
       
  2125     }
       
  2126     case vmSymbols::VM_SYMBOL_ENUM_NAME(java_security_AccessController_Hidden_signature): {
       
  2127       if (_location != _in_method)  break;  // only allow for methods
       
  2128       if (!privileged)              break;  // only allow in privileged code
       
  2129       return _method_Hidden;
  2125     }
  2130     }
  2126     case vmSymbols::VM_SYMBOL_ENUM_NAME(jdk_internal_HotSpotIntrinsicCandidate_signature): {
  2131     case vmSymbols::VM_SYMBOL_ENUM_NAME(jdk_internal_HotSpotIntrinsicCandidate_signature): {
  2127       if (_location != _in_method)  break;  // only allow for methods
  2132       if (_location != _in_method)  break;  // only allow for methods
  2128       if (!privileged)              break;  // only allow in privileged code
  2133       if (!privileged)              break;  // only allow in privileged code
  2129       return _method_HotSpotIntrinsicCandidate;
  2134       return _method_HotSpotIntrinsicCandidate;
  2176     m->set_dont_inline(true);
  2181     m->set_dont_inline(true);
  2177   if (has_annotation(_method_InjectedProfile))
  2182   if (has_annotation(_method_InjectedProfile))
  2178     m->set_has_injected_profile(true);
  2183     m->set_has_injected_profile(true);
  2179   if (has_annotation(_method_LambdaForm_Compiled) && m->intrinsic_id() == vmIntrinsics::_none)
  2184   if (has_annotation(_method_LambdaForm_Compiled) && m->intrinsic_id() == vmIntrinsics::_none)
  2180     m->set_intrinsic_id(vmIntrinsics::_compiledLambdaForm);
  2185     m->set_intrinsic_id(vmIntrinsics::_compiledLambdaForm);
  2181   if (has_annotation(_method_LambdaForm_Hidden))
  2186   if (has_annotation(_method_Hidden))
  2182     m->set_hidden(true);
  2187     m->set_hidden(true);
  2183   if (has_annotation(_method_HotSpotIntrinsicCandidate) && !m->is_synthetic())
  2188   if (has_annotation(_method_HotSpotIntrinsicCandidate) && !m->is_synthetic())
  2184     m->set_intrinsic_candidate(true);
  2189     m->set_intrinsic_candidate(true);
  2185   if (has_annotation(_jdk_internal_vm_annotation_ReservedStackAccess))
  2190   if (has_annotation(_jdk_internal_vm_annotation_ReservedStackAccess))
  2186     m->set_has_reserved_stack_access(true);
  2191     m->set_has_reserved_stack_access(true);