Skip to content

Commit

Permalink
core: adjust stack size down to 1 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Dec 16, 2024
1 parent 832b0d3 commit 3508bf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ test:

test-advanced:
cd tests/advanced && npm install
./$(BUILD_DIR)/tjs test tests/advanced/
./$(BUILD_DIR)/tjs --stack-size 10485760 test tests/advanced/

.PRECIOUS: src/bundles/js/core/%.js src/bundles/js/stdlib/%.js
.PHONY: all js debug install clean distclean format test test-advanced core stdlib $(TJS)
2 changes: 1 addition & 1 deletion src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <stdio.h>
#include <string.h>

#define TJS__DEFAULT_STACK_SIZE 10 * 1024 * 1024 // 10 MB
#define TJS__DEFAULT_STACK_SIZE 1024 * 1024 // 1 MB

/* JS malloc functions */

Expand Down

0 comments on commit 3508bf4

Please sign in to comment.