This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: malloc patch for 2.2.4
> Date: Mon, 27 Aug 2001 16:08:05 +0200 (MDT)
> From: Wolfram Gloger <Wolfram.Gloger@dent.med.uni-muenchen.de>
> > I wasn't here talking about what ISO requires---as you say, threads
> > are not dealt with by the C standard. I was saying what the compiler
> > will actually do.
>
> Actually do? I've tested and found that gcc-2.95 generates _exactly
> the same code_ for malloc.o with or without the patch below applied,
> at least with -O and -O2. I wouldn't have expected otherwise..
By "actually do", I was including all the possible cases in which this
code could be presented, not just that of malloc.o. That is, I know
of a code path in GCC that can do this.
It's nice that the same code is generated, this means you aren't
losing much in terms of performance.
--
- Geoffrey Keating <geoffk@geoffk.org>