1. 18 Oct, 2019 1 commit
    • Etienne Renault's avatar
      fixpool: propose alternative policy · d998f613
      Etienne Renault authored
      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.
  2. 20 Jun, 2018 2 commits
    • Maximilien Colange's avatar
      add a pool allocator for STL containers · c9131aee
      Maximilien Colange authored
      * spot/priv/allocator.hh, spot/priv/Makefile.am: add a STL-compliant
        allocator based on spot::fixed_size_pool
      * spot/misc/fixpool.hh, spot/misc/fixpool.cc, spot/misc/Makefile.am:
        refactor the existing spot::fixed_size_pool
      * spot/ltsmin/ltsmin.cc, spot/twa/twaproduct.cc: reflect changes in the
        interface of spot::fixed_size_pool
      * tests/core/mempool.cc: test the new allocator
    • Maximilien Colange's avatar
      make valgrind understand our memory pools · 3fe74f1c
      Maximilien Colange authored
      Annotate pools with valgrind macros so that it detects errors in pool
      usage. Typically, we wish valgrind to detect a leak when the user fails
      to call proper deallocation function.
      * spot/misc/fixpool.hh, spot/misc/mspool.hh: here
      * configure.ac: ensure that valgrind header exists
      * tests/Makefile.am, tests/core/mempool.cc, tests/core/mempool.test,
        tests/core/.gitignore: add tests to ensure valgrind accurately detects