This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[Patch] Streamline __mt_alloc::_S_initialize
- From: Paolo Carlini <pcarlini at suse dot de>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 01 Apr 2004 19:00:53 +0200
- Subject: [Patch] Streamline __mt_alloc::_S_initialize
Hi,
In _S_initialize we had 4 #ifdef __GTHREADS if(__gthread_active_p()),
in particular 2 inside loops. With the below we have only one, and the
structure of the second half of the function becomes consistent with
that of the other members.
Tested x86/x86_64-linux, check/check-performance.
Will commit later today.
Paolo.
//////////////