Commit 8aa44328 authored by Simon Marlow's avatar Simon Marlow
Browse files

rollback "accounting wibble: we were missing an alloc_blocks .. "

I misread the code, now added a comment to explain why it isn't necessary
parent 3c58884e
......@@ -663,7 +663,9 @@ allocateLocal (Capability *cap, nat n)
bd->gen_no = 0;
bd->step = cap->r.rNursery;
bd->flags = 0;
// NO: alloc_blocks++;
// calcAllocated() uses the size of the nursery, and we've
// already bumpted nursery->n_blocks above.
} else {
// we have a block in the nursery: take it and put
// it at the *front* of the nursery list, and use it
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