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

Encode SATBMarkQueue active flag via _buf == NULL

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 16
    • hotspot
    • gc

      [~kbarrett] suggested instead of encoding the SATBMarkQueue::_active flag into _index in JDK-8227002, use a special _buf == NULL value to do that.

      This simplifies the generated pre-barrier code, decreases the size of the data in the GC thread local buffer and obsoletes the need for SATBMarkQueue::_active.

      This seems easier to do and require much less compiler wrangling than JDK-8227002.

      An empty buffer (as opposed to no buffer) could still be encoded as 0-sized non-NULL _buf value if needed.

      [Updated for JDK-8258255, which moved the active flag from PtrQueue to SATBMarkQueue.]

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

              Created:
              Updated: