Boost logo

Boost :

Subject: Re: [boost] shared_ptr/shared_count and the cost of use counter allocation
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2008-09-10 12:48:08


Hi Michael !

On Wednesday 10 September 2008 18:26:38 Michael Marcin wrote:
> IIRC the pool of sp counted objects used won't be cleaned up until the
> OS reclaims the memory at program termination. If you run any sort of
> leak detector this can be annoying.

Yes, this is the reason why I have special build variant for running memory
checks using valgrind :-))
When using valgrind, the speedup of BOOST_SP_QUICK_ALLOCATOR is neglible. But
valgrind reports the pool and the allocated shared counts as "leaks". So turn
it off when using valgrind.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk