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

G1: refactor the code that operates on _cur_alloc_region to be re-used for allocs by the GC threads

XMLWordPrintable

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

        Currently we have two versions of code that attempts to satisfy parallel allocation requests out of a heap region and attempts to replace said heap region when it's full:

        a) One version is for allocations by mutator threads.
        b) Another version is for allocations by GC threads (i.e., when they need to copy objects from from- to to-space).

        It'd be helpful to consolidate these two versions and have a single version of the code shared by the two paths above. This CR proposes the refactoring of the code of path a) in a separate class (G1AllocRegion). This is one step towards sharing this code by path b) (this will be done as a separate CR in the future).

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: