Post by Aleksey Shipilev
There's no support for SA heap walking when using ZGC. Hence the tests for this should not execute
when ZGC is enabled.
Stylistic: why not "!vm.gc.Z"?
That has a slightly different meaning. vm.gc.Z will be true if
-XX:+UseZGC is an "acceptable" option. For example, ZGC is supported by
the build and no other GC was explicitly chosen. vm.gc will be "Z" if
the test was explicitly executed with -XX:+UseZGC.
So if we used !vm.gc.Z on a build with ZGC support, then the test would
never execute, unless you also explicitly specified what GC to use.
Yeah, I it's messy... I hope I got the details right there... ;)