cosmopolitan/tool
Justine Tunney 624573207e
Make threads faster and more reliable
This change doubles the performance of thread spawning. That's thanks to
our new stack manager, which allows us to avoid zeroing stacks. It gives
us 15µs spawns rather than 30µs spawns on Linux. Also, pthread_exit() is
faster now, since it doesn't need to acquire the pthread GIL. On NetBSD,
that helps us avoid allocating too many semaphores. Even if that happens
we're now able to survive semaphores running out and even memory running
out, when allocating *NSYNC waiter objects. I found a lot more rare bugs
in the POSIX threads runtime that could cause things to crash, if you've
got dozens of threads all spawning and joining dozens of threads. I want
cosmo to be world class production worthy for 2025 so happy holidays all
2024-12-21 22:13:00 -08:00
..
args Invent new cosmo_args() api 2024-11-13 01:19:57 -08:00
build Make threads faster and more reliable 2024-12-21 22:13:00 -08:00
cosmocc Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
curl Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
decode Support merging many .a files into one .a file 2024-09-05 19:28:14 -07:00
emacs Make Emacs load 2x faster 2024-08-23 20:08:05 -07:00
hello Make atomics faster on aarch64 2024-08-16 11:14:46 -07:00
lambda Update Musl Libc code 2024-07-30 22:51:29 -07:00
net Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
plinko Make improvements 2024-09-01 01:27:47 -07:00
scripts Refactor and improve CTL and other code 2024-06-04 05:45:48 -07:00
viz Improve Windows sleep accuracy from 15ms to 15µs 2024-12-06 23:03:57 -08:00
zsh Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
BUILD.mk more modeline errata (#1019) 2023-12-16 23:07:10 -05:00