1.1 --- a/src/share/vm/classfile/classFileParser.cpp Tue Jun 23 22:14:58 2015 -0400 1.2 +++ b/src/share/vm/classfile/classFileParser.cpp Thu Jun 11 14:19:40 2015 +0300 1.3 @@ -1783,6 +1783,10 @@ 1.4 if (_location != _in_method) break; // only allow for methods 1.5 if (!privileged) break; // only allow in privileged code 1.6 return _method_DontInline; 1.7 + case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_InjectedProfile_signature): 1.8 + if (_location != _in_method) break; // only allow for methods 1.9 + if (!privileged) break; // only allow in privileged code 1.10 + return _method_InjectedProfile; 1.11 case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_LambdaForm_Compiled_signature): 1.12 if (_location != _in_method) break; // only allow for methods 1.13 if (!privileged) break; // only allow in privileged code 1.14 @@ -1824,6 +1828,8 @@ 1.15 m->set_force_inline(true); 1.16 if (has_annotation(_method_DontInline)) 1.17 m->set_dont_inline(true); 1.18 + if (has_annotation(_method_InjectedProfile)) 1.19 + m->set_has_injected_profile(true); 1.20 if (has_annotation(_method_LambdaForm_Compiled) && m->intrinsic_id() == vmIntrinsics::_none) 1.21 m->set_intrinsic_id(vmIntrinsics::_compiledLambdaForm); 1.22 if (has_annotation(_method_LambdaForm_Hidden))