RFR: 8369190: JavaFrameAnchor on AArch64 has unnecessary barriers and wrong store order in MacroAssembler [v4]

Andrew Haley aph at openjdk.org
Tue Oct 7 08:32:58 UTC 2025


On Mon, 6 Oct 2025 19:56:17 GMT, Justin King <jcking at openjdk.org> wrote:

>> Maybe not, if this is the same thread as readers. I don't know what it's for.
>
> `OrderAccess::release()` is more than a compiler barrier on AArch64. I am guessing this was copied from x86 or one of the others where that same function is a compiler barrier? Should I move `compiler_barrier` from the random source files its in, into globalDefinitions, and use that?

As far as I can see, the frame anchor is only accessed from its owner thread, so it doesn't matter.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27645#discussion_r2409836163


More information about the hotspot-dev mailing list