At 02:57 PM 12/10/2001 +0000, Simon Cozens wrote: >On Sun, Dec 09, 2001 at 11:26:44PM -0500, [EMAIL PROTECTED] wrote: > > it has to do with the fact that the memory allocator > > adjusts the address before returning the chunk and free() > > then gets confused. Does this seem to be the issue? > >That's exactly what it is! Damn, I'd been seeing this too, and >decided it was best to just ignore this until we have GC.
Yup. Sorry, I've known about this for a bit but kept forgetting. (And putting it off for the GC too...) Mem_allocate_aligned is used more than it needs to be in spots, and is generally dodgy. And wasteful. I came across an "allocate aligned" routine in someone's C library. If I find it again, I may put in a configure test for it and use it for those systems that provide it. We need an "allocate zeroed" call too. We can get zeroed pages faster in some cases than we can allocate pages and zero them ourselves. Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk