Integrated: 8357258: x86: Improve receiver type profiling reliability

Aleksey Shipilev shade at openjdk.org
Mon Jan 5 09:40:24 UTC 2026


On Mon, 19 May 2025 14:59:36 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> See the bug for discussion what issues current machinery has. 
> 
> This PR executes the plan outlined in the bug:
>  1. Common the receiver type profiling code in interpreter and C1
>  2. Rewrite receiver type profiling code to only do atomic receiver slot installations
>  3. Trim `C1OptimizeVirtualCallProfiling` to only claim slots when receiver is installed 
> 
> This PR does _not_ do atomic counter updates themselves, as it may have much wider performance implications, including regressions. This PR should be at least performance neutral.
> 
> Additional testing:
>   - [x] Linux x86_64 server fastdebug, `compiler/`
>   - [x] Linux x86_64 server fastdebug, `all`

This pull request has now been integrated.

Changeset: e676c9de
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e676c9de3da3b820081cde1b11c0df3129787130
Stats:     418 lines in 8 files changed: 202 ins; 197 del; 19 mod

8357258: x86: Improve receiver type profiling reliability

Reviewed-by: kvn, vlivanov

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

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


More information about the hotspot-compiler-dev mailing list