Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
50b1ef15
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
50b1ef15
编写于
7月 31, 2013
作者:
F
fparain
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
02e779bc
e2e4ca2e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
34 addition
and
18 deletion
+34
-18
src/share/vm/ci/ciReplay.cpp
src/share/vm/ci/ciReplay.cpp
+4
-2
src/share/vm/memory/metaspace.cpp
src/share/vm/memory/metaspace.cpp
+3
-2
test/runtime/6929067/Test6929067.sh
test/runtime/6929067/Test6929067.sh
+10
-4
test/runtime/7107135/Test7107135.sh
test/runtime/7107135/Test7107135.sh
+10
-1
test/runtime/jsig/Test8017498.sh
test/runtime/jsig/Test8017498.sh
+7
-5
test/runtime/jsig/TestJNI.c
test/runtime/jsig/TestJNI.c
+0
-4
未找到文件。
src/share/vm/ci/ciReplay.cpp
浏览文件 @
50b1ef15
...
...
@@ -299,7 +299,7 @@ class CompileReplay : public StackObj {
Symbol
*
method_signature
=
parse_symbol
(
CHECK_NULL
);
Method
*
m
=
k
->
find_method
(
method_name
,
method_signature
);
if
(
m
==
NULL
)
{
report_error
(
"
c
an't find method"
);
report_error
(
"
C
an't find method"
);
}
return
m
;
}
...
...
@@ -398,8 +398,8 @@ class CompileReplay : public StackObj {
// compile <klass> <name> <signature> <entry_bci> <comp_level>
void
process_compile
(
TRAPS
)
{
// methodHandle method;
Method
*
method
=
parse_method
(
CHECK
);
if
(
had_error
())
return
;
int
entry_bci
=
parse_int
(
"entry_bci"
);
const
char
*
comp_level_label
=
"comp_level"
;
int
comp_level
=
parse_int
(
comp_level_label
);
...
...
@@ -440,6 +440,7 @@ class CompileReplay : public StackObj {
//
void
process_ciMethod
(
TRAPS
)
{
Method
*
method
=
parse_method
(
CHECK
);
if
(
had_error
())
return
;
ciMethodRecord
*
rec
=
new_ciMethod
(
method
);
rec
->
invocation_counter
=
parse_int
(
"invocation_counter"
);
rec
->
backedge_counter
=
parse_int
(
"backedge_counter"
);
...
...
@@ -451,6 +452,7 @@ class CompileReplay : public StackObj {
// ciMethodData <klass> <name> <signature> <state> <current mileage> orig <length> # # ... data <length> # # ... oops <length>
void
process_ciMethodData
(
TRAPS
)
{
Method
*
method
=
parse_method
(
CHECK
);
if
(
had_error
())
return
;
/* jsut copied from Method, to build interpret data*/
if
(
InstanceRefKlass
::
owns_pending_list_lock
((
JavaThread
*
)
THREAD
))
{
return
;
...
...
src/share/vm/memory/metaspace.cpp
浏览文件 @
50b1ef15
...
...
@@ -2254,10 +2254,11 @@ ChunkIndex ChunkManager::list_index(size_t size) {
void
SpaceManager
::
deallocate
(
MetaWord
*
p
,
size_t
word_size
)
{
assert_lock_strong
(
_lock
);
size_t
raw_word_size
=
get_raw_word_size
(
word_size
);
size_t
min_size
=
TreeChunk
<
Metablock
,
FreeList
>::
min_size
();
assert
(
word_size
>=
min_size
,
assert
(
raw_
word_size
>=
min_size
,
err_msg
(
"Should not deallocate dark matter "
SIZE_FORMAT
,
word_size
));
block_freelists
()
->
return_block
(
p
,
word_size
);
block_freelists
()
->
return_block
(
p
,
raw_
word_size
);
}
// Adds a chunk to the list of chunks in use.
...
...
test/runtime/6929067/Test6929067.sh
浏览文件 @
50b1ef15
...
...
@@ -3,6 +3,7 @@
##
## @test Test6929067.sh
## @bug 6929067
## @bug 8021296
## @summary Stack guard pages should be removed when thread is detached
## @compile T.java
## @run shell Test6929067.sh
...
...
@@ -21,6 +22,11 @@ echo "TESTSRC=${TESTSRC}"
OS
=
`
uname
-s
`
case
"
$OS
"
in
Linux
)
gcc_cmd
=
`
which gcc
`
if
[
"x
$gcc_cmd
"
==
"x"
]
;
then
echo
"WARNING: gcc not found. Cannot execute test."
2>&1
exit
0
;
fi
NULL
=
/dev/null
PS
=
":"
FS
=
"/"
...
...
@@ -119,10 +125,10 @@ echo "VM type: ${VMTYPE}"
# Check to ensure you have a /usr/lib/libpthread.so if you don't please look
# for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation.
gcc
-DLINUX
${
COMP_FLAG
}
-o
invoke
\
-I
${
COMPILEJAVA
}
/include
-I
${
COMPILEJAVA
}
/include/linux
\
-L
${
COMPILEJAVA
}
/jre/lib/
${
ARCH
}
/
${
VMTYPE
}
\
-ljvm
-lpthread
invoke.c
$gcc_cmd
-DLINUX
${
COMP_FLAG
}
-o
invoke
\
-I
${
COMPILEJAVA
}
/include
-I
${
COMPILEJAVA
}
/include/linux
\
-L
${
COMPILEJAVA
}
/jre/lib/
${
ARCH
}
/
${
VMTYPE
}
\
-ljvm
-lpthread
invoke.c
./invoke
exit
$?
test/runtime/7107135/Test7107135.sh
浏览文件 @
50b1ef15
...
...
@@ -27,6 +27,7 @@
##
## @test Test7107135.sh
## @bug 7107135
## @bug 8021296
## @summary Stack guard pages lost after loading library with executable stack.
## @run shell Test7107135.sh
##
...
...
@@ -45,6 +46,11 @@ OS=`uname -s`
case
"
$OS
"
in
Linux
)
echo
"Testing on Linux"
gcc_cmd
=
`
which gcc
`
if
[
"x
$gcc_cmd
"
==
"x"
]
;
then
echo
"WARNING: gcc not found. Cannot execute test."
2>&1
exit
0
;
fi
;;
*
)
NULL
=
NUL
...
...
@@ -62,7 +68,10 @@ THIS_DIR=.
cp
${
TESTSRC
}${
FS
}*
.java
${
THIS_DIR
}
${
TESTJAVA
}${
FS
}
bin
${
FS
}
javac
*
.java
gcc
-fPIC
-shared
-c
-o
test.o
-I
${
TESTJAVA
}${
FS
}
include
-I
${
TESTJAVA
}${
FS
}
include
${
FS
}
linux
${
TESTSRC
}${
FS
}
test.c
$gcc_cmd
-fPIC
-shared
-c
-o
test.o
\
-I
${
TESTJAVA
}${
FS
}
include
-I
${
TESTJAVA
}${
FS
}
include
${
FS
}
linux
\
${
TESTSRC
}${
FS
}
test.c
ld
-shared
-z
execstack
-o
libtest-rwx.so test.o
ld
-shared
-z
noexecstack
-o
libtest-rw.so test.o
...
...
test/runtime/jsig/Test8017498.sh
浏览文件 @
50b1ef15
...
...
@@ -27,6 +27,7 @@
## @test Test8017498.sh
## @bug 8017498
## @bug 8020791
## @bug 8021296
## @summary sigaction(sig) results in process hang/timed-out if sig is much greater than SIGRTMAX
## @run shell/timeout=30 Test8017498.sh
##
...
...
@@ -45,6 +46,11 @@ OS=`uname -s`
case
"
$OS
"
in
Linux
)
echo
"Testing on Linux"
gcc_cmd
=
`
which gcc
`
if
[
"x
$gcc_cmd
"
==
"x"
]
;
then
echo
"WARNING: gcc not found. Cannot execute test."
2>&1
exit
0
;
fi
if
[
"
$VM_BITS
"
=
"64"
]
then
MY_LD_PRELOAD
=
${
TESTJAVA
}${
FS
}
jre
${
FS
}
lib
${
FS
}
amd64
${
FS
}
libjsig.so
...
...
@@ -64,15 +70,11 @@ THIS_DIR=.
cp
${
TESTSRC
}${
FS
}*
.java
${
THIS_DIR
}
${
TESTJAVA
}${
FS
}
bin
${
FS
}
javac
*
.java
gcc
-DLINUX
-fPIC
-shared
\
$gcc_cmd
-DLINUX
-fPIC
-shared
\
-o
${
TESTSRC
}${
FS
}
libTestJNI.so
\
-I
${
TESTJAVA
}${
FS
}
include
\
-I
${
TESTJAVA
}${
FS
}
include
${
FS
}
linux
\
${
TESTSRC
}${
FS
}
TestJNI.c
if
[
$?
!=
0
]
then
echo
"WARNING: the gcc command failed."
2>&1
fi
# run the java test in the background
cmd
=
"LD_PRELOAD=
$MY_LD_PRELOAD
\
...
...
test/runtime/jsig/TestJNI.c
浏览文件 @
50b1ef15
...
...
@@ -21,7 +21,6 @@
* questions.
*/
#define _GNU_SOURCE // for the definition of REG_RIP in ucontext.h
#include <stdio.h>
#include <jni.h>
#include <signal.h>
...
...
@@ -32,11 +31,8 @@ extern "C" {
#endif
void
sig_handler
(
int
sig
,
siginfo_t
*
info
,
ucontext_t
*
context
)
{
int
thrNum
;
printf
(
" HANDLER (1) "
);
// Move forward RIP to skip failing instruction
context
->
uc_mcontext
.
gregs
[
REG_RIP
]
+=
6
;
}
JNIEXPORT
void
JNICALL
Java_TestJNI_doSomething
(
JNIEnv
*
env
,
jclass
klass
,
jint
val
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录