This is the mail archive of the
mailing list for the glibc project.
Re: malloc patch for 2.2.4
Wolfram Gloger <Wolfram.Gloger@dent.med.uni-muenchen.de> writes:
|> For full portability, you're correct, no question. Specific
|> platforms, however, can and do make more stringent atomicity
|> guarantees (all of the ones targeted by ptmalloc have atomic access to
|> pointers, for example), and the compiler should not spoil this by such
|> a useless re-load from memory.
This may be useless at first sight, but may be better from a broader point
of view. If you disallow it you may get less efficient code.
Andreas Schwab "And now for something
SuSE Labs completely different."
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5