Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
7fc7025a
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看板
提交
7fc7025a
编写于
5月 08, 2013
作者:
S
sla
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8013591: compiler/ciReplay/TestSA.sh fails in nightly
Reviewed-by: coleenp, rbackman, dholmes
上级
02ab8ae9
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
27 addition
and
19 deletion
+27
-19
agent/src/share/classes/sun/jvm/hotspot/ci/ciMethod.java
agent/src/share/classes/sun/jvm/hotspot/ci/ciMethod.java
+2
-2
agent/src/share/classes/sun/jvm/hotspot/oops/Method.java
agent/src/share/classes/sun/jvm/hotspot/oops/Method.java
+23
-15
agent/src/share/classes/sun/jvm/hotspot/oops/MethodData.java
agent/src/share/classes/sun/jvm/hotspot/oops/MethodData.java
+2
-2
未找到文件。
agent/src/share/classes/sun/jvm/hotspot/ci/ciMethod.java
浏览文件 @
7fc7025a
...
...
@@ -97,8 +97,8 @@ public class ciMethod extends ciMetadata {
holder
.
getName
().
asString
()
+
" "
+
OopUtilities
.
escapeString
(
method
.
getName
().
asString
())
+
" "
+
method
.
getSignature
().
asString
()
+
" "
+
method
.
getInvocationCount
er
()
+
" "
+
method
.
getBackedgeCount
er
()
+
" "
+
method
.
getInvocationCount
()
+
" "
+
method
.
getBackedgeCount
()
+
" "
+
interpreterInvocationCount
()
+
" "
+
interpreterThrowoutCount
()
+
" "
+
instructionsSize
());
...
...
agent/src/share/classes/sun/jvm/hotspot/oops/Method.java
浏览文件 @
7fc7025a
...
...
@@ -24,15 +24,21 @@
package
sun.jvm.hotspot.oops
;
import
java.io.*
;
import
java.util.*
;
import
sun.jvm.hotspot.code.*
;
import
sun.jvm.hotspot.debugger.*
;
import
sun.jvm.hotspot.interpreter.*
;
import
sun.jvm.hotspot.memory.*
;
import
sun.jvm.hotspot.runtime.*
;
import
sun.jvm.hotspot.types.*
;
import
sun.jvm.hotspot.utilities.*
;
import
java.io.PrintStream
;
import
java.util.Observable
;
import
java.util.Observer
;
import
sun.jvm.hotspot.code.NMethod
;
import
sun.jvm.hotspot.debugger.Address
;
import
sun.jvm.hotspot.interpreter.OopMapCacheEntry
;
import
sun.jvm.hotspot.runtime.SignatureConverter
;
import
sun.jvm.hotspot.runtime.VM
;
import
sun.jvm.hotspot.runtime.VMObjectFactory
;
import
sun.jvm.hotspot.types.AddressField
;
import
sun.jvm.hotspot.types.Type
;
import
sun.jvm.hotspot.types.TypeDataBase
;
import
sun.jvm.hotspot.types.WrongTypeException
;
import
sun.jvm.hotspot.utilities.Assert
;
// A Method represents a Java method
...
...
@@ -132,11 +138,13 @@ public class Method extends Metadata {
public
long
getAccessFlags
()
{
return
accessFlags
.
getValue
(
this
);
}
public
long
getCodeSize
()
{
return
getConstMethod
().
getCodeSize
();
}
public
long
getVtableIndex
()
{
return
vtableIndex
.
getValue
(
this
);
}
public
long
getInvocationCounter
()
{
return
getMethodCounters
().
getInvocationCounter
();
public
long
getInvocationCount
()
{
MethodCounters
mc
=
getMethodCounters
();
return
mc
==
null
?
0
:
mc
.
getInvocationCounter
();
}
public
long
getBackedgeCounter
()
{
return
getMethodCounters
().
getBackedgeCounter
();
public
long
getBackedgeCount
()
{
MethodCounters
mc
=
getMethodCounters
();
return
mc
==
null
?
0
:
mc
.
getBackedgeCounter
();
}
// get associated compiled native method, if available, else return null.
...
...
@@ -349,8 +357,8 @@ public class Method extends Metadata {
holder
.
getName
().
asString
()
+
" "
+
OopUtilities
.
escapeString
(
getName
().
asString
())
+
" "
+
getSignature
().
asString
()
+
" "
+
getInvocationCount
er
()
+
" "
+
getBackedgeCount
er
()
+
" "
+
getInvocationCount
()
+
" "
+
getBackedgeCount
()
+
" "
+
interpreterInvocationCount
()
+
" "
+
interpreterThrowoutCount
()
+
" "
+
code_size
);
...
...
agent/src/share/classes/sun/jvm/hotspot/oops/MethodData.java
浏览文件 @
7fc7025a
...
...
@@ -316,8 +316,8 @@ public class MethodData extends Metadata {
int
iic
=
method
.
interpreterInvocationCount
();
if
(
mileage
<
iic
)
mileage
=
iic
;
long
ic
=
method
.
getInvocationCount
er
();
long
bc
=
method
.
getBackedgeCount
er
();
long
ic
=
method
.
getInvocationCount
();
long
bc
=
method
.
getBackedgeCount
();
long
icval
=
ic
>>
3
;
if
((
ic
&
4
)
!=
0
)
icval
+=
CompileThreshold
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录