fixpool: propose alternative policy
In 3fe74f1c, fixed_size_pool was changed in order to
help memcheck to detect "potential" memory leaks. In a
multithreaded context, this could raise false alarm. To
solve this, we proprose 2 policies for the pool, one with
the check and one without.
* spot/misc/fixpool.cc: deleted ...
* spot/ltsmin/ltsmin.cc, spot/ltsmin/spins_kripke.hh,
spot/mc/deadlock.hh, spot/misc/Makefile.am,
spot/misc/fixpool.cc, spot/misc/fixpool.hh,
spot/priv/allocator.hh, spot/ta/tgtaproduct.cc,
spot/ta/tgtaproduct.hh, spot/twa/twaproduct.cc,
spot/twa/twaproduct.hh, tests/core/mempool.cc: Here.
This commit is contained in:
parent
fe1be20f09
commit
23edf52dd5
12 changed files with 169 additions and 169 deletions
|
|
@ -46,10 +46,11 @@ namespace spot
|
|||
class pool_allocator
|
||||
{
|
||||
static
|
||||
fixed_size_pool&
|
||||
fixed_size_pool<pool_type::Safe>&
|
||||
pool()
|
||||
{
|
||||
static fixed_size_pool p = fixed_size_pool(sizeof(T));
|
||||
static fixed_size_pool<pool_type::Safe> p =
|
||||
fixed_size_pool<pool_type::Safe>(sizeof(T));
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue