grizzly
  1. grizzly
  2. GRIZZLY-1178

Add a new MemoryManager implementation that uses several pools with different sized buffers.

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.8, 2.2.1
    • Fix Version/s: 2.3.11, 3.0
    • Component/s: memory
    • Labels:
      None

      Description

      Per the summary.

      The shortcoming with the existing memory managers is that unless a released Buffer was the last Buffer allocated, we can't return the memory to the pool. The idea of this type of pool is to speed allocation and hope for the best on re-use.

      However, the intent with this pool is to have the MM manage several pools with Buffers of different sizes. When an allocation request is made, the appropriate sized buffer will be used to satisfy the request. When the Buffer is released, it will be returned to the pool (probably a queue). In this case, the allocation/release order doesn't matter.

        Activity

        Hide
        Ryan Lubke added a comment -

        Initial draft of the implementation is available in the pooledmm branch.

        Show
        Ryan Lubke added a comment - Initial draft of the implementation is available in the pooledmm branch.
        Hide
        Ryan Lubke added a comment -

        Feature will be available in 3.0.

        Show
        Ryan Lubke added a comment - Feature will be available in 3.0.
        Hide
        oleksiys added a comment -

        Back ported to 2.3.11 as part of

        Revision: 571482998fa0ed3c0f9b7a5fd547a059b12f57e3
        Date: 2014-01-23 03:56:22 UTC

        Log Message:
        ------------
        [2.3.x] + backport PooledMemoryManager to 2.3.x
        https://java.net/jira/browse/GRIZZLY-1178
        "Add a new MemoryManager implementation that uses several pools with different sized buffers."

        Show
        oleksiys added a comment - Back ported to 2.3.11 as part of Revision: 571482998fa0ed3c0f9b7a5fd547a059b12f57e3 Date: 2014-01-23 03:56:22 UTC Log Message: ------------ [2.3.x] + backport PooledMemoryManager to 2.3.x https://java.net/jira/browse/GRIZZLY-1178 "Add a new MemoryManager implementation that uses several pools with different sized buffers."

          People

          • Assignee:
            Ryan Lubke
            Reporter:
            Ryan Lubke
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: