Re: Someone stomping on our memory

From: Alex Rousskov <rousskov@dont-contact.us>
Date: Sat, 11 Nov 2000 10:46:35 -0700 (MST)

On Sat, 11 Nov 2000, Henrik Nordstrom wrote:

> scope and allocation safe yes. But not entirely safe wrt aliasing... to
> much use of the above might confuse compilers when optimization is
> turned on. It is not good to mix pointer and direct access to the same
> memory area..

I doubt this limitation is practical. Will all know that the compilers
are buggy and that the number of compiler mistakes increase with the
optimization level. The increase is not gradual, however. IMO, either
a decent-size program will work with -O3 or it will not; and if it
will not work, there will be lots of reasons why it won't, not just
mixing local variables with pointers to those local variables.

And, at any rate, the Squid code in question does not really mix
anything.

Alex.
Received on Sat Nov 11 2000 - 10:46:45 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:57 MST