This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

A quick word about the pthreadrope7 fails.


Hello,
	I added some debug cout's at the end of the program, and it seems that
the error is being caused by some static object within the allocator
being destroyed before the rope has finished using it! Seems weird to
me, but it's happening!

I have implemented a quick fix, which I would not call elegant at all.
What I have done is since I use my own mini_vector<>, I removed the call
to operator delete within the vector's dtor. So, any memory that the
vector allocates will not be deleted on destruction. I could in the
future add a ctor flag which controls this feature.

Cheap as it may seem, it works at the moment. Does this test fail with
any other allocator?

-- 
        -Dhruv Matani.
http://www.geocities.com/dhruvbird/

The price of freedom is responsibility, but it's a bargain, because
freedom is priceless. ~ Hugh Downs


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]