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

Make some methods in the allocation path non-virtual

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • 14
    • hotspot
    • None
    • gc
    • b12

      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()

            pliden Per Liden (Inactive)
            pliden Per Liden (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: