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

Replace OOP_SINCE_SAVE_MARKS with templates

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • None
    • hotspot
    • None
    • gc
    • b13

      The OOP_SINCE_SAVE_MARKS related macros are used to devirtualize OopClosure calls. The way these works require us to stamp out all relevant overloads of OopClosures in the Generation and GenCollectedHeap classes. This makes it hard to separate Serial from CMS. One example is defNewGeneration.hpp, which includes cms/parOopClosure.hpp, just to make sure that CMS specific overloads are generated for DefNewGeneration, even those that are never used.

      By replacing these macros with templates we can get rid of this false dependency between DefNewGeneration and CMS.

            stefank Stefan Karlsson
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: