Skip to content
Snippets Groups Projects
Commit de7f2203 authored by GHC GitLab CI's avatar GHC GitLab CI
Browse files

Updates: Don't zero slop until closure has been pushed

Ensure that the the free variables have been pushed to the update
remembered set before we zero the slop.

(cherry picked from commit 134f7599)
parent 813c5219
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
W_ bd; \ W_ bd; \
\ \
prim_write_barrier; \ prim_write_barrier; \
OVERWRITING_CLOSURE(p1); \
bd = Bdescr(p1); \ bd = Bdescr(p1); \
if (bdescr_gen_no(bd) != 0 :: bits16) { \ if (bdescr_gen_no(bd) != 0 :: bits16) { \
IF_NONMOVING_WRITE_BARRIER_ENABLED { \ IF_NONMOVING_WRITE_BARRIER_ENABLED { \
...@@ -60,6 +59,7 @@ ...@@ -60,6 +59,7 @@
} else { \ } else { \
TICK_UPD_NEW_IND(); \ TICK_UPD_NEW_IND(); \
} \ } \
OVERWRITING_CLOSURE(p1); \
StgInd_indirectee(p1) = p2; \ StgInd_indirectee(p1) = p2; \
prim_write_barrier; \ prim_write_barrier; \
SET_INFO(p1, stg_BLACKHOLE_info); \ SET_INFO(p1, stg_BLACKHOLE_info); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment