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
44ccabe6
Commit
44ccabe6
authored
May 28, 2009
by
Simon Marlow
Browse files
Round stack size to a whole number of megablocks
This is not a bug fix, it just makes better use of memory
parent
32ca5da8
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Threads.c
View file @
44ccabe6
...
...
@@ -84,7 +84,7 @@ createThread(Capability *cap, nat size)
size
=
MIN_STACK_WORDS
+
TSO_STRUCT_SIZEW
;
}
stack_size
=
size
-
TSO_STRUCT_SIZEW
;
stack_size
=
round_to_mblocks
(
size
)
-
TSO_STRUCT_SIZEW
;
tso
=
(
StgTSO
*
)
allocateLocal
(
cap
,
size
);
TICK_ALLOC_TSO
(
stack_size
,
0
);
...
...
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