cosmopolitan/test/libc
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
..
calls Improve memory manager and signal handling 2024-12-27 01:33:00 -08:00
fmt Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
intrin Improve memory manager and signal handling 2024-12-27 01:33:00 -08:00
log Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
mem Make bulk_free() go faster 2024-12-23 20:31:57 -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 Fix MODE=tiny build 2024-12-17 01:36:29 -08:00
str Make strcasestr() faster 2024-12-12 22:50:20 -08:00
system Allow user to override pthread mutex and cond 2024-12-23 21:57:52 -08:00
thread Reduce stack virtual memory consumption on Linux 2024-12-25 20:58:08 -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