Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
d1002780
Commit
d1002780
authored
Mar 21, 2006
by
Simon Marlow
Browse files
small changes to fix retainer profiling on HEAD
parent
1cccf54b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/RetainerProfile.c
View file @
d1002780
...
...
@@ -1734,7 +1734,7 @@ retainRoot( StgClosure **tl )
ASSERT
(
isEmptyRetainerStack
());
currentStackBoundary
=
stackTop
;
if
(
isRetainer
(
*
tl
))
{
if
(
*
tl
!=
&
stg_END_TSO_QUEUE_closure
&&
isRetainer
(
*
tl
))
{
retainClosure
(
*
tl
,
*
tl
,
getRetainerFrom
(
*
tl
));
}
else
{
retainClosure
(
*
tl
,
*
tl
,
CCS_SYSTEM
);
...
...
@@ -1778,7 +1778,8 @@ computeRetainerSet( void )
// object (computing sumOfNewCostExtra and updating costArray[] when
// debugging retainer profiler).
for
(
g
=
0
;
g
<
RtsFlags
.
GcFlags
.
generations
;
g
++
)
{
ASSERT
(
g
!=
0
||
(
generations
[
g
].
mut_list
==
NULL
));
// NOT TRUE: even G0 has a block on its mutable list
// ASSERT(g != 0 || (generations[g].mut_list == NULL));
// Traversing through mut_list is necessary
// because we can find MUT_VAR objects which have not been
...
...
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