|
From: Bert W. <ber...@go...> - 2010-07-13 16:39:36
|
Hi all, I needed a new client request for the MEMPOOL system, so that I can drop any chunks in a specified range. I use this in a custom allocator, which handles pages out and they can be freed at once, without knowing how man requests this page currently has. The current implementation of VALGRIND_MEMPOOL_DROP() does remove any chunks which intersects with the range, not only chunks which are entirely inside the range and it wont split up partial chunks. I have no problem to make this more restrict, so that only requests which are inside the range are droped, or to make it more like TRIM to split up partial chunks. Any feedback is more than welcomed. Thanks. Regards, Bert |