Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
b49be1f4
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看板
提交
b49be1f4
编写于
11月 14, 2013
作者:
S
sla
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6626412: jstack using SA prints some info messages into err stream
Reviewed-by: coleenp, farvidsson, jbachorik, dsamersoff, sspitsyn
上级
bbc8bac4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
14 deletion
+15
-14
agent/src/share/classes/sun/jvm/hotspot/tools/Tool.java
agent/src/share/classes/sun/jvm/hotspot/tools/Tool.java
+15
-14
未找到文件。
agent/src/share/classes/sun/jvm/hotspot/tools/Tool.java
浏览文件 @
b49be1f4
...
...
@@ -25,11 +25,11 @@
package
sun.jvm.hotspot.tools
;
import
java.io.PrintStream
;
import
java.util.Hashtable
;
import
sun.jvm.hotspot.*
;
import
sun.jvm.hotspot.runtime.*
;
import
sun.jvm.hotspot.debugger.*
;
import
sun.jvm.hotspot.HotSpotAgent
;
import
sun.jvm.hotspot.debugger.DebuggerException
;
import
sun.jvm.hotspot.debugger.JVMDebugger
;
import
sun.jvm.hotspot.runtime.VM
;
// generic command line or GUI tool.
// override run & code main as shown below.
...
...
@@ -147,6 +147,7 @@ public abstract class Tool implements Runnable {
}
PrintStream
err
=
System
.
err
;
PrintStream
out
=
System
.
out
;
int
pid
=
0
;
String
coreFileName
=
null
;
...
...
@@ -180,18 +181,18 @@ public abstract class Tool implements Runnable {
try
{
switch
(
debugeeType
)
{
case
DEBUGEE_PID:
err
.
println
(
"Attaching to process ID "
+
pid
+
", please wait..."
);
out
.
println
(
"Attaching to process ID "
+
pid
+
", please wait..."
);
agent
.
attach
(
pid
);
break
;
case
DEBUGEE_CORE:
err
.
println
(
"Attaching to core "
+
coreFileName
+
out
.
println
(
"Attaching to core "
+
coreFileName
+
" from executable "
+
executableName
+
", please wait..."
);
agent
.
attach
(
executableName
,
coreFileName
);
break
;
case
DEBUGEE_REMOTE:
err
.
println
(
"Attaching to remote server "
+
remoteServer
+
", please wait..."
);
out
.
println
(
"Attaching to remote server "
+
remoteServer
+
", please wait..."
);
agent
.
attach
(
remoteServer
);
break
;
}
...
...
@@ -218,7 +219,7 @@ public abstract class Tool implements Runnable {
return
1
;
}
err
.
println
(
"Debugger attached successfully."
);
out
.
println
(
"Debugger attached successfully."
);
startInternal
();
return
0
;
}
...
...
@@ -237,14 +238,14 @@ public abstract class Tool implements Runnable {
// Remains of the start mechanism, common to both start methods.
private
void
startInternal
()
{
PrintStream
err
=
System
.
err
;
PrintStream
out
=
System
.
out
;
VM
vm
=
VM
.
getVM
();
if
(
vm
.
isCore
())
{
err
.
println
(
"Core build detected."
);
out
.
println
(
"Core build detected."
);
}
else
if
(
vm
.
isClientCompiler
())
{
err
.
println
(
"Client compiler detected."
);
out
.
println
(
"Client compiler detected."
);
}
else
if
(
vm
.
isServerCompiler
())
{
err
.
println
(
"Server compiler detected."
);
out
.
println
(
"Server compiler detected."
);
}
else
{
throw
new
RuntimeException
(
"Fatal error: "
+
"should have been able to detect core/C1/C2 build"
);
...
...
@@ -252,8 +253,8 @@ public abstract class Tool implements Runnable {
String
version
=
vm
.
getVMRelease
();
if
(
version
!=
null
)
{
err
.
print
(
"JVM version is "
);
err
.
println
(
version
);
out
.
print
(
"JVM version is "
);
out
.
println
(
version
);
}
run
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录