-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize garbage collection by using realloc
Most realloc(3) implementation, and esp32 is not exception, can return the same pointer when shrinking a pointer. This optimization takes this into account and replaces the second call to memory_gc when shrinking to a call to a new function that calls realloc(3) and if the pointer moves, rewrite boxed terms to adjust for the move. Signed-off-by: Paul Guyot <pguyot@kallisys.net>
- Loading branch information
Showing
1 changed file
with
180 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters