mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Make fixes and improvements
- Document more compiler flags - Expose new __print_maps() api - Better overflow checking in mmap() - Improve the shell example somewhat - Fix minor runtime bugs regarding stacks - Make kill() on fork()+execve()'d children work - Support CLONE_CHILD_CLEARTID for proper joining - Fix recent possible deadlock regression with --ftrace
This commit is contained in:
parent
6e52cba37a
commit
ec2cb88058
68 changed files with 1211 additions and 431 deletions
|
@ -32,7 +32,7 @@
|
|||
#include "libc/testlib/testlib.h"
|
||||
#include "third_party/dlmalloc/dlmalloc.h"
|
||||
|
||||
static noasan relegated uint64_t CountMappedBytes(void) {
|
||||
static noasan noubsan relegated uint64_t CountMappedBytes(void) {
|
||||
size_t i;
|
||||
uint64_t x, y;
|
||||
for (x = i = 0; i < _mmi.i; ++i) {
|
||||
|
@ -77,7 +77,7 @@ relegated void __oom_hook(size_t request) {
|
|||
kprintf("FIX CODE OR TUNE QUOTA += -M%dm\n", newlim / (1024 * 1024));
|
||||
}
|
||||
kprintf("\n");
|
||||
PrintMemoryIntervals(2, &_mmi);
|
||||
__print_maps();
|
||||
kprintf("\nTHE STRAW THAT BROKE THE CAMEL'S BACK\n");
|
||||
PrintBacktraceUsingSymbols(2, 0, GetSymbolTable());
|
||||
PrintSystemMappings(2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue