Commit 33167a5b authored by Simon Marlow's avatar Simon Marlow
Browse files

Fix for nursery resizing: the first block's back pointer should be NULL

I'm not sure if this could lead to a crash or not, but it upsets +RTS -DS
Might be related to #4265
parent 814946f3
......@@ -353,6 +353,8 @@ allocNursery (bdescr *tail, nat blocks)
if (i > 0) {
bd[i].u.back = &bd[i-1];
} else {
bd[i].u.back = NULL;
if (i+1 < n) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment