cosmopolitan/test
Justine Tunney 379cd77078
Improve memory manager and signal handling
On Windows, mmap() now chooses addresses transactionally. It reduces the
risk of badness when interacting with the WIN32 memory manager. We don't
throw darts anymore. There is also no more retry limit, since we recover
from mystery maps more gracefully. The subroutine for combining adjacent
maps has been rewritten for clarity. The print maps subroutine is better

This change goes to great lengths to perfect the stack overflow code. On
Windows you can now longjmp() out of a crash signal handler. Guard pages
previously weren't being restored properly by the signal handler. That's
fixed, so on Windows you can now handle a stack overflow multiple times.
Great thought has been put into selecting the perfect SIGSTKSZ constants
so you can save sigaltstack() memory. You can now use kprintf() with 512
bytes of stack available. The guard pages beneath the main stack are now
recorded in the memory manager.

This change fixes getcontext() so it works right with the %rax register.
2024-12-27 01:33:00 -08:00
..
ctl Strongly link glob() into system() and popen() 2024-11-15 20:37:34 -08:00
dsp Upgrade pl_mpeg 2024-09-06 19:10:34 -07:00
libc Improve memory manager and signal handling 2024-12-27 01:33:00 -08:00
libcxx Release Cosmopolitan v3.8.0 2024-08-30 20:14:07 -07:00
math Share file offset across processes 2024-08-03 01:39:11 -07:00
net Make redbean Fetch() support longer responses 2024-10-12 15:59:46 -07:00
posix Improve memory manager and signal handling 2024-12-27 01:33:00 -08:00
tool Improve Windows sleep accuracy from 15ms to 15µs 2024-12-06 23:03:57 -08:00
BUILD.mk Introduce Cosmopolitan Templates Library (CTL) 2024-06-03 09:21:59 -07:00