Skip to content

Commit

Permalink
acquire messages may refer to immutable objects not in the objectmap
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvanc committed Mar 12, 2016
1 parent 9aca1e0 commit 5ca1846
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libponyrt/gc/gc.c
Expand Up @@ -450,8 +450,10 @@ bool ponyint_gc_acquire(gc_t* gc, actorref_t* aref)

while((obj = ponyint_objectmap_next(map, &i)) != NULL)
{
// Add to our RC.
object_t* obj_local = ponyint_objectmap_getobject(&gc->local, obj->address);
// Add to our RC. The object may not be in our object map, if it was
// reached through another immutable reference.
object_t* obj_local = ponyint_objectmap_getorput(&gc->local, obj->address,
gc->mark);
obj_local->rc += obj->rc;

// Mark as immutable if necessary.
Expand Down

0 comments on commit 5ca1846

Please sign in to comment.