Commit 8bc3f028 authored by Simon Marlow's avatar Simon Marlow

add a missing lock around allocGroup()

parent c17eee4d
......@@ -631,7 +631,9 @@ allocate (Capability *cap, lnat n)
stp = &nurseries[cap->no];
ACQUIRE_SM_LOCK
bd = allocGroup(req_blocks);
RELEASE_SM_LOCK;
dbl_link_onto(bd, &stp->large_objects);
stp->n_large_blocks += bd->blocks; // might be larger than req_blocks
initBdescr(bd, stp);
......
Markdown is supported
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