Skip to content

Instantly share code, notes, and snippets.

@SeanTAllen
Created March 23, 2016 02:35
Show Gist options
  • Save SeanTAllen/bf51357e8a46afbfbfce to your computer and use it in GitHub Desktop.
Save SeanTAllen/bf51357e8a46afbfbfce to your computer and use it in GitHub Desktop.
// in gc.c
void ponyint_gc_markactor(pony_ctx_t* ctx, pony_actor_t* actor)
{
if(actor == ctx->current)
return;
gc_t* gc = ponyint_actor_gc(ctx->current);
assert(gc != NULL);
assert(actor != NULL);
actorref_t* aref = ponyint_actormap_getactor(&gc->foreign, actor);
if (aref == NULL)
return;
mark_remote_actor(ctx, gc, aref);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment