You need to sign in or sign up before continuing.
提交 b471683d 编写于 作者: K kmo

8006758: LinkResolver assertion (caused by @Contended changes)

Summary: treat anonymous classes as privileged code to restore the special handling for @Compiled during class file parsing
Reviewed-by: jrose, coleenp, kvn, dholmes
上级 35c7a714
......@@ -1802,11 +1802,9 @@ ClassFileParser::AnnotationCollector::ID
ClassFileParser::AnnotationCollector::annotation_index(ClassLoaderData* loader_data,
Symbol* name) {
vmSymbols::SID sid = vmSymbols::find_sid(name);
bool privileged = false;
if (loader_data->is_the_null_class_loader_data()) {
// Privileged code can use all annotations. Other code silently drops some.
privileged = true;
}
// Privileged code can use all annotations. Other code silently drops some.
bool privileged = loader_data->is_the_null_class_loader_data() ||
loader_data->is_anonymous();
switch (sid) {
case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_ForceInline_signature):
if (_location != _in_method) break; // only allow for methods
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册