Re: Bug#162576: marked as done (libc6-dev: errno is a function call in non-threaded program)
Ben Collins <bcollins@debian.org> writes:
> Question is, is it really that much overhead? I can't see many
> applications having references to errno become a bottleneck for
> performance. If they do, then they should probably be rewritten anyway
The slowdown is a price to be paid, otherwise we would need a
different set of almost all shared libraries for linking with
multi-threading programs. I think we already had this situation, and
it wasn't nice at all.
With proper TLS, the function call we go away some day (at least on
Linux/x86).
--
Florian Weimer Weimer@CERT.Uni-Stuttgart.DE
University of Stuttgart http://CERT.Uni-Stuttgart.DE/people/fw/
RUS-CERT fax +49-711-685-5898
Reply to: