How EGCS with multi-threaded compliance?

Ulrich Drepper drepper@cygnus.com
Tue Apr 14 13:21:00 GMT 1998


dlucas@checkfree.com (David Lucas) writes:

> But if the function using the static object (mutex) is being called from
> static space, and not after main starts (which at that point all statics
> are guarenteed initialized), then a chicken and egg condition could
> occur.  =-)

No, the bss section is initialized to zeroes even before the
application (or the DL, resp) gets control.  You must have very little
confidence in the competence of the people developing Unix systems.

-- Uli
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



More information about the Gcc mailing list