Integrated: 8278793: Interpreter(x64) intrinsify Thread.currentThread()
Robbin Ehn
rehn at openjdk.java.net
Tue Dec 21 16:17:24 UTC 2021
On Tue, 14 Dec 2021 15:08:54 GMT, Robbin Ehn <rehn at openjdk.org> wrote:
> Please consider this enhancement.
> This makes Thread.currentThread() eight times faster on my box when running in interpreter.
>
> Passes t1-t4
>
> As suggested I added a related fix to Shenandoah.
> Shenandoah LB was using InterpreterMacroAssembler version of call_VM_leaf_base (it's virtual).
> The interpreter version adds a check on last_sp, since the intrinsic is not setting up a new frame, this check is faulty.
> Other GC seems to always use the base version, so let's use the base version in Shenandoah also.
> No issues found when locally running gc/shenandoah.
This pull request has now been integrated.
Changeset: f7309060
Author: Robbin Ehn <rehn at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/f7309060ded0edb1e614663572f876d83b77c28e
Stats: 33 lines in 6 files changed: 29 ins; 0 del; 4 mod
8278793: Interpreter(x64) intrinsify Thread.currentThread()
Reviewed-by: rkennke, dcubed, dholmes
-------------
PR: https://git.openjdk.java.net/jdk/pull/6833
More information about the hotspot-dev
mailing list