mmap for poison heap

This commit is contained in:
2026-02-13 04:03:36 -06:00
parent f296a0c10d
commit cb9d6e0c0e
3 changed files with 26 additions and 5 deletions

View File

@@ -377,7 +377,7 @@ int cell_init(int argc, char **argv)
free(boot_data);
return 1;
}
JSContext *ctx = JS_NewContextWithHeapSize(g_runtime, 16 * 1024 * 1024);
JSContext *ctx = JS_NewContextWithHeapSize(g_runtime, 1024 * 1024);
if (!ctx) {
printf("Failed to create JS context\n");
free(boot_data); JS_FreeRuntime(g_runtime);