This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How EGCS with multi-threaded compliance?
- To: egcs at cygnus dot com
- Subject: Re: How EGCS with multi-threaded compliance?
- From: Ulrich Drepper <drepper at cygnus dot com>
- Date: 14 Apr 1998 10:00:02 -0700
- Newsgroups: cygnus.egcs
- Organization: Cygnus Solutions
- References: <199804140327.UAA18022@pern.cygnus.com>, <35336112.59CF6444.cygnus.egcs@checkfree.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------