Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
1a65116f
Commit
1a65116f
authored
Sep 07, 2004
by
simonmar
Browse files
[project @ 2004-09-07 09:35:02 by simonmar]
Fix bug in finalizeWeak# (should fix memo002 and maybe one or two other tests).
parent
95473f10
Changes
2
Hide whitespace changes
Inline
Side-by-side
ghc/includes/mkDerivedConstants.c
View file @
1a65116f
...
...
@@ -308,6 +308,9 @@ main(int argc, char *argv[])
closure_field
(
StgWeak
,
value
);
closure_field
(
StgWeak
,
finalizer
);
closure_size
(
StgDeadWeak
);
closure_field
(
StgDeadWeak
,
link
);
closure_size
(
StgMVar
);
closure_field
(
StgMVar
,
head
);
closure_field
(
StgMVar
,
tail
);
...
...
ghc/rts/PrimOps.cmm
View file @
1a65116f
...
...
@@ -316,6 +316,7 @@ finalizzeWeakzh_fast
LDV_RECORD_CREATE(w);
f = StgWeak_finalizer(w);
StgDeadWeak_link(w) = StgWeak_link(w);
/* return the finalizer */
if (f == stg_NO_FINALIZER_closure) {
...
...
Write
Preview
Supports
Markdown
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