[scudo] Mitigate page releasing thrashing
We have the heuristic to determine the threshold of doing page releasing for smaller size classes. However, in a case that the memory usage is bouncing between that threshold may result in frequent try of page releasing but not returning much memory. This CL add another heuristic to mitigate this problem by increasing the minimum pages that potentially can be released. Note that this heuristic is only applied on SizeClassAllocator64. SizeClassAllocator32 has a smaller group size so the overhead is smaller than 64-bit platform. Differential Revision: https://reviews.llvm.org/D144768
Loading
Please sign in to comment