cosmopolitan/libc/log
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
..
addr2linepath.c Update Musl Libc code 2024-07-30 22:51:29 -07:00
appendresourcereport.c Run clang-format (#1197) 2024-06-01 16:30:43 -04:00
appendresourcereport.internal.h Reduce header complexity 2023-11-28 14:39:42 -08:00
attachdebugger.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
backtrace.internal.h Rewrite memory manager 2024-06-22 05:45:11 -07:00
backtrace2.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
backtrace3.c Improve memory manager and signal handling 2024-12-27 01:33:00 -08:00
bsd.h Reduce header complexity 2023-11-28 14:39:42 -08:00
BUILD.mk Implement proper time zone support 2024-05-04 23:06:37 -07:00
check.h Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
checkaligned.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
checkfail.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
checkfail_ndebug.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
color.internal.h Reduce header complexity 2023-11-28 14:39:42 -08:00
commandvenv.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
countbranch.h Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
countbranch_data.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
countbranch_report.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
countexpr.h Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
countexpr_data.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
countexpr_report.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
cxaprintexits.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
die.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
err.c Release Cosmopolitan v3.3 2024-02-20 13:27:59 -08:00
flogf.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
gdb.h Run clang-format (#1197) 2024-06-01 16:30:43 -04:00
gdbexec.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
gdbpath.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
gdbsync.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
getcallername.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
getcallername.internal.h Reduce header complexity 2023-11-28 14:39:42 -08:00
internal.h Favor siginfo_t over struct siginfo 2024-05-28 02:34:17 -07:00
libfatal.internal.h Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
log.h Add VSCode settings 2024-08-25 11:02:31 -07:00
log_exit.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
log_get_errno.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
log_retrace.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
log_set_errno.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
log_untrace.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
logerrno.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
logfile.c Fix regression in logger functions 2024-02-22 14:08:20 -08:00
loglevel.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
meminfo.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
memsummary.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
minicrash.c Prevent MODE=tiny ShowCrashReports() looping 2024-07-20 03:34:37 -07:00
oncrash_amd64.c Write more tests for signal handling 2024-09-21 05:24:56 -07:00
oncrash_arm64.c Improve memory manager and signal handling 2024-12-27 01:33:00 -08:00
printwindowsmemory.c Avoid linker conflicts on DescribeFoo symbols 2024-08-24 18:10:22 -07:00
rop.internal.h Introduce #include <cosmo.h> to toolchain users 2023-06-09 18:03:05 -07:00
showcrashreports.c Fix a bug in example code 2024-07-19 19:11:28 -07:00
showcrashreportsearly.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
startfatal.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
traceme.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
traceme.h Reduce header complexity 2023-11-28 14:39:42 -08:00
vflogf.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
watch-hook.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
watch.c Run clang-format (#1197) 2024-06-01 16:30:43 -04:00