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

Remove all free chunks in ChunkPool after cleanup periodic task

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 10
    • 9
    • hotspot

      Currently there are 4 Chunk instances used for native memory allocation. They are each used for different sized allocations, and the chunk size for each varies.

          tiny_size = 256 - slack, // Size of first chunk (tiny)
          init_size = 1*K - slack, // Size of first chunk (normal aka small)
          medium_size= 10*K - slack, // Size of medium-sized chunk
          size = 32*K - slack, // Default size of an Arena chunk (following the first)

      By default each of these Chunk instances will keep up to 5 free/empty chunks of memory allocated. It will only release those free/empty chunks in excess of 5. This is done during the periodic timer. About 215k of memory can be freed by not keeping any free/empty chunks allocated.

            Unassigned Unassigned
            cjplummer Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: