Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
1231ceec
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看板
提交
1231ceec
编写于
9月 14, 2011
作者:
N
never
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7090654: nightly failures after 7086585
Reviewed-by: kvn
上级
446a6918
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
15 addition
and
21 deletion
+15
-21
agent/src/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java
...src/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java
+13
-19
agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java
agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java
+1
-1
src/share/vm/prims/jvmtiClassFileReconstituter.cpp
src/share/vm/prims/jvmtiClassFileReconstituter.cpp
+1
-1
未找到文件。
agent/src/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java
浏览文件 @
1231ceec
...
@@ -513,10 +513,9 @@ public class InstanceKlass extends Klass {
...
@@ -513,10 +513,9 @@ public class InstanceKlass extends Klass {
void
iterateStaticFieldsInternal
(
OopVisitor
visitor
)
{
void
iterateStaticFieldsInternal
(
OopVisitor
visitor
)
{
TypeArray
fields
=
getFields
();
TypeArray
fields
=
getFields
();
int
length
=
getJavaFieldsCount
();
int
length
=
getJavaFieldsCount
();
for
(
int
index
=
0
;
index
<
length
;
index
+=
FIELD_SLOTS
)
{
for
(
int
index
=
0
;
index
<
length
;
index
++)
{
short
accessFlags
=
fields
.
getShortAt
(
index
+
ACCESS_FLAGS_OFFSET
);
short
accessFlags
=
getFieldAccessFlags
(
index
);
short
signatureIndex
=
fields
.
getShortAt
(
index
+
SIGNATURE_INDEX_OFFSET
);
FieldType
type
=
new
FieldType
(
getFieldSignature
(
index
));
FieldType
type
=
new
FieldType
(
getConstants
().
getSymbolAt
(
signatureIndex
));
AccessFlags
access
=
new
AccessFlags
(
accessFlags
);
AccessFlags
access
=
new
AccessFlags
(
accessFlags
);
if
(
access
.
isStatic
())
{
if
(
access
.
isStatic
())
{
visitField
(
visitor
,
type
,
index
);
visitField
(
visitor
,
type
,
index
);
...
@@ -545,11 +544,9 @@ public class InstanceKlass extends Klass {
...
@@ -545,11 +544,9 @@ public class InstanceKlass extends Klass {
TypeArray
fields
=
getFields
();
TypeArray
fields
=
getFields
();
int
length
=
getJavaFieldsCount
();
int
length
=
getJavaFieldsCount
();
for
(
int
index
=
0
;
index
<
length
;
index
+=
FIELD_SLOTS
)
{
for
(
int
index
=
0
;
index
<
length
;
index
++)
{
short
accessFlags
=
fields
.
getShortAt
(
index
+
ACCESS_FLAGS_OFFSET
);
short
accessFlags
=
getFieldAccessFlags
(
index
);
short
signatureIndex
=
fields
.
getShortAt
(
index
+
SIGNATURE_INDEX_OFFSET
);
FieldType
type
=
new
FieldType
(
getFieldSignature
(
index
));
FieldType
type
=
new
FieldType
(
getConstants
().
getSymbolAt
(
signatureIndex
));
AccessFlags
access
=
new
AccessFlags
(
accessFlags
);
AccessFlags
access
=
new
AccessFlags
(
accessFlags
);
if
(!
access
.
isStatic
())
{
if
(!
access
.
isStatic
())
{
visitField
(
visitor
,
type
,
index
);
visitField
(
visitor
,
type
,
index
);
...
@@ -562,11 +559,9 @@ public class InstanceKlass extends Klass {
...
@@ -562,11 +559,9 @@ public class InstanceKlass extends Klass {
TypeArray
fields
=
getFields
();
TypeArray
fields
=
getFields
();
int
length
=
(
int
)
fields
.
getLength
();
int
length
=
(
int
)
fields
.
getLength
();
ConstantPool
cp
=
getConstants
();
ConstantPool
cp
=
getConstants
();
for
(
int
i
=
0
;
i
<
length
;
i
+=
FIELD_SLOTS
)
{
for
(
int
i
=
0
;
i
<
length
;
i
++)
{
int
nameIndex
=
fields
.
getShortAt
(
i
+
NAME_INDEX_OFFSET
);
Symbol
f_name
=
getFieldName
(
i
);
int
sigIndex
=
fields
.
getShortAt
(
i
+
SIGNATURE_INDEX_OFFSET
);
Symbol
f_sig
=
getFieldSignature
(
i
);
Symbol
f_name
=
cp
.
getSymbolAt
(
nameIndex
);
Symbol
f_sig
=
cp
.
getSymbolAt
(
sigIndex
);
if
(
name
.
equals
(
f_name
)
&&
sig
.
equals
(
f_sig
))
{
if
(
name
.
equals
(
f_name
)
&&
sig
.
equals
(
f_sig
))
{
return
newField
(
i
);
return
newField
(
i
);
}
}
...
@@ -641,8 +636,8 @@ public class InstanceKlass extends Klass {
...
@@ -641,8 +636,8 @@ public class InstanceKlass extends Klass {
/** Get field by its index in the fields array. Only designed for
/** Get field by its index in the fields array. Only designed for
use in a debugging system. */
use in a debugging system. */
public
Field
getFieldByIndex
(
int
field
Array
Index
)
{
public
Field
getFieldByIndex
(
int
fieldIndex
)
{
return
newField
(
field
Array
Index
);
return
newField
(
fieldIndex
);
}
}
...
@@ -657,7 +652,7 @@ public class InstanceKlass extends Klass {
...
@@ -657,7 +652,7 @@ public class InstanceKlass extends Klass {
int
length
=
getJavaFieldsCount
();
int
length
=
getJavaFieldsCount
();
List
immediateFields
=
new
ArrayList
(
length
);
List
immediateFields
=
new
ArrayList
(
length
);
for
(
int
index
=
0
;
index
<
length
;
index
+=
FIELD_SLOTS
)
{
for
(
int
index
=
0
;
index
<
length
;
index
++
)
{
immediateFields
.
add
(
getFieldByIndex
(
index
));
immediateFields
.
add
(
getFieldByIndex
(
index
));
}
}
...
@@ -845,8 +840,7 @@ public class InstanceKlass extends Klass {
...
@@ -845,8 +840,7 @@ public class InstanceKlass extends Klass {
// Creates new field from index in fields TypeArray
// Creates new field from index in fields TypeArray
private
Field
newField
(
int
index
)
{
private
Field
newField
(
int
index
)
{
TypeArray
fields
=
getFields
();
TypeArray
fields
=
getFields
();
short
signatureIndex
=
fields
.
getShortAt
(
index
+
SIGNATURE_INDEX_OFFSET
);
FieldType
type
=
new
FieldType
(
getFieldSignature
(
index
));
FieldType
type
=
new
FieldType
(
getConstants
().
getSymbolAt
(
signatureIndex
));
if
(
type
.
isOop
())
{
if
(
type
.
isOop
())
{
if
(
VM
.
getVM
().
isCompressedOopsEnabled
())
{
if
(
VM
.
getVM
().
isCompressedOopsEnabled
())
{
return
new
NarrowOopField
(
this
,
index
);
return
new
NarrowOopField
(
this
,
index
);
...
...
agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java
浏览文件 @
1231ceec
...
@@ -310,7 +310,7 @@ public class VM {
...
@@ -310,7 +310,7 @@ public class VM {
usingServerCompiler
=
false
;
usingServerCompiler
=
false
;
}
else
{
}
else
{
// Determine whether C2 is present
// Determine whether C2 is present
if
(
type
.
getField
(
"_interpreter_invocation_count"
,
false
,
false
)
!=
null
)
{
if
(
db
.
lookupType
(
"Matcher"
,
false
)
!=
null
)
{
usingServerCompiler
=
true
;
usingServerCompiler
=
true
;
}
else
{
}
else
{
usingClientCompiler
=
true
;
usingClientCompiler
=
true
;
...
...
src/share/vm/prims/jvmtiClassFileReconstituter.cpp
浏览文件 @
1231ceec
...
@@ -58,7 +58,7 @@ void JvmtiClassFileReconstituter::write_field_infos() {
...
@@ -58,7 +58,7 @@ void JvmtiClassFileReconstituter::write_field_infos() {
// Compute the real number of Java fields
// Compute the real number of Java fields
int
java_fields
=
ikh
()
->
java_fields_count
();
int
java_fields
=
ikh
()
->
java_fields_count
();
write_u2
(
java_fields
*
FieldInfo
::
field_slots
);
write_u2
(
java_fields
);
for
(
JavaFieldStream
fs
(
ikh
());
!
fs
.
done
();
fs
.
next
())
{
for
(
JavaFieldStream
fs
(
ikh
());
!
fs
.
done
();
fs
.
next
())
{
AccessFlags
access_flags
=
fs
.
access_flags
();
AccessFlags
access_flags
=
fs
.
access_flags
();
int
name_index
=
fs
.
name_index
();
int
name_index
=
fs
.
name_index
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录