Skip to content

Commit

Permalink
Merge pull request #422 from Distributive-Network/philippe/420-fix
Browse files Browse the repository at this point in the history
set max gc heap size to maximum available
  • Loading branch information
philippedistributive authored Aug 29, 2024
2 parents a0b3602 + 18a4197 commit 5a91430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/pythonmonkey/pythonmonkey.cc
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,8 @@ PyMODINIT_FUNC PyInit_pythonmonkey(void)
return NULL;
}

JS_SetGCParameter(GLOBAL_CX, JSGC_MAX_BYTES, (uint32_t)-1);

JS_SetGCCallback(GLOBAL_CX, pythonmonkeyGCCallback, NULL);

JS::RealmCreationOptions creationOptions = JS::RealmCreationOptions();
Expand Down

0 comments on commit 5a91430

Please sign in to comment.