Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8302709

Remove explicit remembered set verification in G1

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • gc
    • b11

      G1 allows explicit remembered set verification via -XX:+VerifyRememberedSets without verifying anything else.

      This functionality should be dropped because
      - verification via VerifyBefore/During/AfterGC does the same verification as well
      - the far longest part of VerifyBefore/During/AfterGC is remembered set/object verification (you can't really do remembered set verification without object verification)
      - also, since you can't really do remembered set verification without object verification, this is just duplicate work (and code)
      - for VerifyBefore/During/AfterGC we have quite extensive ways to do that verification only in certain situations
      - explicit remembered set verification is single threaded, while others is multi-threaded, so much slower then the latter anyway
      - due to this split, the code sharing makes the verification code somewhat unclear

      Given all that I suggest to remove the explicit remembered set verification there.

            tschatzl Thomas Schatzl
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: