RFR: 8292194: G1 nmethod entry barrier disarm value wraps around too early

Erik Österlund eosterlund at openjdk.org
Wed Aug 10 15:12:22 UTC 2022


The disarm value for G1 nmethod entry barriers assumes that a concurrent GC can be aborted at most once. However, it can happen many times. In order to avoid ABA issues in the nmethod entry barriers, the limit for wrapping around and reusing numbers needs to be higher. This patch changes that point to INT_MAX as there is little point in using lower values.

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

Commit messages:
 - 8292194: G1 nmethod entry barrier disarm value wraps around too early

Changes: https://git.openjdk.org/jdk/pull/9822/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9822&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8292194
  Stats: 7 lines in 1 file changed: 6 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/9822.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9822/head:pull/9822

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


More information about the hotspot-dev mailing list