Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
ab5008d4
Commit
ab5008d4
authored
Oct 30, 2012
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Retainer prof: immutable arrays are not retainers, and fix the docs
parent
7e255c5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
docs/users_guide/profiling.xml
docs/users_guide/profiling.xml
+2
-2
rts/RetainerProfile.c
rts/RetainerProfile.c
+3
-2
No files found.
docs/users_guide/profiling.xml
View file @
ab5008d4
...
...
@@ -884,8 +884,8 @@ MAIN MAIN 102 0 0.0 0.0 100.0 1
by defining what we mean by a retainer:
</para>
<blockquote>
<para>
A retainer is either the system stack,
or
an unevaluated
closure (thunk).
</para>
<para>
A retainer is either the system stack, an unevaluated
closure (thunk)
, or an explicitly mutable object
.
</para>
</blockquote>
<para>
In particular, constructors are
<emphasis>
not
</emphasis>
...
...
rts/RetainerProfile.c
View file @
ab5008d4
...
...
@@ -1013,8 +1013,6 @@ isRetainer( StgClosure *c )
case
MUT_VAR_DIRTY
:
case
MUT_ARR_PTRS_CLEAN
:
case
MUT_ARR_PTRS_DIRTY
:
case
MUT_ARR_PTRS_FROZEN
:
case
MUT_ARR_PTRS_FROZEN0
:
// thunks are retainers.
case
THUNK
:
...
...
@@ -1071,6 +1069,9 @@ isRetainer( StgClosure *c )
case
ARR_WORDS
:
// STM
case
TREC_CHUNK
:
// immutable arrays
case
MUT_ARR_PTRS_FROZEN
:
case
MUT_ARR_PTRS_FROZEN0
:
return
rtsFalse
;
//
...
...
Write
Preview
Markdown
is supported
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