Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
fa737eff
Commit
fa737eff
authored
Feb 02, 1999
by
simonm
Browse files
[project @ 1999-02-02 14:17:05 by simonm]
Fix untested Weak changes yesterday.
parent
65d0aa7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/PrimOps.hc
View file @
fa737eff
/* -----------------------------------------------------------------------------
* $Id: PrimOps.hc,v 1.1
0
1999/02/0
1
1
8:05:34
simonm Exp $
* $Id: PrimOps.hc,v 1.1
1
1999/02/0
2
1
4:17:05
simonm Exp $
*
* Primitive functions / data
*
...
...
@@ -315,7 +315,7 @@ FN_(mkWeakzh_fast)
w->value = R2.cl;
if (R3.cl) {
w->finaliser = R3.cl;
} else
} else
{
w->finaliser = &NO_FINALISER_closure;
}
...
...
@@ -337,13 +337,11 @@ FN_(finaliseWeakzh_fast)
TICK_RET_UNBOXED_TUP(0);
w = (StgWeak *)R1.p;
if (w->finaliser != &NO_FINALISER_
info
) {
if (w->finaliser != &NO_FINALISER_
closure
) {
#ifdef INTERPRETER
STGCALL2(StgTSO *, createGenThread,
RtsFlags.GcFlags.initialStkSize, w->finaliser);
STGCALL2(createGenThread, RtsFlags.GcFlags.initialStkSize, w->finaliser);
#else
STGCALL2(StgTSO *, createIOThread,
RtsFlags.GcFlags.initialStkSize, w->finaliser);
STGCALL2(createIOThread, RtsFlags.GcFlags.initialStkSize, w->finaliser);
#endif
}
w->header.info = &DEAD_WEAK_info;
...
...
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