Opened 18 years ago

Last modified 15 years ago

#284 closed Bugs (fixed)

pool::purge_memory() does not reset next_size — at Initial Version

Reported by: nobody Owned by: shammah
Milestone: Boost 1.35.0 Component: pool
Version: Boost 1.34.0 Severity: Problem
Keywords: Cc: witt@…

Description

Calling purge_memory() does not reset next_size in the 
memory pool implementation.

This means that repeatedly allocating then calling 
purge_memory() causes the pool to allocate a buffer of 
double the size each time, even though the number of 
objects remains small.

Thanks,

Edmund Kapusniak.


Change History (0)

Note: See TracTickets for help on using tickets.