RFR: 8271118: C2: StressGCM should have higher priority than frequency-based policy
Vladimir Kozlov
kvn at openjdk.java.net
Fri Jul 23 16:24:04 UTC 2021
On Thu, 22 Jul 2021 05:34:40 GMT, Yi Yang <yyang at openjdk.org> wrote:
> I think StressGCM should have higher priority than frequency-based policy, otherwise StressGCM has no chance to choose because the frequency-based policy would choose block first if appropriately.
If you want `StressGCM` flag fully control placement you need to do next:
if (StressGCM && C->randomized_select(cand_cnt)) ||
!StressGCM && ( // all other checks
Your current changes do nothing logically.
-------------
Changes requested by kvn (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/4865
More information about the hotspot-compiler-dev
mailing list