mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-08 21:58:23 +00:00
Improve lock hierarchy
- NetBSD no longer needs a spin lock to create semaphores - Windows fork() now locks process manager in correct order
This commit is contained in:
parent
7ba9a73840
commit
d3a13e8d70
14 changed files with 73 additions and 71 deletions
2
third_party/nsync/common.c
vendored
2
third_party/nsync/common.c
vendored
|
@ -153,7 +153,7 @@ static void free_waiters_populate (void) {
|
|||
// tim cook wants us to use his lol central dispatch
|
||||
n = 1;
|
||||
} else {
|
||||
n = getpagesize() / sizeof(waiter);
|
||||
n = __pagesize / sizeof(waiter);
|
||||
}
|
||||
waiter *waiters = mmap (0, n * sizeof(waiter),
|
||||
PROT_READ | PROT_WRITE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue