Skip to content

Commit 8200eb4

Browse files
committed
8231626: DeoptimizeRandom should not be a product flag
The DeoptimizeRandom flag is changed to develop since it has no effect in production. Reviewed-by: neliasso, thartmann
1 parent 48f186b commit 8200eb4

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/hotspot/share/runtime/globals.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ const size_t minimumSymbolTableSize = 1024;
385385
notproduct(ccstrlist, DeoptimizeOnlyAt, "", \
386386
"A comma separated list of bcis to deoptimize at") \
387387
\
388-
product(bool, DeoptimizeRandom, false, \
388+
develop(bool, DeoptimizeRandom, false, \
389389
"Deoptimize random frames on random exit from the runtime system")\
390390
\
391391
notproduct(bool, ZombieALot, false, \

test/hotspot/jtreg/compiler/codecache/stress/UnexpectedDeoptimizationAllTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@
3333
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3434
* sun.hotspot.WhiteBox$WhiteBoxPermission
3535
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
36-
* -XX:+WhiteBoxAPI -XX:-DeoptimizeRandom
36+
* -XX:+WhiteBoxAPI
37+
* -XX:+IgnoreUnrecognizedVMOptions -XX:-DeoptimizeRandom
3738
* -XX:CompileCommand=dontinline,compiler.codecache.stress.Helper$TestCase::method
3839
* -XX:-SegmentedCodeCache
3940
* compiler.codecache.stress.UnexpectedDeoptimizationAllTest
4041
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
41-
* -XX:+WhiteBoxAPI -XX:-DeoptimizeRandom
42+
* -XX:+WhiteBoxAPI
43+
* -XX:+IgnoreUnrecognizedVMOptions -XX:-DeoptimizeRandom
4244
* -XX:CompileCommand=dontinline,compiler.codecache.stress.Helper$TestCase::method
4345
* -XX:+SegmentedCodeCache
4446
* compiler.codecache.stress.UnexpectedDeoptimizationAllTest

test/hotspot/jtreg/compiler/codecache/stress/UnexpectedDeoptimizationTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@
3333
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
3434
* sun.hotspot.WhiteBox$WhiteBoxPermission
3535
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
36-
* -XX:+WhiteBoxAPI -XX:-DeoptimizeRandom
36+
* -XX:+WhiteBoxAPI
37+
* -XX:+IgnoreUnrecognizedVMOptions -XX:-DeoptimizeRandom
3738
* -XX:CompileCommand=dontinline,compiler.codecache.stress.Helper$TestCase::method
3839
* -XX:-SegmentedCodeCache
3940
* compiler.codecache.stress.UnexpectedDeoptimizationTest
4041
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
41-
* -XX:+WhiteBoxAPI -XX:-DeoptimizeRandom
42+
* -XX:+WhiteBoxAPI
43+
* -XX:+IgnoreUnrecognizedVMOptions -XX:-DeoptimizeRandom
4244
* -XX:CompileCommand=dontinline,compiler.codecache.stress.Helper$TestCase::method
4345
* -XX:+SegmentedCodeCache
4446
* compiler.codecache.stress.UnexpectedDeoptimizationTest

0 commit comments

Comments
 (0)