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

Shenandoah: simplify region sequence numbers handling

XMLWordPrintable

    • gc
    • b16

        This is the leftover from the days we needed advanced heuristics that had to know more about allocation times in the regions. Currently, only Traversal needs one of those sequence numbers, yet we always carry four of them.

        Seqnum machinery increments a global variable on the locked allocation path. Doing excess things there inflates the time thread spends in its critical section, especially if it runs into conflict from another thread allocation. We should consider dropping the three unused seqnums, and conditionalize the leftover one for Traversal.

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: