Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
89870c6e
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看板
提交
89870c6e
编写于
5月 15, 2013
作者:
I
iignatyev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8014068: TEST_BUG: compiler/ciReplay/TestSA.sh fails on Windows: core wasn't generated
Reviewed-by: kvn
上级
9cd1c6ce
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
17 deletion
+16
-17
test/compiler/ciReplay/TestSA.sh
test/compiler/ciReplay/TestSA.sh
+4
-3
test/compiler/ciReplay/common.sh
test/compiler/ciReplay/common.sh
+12
-14
未找到文件。
test/compiler/ciReplay/TestSA.sh
浏览文件 @
89870c6e
...
...
@@ -77,10 +77,11 @@ then
"replay data wasn't generated by SA"
fi
diff
--brief
${
replay_data
}
replay_vm.txt
if
[
$?
-ne
0
]
diff
${
replay_data
}
replay_vm.txt
>
replay.diff 2>&1
if
[
-s
replay.diff
]
then
echo
WARNING: replay.txt from SA
!=
replay.txt from VM
echo
WARNING: replay.txt from SA
!=
replay.txt from VM:
cat
replay.diff
fi
common_tests 10
...
...
test/compiler/ciReplay/common.sh
浏览文件 @
89870c6e
...
...
@@ -182,8 +182,11 @@ echo "is_tiered=$is_tiered"
# crash vm in compiler thread with generation replay data and 'small' dump-file
# $@ - additional vm opts
generate_replay
()
{
# enable core dump
ulimit
-c
unlimited
if
[
$VM_OS
!=
"windows"
]
then
# enable core dump
ulimit
-c
unlimited
fi
cmd
=
"
${
JAVA
}
${
TESTVMOPTS
}
$@
\
-Xms8m
\
...
...
@@ -206,29 +209,24 @@ generate_replay() {
echo
GENERATION OF REPLAY.TXT:
echo
$cmd
${
cmd
}
2>&1
>
crash.out
${
cmd
}
>
crash.out 2>&1
core_locations
=
`
grep
-i
core crash.out |
grep
"location:"
|
\
sed
-e
's/.*location: //'
`
rm
crash.out
# processing core locations for *nix
if
[
$OS
!=
"windows"
]
if
[
$
VM_
OS
!=
"windows"
]
then
# remove 'or' between '/core.<pid>' and 'core'
core_locations
=
`
echo
$core_locations
|
\
sed
-e
's/\([^ ]*\) or \([^ ]*\)/\1 \2/'
`
# add <core_path>/core.<pid> core.<pid>
core
=
`
echo
$core_locations
|
awk
'{print $1}'
`
dir
=
`
dirname
$core
`
core
=
`
basename
$core
`
if
[
-n
${
core
}
]
then
core_locations
=
"
$core_locations
$dir
${
FS
}
$core
"
fi
core
=
`
echo
$core_locations
|
awk
'{print $2}'
`
if
[
-n
${
core
}
]
core_with_dir
=
`
echo
$core_locations
|
awk
'{print $1}'
`
dir
=
`
dirname
$core_with_dir
`
core_with_pid
=
`
echo
$core_locations
|
awk
'{print $2}'
`
if
[
-n
${
core_with_pid
}
]
then
core_locations
=
"
$core_locations
$dir
${
FS
}
$core
"
core_locations
=
"
$core_locations
$dir
${
FS
}
$core
_with_pid
$core_with_pid
"
fi
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录