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]

[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.

//////////////


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