Created
May 3, 2014 15:58
-
-
Save katlogic/f8af499089aad18acd85 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff -ruN lua-5.3.0-work2/src/lgc.c lua-5.3.0-work2-resurrectfin/src/lgc.c | |
--- lua-5.3.0-work2/src/lgc.c 2014-03-21 14:52:33.000000000 +0100 | |
+++ lua-5.3.0-work2-resurrectfin/src/lgc.c 2014-05-03 17:53:35.358176913 +0200 | |
@@ -815,6 +815,7 @@ | |
int running = g->gcrunning; | |
L->allowhook = 0; /* stop debug hooks during GC metamethod */ | |
g->gcrunning = 0; /* avoid GC steps */ | |
+ resetbit(gch(gcvalue(&v))->marked, FINALIZEDBIT); /* Might be finalized again. */ | |
setobj2s(L, L->top, tm); /* push finalizer... */ | |
setobj2s(L, L->top + 1, &v); /* ... and its argument */ | |
L->top += 2; /* and (next line) call the finalizer */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment