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


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

Re: How EGCS with multi-threaded compliance?


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   `------------------------


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