Skip to content

Commit 5a91430

Browse files
Merge pull request #422 from Distributive-Network/philippe/420-fix
set max gc heap size to maximum available
2 parents a0b3602 + 18a4197 commit 5a91430

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/pythonmonkey/pythonmonkey.cc

+2
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,8 @@ PyMODINIT_FUNC PyInit_pythonmonkey(void)
562562
return NULL;
563563
}
564564

565+
JS_SetGCParameter(GLOBAL_CX, JSGC_MAX_BYTES, (uint32_t)-1);
566+
565567
JS_SetGCCallback(GLOBAL_CX, pythonmonkeyGCCallback, NULL);
566568

567569
JS::RealmCreationOptions creationOptions = JS::RealmCreationOptions();

0 commit comments

Comments
 (0)