RFR(m): 8220351: Cross-modifying code

Andrew Haley aph at redhat.com
Thu Mar 14 10:03:21 UTC 2019


On 3/11/19 8:08 AM, Robbin Ehn wrote:

> For simplicity I'll talk about x86, which have instruction cache
> coherency.

I don't think this is the right approach.

You've put fences into shared code, but the semantics to make this
work correctly are different on different platforms. For example, some
platforms may not use patching, but instead use the constant
pool. Some platforms may need cache flushes as well as fences, so the
solution presented here is either inadequate, inefficient, or both.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the hotspot-dev mailing list