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:
dc249f1
)
Fix bug in previous change: allocate the correct size
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 29 May 2009 09:07:58 +0000
(09:07 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 29 May 2009 09:07:58 +0000
(09:07 +0000)
rts/Threads.c
patch
|
blob
|
history
diff --git
a/rts/Threads.c
b/rts/Threads.c
index
d578cc2
..
0bc725c
100644
(file)
--- a/
rts/Threads.c
+++ b/
rts/Threads.c
@@
-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);