Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
051c5843
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
051c5843
编写于
11月 18, 2009
作者:
O
ohair
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
3700f3b7
3340aad2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
25 addition
and
11 deletion
+25
-11
src/share/classes/com/sun/tools/hat/internal/model/JavaStatic.java
.../classes/com/sun/tools/hat/internal/model/JavaStatic.java
+4
-1
test/ProblemList.txt
test/ProblemList.txt
+0
-6
test/sun/tools/jhat/HatRun.java
test/sun/tools/jhat/HatRun.java
+3
-1
test/sun/tools/native2ascii/NativeErrors.java
test/sun/tools/native2ascii/NativeErrors.java
+18
-2
test/sun/tools/native2ascii/test2
test/sun/tools/native2ascii/test2
+0
-1
未找到文件。
src/share/classes/com/sun/tools/hat/internal/model/JavaStatic.java
浏览文件 @
051c5843
...
...
@@ -57,7 +57,10 @@ public class JavaStatic {
id
=
((
JavaObjectRef
)
value
).
getId
();
}
value
=
value
.
dereference
(
snapshot
,
field
);
if
(
value
.
isHeapAllocated
())
{
if
(
value
.
isHeapAllocated
()
&&
clazz
.
getLoader
()
==
snapshot
.
getNullThing
())
{
// static fields are only roots if they are in classes
// loaded by the root classloader.
JavaHeapObject
ho
=
(
JavaHeapObject
)
value
;
String
s
=
"Static reference from "
+
clazz
.
getName
()
+
"."
+
field
.
getName
();
...
...
test/ProblemList.txt
浏览文件 @
051c5843
...
...
@@ -1117,9 +1117,6 @@ sun/jvmstat/monitor/MonitoredVm/CR6672135.java generic-all
# Unexpected Monitor Exception, solaris sparc -client
sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.sh generic-all
# Probably should be samevm, but seem to cause errors even in othervm at times
sun/tools/jhat/HatHeapDump1Test.java generic-all
# Problems on windows, jmap.exe hangs? (these run jmap)
sun/tools/jmap/Basic.sh windows-all
...
...
@@ -1129,9 +1126,6 @@ sun/tools/jstatd/jstatdDefaults.sh solaris-all
# Solaris sparcv9, jps output does not match, x64 different
sun/tools/jstatd/jstatdExternalRegistry.sh solaris-all
# Probably should be samevm, but seem to cause errors even in othervm at times
sun/tools/native2ascii/NativeErrors.java generic-all
# Solaris 10 sparc 32bit -client, java.lang.AssertionError: Some tests failed
tools/jar/JarEntryTime.java generic-all
...
...
test/sun/tools/jhat/HatRun.java
浏览文件 @
051c5843
...
...
@@ -186,11 +186,13 @@ public class HatRun {
*/
int
nvm_options
=
0
;
if
(
vm_options
!=
null
)
nvm_options
=
vm_options
.
length
;
String
cmd
[]
=
new
String
[
1
+
(
d64
?
1
:
0
)
+
5
+
nvm_options
];
String
cmd
[]
=
new
String
[
1
+
(
d64
?
1
:
0
)
+
7
+
nvm_options
];
int
i
,
j
;
i
=
0
;
cmd
[
i
++]
=
java
;
cmd
[
i
++]
=
"-cp"
;
cmd
[
i
++]
=
cdir
;
cmd
[
i
++]
=
"-Dtest.classes="
+
cdir
;
if
(
d64
)
{
cmd
[
i
++]
=
"-d64"
;
...
...
test/sun/tools/native2ascii/NativeErrors.java
浏览文件 @
051c5843
...
...
@@ -59,15 +59,28 @@ public class NativeErrors {
in
=
new
BufferedReader
(
new
InputStreamReader
(
p
.
getInputStream
()));
checkResult
(
in
,
"err.bad.arg"
);
command
=
getComString
(
"test123"
);
File
f0
=
new
File
(
System
.
getProperty
(
"test.src"
,
"."
),
"test123"
);
String
path0
=
f0
.
getPath
();
if
(
f0
.
exists
()
)
{
throw
new
Error
(
"Input file should not exist: "
+
path0
);
}
command
=
getComString
(
path0
);
p
=
Runtime
.
getRuntime
().
exec
(
command
);
in
=
new
BufferedReader
(
new
InputStreamReader
(
p
.
getInputStream
()));
checkResult
(
in
,
"err.cannot.read"
);
File
f1
=
new
File
(
System
.
getProperty
(
"test.src"
,
"."
),
"test1"
);
File
f2
=
new
File
(
System
.
getProperty
(
"test.src"
,
"."
),
"test2
"
);
File
f2
=
File
.
createTempFile
(
"test2"
,
".tmp
"
);
String
path1
=
f1
.
getPath
();
String
path2
=
f2
.
getPath
();
if
(
!
f1
.
exists
()
)
{
throw
new
Error
(
"Missing input file: "
+
path1
);
}
if
(
!
f2
.
setWritable
(
false
)
)
{
throw
new
Error
(
"Output file cannot be made read only: "
+
path2
);
}
f2
.
deleteOnExit
();
command
=
getComString
(
path1
,
path2
);
p
=
Runtime
.
getRuntime
().
exec
(
command
);
...
...
@@ -80,7 +93,9 @@ public class NativeErrors {
throws
Exception
{
String
errorReceived
;
errorReceived
=
in
.
readLine
();
assert
errorReceived
!=
null
:
"First readline cannot be null"
;
errorExpected
=
rsrc
.
getString
(
errorExpected
);
assert
errorExpected
!=
null
:
"Expected message cannot be null"
;
StringBuffer
error
=
new
StringBuffer
(
errorExpected
);
int
start
=
errorExpected
.
indexOf
(
"{0}"
);
if
(
start
>=
0
)
{
...
...
@@ -128,6 +143,7 @@ public class NativeErrors {
f
=
new
File
(
path
);
if
(!
f
.
exists
())
throw
new
RuntimeException
(
"Cannot find native2ascii at "
+
path
);
System
.
out
.
println
(
"Using native2ascii at "
+
path
);
}
return
path
;
}
...
...
test/sun/tools/native2ascii/test2
已删除
100644 → 0
浏览文件 @
3700f3b7
This file exists as a non-writable placeholder for NativeErrors.java
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录