[pooma-dev] allocation assert

Mark Mitchell mark at codesourcery.com
Sat Mar 17 18:07:57 UTC 2001


>>>>> "Stephen" == Stephen A Smith <sasmith at cybermesa.com> writes:

    Stephen> 3) The Pool code could be faulty.  This has happened in
    Stephen> the past because of some compiler reorderings of code
    Stephen> using reinterpreted pointers looking at the same piece of
    Stephen> memory.

In particular, the Pool code at some point violated the C/C++ rules
about type aliasing.  Therefore, clever compilers (including G++ after
I implemented this optimization) woudl reorder assignments in ways
that were not anticipated.  I *thought* I fixed the Pool code, but I
could be wrong.

--
Mark Mitchell                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com



More information about the pooma-dev mailing list