Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
5bf014af
Commit
5bf014af
authored
May 29, 2009
by
Simon Marlow
Browse files
Fix bug in previous change: allocate the correct size
parent
dc249f10
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Threads.c
View file @
5bf014af
...
...
@@ -84,9 +84,10 @@ createThread(Capability *cap, nat size)
size
=
MIN_STACK_WORDS
+
TSO_STRUCT_SIZEW
;
}
stack_size
=
round_to_mblocks
(
size
)
-
TSO_STRUCT_SIZEW
;
size
=
round_to_mblocks
(
size
);
tso
=
(
StgTSO
*
)
allocateLocal
(
cap
,
size
);
stack_size
=
size
-
TSO_STRUCT_SIZEW
;
TICK_ALLOC_TSO
(
stack_size
,
0
);
SET_HDR
(
tso
,
&
stg_TSO_info
,
CCS_SYSTEM
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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