Skip to content

Commit

Permalink
erts: GC needs the size even if the frag is not referenced
Browse files Browse the repository at this point in the history
  • Loading branch information
psyeugenic committed Mar 25, 2015
1 parent 43b633e commit 73b1ce1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions erts/emulator/beam/erl_map.c
Expand Up @@ -1008,6 +1008,7 @@ static Eterm flatmap_merge(Process *p, Eterm nodeA, Eterm nodeB) {

n = n1 + n2 - unused_size;
*thp = make_arityval(n);
mp_new->size = n;

/* Reshape map to a hashmap if the map exceeds the limit */

Expand Down Expand Up @@ -1043,8 +1044,6 @@ static Eterm flatmap_merge(Process *p, Eterm nodeA, Eterm nodeB) {
return res;
}

mp_new->size = n;

return make_flatmap(mp_new);
}

Expand Down

0 comments on commit 73b1ce1

Please sign in to comment.