Reduce mandatory stack rss by 256kb

This commit is contained in:
Justine Tunney 2023-09-07 04:30:44 -07:00
parent 0e087143fd
commit b592716d1c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
15 changed files with 98 additions and 125 deletions

View file

@ -57,7 +57,7 @@ Lua 5.4.3 (MIT License)\\n\
Copyright 19942021 Lua.org, PUC-Rio.\"");
asm(".include \"libc/disclaimer.inc\"");
STATIC_STACK_SIZE(0x80000);
STATIC_STACK_ALIGN(GetStackSize());
#if !defined(LUA_PROGNAME)
#define LUA_PROGNAME "lua"

View file

@ -50,7 +50,6 @@ Lua 5.4.3 (MIT License)\\n\
Copyright 19942021 Lua.org, PUC-Rio.\"");
asm(".include \"libc/disclaimer.inc\"");
static void PrintFunction(const Proto* f, int full);
#define luaU_print PrintFunction

View file

@ -4,11 +4,14 @@
Python 3
https://docs.python.org/3/license.html │
*/
#include "libc/runtime/stack.h"
#include "third_party/python/Include/yoink.h"
#include "third_party/python/runpythonmodule.h"
#include "tool/args/args.h"
// clang-format off
STATIC_STACK_ALIGN(GetStackSize());
PYTHON_YOINK("xed");
PYTHON_YOINK("xterm");