|
From: Nicholas N. <nj...@ca...> - 2003-10-01 17:55:29
|
On Wed, 1 Oct 2003, Jeremy Fitzhardinge wrote: > > * If you generate a new pointer/integer by math between two operands > > with different malloc-area sets then the new integer gets the union > > of the sets. > > Yep, this is what I suggested. But the sets become huge (eg. 1000s of entries), which slows things down horrifically. Besides, when you do the pointer subtraction, that "connection" between them is really a property of the ptrdiff, not a property of the segments, so putting the two segments into the same set isn't a true reflection of what's happening. These two reasons are why I think having a dedicated ptrdiff type is a better solution. Although I haven't implemented it yet, so I'm yet to see how it works in practice. N |