K 10 svn:author V 5 tegge K 8 svn:date V 27 2002-03-05T17:34:37.000000Z K 7 svn:log V 323 When multiple threads call atexit at the same time, some operations must be serialized. A mutex is used to protect the critical regions. sbrk() and brk() are not thread safe. Replace use of sbrk() with a call to malloc to avoid race when one thread calls atexit while another thread calls malloc. Reviewed by: deischen END