RFR: 8315559: Delay TempSymbol cleanup to avoid symbol table churn [v6]
Aleksey Shipilev
shade at openjdk.org
Thu Nov 9 18:23:09 UTC 2023
On Thu, 9 Nov 2023 18:08:30 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> I like it!
>
> A common thing is to do the mod conversion right here, without relying on optimizing compilers:
> `% CLEANUP_DELAY_MAX_ENTRIES` -> `& (CLEANUP_DELAY_MAX_ENTRIES - 1)`.
If you do `constexpr` for the constant, then you can also do `static_assert(is_power_of_2(CLEANUP_DELAY_MAX_ENTRIES))`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16398#discussion_r1388409029
More information about the hotspot-dev
mailing list