aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/malloc.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-16malloc: remove lockingDan Cross1-22/+3
The issue manifests in fork: POSIX fork mandates that a fork'd process is created with a single thread. If a multithreaded program forks, and some thread was in malloc() when the fork() happened, then in the child the lock will be held but there will be no thread to release it. We assume the system malloc() must already know how to deal with this and is thread-safe, but it won't know about our custom spinlock. Judging that this is no longer necessary (the lock code was added 15 years ago) we remove it. Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10Trivial changes: whitespace and modes.Dan Cross1-2/+2
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
2005-07-14cannot trust system libraries to lock properly. sigh.rsc1-3/+20
2004-06-17Unused variable.wkj1-2/+0
2004-06-09asdfrsc1-30/+13
2004-05-23lock malloc ourselvesrsc1-1/+48
2003-12-11More files related to user-level file servers.rsc1-0/+11
Also add acme!