Use first-fit rather than first-best-fit run/chunk allocation.

This tends to more effectively pack active memory toward low addresses.
However, additional tree searches are required in many cases, so whether
this change stands the test of time will depend on real-world
benchmarks.
This commit is contained in:
Jason Evans
2015-03-06 19:57:36 -08:00
parent 5707d6f952
commit 97c04a9383
3 changed files with 89 additions and 32 deletions

View File

@@ -312,7 +312,7 @@ struct arena_s {
/*
* Size/address-ordered tree of this arena's available runs. The tree
* is used for first-best-fit run allocation.
* is used for first-fit run allocation.
*/
arena_avail_tree_t runs_avail;