|
From: Bert W. <ber...@go...> - 2010-07-19 16:44:48
|
On Tue, Jul 13, 2010 at 18:39, Bert Wesarg <ber...@go...> wrote: > 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. No one? I have now figured out, that I can misuse a TRIM(pool,0,0) request to drop all allocations from this pool. But I'm not very comfortable with this. Bert > > Thanks. > > Regards, > Bert > |