Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
d7dedcdb
Commit
d7dedcdb
authored
Nov 08, 2001
by
simonmar
Browse files
[project @ 2001-11-08 12:41:07 by simonmar]
(addendum to the previous commit) also set bd->blocks to zero in coalesce().
parent
18b3cd97
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/BlockAlloc.c
View file @
d7dedcdb
/* -----------------------------------------------------------------------------
* $Id: BlockAlloc.c,v 1.1
1
2001/11/08 1
0:18:49
simonmar Exp $
* $Id: BlockAlloc.c,v 1.1
2
2001/11/08 1
2:41:07
simonmar Exp $
*
* (c) The GHC Team 1998-2000
*
...
...
@@ -205,6 +205,7 @@ coalesce(bdescr *p)
p
->
link
=
q
->
link
;
for
(
i
=
0
,
bd
=
q
;
i
<
q
->
blocks
;
bd
++
,
i
++
)
{
bd
->
free
=
0
;
bd
->
blocks
=
0
;
bd
->
link
=
p
;
}
return
p
;
...
...
Write
Preview
Supports
Markdown
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