cosmopolitan/test/libc
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
..
calls Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
fmt Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
intrin Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
log Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
mem Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
nexgen32e Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
proc Strongly link glob() into system() and popen() 2024-11-15 20:37:34 -08:00
runtime Make realloc() go 100x faster on Linux/NetBSD 2024-07-07 12:40:30 -07:00
sock Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
stdio Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
str Make strcasestr() faster 2024-12-12 22:50:20 -08:00
system Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
thread Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
time Update Musl Libc code 2024-07-30 22:51:29 -07:00
tinymath Release Cosmopolitan v3.8.0 2024-08-30 20:14:07 -07:00
x Run clang-format (#1197) 2024-06-01 16:30:43 -04:00
xed Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
BUILD.mk Upgrade to 2022-era LLVM LIBCXX 2024-05-27 02:12:27 -07:00