Integrated: 8357434: x86: Simplify Interpreter::profile_taken_branch

Aleksey Shipilev shade at openjdk.org
Wed Jun 4 06:05:27 UTC 2025


On Wed, 21 May 2025 08:23:14 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Noticed that `Interpreter::profile_taken_branch` has the same `sbbptr` pattern we have eliminated with [JDK-8356946](https://bugs.openjdk.org/browse/JDK-8356946). The same logic applies here: the counter is 64-bit, never practically overflows, and no other code cares about it.
> 
> Also tidied up some comments around it.
> 
> Additional testing;
>  - [x] Linux x86_64 server fastdebug, `tier1 tier2`
>  - [x] Linux x86_64 server fastdebug, `all`

This pull request has now been integrated.

Changeset: b918dc84
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b918dc84ec8364321a5a6d9f6835edcb1d9ad62f
Stats:     17 lines in 3 files changed: 0 ins; 12 del; 5 mod

8357434: x86: Simplify Interpreter::profile_taken_branch

Reviewed-by: kvn, vlivanov

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

PR: https://git.openjdk.org/jdk/pull/25343


More information about the hotspot-compiler-dev mailing list