Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Kaznacheev
GHC
Commits
d0174fc7
Commit
d0174fc7
authored
14 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
remove dead code
parent
7cc184af
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rts/LdvProfile.c
+0
-38
0 additions, 38 deletions
rts/LdvProfile.c
with
0 additions
and
38 deletions
rts/LdvProfile.c
+
0
−
38
View file @
d0174fc7
...
...
@@ -18,44 +18,6 @@
#include
"RtsUtils.h"
#include
"Schedule.h"
/* --------------------------------------------------------------------------
* Fills in the slop when a *dynamic* closure changes its type.
* First calls LDV_recordDead() to declare the closure is dead, and then
* fills in the slop.
*
* Invoked when:
* 1) blackholing, UPD_BH_UPDATABLE() and UPD_BH_SINGLE_ENTRY (in
* includes/StgMacros.h), threadLazyBlackHole() and
* threadSqueezeStack() (in GC.c).
* 2) updating with indirection closures, updateWithIndirection()
* and updateWithPermIndirection() (in Storage.h).
*
* LDV_recordDead_FILL_SLOP_DYNAMIC() is not called on 'inherently used'
* closures such as TSO. It is not called on PAP because PAP is not updatable.
* ----------------------------------------------------------------------- */
void
LDV_recordDead_FILL_SLOP_DYNAMIC
(
StgClosure
*
p
)
{
nat
size
,
i
;
#if defined(__GNUC__) && __GNUC__ < 3 && defined(DEBUG)
#error Please use gcc 3.0+ to compile this file with DEBUG; gcc < 3.0 miscompiles it
#endif
if
(
era
>
0
)
{
// very like FILL_SLOP(), except that we call LDV_recordDead().
size
=
closure_sizeW
(
p
);
LDV_recordDead
((
StgClosure
*
)(
p
),
size
);
if
(
size
>
sizeofW
(
StgThunkHeader
))
{
for
(
i
=
0
;
i
<
size
-
sizeofW
(
StgThunkHeader
);
i
++
)
{
((
StgThunk
*
)(
p
))
->
payload
[
i
]
=
0
;
}
}
}
}
/* --------------------------------------------------------------------------
* This function is called eventually on every object destroyed during
* a garbage collection, whether it is a major garbage collection or
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment