Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use special return for finalizer running
For now, we'll handle this by checking if there's anything in the finalizer queue each time we exit a frame. It's not ideal, in that it costs something every frame exit, but it unblocks eliminating the special return mechanism, which will in turn unlock removing many other checks on frame exit, so it's a reasonable trade-off.
- Loading branch information
Showing
3 changed files
with
26 additions
and
36 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
void MVM_gc_finalize_set(MVMThreadContext *tc, MVMObject *type, MVMint64 finalize); | ||
void MVM_gc_finalize_add_to_queue(MVMThreadContext *tc, MVMObject *obj); | ||
void MVM_finalize_walk_queues(MVMThreadContext *tc, MVMuint8 gen); | ||
MVMint32 MVM_gc_finalize_run_handler(MVMThreadContext *tc); |