Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
84626e9a
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看板
提交
84626e9a
编写于
9月 18, 2013
作者:
T
tschatzl
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
7eb73d98
9576dfb6
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
13 addition
and
13 deletion
+13
-13
src/os_cpu/solaris_sparc/vm/globals_solaris_sparc.hpp
src/os_cpu/solaris_sparc/vm/globals_solaris_sparc.hpp
+3
-1
test/gc/arguments/TestUseCompressedOopsErgoTools.java
test/gc/arguments/TestUseCompressedOopsErgoTools.java
+10
-12
未找到文件。
src/os_cpu/solaris_sparc/vm/globals_solaris_sparc.hpp
浏览文件 @
84626e9a
...
...
@@ -35,7 +35,9 @@ define_pd_global(intx, CompilerThreadStackSize, 0);
// Used on 64 bit platforms for UseCompressedOops base address
#ifdef _LP64
define_pd_global
(
uintx
,
HeapBaseMinAddress
,
CONST64
(
4
)
*
G
);
// use 6G as default base address because by default the OS maps the application
// to 4G on Solaris-Sparc. This leaves at least 2G for the native heap.
define_pd_global
(
uintx
,
HeapBaseMinAddress
,
CONST64
(
6
)
*
G
);
#else
define_pd_global
(
uintx
,
HeapBaseMinAddress
,
2
*
G
);
#endif
...
...
test/gc/arguments/TestUseCompressedOopsErgoTools.java
浏览文件 @
84626e9a
...
...
@@ -42,10 +42,10 @@ class DetermineMaxHeapForCompressedOops {
class
TestUseCompressedOopsErgoTools
{
private
static
long
getC
lassMetas
paceSize
()
{
private
static
long
getC
ompressedClassS
paceSize
()
{
HotSpotDiagnosticMXBean
diagnostic
=
ManagementFactoryHelper
.
getDiagnosticMXBean
();
VMOption
option
=
diagnostic
.
getVMOption
(
"C
lassMetas
paceSize"
);
VMOption
option
=
diagnostic
.
getVMOption
(
"C
ompressedClassS
paceSize"
);
return
Long
.
parseLong
(
option
.
getValue
());
}
...
...
@@ -132,13 +132,13 @@ class TestUseCompressedOopsErgoTools {
checkUseCompressedOops
(
join
(
gcflags
,
"-XX:ObjectAlignmentInBytes=16"
),
maxHeapForCompressedOops
-
1
,
true
);
checkUseCompressedOops
(
join
(
gcflags
,
"-XX:ObjectAlignmentInBytes=16"
),
maxHeapForCompressedOops
+
1
,
false
);
// use a different C
lassMetas
paceSize
String
c
lassMetaspaceSizeArg
=
"-XX:ClassMetaspaceSize="
+
2
*
getClassMetas
paceSize
();
maxHeapForCompressedOops
=
getMaxHeapForCompressedOops
(
join
(
gcflags
,
c
lassMetas
paceSizeArg
));
// use a different C
ompressedClassS
paceSize
String
c
ompressedClassSpaceSizeArg
=
"-XX:CompressedClassSpaceSize="
+
2
*
getCompressedClassS
paceSize
();
maxHeapForCompressedOops
=
getMaxHeapForCompressedOops
(
join
(
gcflags
,
c
ompressedClassS
paceSizeArg
));
checkUseCompressedOops
(
join
(
gcflags
,
c
lassMetas
paceSizeArg
),
maxHeapForCompressedOops
,
true
);
checkUseCompressedOops
(
join
(
gcflags
,
c
lassMetas
paceSizeArg
),
maxHeapForCompressedOops
-
1
,
true
);
checkUseCompressedOops
(
join
(
gcflags
,
c
lassMetas
paceSizeArg
),
maxHeapForCompressedOops
+
1
,
false
);
checkUseCompressedOops
(
join
(
gcflags
,
c
ompressedClassS
paceSizeArg
),
maxHeapForCompressedOops
,
true
);
checkUseCompressedOops
(
join
(
gcflags
,
c
ompressedClassS
paceSizeArg
),
maxHeapForCompressedOops
-
1
,
true
);
checkUseCompressedOops
(
join
(
gcflags
,
c
ompressedClassS
paceSizeArg
),
maxHeapForCompressedOops
+
1
,
false
);
}
private
static
void
checkUseCompressedOops
(
String
[]
args
,
long
heapsize
,
boolean
expectUseCompressedOops
)
throws
Exception
{
...
...
@@ -152,9 +152,7 @@ class TestUseCompressedOopsErgoTools {
boolean
actualUseCompressedOops
=
getFlagBoolValue
(
" UseCompressedOops"
,
output
);
if
(
expectUseCompressedOops
!=
actualUseCompressedOops
)
{
throw
new
RuntimeException
(
"Expected use of compressed oops: "
+
expectUseCompressedOops
+
" but was: "
+
actualUseCompressedOops
);
}
Asserts
.
assertEQ
(
expectUseCompressedOops
,
actualUseCompressedOops
);
}
private
static
boolean
getFlagBoolValue
(
String
flag
,
String
where
)
{
...
...
@@ -162,7 +160,7 @@ class TestUseCompressedOopsErgoTools {
if
(!
m
.
find
())
{
throw
new
RuntimeException
(
"Could not find value for flag "
+
flag
+
" in output string"
);
}
String
match
=
m
.
group
(
1
).
equals
(
"true"
);
return
m
.
group
(
1
).
equals
(
"true"
);
}
private
static
String
expect
(
String
[]
flags
,
boolean
hasWarning
,
boolean
hasError
,
int
errorcode
)
throws
Exception
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录