Searched hist:91697 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10.0-release/lib/libc/stdlib/
H A Datexit.cdiff 91697 Tue Mar 05 15:34:37 MST 2002 tegge 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

Completed in 192 milliseconds