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
Container 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
Javier Neira
GHC
Commits
4419dd3a
Commit
4419dd3a
authored
2 years ago
by
adam
Committed by
Marge Bot
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
rts: add some more documentation to StgWeak closure type
parent
7f618fd3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rts/include/rts/storage/Closures.h
+13
-2
13 additions, 2 deletions
rts/include/rts/storage/Closures.h
with
13 additions
and
2 deletions
rts/include/rts/storage/Closures.h
+
13
−
2
View file @
4419dd3a
...
...
@@ -339,17 +339,28 @@ typedef struct _StgStableName {
// Closure types: WEAK
typedef
struct
_StgWeak
{
StgHeader
header
;
// C finalizers, see StgCFinalizerList below
//
// Points to stg_NO_FINALIZER_closure to indicate no c finalizers.
StgClosure
*
cfinalizers
;
StgClosure
*
key
;
StgClosure
*
value
;
// the actual value
StgClosure
*
value
;
// the actual value references by the weak reference
// Haskell finalizer (type IO ())
//
// Points to stg_NO_FINALIZER_closure to indicate no Haskell finalizer.
StgClosure
*
finalizer
;
struct
_StgWeak
*
link
;
}
StgWeak
;
// Linked list of c function pointer finalisers for a weak reference
//
// See the addCFinalizerToWeak# primop where these are constructed.
// See the addCFinalizerToWeak# primop where these are constructed and
// runCFinalizers (C) where they are consumed.
//
// Closure type: CONSTR
typedef
struct
_StgCFinalizerList
{
...
...
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