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

Replace BlockTree tree logic with an intrusive red-black tree

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • None
    • hotspot

      BlockTree currently implements its own binary search tree keyed by block size. Because it is not self-balancing, insertion order can make it unbalanced, degrading performance.

      We should replace the internal tree logic with the utilities intrusive red-black tree and route insert/remove through to that. This would make the tree balanced, while removing duplicate tree handling code. BlockTree would remain as the layer coordinating memory blocks; managing intrusive node storage within blocks and handling equal-sized block lists.

            cnorrbin Casper Norrbin
            cnorrbin Casper Norrbin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: