projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c17eee4
)
add a missing lock around allocGroup()
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 3 Dec 2009 11:02:09 +0000
(11:02 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 3 Dec 2009 11:02:09 +0000
(11:02 +0000)
rts/sm/Storage.c
patch
|
blob
|
history
diff --git
a/rts/sm/Storage.c
b/rts/sm/Storage.c
index
0f74893
..
94f9e10
100644
(file)
--- a/
rts/sm/Storage.c
+++ b/
rts/sm/Storage.c
@@
-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);