RFR: 8221554: aarch64 cross-modifying code

Alan Hayward github.com+4146708+a74nh at openjdk.java.net
Thu Oct 15 11:10:10 UTC 2020


On Wed, 14 Oct 2020 20:43:53 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

> A question, ISB don't flush the I-cache which I thought was needed?
> I would have expected something more similar to gcc clear_cache.

(Possible I've missed something in your question...)
Any cache flushing would be performed by the thread that modifies the code.
The cross_modify_fence is for the other threads after the code has been modified. The only thing they need to do is an
isb.

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

PR: https://git.openjdk.java.net/jdk/pull/428


More information about the hotspot-dev mailing list