RFR: 8331341: secondary_super_cache does not scale well: C1 and interpreter [v23]

Andrew Haley aph at openjdk.org
Thu Oct 10 11:09:15 UTC 2024


On Thu, 10 Oct 2024 11:00:11 GMT, Andrew Haley <aph at openjdk.org> wrote:

>> Or even better, can't we rotate right and then TBZ on bit 0?
>
>> Or even better, can't we rotate right and then TBZ on bit 0?
> 
> No, because we need to count the bits in the shifted value.

> If we used temp2 to store (Klass::SECONDARY_SUPERS_TABLE_SIZE - 1 - slot), then I think we could avoid the XOR at line 1863.

Yes, but temp2 is in use later on. XORing twice avoids the need for more complex register allocation.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/19989#discussion_r1795219434


More information about the hotspot-dev mailing list