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

Revise mark stack memory management in CMMarkstack

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • hotspot
    • gc

      CMMarkstack uses a single contiguous memory area for its mark stack.

      First, it reserves MarkStackSize elements of virtual memory, and during mark stack expansion it allows up to MarkStackSizeMax memory. This expansion recreates the virtual space mapping, copies over elements and then continues.

      The following things could be looked at and improved:
       - There does not seem to be a need to do this in case of 64 bit machines.
       - use the MmapArrayAllocator to save on initialization code
       - maybe look at some kind of segmented mark stack
       - implement optional pre-touch

            Unassigned Unassigned
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: