Bug 17295 – FreeTree should provide an adaptive approach similar to FreeList

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-04-03T17:03:38Z
Last change time
2024-12-01T16:30:01Z
Assigned to
No Owner
Creator
Eduard Staniloiu
Moved to GitHub: phobos#10246 →

Comments

Comment #0 by edi33416 — 2017-04-03T17:03:38Z
FreeTree only deallocates free blocks (thus giving the free memory back to the parent) when the parent cannot allocate any more memory. Take the following scenario: FreeTree allocates a lot of memory during some phase of the program and then deallocates a lot of memory, but the current implementation does not give anything back to the parent. During this time, the parent could fail to allocate memory to other clients even though there is free memory (in FreeTree) but the parent does not know about this.
Comment #1 by robert.schadek — 2024-12-01T16:30:01Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10246 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB