cosmopolitan/tool
Justine Tunney af7bd80430
Eliminate cyclic locks in runtime
This change introduces a new deadlock detector for Cosmo's POSIX threads
implementation. Error check mutexes will now track a DAG of nested locks
and report EDEADLK when a deadlock is theoretically possible. These will
occur rarely, but it's important for production hardening your code. You
don't even need to change your mutexes to use the POSIX error check mode
because `cosmocc -mdbg` will enable error checking on mutexes by default
globally. When cycles are found, an error message showing your demangled
symbols describing the strongly connected component are printed and then
the SIGTRAP is raised, which means you'll also get a backtrace if you're
using ShowCrashReports() too. This new error checker is so low-level and
so pure that it's able to verify the relationships of every libc runtime
lock, including those locks upon which the mutex implementation depends.
2024-12-16 22:25:12 -08:00
..
args Invent new cosmo_args() api 2024-11-13 01:19:57 -08:00
build Strongly link glob() into system() and popen() 2024-11-15 20:37:34 -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