Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
79039a71
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看板
提交
79039a71
编写于
10月 17, 2019
作者:
A
andrew
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
96e2c642
1355a469
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
50 addition
and
15 deletion
+50
-15
.hgtags
.hgtags
+5
-0
THIRD_PARTY_README
THIRD_PARTY_README
+5
-10
agent/src/os/linux/ps_proc.c
agent/src/os/linux/ps_proc.c
+36
-5
test/runtime/RedefineTests/RedefineDoubleDelete.java
test/runtime/RedefineTests/RedefineDoubleDelete.java
+4
-0
未找到文件。
.hgtags
浏览文件 @
79039a71
...
@@ -1280,3 +1280,8 @@ fa7fe6dae563edaae8a8bbe8ac4bd4fa942bde0c jdk8u232-b03
...
@@ -1280,3 +1280,8 @@ fa7fe6dae563edaae8a8bbe8ac4bd4fa942bde0c jdk8u232-b03
921c5ee7965fdfde75f578ddda24d5cd16f124dc jdk8u232-b04
921c5ee7965fdfde75f578ddda24d5cd16f124dc jdk8u232-b04
b13d7942036329f64c77a93cffc25e1b52523a3c jdk8u232-b05
b13d7942036329f64c77a93cffc25e1b52523a3c jdk8u232-b05
760b28d871785cd508239a5f635cfb45451f9202 jdk8u242-b00
760b28d871785cd508239a5f635cfb45451f9202 jdk8u242-b00
fea2c7f50ce8e6aee1e946eaec7b834193747d82 jdk8u232-b06
c751303497d539aa85c6373aa0fa85580d3f3044 jdk8u232-b07
4170228e11e6313e948e6ddcae9af3eed06b1fbe jdk8u232-b08
12177d88b89c12c14daa5ad681030d7551e8a5a0 jdk8u232-b09
12177d88b89c12c14daa5ad681030d7551e8a5a0 jdk8u232-ga
THIRD_PARTY_README
浏览文件 @
79039a71
...
@@ -2130,13 +2130,13 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice
...
@@ -2130,13 +2130,13 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
%% This notice is provided with respect to PC/SC Lite
for Suse Linux v.1.1.1
,
%% This notice is provided with respect to PC/SC Lite
v1.8.24
,
which may be included with JRE 8, JDK 8, and OpenJDK 8 on Linux and Solaris.
which may be included with JRE 8, JDK 8, and OpenJDK 8 on Linux and Solaris.
--- begin of LICENSE ---
--- begin of LICENSE ---
Copyright (c) 1999-200
4
David Corcoran <corcoran@linuxnet.com>
Copyright (c) 1999-200
3
David Corcoran <corcoran@linuxnet.com>
Copyright (c)
1999-2004 Ludovic Rousseau <ludovic.rousseau (at)
free.fr>
Copyright (c)
2001-2011 Ludovic Rousseau <ludovic.rousseau@
free.fr>
All rights reserved.
All rights reserved.
Redistribution and use in source and binary forms, with or without
Redistribution and use in source and binary forms, with or without
...
@@ -2148,12 +2148,7 @@ are met:
...
@@ -2148,12 +2148,7 @@ are met:
2. Redistributions in binary form must reproduce the above copyright
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
3. The name of the author may not be used to endorse or promote products
must display the following acknowledgement:
This product includes software developed by:
David Corcoran <corcoran@linuxnet.com>
http://www.linuxnet.com (MUSCLE)
4. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
derived from this software without specific prior written permission.
Changes to this license can be made only by the copyright author with
Changes to this license can be made only by the copyright author with
...
...
agent/src/os/linux/ps_proc.c
浏览文件 @
79039a71
...
@@ -345,7 +345,7 @@ static bool add_new_thread(struct ps_prochandle* ph, pthread_t pthread_id, lwpid
...
@@ -345,7 +345,7 @@ static bool add_new_thread(struct ps_prochandle* ph, pthread_t pthread_id, lwpid
static
bool
read_lib_info
(
struct
ps_prochandle
*
ph
)
{
static
bool
read_lib_info
(
struct
ps_prochandle
*
ph
)
{
char
fname
[
32
];
char
fname
[
32
];
char
buf
[
256
];
char
buf
[
PATH_MAX
];
FILE
*
fp
=
NULL
;
FILE
*
fp
=
NULL
;
sprintf
(
fname
,
"/proc/%d/maps"
,
ph
->
pid
);
sprintf
(
fname
,
"/proc/%d/maps"
,
ph
->
pid
);
...
@@ -355,10 +355,41 @@ static bool read_lib_info(struct ps_prochandle* ph) {
...
@@ -355,10 +355,41 @@ static bool read_lib_info(struct ps_prochandle* ph) {
return
false
;
return
false
;
}
}
while
(
fgets_no_cr
(
buf
,
256
,
fp
)){
while
(
fgets_no_cr
(
buf
,
PATH_MAX
,
fp
)){
char
*
word
[
6
];
char
*
word
[
7
];
int
nwords
=
split_n_str
(
buf
,
6
,
word
,
' '
,
'\0'
);
int
nwords
=
split_n_str
(
buf
,
7
,
word
,
' '
,
'\0'
);
if
(
nwords
>
5
&&
find_lib
(
ph
,
word
[
5
])
==
false
)
{
if
(
nwords
<
6
)
{
// not a shared library entry. ignore.
continue
;
}
// SA does not handle the lines with patterns:
// "[stack]", "[heap]", "[vdso]", "[vsyscall]", etc.
if
(
word
[
5
][
0
]
==
'['
)
{
// not a shared library entry. ignore.
continue
;
}
if
(
nwords
>
6
)
{
// prelink altered mapfile when the program is running.
// Entries like one below have to be skipped
// /lib64/libc-2.15.so (deleted)
// SO name in entries like one below have to be stripped.
// /lib64/libpthread-2.15.so.#prelink#.EECVts
char
*
s
=
strstr
(
word
[
5
],
".#prelink#"
);
if
(
s
==
NULL
)
{
// No prelink keyword. skip deleted library
print_debug
(
"skip shared object %s deleted by prelink
\n
"
,
word
[
5
]);
continue
;
}
// Fall through
print_debug
(
"rectifying shared object name %s changed by prelink
\n
"
,
word
[
5
]);
*
s
=
0
;
}
if
(
find_lib
(
ph
,
word
[
5
])
==
false
)
{
intptr_t
base
;
intptr_t
base
;
lib_info
*
lib
;
lib_info
*
lib
;
#ifdef _LP64
#ifdef _LP64
...
...
test/runtime/RedefineTests/RedefineDoubleDelete.java
浏览文件 @
79039a71
...
@@ -24,7 +24,11 @@
...
@@ -24,7 +24,11 @@
/*
/*
* @test
* @test
* @bug 8178870
* @bug 8178870
* @library /testlibrary
* @summary Redefine class with CFLH twice to test deleting the cached_class_file
* @summary Redefine class with CFLH twice to test deleting the cached_class_file
* @build RedefineClassHelper
* @run main RedefineClassHelper
* @run main/othervm -javaagent:redefineagent.jar RedefineDoubleDelete
*/
*/
public
class
RedefineDoubleDelete
{
public
class
RedefineDoubleDelete
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录