RFR: 8299312: Clean up BarrierSetNMethod [v3]

Erik Österlund eosterlund at openjdk.org
Mon Jan 9 09:54:12 UTC 2023


> The terminology in BarrierSetNMethod is not crisp. In platform code we talk about a per-nmethod "guard value", but on shared level we call the same value arm value or disarm value in different contexts. But it really depends on the value whether the nmethod is disarmed or armed. We should embrace the "guard value" terminology and lift it in to the shared code level.
> We also have more functionality than we need on platform level. The platform level only needs to know how to deoptimize, and how to set/get the guard value of an nmethod. The more specific functionality should be moved to the shared code and be expressed in terms of said setter/getter.

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

  Nit

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/11774/files
  - new: https://git.openjdk.org/jdk/pull/11774/files/e0b32db3..08a1fb25

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

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

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


More information about the shenandoah-dev mailing list