Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
608f15c5
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看板
提交
608f15c5
编写于
11月 25, 2014
作者:
E
eistepan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8065749: [TESTBUG]: gc/arguments/TestG1HeapRegionSize.java fails at nightly
Reviewed-by: brutisso
上级
7779770d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
6 deletion
+11
-6
test/gc/arguments/TestG1HeapRegionSize.java
test/gc/arguments/TestG1HeapRegionSize.java
+11
-6
未找到文件。
test/gc/arguments/TestG1HeapRegionSize.java
浏览文件 @
608f15c5
/*
/*
* Copyright (c) 2013, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 201
8
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -25,12 +25,11 @@
...
@@ -25,12 +25,11 @@
* @test TestG1HeapRegionSize
* @test TestG1HeapRegionSize
* @key gc
* @key gc
* @bug 8021879
* @bug 8021879
* @requires vm.gc=="G1" | vm.gc=="null"
* @summary Verify that the flag G1HeapRegionSize is updated properly
* @summary Verify that the flag G1HeapRegionSize is updated properly
* @run main/othervm -Xmx64m TestG1HeapRegionSize 1048576
* @run main/othervm -Xmx64m TestG1HeapRegionSize 1048576
* @run main/othervm -XX:G1HeapRegionSize=2m -Xmx64m
-XX:+UseG1GC
TestG1HeapRegionSize 2097152
* @run main/othervm -XX:G1HeapRegionSize=2m -Xmx64m TestG1HeapRegionSize 2097152
* @run main/othervm -XX:G1HeapRegionSize=3m -Xmx64m
-XX:+UseG1GC
TestG1HeapRegionSize 2097152
* @run main/othervm -XX:G1HeapRegionSize=3m -Xmx64m TestG1HeapRegionSize 2097152
* @run main/othervm -XX:G1HeapRegionSize=64m -Xmx256m
-XX:+UseG1GC
TestG1HeapRegionSize 33554432
* @run main/othervm -XX:G1HeapRegionSize=64m -Xmx256m TestG1HeapRegionSize 33554432
*/
*/
import
sun.management.ManagementFactoryHelper
;
import
sun.management.ManagementFactoryHelper
;
...
@@ -43,7 +42,13 @@ public class TestG1HeapRegionSize {
...
@@ -43,7 +42,13 @@ public class TestG1HeapRegionSize {
HotSpotDiagnosticMXBean
diagnostic
=
ManagementFactoryHelper
.
getDiagnosticMXBean
();
HotSpotDiagnosticMXBean
diagnostic
=
ManagementFactoryHelper
.
getDiagnosticMXBean
();
String
expectedValue
=
getExpectedValue
(
args
);
String
expectedValue
=
getExpectedValue
(
args
);
VMOption
option
=
diagnostic
.
getVMOption
(
"G1HeapRegionSize"
);
VMOption
option
=
diagnostic
.
getVMOption
(
"UseG1GC"
);
if
(
option
.
getValue
().
equals
(
"false"
))
{
System
.
out
.
println
(
"Skipping this test. It is only a G1 test."
);
return
;
}
option
=
diagnostic
.
getVMOption
(
"G1HeapRegionSize"
);
if
(!
expectedValue
.
equals
(
option
.
getValue
()))
{
if
(!
expectedValue
.
equals
(
option
.
getValue
()))
{
throw
new
RuntimeException
(
"Wrong value for G1HeapRegionSize. Expected "
+
expectedValue
+
" but got "
+
option
.
getValue
());
throw
new
RuntimeException
(
"Wrong value for G1HeapRegionSize. Expected "
+
expectedValue
+
" but got "
+
option
.
getValue
());
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录