Make some systemic improvements

- add vdso dump utility
- tests now log stack usage
- rename g_ftrace to __ftrace
- make internal spinlocks go faster
- add conformant c11 atomics library
- function tracing now logs stack usage
- make function call tracing thread safe
- add -X unsecure (no ssl) mode to redbean
- munmap() has more consistent behavior now
- pacify fsync() calls on python unit tests
- make --strace flag work better in redbean
- start minimizing and documenting compiler flags
This commit is contained in:
Justine Tunney 2022-05-18 16:41:29 -07:00
parent c6bbca55e9
commit 9208c83f7a
141 changed files with 1948 additions and 1411 deletions

View file

@ -29,7 +29,7 @@
STATIC_YOINK("zip_uri_support");
static struct ZipArgs {
bool registered;
bool initialized;
bool loaded;
int oldargc;
char *data;
@ -76,15 +76,15 @@ int LoadZipArgsImpl(int *argc, char ***argv, char *data) {
start = 0;
}
if (founddots || *argc <= 1) {
if (!g_zipargs.registered) {
if (!g_zipargs.initialized) {
atexit(FreeZipArgs);
g_zipargs.registered = true;
g_zipargs.oldargc = __argc;
g_zipargs.oldargv = __argv;
g_zipargs.initialized = true;
}
g_zipargs.loaded = true;
g_zipargs.data = data;
g_zipargs.args = args;
g_zipargs.oldargc = *argc;
g_zipargs.oldargv = *argv;
*argc = n;
*argv = args;
__argc = n;