RFR: 8295214: Generational ZGC: Guard nmethods from cross modifying code [v2]

Erik Österlund eosterlund at openjdk.org
Fri Nov 11 13:35:41 UTC 2022


> Generational ZGC will need to patch nmethod instructions outside of safepoints, and guard entries into the nmethods with cross modifying code fences. This is mostly taken care of by nmethod entry barrier code. But there are a few entries that don't go through nmethod entry barriers that need fixing. In particular when entering an nmethod by returning through the stack watermark barrier. This patch ensures that whenever the stack watermark barrier exposes a new nmethod, we also ensure that a cross modify fence is executed, so that any concurrently updated instructions can be safely executed.

Erik Österlund has updated the pull request incrementally with one additional commit since the last revision:

  Update comment

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/11042/files
  - new: https://git.openjdk.org/jdk/pull/11042/files/b1910e26..d09f094a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11042&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11042&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/11042.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11042/head:pull/11042

PR: https://git.openjdk.org/jdk/pull/11042


More information about the hotspot-dev mailing list