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
alexbiehl-gc
GHC
Commits
ffec12c8
Commit
ffec12c8
authored
28 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-01-21 09:02:17 by sof]
Stable pointers were not treated as roots
parent
19a43aba
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
ghc/runtime/c-as-asm/HpOverflow.lc
+10
-0
10 additions, 0 deletions
ghc/runtime/c-as-asm/HpOverflow.lc
with
10 additions
and
0 deletions
ghc/runtime/c-as-asm/HpOverflow.lc
+
10
−
0
View file @
ffec12c8
...
@@ -159,6 +159,11 @@ RealPerformGC(liveness, reqsize, always_reenter_node, do_full_collection)
...
@@ -159,6 +159,11 @@ RealPerformGC(liveness, reqsize, always_reenter_node, do_full_collection)
displacement); */
displacement); */
}
}
/* Add the stable pointer table to the roots list */
#ifndef PAR
StorageMgrInfo.roots[num_ptr_roots++] = StorageMgrInfo.StablePointerTable;
#endif
ASSERT(num_ptr_roots <= SM_MAXROOTS);
ASSERT(num_ptr_roots <= SM_MAXROOTS);
StorageMgrInfo.rootno = num_ptr_roots;
StorageMgrInfo.rootno = num_ptr_roots;
...
@@ -213,6 +218,11 @@ RealPerformGC(liveness, reqsize, always_reenter_node, do_full_collection)
...
@@ -213,6 +218,11 @@ RealPerformGC(liveness, reqsize, always_reenter_node, do_full_collection)
/* root restoring ------------------------------- */
/* root restoring ------------------------------- */
/* must do all the restoring exactly backwards to the storing! */
/* must do all the restoring exactly backwards to the storing! */
/* remove the stable pointer table first */
#ifndef PAR
StorageMgrInfo.StablePointerTable = StorageMgrInfo.roots[--num_ptr_roots];
#endif
/* now the general regs, in *backwards* order */
/* now the general regs, in *backwards* order */
# define __DEROOT_PTR_REG(cond,n) /* n == 1 <=> R1 */ \
# define __DEROOT_PTR_REG(cond,n) /* n == 1 <=> R1 */ \
...
...
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