RFR: 8310239: Add missing cross modifying fence in nmethod entry barriers [v2]
Dean Long
dlong at openjdk.org
Tue Oct 10 04:34:59 UTC 2023
On Mon, 28 Aug 2023 11:16:10 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:
> The assumption is that if the nmethod immediate oops are patched first, and the guard value (immediate of the cmp instruction) is patched after, then if a thread sees the new cmp instruction, it will also see the new oop immediates. And that is indeed what the "asynchronous" cross modifying code description ensures will work in the AMD APM. So that all checks out.
I guess this is a separate issue from this patch, but where does the AMD APM guarantee that?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14543#issuecomment-1754350788
More information about the hotspot-dev
mailing list