diff src/share/vm/classfile/classFileParser.cpp @ 23086:bf41eee321e5

8074551: GWT can be marked non-compilable due to deopt count pollution Reviewed-by: kvn
author vlivanov
date Thu, 11 Jun 2015 14:19:40 +0300
parents 0fa1f71a905b
children c2c7fed86a5e
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp	Tue Jun 23 22:14:58 2015 -0400
+++ b/src/share/vm/classfile/classFileParser.cpp	Thu Jun 11 14:19:40 2015 +0300
@@ -1783,6 +1783,10 @@
     if (_location != _in_method)  break;  // only allow for methods
     if (!privileged)              break;  // only allow in privileged code
     return _method_DontInline;
+  case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_InjectedProfile_signature):
+    if (_location != _in_method)  break;  // only allow for methods
+    if (!privileged)              break;  // only allow in privileged code
+    return _method_InjectedProfile;
   case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_LambdaForm_Compiled_signature):
     if (_location != _in_method)  break;  // only allow for methods
     if (!privileged)              break;  // only allow in privileged code
@@ -1824,6 +1828,8 @@
     m->set_force_inline(true);
   if (has_annotation(_method_DontInline))
     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))