Walt Karas
2018-12-06 22:02:44 UTC
Would it be desirable for ATS to use this (cleaner) version of free lists?
https://github.com/ywkaras/MiscRepo/blob/master/Dynamic_obj/example.cc
https://github.com/ywkaras/MiscRepo/blob/master/Dynamic_obj/Dynamic_obj.h
The advantage is faster allocation/deallocation for small objects with
short lifetimes. The disadvantage is we could reach heap exhaustion
more easily, as the free lists are reserving free memory for
allocation of a particular size (and where the size is a constexpr).
We would probably want to use conditional compilation for force
Large_threshold to 0 for FSAN builds and maybe debug builds also.
https://github.com/ywkaras/MiscRepo/blob/master/Dynamic_obj/example.cc
https://github.com/ywkaras/MiscRepo/blob/master/Dynamic_obj/Dynamic_obj.h
The advantage is faster allocation/deallocation for small objects with
short lifetimes. The disadvantage is we could reach heap exhaustion
more easily, as the free lists are reserving free memory for
allocation of a particular size (and where the size is a constexpr).
We would probably want to use conditional compilation for force
Large_threshold to 0 for FSAN builds and maybe debug builds also.