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
Glasgow Haskell Compiler
GHC
Commits
62023058
Commit
62023058
authored
Oct 15, 2007
by
Simon Marlow
Browse files
FIX profiling after my storage manager changes
parent
1bc34e90
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/LdvProfile.c
View file @
62023058
...
...
@@ -247,22 +247,7 @@ processSmallObjectPoolForDead( void )
bdescr
*
bd
;
StgPtr
p
;
bd
=
g0s0
->
blocks
;
// first block
if
(
bd
==
NULL
)
return
;
p
=
bd
->
start
;
while
(
p
<
alloc_Hp
)
{
p
+=
processHeapClosureForDead
((
StgClosure
*
)
p
);
while
(
p
<
alloc_Hp
&&
!*
p
)
// skip slop
p
++
;
}
ASSERT
(
p
==
alloc_Hp
);
bd
=
bd
->
link
;
while
(
bd
!=
NULL
)
{
for
(
bd
=
g0s0
->
blocks
;
bd
!=
NULL
;
bd
=
bd
->
link
)
{
p
=
bd
->
start
;
while
(
p
<
bd
->
free
)
{
p
+=
processHeapClosureForDead
((
StgClosure
*
)
p
);
...
...
@@ -270,7 +255,6 @@ processSmallObjectPoolForDead( void )
p
++
;
}
ASSERT
(
p
==
bd
->
free
);
bd
=
bd
->
link
;
}
}
...
...
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