mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
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.
19 lines
529 B
Text
19 lines
529 B
Text
DESCRIPTION
|
|
|
|
malloc-2.8.6
|
|
written by Doug Lea
|
|
|
|
LICENSE
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
|
|
LOCAL CHANGES
|
|
|
|
- Fix MT-safety bugs in DEBUG mode
|
|
- Fix bug in dlmalloc_inspect_all()
|
|
- Define dlmalloc_requires_more_vespene_gas()
|
|
- Make dlmalloc scalable using sched_getcpu()
|
|
- Use faster two power roundup for memalign()
|
|
- Implemented the locking functions dlmalloc wants
|
|
- Use assembly _init() rather than ensure_initialization()
|
|
- Rather than calling mmap() 96 times from _start() just use .bss
|