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

ZGC: Should not dedup strings in the finalizer graph

XMLWordPrintable

    • gc
    • b26

        When marking through the object graph, encountered strings get requests for deduplication, which publishes an oop in OopStorage using a phantom store. When performing stores, it is implicitly assumed that surely the thing you are attaching to the object graph, is already considered strongly reachable, right?!
        Unfortunately, when marking through the finalizer graph, it is not strongly reachable. Yet we invoke the same string deduplication code. The result is that that pointer colours look better than they necessarily are. When the reference processor processes the referents of the OopStorage, they can incorrectly not get cleared, due to the colour looking as if it should be strongly reachable. This will eventually end up in a crash as the object referred to isn't live.

              eosterlund Erik Österlund
              eosterlund Erik Österlund
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: