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

G1: Introduce symmetric locking in the slow allocation path

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • hs21
    • hs21
    • hotspot
    • gc
    • b08
    • generic
    • generic
    • Not verified

        G1's slow allocation path uses an unusual asymmetric locking scheme according to which some of the methods assume that they have the heap lock when called and they either release the heap lock when returning a non-NULL result or retain it when returning a NULL result.

        The last major changes to this code were done as part of CR 6974966 (G1: unnecessary direct-to-old allocations) but the above asymmetric locking scheme was retained.

        I've had a lot of encouragement to replace it with a symmetric locking scheme to make long-term maintenance of this code simpler.

              tonyp Tony Printezis
              tonyp Tony Printezis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: