Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
54fe7a44
Commit
54fe7a44
authored
Jun 09, 2008
by
Simon Marlow
Browse files
threadStackUnderflow: fix up the bd->free pointers in the split blocks
parent
a7f2a897
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Schedule.c
View file @
54fe7a44
...
...
@@ -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
);
...
...
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