Skip to content

Commit

Permalink
Fix a bug in forward_remset
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-appel committed May 24, 2024
1 parent aa1992b commit da098e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cplugin/runtime/gc_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void forward_remset (struct space *from, /* descriptor of from-space */
forward(from_start, from_limit, next, p, DEPTH);
newp= *p;
if (oldp!=newp)
*(--to->limit) = (value)q;
*(--to->limit) = (value)p;
}
q++;
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/runtime/gc_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void forward_remset (struct space *from, /* descriptor of from-space */
forward(from_start, from_limit, next, p, DEPTH);
newp= *p;
if (oldp!=newp)
*(--to->limit) = (value)q;
*(--to->limit) = (value)p;
}
q++;
}
Expand Down
2 changes: 1 addition & 1 deletion theories/Runtime/gc_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void forward_remset (struct space *from, /* descriptor of from-space */
forward(from_start, from_limit, next, p, DEPTH);
newp= *p;
if (oldp!=newp)
*(--to->limit) = (value)q;
*(--to->limit) = (value)p;
}
q++;
}
Expand Down

0 comments on commit da098e6

Please sign in to comment.