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

Make some methods in the allocation path non-virtual

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b12

      Description

      Some virtual methods in the allocation path[*] are no longer overridden by any GC, so we can make them non-virtual until such a need arise again. Keeping CollectedHeap::array_allocate() virtual because ZGC still wants to override that path (as part of JDK-8227226, which is currently out for review).

      *) CollectedHeap::obj_allocate(), CollectedHeap::class_allocate() and MemAllocator::mem_allocate()

        Attachments

          Activity

            People

            Assignee:
            pliden Per Liden
            Reporter:
            pliden Per Liden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: