summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_random.c
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2002-03-05 17:34:37 +0000
committertegge <tegge@FreeBSD.org>2002-03-05 17:34:37 +0000
commit9450e3c22c27a46839b2f1903435303b08bd8ac9 (patch)
treef83e272491ab7a7d9f08d59e160da6e19453f222 /sys/kern/kern_random.c
parent3114b0f152db884a577f1f269c49a5047fa8e0c6 (diff)
downloadFreeBSD-src-9450e3c22c27a46839b2f1903435303b08bd8ac9.zip
FreeBSD-src-9450e3c22c27a46839b2f1903435303b08bd8ac9.tar.gz
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
Diffstat (limited to 'sys/kern/kern_random.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud