Integrated: 8322630: Remove ICStubs and related safepoints
Erik Österlund
eosterlund at openjdk.org
Wed Feb 14 11:48:12 UTC 2024
On Fri, 19 Jan 2024 06:25:20 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:
> ICStubs solve an atomicity problem when setting both the destination and data of an inline cache. Unfortunately, it also leads to occasional safepoint carpets when multiple threads need to ICRefill the stubs at the same time, and spurious GuaranteedSafepointInterval "Cleanup" safepoints every second. This patch changes inline caches to not change the data part at all during the nmethod life cycle, hence removing the need for ICStubs.
>
> The new scheme is less stateful. Instead of adding and removing callsite metadata back and forth when transitioning inline cache states, it installs all state any shape of call will ever need at resolution time in a struct that I call CompiledICData. This reduces inline cache state changes to simply changing the destination of the call, and it doesn't really matter what state transitions to what other state.
>
> With this patch, we get rid of ICStub and ICBuffer classes and the related ICRefill and almost all Cleanup safepoints in practice. It also makes the inline cache code much simpler.
>
> I have tested the changes from tier1-7, and run through full aurora performance tests.
This pull request has now been integrated.
Changeset: 84965ea1
Author: Erik Österlund <eosterlund at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/84965ea1a86703818410f11c8d284e4b824817dd
Stats: 4253 lines in 142 files changed: 501 ins; 3226 del; 526 mod
8322630: Remove ICStubs and related safepoints
Co-authored-by: Martin Doerr <mdoerr at openjdk.org>
Co-authored-by: Aleksey Shipilev <shade at openjdk.org>
Co-authored-by: Amit Kumar <amitkumar at openjdk.org>
Co-authored-by: Robbin Ehn <rehn at openjdk.org>
Co-authored-by: Aleksei Voitylov <avoitylov at openjdk.org>
Reviewed-by: tschatzl, aboldtch, dlong
-------------
PR: https://git.openjdk.org/jdk/pull/17495
More information about the shenandoah-dev
mailing list