Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
1dc1350e
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1dc1350e
编写于
3月 20, 2014
作者:
A
acorn
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8037167: Better method signature resolution
Reviewed-by: mschoene, hseigel, lfoltan
上级
5276a68e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
4 deletion
+15
-4
src/share/vm/classfile/classFileParser.cpp
src/share/vm/classfile/classFileParser.cpp
+13
-3
src/share/vm/classfile/classFileParser.hpp
src/share/vm/classfile/classFileParser.hpp
+2
-1
未找到文件。
src/share/vm/classfile/classFileParser.cpp
浏览文件 @
1dc1350e
...
...
@@ -931,7 +931,7 @@ void ClassFileParser::parse_field_attributes(u2 attributes_count,
"Wrong size %u for field's Signature attribute in class file %s"
,
attribute_length
,
CHECK
);
}
generic_signature_index
=
cfs
->
get_u2
(
CHECK
);
generic_signature_index
=
parse_generic_signature_attribute
(
CHECK
);
}
else
if
(
attribute_name
==
vmSymbols
::
tag_runtime_visible_annotations
())
{
runtime_visible_annotations_length
=
attribute_length
;
runtime_visible_annotations
=
cfs
->
get_u1_buffer
();
...
...
@@ -2305,8 +2305,7 @@ methodHandle ClassFileParser::parse_method(bool is_interface,
"Invalid Signature attribute length %u in class file %s"
,
method_attribute_length
,
CHECK_
(
nullHandle
));
}
cfs
->
guarantee_more
(
2
,
CHECK_
(
nullHandle
));
// generic_signature_index
generic_signature_index
=
cfs
->
get_u2_fast
();
generic_signature_index
=
parse_generic_signature_attribute
(
CHECK_
(
nullHandle
));
}
else
if
(
method_attribute_name
==
vmSymbols
::
tag_runtime_visible_annotations
())
{
runtime_visible_annotations_length
=
method_attribute_length
;
runtime_visible_annotations
=
cfs
->
get_u1_buffer
();
...
...
@@ -2616,6 +2615,17 @@ intArray* ClassFileParser::sort_methods(Array<Method*>* methods) {
return
method_ordering
;
}
// Parse generic_signature attribute for methods and fields
u2
ClassFileParser
::
parse_generic_signature_attribute
(
TRAPS
)
{
ClassFileStream
*
cfs
=
stream
();
cfs
->
guarantee_more
(
2
,
CHECK_0
);
// generic_signature_index
u2
generic_signature_index
=
cfs
->
get_u2_fast
();
check_property
(
valid_symbol_at
(
generic_signature_index
),
"Invalid Signature attribute at constant pool index %u in class file %s"
,
generic_signature_index
,
CHECK_0
);
return
generic_signature_index
;
}
void
ClassFileParser
::
parse_classfile_sourcefile_attribute
(
TRAPS
)
{
ClassFileStream
*
cfs
=
stream
();
...
...
src/share/vm/classfile/classFileParser.hpp
浏览文件 @
1dc1350e
/*
* Copyright (c) 1997, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -266,6 +266,7 @@ class ClassFileParser VALUE_OBJ_CLASS_SPEC {
u1
*
parse_stackmap_table
(
u4
code_attribute_length
,
TRAPS
);
// Classfile attribute parsing
u2
parse_generic_signature_attribute
(
TRAPS
);
void
parse_classfile_sourcefile_attribute
(
TRAPS
);
void
parse_classfile_source_debug_extension_attribute
(
int
length
,
TRAPS
);
u2
parse_classfile_inner_classes_attribute
(
u1
*
inner_classes_attribute_start
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录