Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
49fd0030
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看板
提交
49fd0030
编写于
1月 14, 2009
作者:
S
swamyv
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6786948: SA on core file fails on solaris-amd64 if vm started with -XX:+StartAttachListener
Reviewed-by: jjh, dcubed
上级
9e2b331c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
10 deletion
+16
-10
agent/src/os/linux/ps_core.c
agent/src/os/linux/ps_core.c
+8
-5
agent/src/os/solaris/proc/saproc.cpp
agent/src/os/solaris/proc/saproc.cpp
+8
-5
未找到文件。
agent/src/os/linux/ps_core.c
浏览文件 @
49fd0030
...
...
@@ -238,8 +238,8 @@ struct FileMapHeader {
// Ignore the rest of the FileMapHeader. We don't need those fields here.
};
static
bool
read_
int
(
struct
ps_prochandle
*
ph
,
uintptr_t
addr
,
int
*
pvalue
)
{
int
i
;
static
bool
read_
jboolean
(
struct
ps_prochandle
*
ph
,
uintptr_t
addr
,
jboolean
*
pvalue
)
{
jboolean
i
;
if
(
ps_pdread
(
ph
,
(
psaddr_t
)
addr
,
&
i
,
sizeof
(
i
))
==
PS_OK
)
{
*
pvalue
=
i
;
return
true
;
...
...
@@ -295,7 +295,7 @@ static bool init_classsharing_workaround(struct ps_prochandle* ph) {
int
fd
=
-
1
,
m
=
0
;
uintptr_t
base
=
0
,
useSharedSpacesAddr
=
0
;
uintptr_t
sharedArchivePathAddrAddr
=
0
,
sharedArchivePathAddr
=
0
;
int
useSharedSpaces
=
0
;
jboolean
useSharedSpaces
=
0
;
map_info
*
mi
=
0
;
memset
(
classes_jsa
,
0
,
sizeof
(
classes_jsa
));
...
...
@@ -306,12 +306,15 @@ static bool init_classsharing_workaround(struct ps_prochandle* ph) {
return
false
;
}
if
(
read_int
(
ph
,
useSharedSpacesAddr
,
&
useSharedSpaces
)
!=
true
)
{
// Hotspot vm types are not exported to build this library. So
// using equivalent type jboolean to read the value of
// UseSharedSpaces which is same as hotspot type "bool".
if
(
read_jboolean
(
ph
,
useSharedSpacesAddr
,
&
useSharedSpaces
)
!=
true
)
{
print_debug
(
"can't read the value of 'UseSharedSpaces' flag
\n
"
);
return
false
;
}
if
(
useSharedSpaces
==
0
)
{
if
(
(
int
)
useSharedSpaces
==
0
)
{
print_debug
(
"UseSharedSpaces is false, assuming -Xshare:off!
\n
"
);
return
true
;
}
...
...
agent/src/os/solaris/proc/saproc.cpp
浏览文件 @
49fd0030
...
...
@@ -502,8 +502,8 @@ struct FileMapHeader {
};
static
bool
read_
int
(
struct
ps_prochandle
*
ph
,
psaddr_t
addr
,
int
*
pvalue
)
{
int
i
;
read_
jboolean
(
struct
ps_prochandle
*
ph
,
psaddr_t
addr
,
jboolean
*
pvalue
)
{
jboolean
i
;
if
(
ps_pread
(
ph
,
addr
,
&
i
,
sizeof
(
i
))
==
PS_OK
)
{
*
pvalue
=
i
;
return
true
;
...
...
@@ -575,10 +575,13 @@ init_classsharing_workaround(void *cd, const prmap_t* pmap, const char* obj_name
}
// read the value of the flag "UseSharedSpaces"
int
value
=
0
;
if
(
read_int
(
ph
,
useSharedSpacesAddr
,
&
value
)
!=
true
)
{
// Since hotspot types are not available to build this library. So
// equivalent type "jboolean" is used to read the value of "UseSharedSpaces"
// which is same as hotspot type "bool".
jboolean
value
=
0
;
if
(
read_jboolean
(
ph
,
useSharedSpacesAddr
,
&
value
)
!=
true
)
{
THROW_NEW_DEBUGGER_EXCEPTION_
(
"can't read 'UseSharedSpaces' flag"
,
1
);
}
else
if
(
value
==
0
)
{
}
else
if
(
(
int
)
value
==
0
)
{
print_debug
(
"UseSharedSpaces is false, assuming -Xshare:off!
\n
"
);
return
1
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录