mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
af7bd80430
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. |
||
---|---|---|
.. | ||
BUILD.mk | ||
daylight.c | ||
difftime.c | ||
LICENSE | ||
localtime.c | ||
lock.h | ||
private.h | ||
README.cosmo | ||
timezone.c | ||
tzdir.h | ||
tzfile.h | ||
tzname.c | ||
windows.py |
DESCRIPTION tz is a library for handling time zones LICENSE See LICENSE file ORIGIN git@github.com:eggert/tz.git a75a6251d30b28a7badc1763296205adf67a5081 Paul Eggert <eggert@cs.ucla.edu> BUILD PROCESS make -j8 install BACKWARD= DESTDIR=stage REDO=posix_only LOCAL CHANGES - Add aliases for legacy Cosmo timezone names. - Add yoinks for embedding time zones in binary. - Make localtime() posix thread cancelation safe. - Improve readabiilty with "localtime_" prefixes. - Automate the TZ environment variable on Windows.