Mail Archives: djgpp/1998/02/15/09:51:49
On Sun, 15 Feb 1998, Peter Palotas wrote:
> Uhm, okay, I'll explain what I'm doing. I'm writing a library somewhat like
> FORTIFY if you've heard of it which catches all calls to
> new/delete/malloc/free/calloc/realloc and adds stuff to a global linked
> list, and checks for out of bounds writings and a lot of other stuff.
>
> Now maybe it's not neccessary to have global read/write data, but I can't
> think of any other way.
Another possibility would be a linked list that is private to each
thread. Let `malloc' and friends access the correct list given the
thread id. Then you could forget about two or more threads accessing the
same address at the same time.
- Raw text -