Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
f524f00a
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看板
提交
f524f00a
编写于
1月 15, 2013
作者:
S
stefank
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8005590: java_lang_Class injected field resolved_constructor appears unused
Reviewed-by: coleenp, dholmes
上级
7ac26a8c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
0 addition
and
27 deletion
+0
-27
src/share/vm/classfile/javaClasses.cpp
src/share/vm/classfile/javaClasses.cpp
+0
-15
src/share/vm/classfile/javaClasses.hpp
src/share/vm/classfile/javaClasses.hpp
+0
-6
src/share/vm/classfile/vmSymbols.hpp
src/share/vm/classfile/vmSymbols.hpp
+0
-1
src/share/vm/oops/instanceKlass.cpp
src/share/vm/oops/instanceKlass.cpp
+0
-4
src/share/vm/runtime/vmStructs.cpp
src/share/vm/runtime/vmStructs.cpp
+0
-1
未找到文件。
src/share/vm/classfile/javaClasses.cpp
浏览文件 @
f524f00a
...
...
@@ -687,19 +687,6 @@ void java_lang_Class::set_array_klass(oop java_class, Klass* klass) {
}
Method
*
java_lang_Class
::
resolved_constructor
(
oop
java_class
)
{
Metadata
*
constructor
=
java_class
->
metadata_field
(
_resolved_constructor_offset
);
assert
(
constructor
==
NULL
||
constructor
->
is_method
(),
"should be method"
);
return
((
Method
*
)
constructor
);
}
void
java_lang_Class
::
set_resolved_constructor
(
oop
java_class
,
Method
*
constructor
)
{
assert
(
constructor
->
is_method
(),
"should be method"
);
java_class
->
metadata_field_put
(
_resolved_constructor_offset
,
constructor
);
}
bool
java_lang_Class
::
is_primitive
(
oop
java_class
)
{
// should assert:
//assert(java_lang_Class::is_instance(java_class), "must be a Class object");
...
...
@@ -2949,7 +2936,6 @@ int java_lang_System::err_offset_in_bytes() {
int
java_lang_Class
::
_klass_offset
;
int
java_lang_Class
::
_array_klass_offset
;
int
java_lang_Class
::
_resolved_constructor_offset
;
int
java_lang_Class
::
_oop_size_offset
;
int
java_lang_Class
::
_static_oop_field_count_offset
;
GrowableArray
<
Klass
*>*
java_lang_Class
::
_fixup_mirror_list
=
NULL
;
...
...
@@ -3303,7 +3289,6 @@ void JavaClasses::check_offsets() {
// Fake fields
// CHECK_OFFSET("java/lang/Class", java_lang_Class, klass); // %%% this needs to be checked
// CHECK_OFFSET("java/lang/Class", java_lang_Class, array_klass); // %%% this needs to be checked
// CHECK_OFFSET("java/lang/Class", java_lang_Class, resolved_constructor); // %%% this needs to be checked
// java.lang.Throwable
...
...
src/share/vm/classfile/javaClasses.hpp
浏览文件 @
f524f00a
...
...
@@ -206,7 +206,6 @@ class java_lang_String : AllStatic {
#define CLASS_INJECTED_FIELDS(macro) \
macro(java_lang_Class, klass, intptr_signature, false) \
macro(java_lang_Class, resolved_constructor, intptr_signature, false) \
macro(java_lang_Class, array_klass, intptr_signature, false) \
macro(java_lang_Class, oop_size, int_signature, false) \
macro(java_lang_Class, static_oop_field_count, int_signature, false)
...
...
@@ -218,7 +217,6 @@ class java_lang_Class : AllStatic {
// The fake offsets are added by the class loader when java.lang.Class is loaded
static
int
_klass_offset
;
static
int
_resolved_constructor_offset
;
static
int
_array_klass_offset
;
static
int
_oop_size_offset
;
...
...
@@ -254,15 +252,11 @@ class java_lang_Class : AllStatic {
static
bool
is_primitive
(
oop
java_class
);
static
BasicType
primitive_type
(
oop
java_class
);
static
oop
primitive_mirror
(
BasicType
t
);
// JVM_NewInstance support
static
Method
*
resolved_constructor
(
oop
java_class
);
static
void
set_resolved_constructor
(
oop
java_class
,
Method
*
constructor
);
// JVM_NewArray support
static
Klass
*
array_klass
(
oop
java_class
);
static
void
set_array_klass
(
oop
java_class
,
Klass
*
klass
);
// compiler support for class operations
static
int
klass_offset_in_bytes
()
{
return
_klass_offset
;
}
static
int
resolved_constructor_offset_in_bytes
()
{
return
_resolved_constructor_offset
;
}
static
int
array_klass_offset_in_bytes
()
{
return
_array_klass_offset
;
}
// Support for classRedefinedCount field
static
int
classRedefinedCount
(
oop
the_class_mirror
);
...
...
src/share/vm/classfile/vmSymbols.hpp
浏览文件 @
f524f00a
...
...
@@ -383,7 +383,6 @@
template(basicType_name, "basicType") \
template(append_name, "append") \
template(klass_name, "klass") \
template(resolved_constructor_name, "resolved_constructor") \
template(array_klass_name, "array_klass") \
template(oop_size_name, "oop_size") \
template(static_oop_field_count_name, "static_oop_field_count") \
...
...
src/share/vm/oops/instanceKlass.cpp
浏览文件 @
f524f00a
...
...
@@ -2890,11 +2890,7 @@ void InstanceKlass::oop_print_on(oop obj, outputStream* st) {
st
->
print
(
BULLET
"fake entry for mirror: "
);
mirrored_klass
->
print_value_on_maybe_null
(
st
);
st
->
cr
();
st
->
print
(
BULLET
"fake entry resolved_constructor: "
);
Method
*
ctor
=
java_lang_Class
::
resolved_constructor
(
obj
);
ctor
->
print_value_on_maybe_null
(
st
);
Klass
*
array_klass
=
java_lang_Class
::
array_klass
(
obj
);
st
->
cr
();
st
->
print
(
BULLET
"fake entry for array: "
);
array_klass
->
print_value_on_maybe_null
(
st
);
st
->
cr
();
...
...
src/share/vm/runtime/vmStructs.cpp
浏览文件 @
f524f00a
...
...
@@ -1200,7 +1200,6 @@ typedef BinaryTreeDictionary<Metablock, FreeList> MetablockTreeDictionary;
/*********************************/
\
\
static_field(java_lang_Class, _klass_offset, int) \
static_field(java_lang_Class, _resolved_constructor_offset, int) \
static_field(java_lang_Class, _array_klass_offset, int) \
static_field(java_lang_Class, _oop_size_offset, int) \
static_field(java_lang_Class, _static_oop_field_count_offset, int) \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录