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

Make CLD claiming allow multiple claim bits

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • None
    • hotspot
    • None
    • gc
    • b16

      Today, the claim value of a CLD is logically a boolean, stored as an int. Either a CLD is claimed, or not claimed. This is used by the GC to see if oops_do can be skipped on the CLD, because its handles have already been marked.
      With ZGC supporting concurrent class unloading, it the CLD holder can be marked finalizably reachable first, and afterwards strongly reachable. This requires 2 claim bits in the CLD: one for claiming it for strongly marking the oop handles, and one for finalizably marking the oop handles.

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

              Created:
              Updated:
              Resolved: