projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61f93d4
)
small tidyup
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 26 Nov 2010 14:06:20 +0000
(14:06 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 26 Nov 2010 14:06:20 +0000
(14:06 +0000)
rts/Schedule.c
patch
|
blob
|
history
diff --git
a/rts/Schedule.c
b/rts/Schedule.c
index
8e39814
..
51f8e75
100644
(file)
--- a/
rts/Schedule.c
+++ b/
rts/Schedule.c
@@
-1031,10
+1031,8
@@
scheduleHandleHeapOverflow( Capability *cap, StgTSO *t )
cap->r.rNursery->n_blocks == 1) { // paranoia to prevent infinite loop
// if the nursery has only one block.
- ACQUIRE_SM_LOCK
- bd = allocGroup( blocks );
- RELEASE_SM_LOCK
- cap->r.rNursery->n_blocks += blocks;
+ bd = allocGroup_lock(blocks);
+ cap->r.rNursery->n_blocks += blocks;
// link the new group into the list
bd->link = cap->r.rCurrentNursery;