Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
22a64baa
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看板
提交
22a64baa
编写于
8月 26, 2013
作者:
V
vlivanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8022456: LogCompilation tool does not work with C1 output again
Reviewed-by: kvn
上级
eb144b4a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
18 deletion
+23
-18
src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/CallSite.java
...pilation/src/com/sun/hotspot/tools/compiler/CallSite.java
+4
-2
src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/LogParser.java
...ilation/src/com/sun/hotspot/tools/compiler/LogParser.java
+13
-13
src/share/vm/c1/c1_Compilation.cpp
src/share/vm/c1/c1_Compilation.cpp
+6
-3
未找到文件。
src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/CallSite.java
浏览文件 @
22a64baa
...
...
@@ -106,10 +106,12 @@ public class CallSite {
" ("
+
getMethod
().
getBytes
()
+
" bytes) "
+
getReason
());
}
}
stream
.
printf
(
" (end time: %6.4f"
,
getTimeStamp
());
if
(
getEndNodes
()
>
0
)
{
stream
.
printf
(
"
(end time: %6.4f nodes: %d live: %d)"
,
getTimeStamp
()
,
getEndNodes
(),
getEndLiveNodes
());
stream
.
printf
(
"
nodes: %d live: %d"
,
getEndNodes
(),
getEndLiveNodes
());
}
stream
.
println
(
""
);
stream
.
println
(
")"
);
if
(
getReceiver
()
!=
null
)
{
emit
(
stream
,
indent
+
4
);
// stream.println("type profile " + method.holder + " -> " + receiver + " (" +
...
...
src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/LogParser.java
浏览文件 @
22a64baa
...
...
@@ -207,7 +207,12 @@ public class LogParser extends DefaultHandler implements ErrorHandler, Constants
}
String
search
(
Attributes
attr
,
String
name
)
{
return
search
(
attr
,
name
,
null
);
String
result
=
attr
.
getValue
(
name
);
if
(
result
!=
null
)
{
return
result
;
}
else
{
throw
new
InternalError
(
"can't find "
+
name
);
}
}
String
search
(
Attributes
attr
,
String
name
,
String
defaultValue
)
{
...
...
@@ -215,13 +220,7 @@ public class LogParser extends DefaultHandler implements ErrorHandler, Constants
if
(
result
!=
null
)
{
return
result
;
}
if
(
defaultValue
!=
null
)
{
return
defaultValue
;
}
for
(
int
i
=
0
;
i
<
attr
.
getLength
();
i
++)
{
System
.
out
.
println
(
attr
.
getQName
(
i
)
+
" "
+
attr
.
getValue
(
attr
.
getQName
(
i
)));
}
throw
new
InternalError
(
"can't find "
+
name
);
return
defaultValue
;
}
int
indent
=
0
;
...
...
@@ -268,17 +267,18 @@ public class LogParser extends DefaultHandler implements ErrorHandler, Constants
Phase
p
=
new
Phase
(
search
(
atts
,
"name"
),
Double
.
parseDouble
(
search
(
atts
,
"stamp"
)),
Integer
.
parseInt
(
search
(
atts
,
"nodes"
,
"0"
)),
Integer
.
parseInt
(
search
(
atts
,
"live"
)));
Integer
.
parseInt
(
search
(
atts
,
"live"
,
"0"
)));
phaseStack
.
push
(
p
);
}
else
if
(
qname
.
equals
(
"phase_done"
))
{
Phase
p
=
phaseStack
.
pop
();
if
(!
p
.
getId
().
equals
(
search
(
atts
,
"name"
)))
{
String
phaseName
=
search
(
atts
,
"name"
,
null
);
if
(
phaseName
!=
null
&&
!
p
.
getId
().
equals
(
phaseName
))
{
System
.
out
.
println
(
"phase: "
+
p
.
getId
());
throw
new
InternalError
(
"phase name mismatch"
);
}
p
.
setEnd
(
Double
.
parseDouble
(
search
(
atts
,
"stamp"
)));
p
.
setEndNodes
(
Integer
.
parseInt
(
search
(
atts
,
"nodes"
,
"0"
)));
p
.
setEndLiveNodes
(
Integer
.
parseInt
(
search
(
atts
,
"live"
)));
p
.
setEndLiveNodes
(
Integer
.
parseInt
(
search
(
atts
,
"live"
,
"0"
)));
compile
.
getPhases
().
add
(
p
);
}
else
if
(
qname
.
equals
(
"task"
))
{
compile
=
new
Compilation
(
Integer
.
parseInt
(
search
(
atts
,
"compile_id"
,
"-1"
)));
...
...
@@ -413,8 +413,8 @@ public class LogParser extends DefaultHandler implements ErrorHandler, Constants
}
}
else
if
(
qname
.
equals
(
"parse_done"
))
{
CallSite
call
=
scopes
.
pop
();
call
.
setEndNodes
(
Integer
.
parseInt
(
search
(
atts
,
"nodes"
,
"
1
"
)));
call
.
setEndLiveNodes
(
Integer
.
parseInt
(
search
(
atts
,
"live"
,
"
1
"
)));
call
.
setEndNodes
(
Integer
.
parseInt
(
search
(
atts
,
"nodes"
,
"
0
"
)));
call
.
setEndLiveNodes
(
Integer
.
parseInt
(
search
(
atts
,
"live"
,
"
0
"
)));
call
.
setTimeStamp
(
Double
.
parseDouble
(
search
(
atts
,
"stamp"
)));
scopes
.
push
(
call
);
}
...
...
src/share/vm/c1/c1_Compilation.cpp
浏览文件 @
22a64baa
...
...
@@ -74,16 +74,19 @@ class PhaseTraceTime: public TraceTime {
private:
JavaThread
*
_thread
;
CompileLog
*
_log
;
TimerName
_timer
;
public:
PhaseTraceTime
(
TimerName
timer
)
:
TraceTime
(
""
,
&
timers
[
timer
],
CITime
||
CITimeEach
,
Verbose
),
_log
(
NULL
)
{
:
TraceTime
(
""
,
&
timers
[
timer
],
CITime
||
CITimeEach
,
Verbose
),
_log
(
NULL
),
_timer
(
timer
)
{
if
(
Compilation
::
current
()
!=
NULL
)
{
_log
=
Compilation
::
current
()
->
log
();
}
if
(
_log
!=
NULL
)
{
_log
->
begin_head
(
"phase name='%s'"
,
timer_name
[
timer
]);
_log
->
begin_head
(
"phase name='%s'"
,
timer_name
[
_
timer
]);
_log
->
stamp
();
_log
->
end_head
();
}
...
...
@@ -91,7 +94,7 @@ class PhaseTraceTime: public TraceTime {
~
PhaseTraceTime
()
{
if
(
_log
!=
NULL
)
_log
->
done
(
"phase
"
);
_log
->
done
(
"phase
name='%s'"
,
timer_name
[
_timer
]
);
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录