RFR: 8262049: [TESTBUG] Fix TestReferenceRefersTo.java for Shenandoah IU mode [v3]
Kim Barrett
kbarrett at openjdk.java.net
Tue Feb 23 08:27:41 UTC 2021
On Mon, 22 Feb 2021 16:22:36 GMT, Roman Kennke <rkennke at openjdk.org> wrote:
>> test/hotspot/jtreg/gc/TestReferenceRefersToDuringConcMark.java line 28:
>>
>>> 26: /* @test
>>> 27: * @requires vm.gc != "Epsilon"
>>> 28: * @requires vm.gc != "Shenandoah"
>>
>> I think this test works for Shenandoah so long as it's not in IU mode. Is that possible to exclude with another `@requires` constraint?
>
> How would I do that? IU mode can only be distinguished by VM flag.
I've not tried it, but this might work.
`@requires vm.gc != "Shenandoah" | vm.opt.ShenandoahGCMode != "iu"`
-------------
PR: https://git.openjdk.java.net/jdk/pull/2653
More information about the hotspot-gc-dev
mailing list