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

Reinforce escape barrier interactions with ZGC conc stack processing

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P2
    • Resolution: Fixed
    • 16
    • 16
    • hotspot
    • gc
    • b23
    • Not verified

    Description

      The escape barrier reallocates scalarized objects potentially deep into the stack of a remote thread. Each allocation can safepoint, causing referenced frames to be invalid. Some sprinklings were added that deal with that, but I believe it was subsequently broken with the integration of the new vector API, that has its own new deoptimization code that did not know about this.

      In order to make this less fragile, we should really have a RAII object that keeps the target thread's stack of the escape barrier, stable and processed, across safepoints. Then it becomes much easier to reason about its correctness.

      Attachments

        Issue Links

          Activity

            People

              eosterlund Erik Ă–sterlund
              eosterlund Erik Ă–sterlund
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: