--- a/src/hotspot/share/classfile/classFileParser.cpp Wed Nov 07 01:04:26 2018 +0000
+++ b/src/hotspot/share/classfile/classFileParser.cpp Tue Nov 06 16:04:50 2018 -0800
@@ -1066,7 +1066,7 @@
_method_DontInline,
_method_InjectedProfile,
_method_LambdaForm_Compiled,
- _method_LambdaForm_Hidden,
+ _method_Hidden,
_method_HotSpotIntrinsicCandidate,
_jdk_internal_vm_annotation_Contended,
_field_Stable,
@@ -2121,7 +2121,12 @@
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;
+ 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
@@ -2178,7 +2183,7 @@
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))
+ if (has_annotation(_method_Hidden))
m->set_hidden(true);
if (has_annotation(_method_HotSpotIntrinsicCandidate) && !m->is_synthetic())
m->set_intrinsic_candidate(true);