Skip to content

Commit 7bf1c23

Browse files
committed
update comment based on review
1 parent 93fa010 commit 7bf1c23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libponyrt/actor/actor.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,11 @@ bool ponyint_actor_run(pony_ctx_t* ctx, pony_actor_t* actor, bool polling)
442442

443443
// Try and run GC because we're blocked and sending a block message
444444
// to the CD and we're past the normal point at which `try_gc` is
445-
// called as part of this function
445+
// called as part of this function. This will try and free any
446+
// memory the actor has in its heap that wouldn't get freed otherwise
447+
// until the actor is destroyed or happens to receive more work via
448+
// application messages that eventually trigger a GC which may not
449+
// happen for a long time (or ever).
446450
try_gc(ctx, actor);
447451
}
448452

0 commit comments

Comments
 (0)