Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
88e2a0d5
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看板
提交
88e2a0d5
编写于
5月 09, 2012
作者:
N
nloodin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7163117: Agent can't connect to process on Mac OSX
Reviewed-by: dholmes, coleenp, sla, minqi, kvn
上级
51827823
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
10 addition
and
10 deletion
+10
-10
agent/src/share/classes/sun/jvm/hotspot/HotSpotAgent.java
agent/src/share/classes/sun/jvm/hotspot/HotSpotAgent.java
+2
-2
agent/src/share/classes/sun/jvm/hotspot/bugspot/BugSpotAgent.java
...c/share/classes/sun/jvm/hotspot/bugspot/BugSpotAgent.java
+2
-2
agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdCDebugger.java
...re/classes/sun/jvm/hotspot/debugger/bsd/BsdCDebugger.java
+1
-1
agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdThreadContextFactory.java
...sun/jvm/hotspot/debugger/bsd/BsdThreadContextFactory.java
+1
-1
agent/src/share/classes/sun/jvm/hotspot/debugger/proc/ProcDebuggerLocal.java
...sses/sun/jvm/hotspot/debugger/proc/ProcDebuggerLocal.java
+1
-1
agent/src/share/classes/sun/jvm/hotspot/debugger/remote/RemoteDebuggerClient.java
...sun/jvm/hotspot/debugger/remote/RemoteDebuggerClient.java
+1
-1
agent/src/share/classes/sun/jvm/hotspot/runtime/Threads.java
agent/src/share/classes/sun/jvm/hotspot/runtime/Threads.java
+1
-1
agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java
...lasses/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java
+1
-1
未找到文件。
agent/src/share/classes/sun/jvm/hotspot/HotSpotAgent.java
浏览文件 @
88e2a0d5
...
@@ -572,10 +572,10 @@ public class HotSpotAgent {
...
@@ -572,10 +572,10 @@ public class HotSpotAgent {
if
(
cpu
.
equals
(
"x86"
))
{
if
(
cpu
.
equals
(
"x86"
))
{
machDesc
=
new
MachineDescriptionIntelX86
();
machDesc
=
new
MachineDescriptionIntelX86
();
}
else
if
(
cpu
.
equals
(
"amd64"
))
{
}
else
if
(
cpu
.
equals
(
"amd64"
)
||
cpu
.
equals
(
"x86_64"
)
)
{
machDesc
=
new
MachineDescriptionAMD64
();
machDesc
=
new
MachineDescriptionAMD64
();
}
else
{
}
else
{
throw
new
DebuggerException
(
"BSD only supported on x86/
amd64"
);
throw
new
DebuggerException
(
"BSD only supported on x86/
x86_64. Current arch: "
+
cpu
);
}
}
BsdDebuggerLocal
dbg
=
new
BsdDebuggerLocal
(
machDesc
,
!
isServer
);
BsdDebuggerLocal
dbg
=
new
BsdDebuggerLocal
(
machDesc
,
!
isServer
);
...
...
agent/src/share/classes/sun/jvm/hotspot/bugspot/BugSpotAgent.java
浏览文件 @
88e2a0d5
...
@@ -762,10 +762,10 @@ public class BugSpotAgent {
...
@@ -762,10 +762,10 @@ public class BugSpotAgent {
if
(
cpu
.
equals
(
"x86"
))
{
if
(
cpu
.
equals
(
"x86"
))
{
machDesc
=
new
MachineDescriptionIntelX86
();
machDesc
=
new
MachineDescriptionIntelX86
();
}
else
if
(
cpu
.
equals
(
"amd64"
))
{
}
else
if
(
cpu
.
equals
(
"amd64"
)
||
(
cpu
.
equals
(
"x86_64"
))
)
{
machDesc
=
new
MachineDescriptionAMD64
();
machDesc
=
new
MachineDescriptionAMD64
();
}
else
{
}
else
{
throw
new
DebuggerException
(
"Bsd only supported on x86/
amd64"
);
throw
new
DebuggerException
(
"Bsd only supported on x86/
x86_64. Current arch: "
+
cpu
);
}
}
// Note we do not use a cache for the local debugger in server
// Note we do not use a cache for the local debugger in server
...
...
agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdCDebugger.java
浏览文件 @
88e2a0d5
...
@@ -90,7 +90,7 @@ class BsdCDebugger implements CDebugger {
...
@@ -90,7 +90,7 @@ class BsdCDebugger implements CDebugger {
Address
pc
=
context
.
getRegisterAsAddress
(
X86ThreadContext
.
EIP
);
Address
pc
=
context
.
getRegisterAsAddress
(
X86ThreadContext
.
EIP
);
if
(
pc
==
null
)
return
null
;
if
(
pc
==
null
)
return
null
;
return
new
BsdX86CFrame
(
dbg
,
ebp
,
pc
);
return
new
BsdX86CFrame
(
dbg
,
ebp
,
pc
);
}
else
if
(
cpu
.
equals
(
"amd64"
))
{
}
else
if
(
cpu
.
equals
(
"amd64"
)
||
cpu
.
equals
(
"x86_64"
)
)
{
AMD64ThreadContext
context
=
(
AMD64ThreadContext
)
thread
.
getContext
();
AMD64ThreadContext
context
=
(
AMD64ThreadContext
)
thread
.
getContext
();
Address
rbp
=
context
.
getRegisterAsAddress
(
AMD64ThreadContext
.
RBP
);
Address
rbp
=
context
.
getRegisterAsAddress
(
AMD64ThreadContext
.
RBP
);
if
(
rbp
==
null
)
return
null
;
if
(
rbp
==
null
)
return
null
;
...
...
agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdThreadContextFactory.java
浏览文件 @
88e2a0d5
...
@@ -33,7 +33,7 @@ class BsdThreadContextFactory {
...
@@ -33,7 +33,7 @@ class BsdThreadContextFactory {
String
cpu
=
dbg
.
getCPU
();
String
cpu
=
dbg
.
getCPU
();
if
(
cpu
.
equals
(
"x86"
))
{
if
(
cpu
.
equals
(
"x86"
))
{
return
new
BsdX86ThreadContext
(
dbg
);
return
new
BsdX86ThreadContext
(
dbg
);
}
else
if
(
cpu
.
equals
(
"amd64"
))
{
}
else
if
(
cpu
.
equals
(
"amd64"
)
||
cpu
.
equals
(
"x86_64"
)
)
{
return
new
BsdAMD64ThreadContext
(
dbg
);
return
new
BsdAMD64ThreadContext
(
dbg
);
}
else
{
}
else
{
throw
new
RuntimeException
(
"cpu "
+
cpu
+
" is not yet supported"
);
throw
new
RuntimeException
(
"cpu "
+
cpu
+
" is not yet supported"
);
...
...
agent/src/share/classes/sun/jvm/hotspot/debugger/proc/ProcDebuggerLocal.java
浏览文件 @
88e2a0d5
...
@@ -81,7 +81,7 @@ public class ProcDebuggerLocal extends DebuggerBase implements ProcDebugger {
...
@@ -81,7 +81,7 @@ public class ProcDebuggerLocal extends DebuggerBase implements ProcDebugger {
pcRegIndex
=
X86ThreadContext
.
EIP
;
pcRegIndex
=
X86ThreadContext
.
EIP
;
fpRegIndex
=
X86ThreadContext
.
EBP
;
fpRegIndex
=
X86ThreadContext
.
EBP
;
unalignedAccessesOkay
=
true
;
unalignedAccessesOkay
=
true
;
}
else
if
(
cpu
.
equals
(
"amd64"
))
{
}
else
if
(
cpu
.
equals
(
"amd64"
)
||
cpu
.
equals
(
"x86_64"
)
)
{
threadFactory
=
new
ProcAMD64ThreadFactory
(
this
);
threadFactory
=
new
ProcAMD64ThreadFactory
(
this
);
pcRegIndex
=
AMD64ThreadContext
.
RIP
;
pcRegIndex
=
AMD64ThreadContext
.
RIP
;
fpRegIndex
=
AMD64ThreadContext
.
RBP
;
fpRegIndex
=
AMD64ThreadContext
.
RBP
;
...
...
agent/src/share/classes/sun/jvm/hotspot/debugger/remote/RemoteDebuggerClient.java
浏览文件 @
88e2a0d5
...
@@ -64,7 +64,7 @@ public class RemoteDebuggerClient extends DebuggerBase implements JVMDebugger {
...
@@ -64,7 +64,7 @@ public class RemoteDebuggerClient extends DebuggerBase implements JVMDebugger {
cachePageSize
=
4096
;
cachePageSize
=
4096
;
cacheNumPages
=
parseCacheNumPagesProperty
(
cacheSize
/
cachePageSize
);
cacheNumPages
=
parseCacheNumPagesProperty
(
cacheSize
/
cachePageSize
);
unalignedAccessesOkay
=
true
;
unalignedAccessesOkay
=
true
;
}
else
if
(
cpu
.
equals
(
"amd64"
))
{
}
else
if
(
cpu
.
equals
(
"amd64"
)
||
cpu
.
equals
(
"x86_64"
)
)
{
threadFactory
=
new
RemoteAMD64ThreadFactory
(
this
);
threadFactory
=
new
RemoteAMD64ThreadFactory
(
this
);
cachePageSize
=
4096
;
cachePageSize
=
4096
;
cacheNumPages
=
parseCacheNumPagesProperty
(
cacheSize
/
cachePageSize
);
cacheNumPages
=
parseCacheNumPagesProperty
(
cacheSize
/
cachePageSize
);
...
...
agent/src/share/classes/sun/jvm/hotspot/runtime/Threads.java
浏览文件 @
88e2a0d5
...
@@ -95,7 +95,7 @@ public class Threads {
...
@@ -95,7 +95,7 @@ public class Threads {
}
else
if
(
os
.
equals
(
"bsd"
))
{
}
else
if
(
os
.
equals
(
"bsd"
))
{
if
(
cpu
.
equals
(
"x86"
))
{
if
(
cpu
.
equals
(
"x86"
))
{
access
=
new
BsdX86JavaThreadPDAccess
();
access
=
new
BsdX86JavaThreadPDAccess
();
}
else
if
(
cpu
.
equals
(
"amd64"
))
{
}
else
if
(
cpu
.
equals
(
"amd64"
)
||
cpu
.
equals
(
"x86_64"
)
)
{
access
=
new
BsdAMD64JavaThreadPDAccess
();
access
=
new
BsdAMD64JavaThreadPDAccess
();
}
}
}
}
...
...
agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java
浏览文件 @
88e2a0d5
...
@@ -199,7 +199,7 @@ public class HTMLGenerator implements /* imports */ ClassConstants {
...
@@ -199,7 +199,7 @@ public class HTMLGenerator implements /* imports */ ClassConstants {
cpuHelper
=
new
SPARCHelper
();
cpuHelper
=
new
SPARCHelper
();
}
else
if
(
cpu
.
equals
(
"x86"
))
{
}
else
if
(
cpu
.
equals
(
"x86"
))
{
cpuHelper
=
new
X86Helper
();
cpuHelper
=
new
X86Helper
();
}
else
if
(
cpu
.
equals
(
"amd64"
))
{
}
else
if
(
cpu
.
equals
(
"amd64"
)
||
cpu
.
equals
(
"x86_64"
)
)
{
cpuHelper
=
new
AMD64Helper
();
cpuHelper
=
new
AMD64Helper
();
}
else
if
(
cpu
.
equals
(
"ia64"
))
{
}
else
if
(
cpu
.
equals
(
"ia64"
))
{
cpuHelper
=
new
IA64Helper
();
cpuHelper
=
new
IA64Helper
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录