Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jdk17u
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
einsteinathome
openjdk
jdk17u
Commits
1f0ec1d3
Commit
1f0ec1d3
authored
Jul 18, 2024
by
Andrew Lu
Browse files
Options
Downloads
Patches
Plain Diff
8317316: G1: Make TestG1PercentageOptions use createTestJvm
Backport-of: d8cd60588aef6abcbfedbe3262d9a094c9bbcb8c
parent
00b764c9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/hotspot/jtreg/gc/arguments/TestG1PercentageOptions.java
+4
-6
4 additions, 6 deletions
test/hotspot/jtreg/gc/arguments/TestG1PercentageOptions.java
with
4 additions
and
6 deletions
test/hotspot/jtreg/gc/arguments/TestG1PercentageOptions.java
+
4
−
6
View file @
1f0ec1d3
/*
/*
* Copyright (c) 2016, 202
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 202
3
, 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
...
@@ -26,7 +26,7 @@ package gc.arguments;
...
@@ -26,7 +26,7 @@ package gc.arguments;
/*
/*
* @test TestG1PercentageOptions
* @test TestG1PercentageOptions
* @bug 8068942
* @bug 8068942
* @requires vm.gc.G1
* @requires vm.gc.G1
& vm.opt.G1ConfidencePercent == null
* @summary Test argument processing of various percentage options
* @summary Test argument processing of various percentage options
* @library /test/lib
* @library /test/lib
* @library /
* @library /
...
@@ -63,8 +63,7 @@ public class TestG1PercentageOptions {
...
@@ -63,8 +63,7 @@ public class TestG1PercentageOptions {
};
};
private
static
void
check
(
String
flag
,
boolean
is_valid
)
throws
Exception
{
private
static
void
check
(
String
flag
,
boolean
is_valid
)
throws
Exception
{
ProcessBuilder
pb
=
GCArguments
.
createJavaProcessBuilder
(
ProcessBuilder
pb
=
GCArguments
.
createTestJvm
(
"-XX:+UseG1GC"
,
flag
,
"-version"
);
"-XX:+UseG1GC"
,
flag
,
"-version"
);
OutputAnalyzer
output
=
new
OutputAnalyzer
(
pb
.
start
());
OutputAnalyzer
output
=
new
OutputAnalyzer
(
pb
.
start
());
if
(
is_valid
)
{
if
(
is_valid
)
{
output
.
shouldHaveExitValue
(
0
);
output
.
shouldHaveExitValue
(
0
);
...
@@ -73,8 +72,7 @@ public class TestG1PercentageOptions {
...
@@ -73,8 +72,7 @@ public class TestG1PercentageOptions {
}
}
}
}
private
static
private
static
void
check
(
String
name
,
String
value
,
boolean
is_valid
)
throws
Exception
{
void
check
(
String
name
,
String
value
,
boolean
is_valid
)
throws
Exception
{
check
(
"-XX:"
+
name
+
"="
+
value
,
is_valid
);
check
(
"-XX:"
+
name
+
"="
+
value
,
is_valid
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment