Integrated: JDK-8294947: Use 64bit atomics in patch_verified_entry on x86_64
Dmitry Samersoff
dsamersoff at openjdk.org
Tue Nov 15 10:47:11 UTC 2022
On Wed, 9 Nov 2022 12:41:59 GMT, Dmitry Samersoff <dsamersoff at openjdk.org> wrote:
> In the void NativeJump::patch_verified_entry() we atomically patch first 4 bytes, then atomically patch 5th byte, then atomically patch first 4 bytes again. But from CMC (cross-modified code) point of view it's better to patch atomically 8 bytes at once.
>
> The patch was tested with hotspot jtreg tests in bare-metal and virtualized environments.
This pull request has now been integrated.
Changeset: d0fae43e
Author: Dmitry Samersoff <dsamersoff at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/d0fae43e89a73e9d73b074fa12276c43ba629278
Stats: 22 lines in 1 file changed: 19 ins; 3 del; 0 mod
8294947: Use 64bit atomics in patch_verified_entry on x86_64
Reviewed-by: kvn
-------------
PR: https://git.openjdk.org/jdk/pull/11059
More information about the hotspot-compiler-dev
mailing list