Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
8bc3f028
Commit
8bc3f028
authored
Dec 03, 2009
by
Simon Marlow
Browse files
add a missing lock around allocGroup()
parent
c17eee4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/sm/Storage.c
View file @
8bc3f028
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment