|
Threads-Devel : |
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2007-07-26 22:23:35
Hi,
On a very heavy thread_specific_ptr creation and destruction, e.g.
spirit grammar with closure instantiation, the vector size becomes
easily *big*, and the boost::function<void, void*>* isn't ever
deleted.
So the application rapidly becomes very memory-consuming (hundreds of
megabytes).
Could tss uses a list and have tss point to it through a list iterator?
And delete the function when tss is destroyed? (Why isn't
boost::function passed by-value anyway?).
Best regards,
-- Felipe Magno de Almeida