< prev index next >

src/hotspot/share/classfile/classFileParser.cpp

Print this page
@@ -964,10 +964,12 @@
    enum ID {
      _unknown = 0,
      _method_CallerSensitive,
      _method_ForceInline,
      _method_DontInline,
+     _method_ChangesCurrentThread,
+     _method_JvmtiMountTransition,
      _method_InjectedProfile,
      _method_LambdaForm_Compiled,
      _method_Hidden,
      _method_Scoped,
      _method_IntrinsicCandidate,

@@ -1983,10 +1985,20 @@
      case VM_SYMBOL_ENUM_NAME(jdk_internal_vm_annotation_DontInline_signature): {
        if (_location != _in_method)  break;  // only allow for methods
        if (!privileged)              break;  // only allow in privileged code
        return _method_DontInline;
      }
+     case VM_SYMBOL_ENUM_NAME(jdk_internal_vm_annotation_ChangesCurrentThread_signature): {
+       if (_location != _in_method)  break;  // only allow for methods
+       if (!privileged)              break;  // only allow in privileged code
+       return _method_ChangesCurrentThread;
+     }
+     case VM_SYMBOL_ENUM_NAME(jdk_internal_vm_annotation_JvmtiMountTransition_signature): {
+       if (_location != _in_method)  break;  // only allow for methods
+       if (!privileged)              break;  // only allow in privileged code
+       return _method_JvmtiMountTransition;
+     }
      case 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;
      }

@@ -2059,10 +2071,14 @@
      m->set_caller_sensitive(true);
    if (has_annotation(_method_ForceInline))
      m->set_force_inline(true);
    if (has_annotation(_method_DontInline))
      m->set_dont_inline(true);
+   if (has_annotation(_method_ChangesCurrentThread))
+     m->set_changes_current_thread(true);
+   if (has_annotation(_method_JvmtiMountTransition))
+     m->set_jvmti_mount_transition(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))
< prev index next >