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:
a7f2a89
)
threadStackUnderflow: fix up the bd->free pointers in the split blocks
author
Simon Marlow
<marlowsd@gmail.com>
Mon, 9 Jun 2008 17:16:17 +0000
(17:16 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Mon, 9 Jun 2008 17:16:17 +0000
(17:16 +0000)
rts/Schedule.c
patch
|
blob
|
history
diff --git
a/rts/Schedule.c
b/rts/Schedule.c
index
c07b21a
..
715517e
100644
(file)
--- a/
rts/Schedule.c
+++ b/
rts/Schedule.c
@@
-2819,6
+2819,8
@@
threadStackUnderflow (Task *task STG_UNUSED, StgTSO *tso)
bd = Bdescr((StgPtr)tso);
new_bd = splitLargeBlock(bd, new_tso_size_w / BLOCK_SIZE_W);
+ new_bd->free = bd->free;
+ bd->free = bd->start + TSO_STRUCT_SIZEW;
new_tso = (StgTSO *)new_bd->start;
memcpy(new_tso,tso,TSO_STRUCT_SIZE);