Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
09fd6aae
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,发现更多精彩内容 >>
提交
09fd6aae
编写于
10月 15, 2012
作者:
K
kevinw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7195151: Multiplatform tescase for 6929067
Reviewed-by: kamg, kvn
上级
279c6488
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
78 addition
and
11 deletion
+78
-11
test/runtime/6929067/Test6929067.sh
test/runtime/6929067/Test6929067.sh
+78
-11
未找到文件。
test/runtime/6929067/Test6929067.sh
浏览文件 @
09fd6aae
...
...
@@ -4,6 +4,7 @@
## @test Test6929067.sh
## @bug 6929067
## @summary Stack guard pages should be removed when thread is detached
## @compile T.java
## @run shell Test6929067.sh
##
...
...
@@ -33,31 +34,97 @@ case "$OS" in
;;
esac
# Choose arch: i386 or amd64 (test is Linux-specific)
${
TESTJAVA
}${
FS
}
bin
${
FS
}
java
${
TESTVMOPTS
}
-Xinternalversion
>
vm_version.out 2>&1
# Bitness:
# Cannot simply look at TESTVMOPTS as -d64 is not
# passed if there is only a 64-bit JVM available.
${
TESTJAVA
}
/bin/java
${
TESTVMOPTS
}
-version
2>1 |
grep
"64-Bit"
>
/dev/null
grep
"64-Bit"
vm_version.out
>
${
NULL
}
if
[
"
$?
"
=
"0"
]
then
ARCH
=
amd64
COMP_FLAG
=
"-m64"
else
COMP_FLAG
=
"-m32"
fi
# Architecture:
# Translate uname output to JVM directory name, but permit testing
# 32-bit x86 on an x64 platform.
ARCH
=
`
uname
-m
`
case
"
$ARCH
"
in
x86_64
)
if
[
"
$COMP_FLAG
"
=
"-m32"
]
;
then
ARCH
=
i386
else
ARCH
=
amd64
fi
;;
ppc64
)
if
[
"
$COMP_FLAG
"
=
"-m32"
]
;
then
ARCH
=
ppc
else
ARCH
=
ppc64
fi
;;
sparc64
)
if
[
"
$COMP_FLAG
"
=
"-m32"
]
;
then
ARCH
=
sparc
else
ARCH
=
sparc64
fi
;;
arm
*
)
# 32-bit ARM machine: compiler may not recognise -m32
COMP_FLAG
=
""
ARCH
=
arm
;;
aarch64
)
# 64-bit arm machine, could be testing 32 or 64-bit:
if
[
"
$COMP_FLAG
"
=
"-m32"
]
;
then
ARCH
=
arm
else
ARCH
=
aarch64
fi
;;
i586
)
ARCH
=
i386
;;
i686
)
ARCH
=
i386
;;
# Assuming other ARCH values need no translation
esac
# VM type: need to know server or client
VMTYPE
=
client
grep
Server vm_version.out
>
${
NULL
}
if
[
"
$?
"
=
"0"
]
then
VMTYPE
=
server
fi
LD_LIBRARY_PATH
=
.:
${
TESTJAVA
}
/jre/lib/
${
ARCH
}
/client:/usr/openwin/lib:/usr/dt/lib:/usr/lib:
$LD_LIBRARY_PATH
export
LD_LIBRARY_PATH
THIS_DIR
=
`
pwd
`
LD_LIBRARY_PATH
=
.:
${
TESTJAVA
}
/jre/lib/
${
ARCH
}
/
${
VMTYPE
}
:/usr/lib:
$LD_LIBRARY_PATH
export
LD_LIBRARY_PATH
cp
${
TESTSRC
}${
FS
}
invoke.c
${
THIS_DIR
}
cp
${
TESTSRC
}${
FS
}
T.java
${
THIS_DIR
}
cp
${
TESTSRC
}${
FS
}
invoke.c
.
# Copy the result of our @compile action:
cp
${
TESTCLASSES
}${
FS
}
T.class
.
${
TESTJAVA
}${
FS
}
bin
${
FS
}
java
${
TESTVMOPTS
}
-fullversion
${
TESTJAVA
}${
FS
}
bin
${
FS
}
javac T.java
echo
"Architecture:
${
ARCH
}
"
echo
"Compilation flag:
${
COMP_FLAG
}
"
echo
"VM type:
${
VMTYPE
}
"
gcc
-DLINUX
${
COMP_FLAG
}
-o
invoke
\
-I
${
TESTJAVA
}
/include
-I
${
TESTJAVA
}
/include/linux
\
-L
${
TESTJAVA
}
/jre/lib/
${
ARCH
}
/
${
VMTYPE
}
\
-ljvm
-lpthread
invoke.c
gcc
-o
invoke
-I
${
TESTJAVA
}
/include
-I
${
TESTJAVA
}
/include/linux invoke.c
${
TESTJAVA
}
/jre/lib/
${
ARCH
}
/client/libjvm.so
./invoke
exit
$?
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录