Move a GC macro.

This commit is contained in:
Mike Pall
2012-10-02 09:57:49 +02:00
parent fcddd5a3a0
commit b66ab96a62
3 changed files with 5 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ void LJ_FASTCALL lj_cdata_free(global_State *g, GCcdata *cd)
if (LJ_UNLIKELY(cd->marked & LJ_GC_CDATA_FIN)) {
GCobj *root;
makewhite(g, obj2gco(cd));
obj2gco(cd)->gch.marked |= LJ_GC_FINALIZED;
markfinalized(obj2gco(cd));
if ((root = gcref(g->gc.mmudata)) != NULL) {
setgcrefr(cd->nextgc, root->gch.nextgc);
setgcref(root->gch.nextgc, obj2gco(cd));