Skip to content

Commit

Permalink
8320888: Shenandoah: Enable ShenandoahVerifyOptoBarriers in debug builds
Browse files Browse the repository at this point in the history
Backport-of: c86431767e6802317dc2be6221a5d0990b976ddc
  • Loading branch information
shipilev committed Jan 16, 2024
1 parent b114a5e commit 77c743e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 39 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
product(bool, ShenandoahStackWatermarkBarrier, true, DIAGNOSTIC, \
"Turn on/off stack watermark barriers in Shenandoah") \
\
develop(bool, ShenandoahVerifyOptoBarriers, false, \
develop(bool, ShenandoahVerifyOptoBarriers, trueInDebug, \
"Verify no missing barriers in C2.") \
\
product(bool, ShenandoahLoopOptsAfterExpansion, true, DIAGNOSTIC, \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
* -XX:+UnlockDiagnosticVMOptions
* -XX:-CreateCoredumpOnCrash
* -XX:+ShenandoahVerify
* -XX:+IgnoreUnrecognizedVMOptions -XX:+ShenandoahVerifyOptoBarriers
* -XX:CompileCommand=dontinline,*::mergeImpl*
* compiler.gcbarriers.UnsafeIntrinsicsTest
*/
Expand Down
35 changes: 0 additions & 35 deletions test/hotspot/jtreg/gc/shenandoah/TestVerifyJCStress.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,10 @@
* TestVerifyJCStress
*/

/*
* @test id=default-debug
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
* @requires vm.gc.Shenandoah
* @requires vm.debug
* @modules java.base/jdk.internal.misc
* java.management
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
* -XX:+ShenandoahVerify -XX:+ShenandoahVerifyOptoBarriers
* TestVerifyJCStress
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
* -XX:+ShenandoahVerify -XX:+ShenandoahVerifyOptoBarriers
* TestVerifyJCStress
*/

/*
* @test id=default
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
* @requires vm.gc.Shenandoah
* @requires !vm.debug
* @modules java.base/jdk.internal.misc
* java.management
*
Expand All @@ -78,25 +58,10 @@
* TestVerifyJCStress
*/

/*
* @test id=iu-debug
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
* @requires vm.gc.Shenandoah
* @requires vm.debug
* @modules java.base/jdk.internal.misc
* java.management
*
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
* -XX:+ShenandoahVerify -XX:+ShenandoahVerifyOptoBarriers
* TestVerifyJCStress
*/

/*
* @test id=iu
* @summary Tests that we pass at least one jcstress-like test with all verification turned on
* @requires vm.gc.Shenandoah
* @requires !vm.debug
* @modules java.base/jdk.internal.misc
* java.management
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@
* @summary Test selective barrier enabling works, by aggressively compiling HelloWorld with combinations
* of barrier flags
* @requires vm.gc.Shenandoah
* @requires vm.debug
* @library /test/lib
* @run driver TestSelectiveBarrierFlags -Xbatch -XX:CompileThreshold=100 -XX:-TieredCompilation -XX:+ShenandoahVerifyOptoBarriers
* @run driver TestSelectiveBarrierFlags -Xbatch -XX:CompileThreshold=100 -XX:-TieredCompilation
*/

import java.util.*;
Expand Down

1 comment on commit 77c743e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.