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
606f6e1c
Commit
606f6e1c
authored
Dec 09, 2011
by
Simon Marlow
Browse files
Fix silly bug in casMutVar#: I forgot the GC write barrier
parent
8b48562e
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/PrimOps.cmm
View file @
606f6e1c
...
...
@@ -284,6 +284,9 @@ stg_casMutVarzh
if
(
h
!=
old
)
{
RET_NP
(
1
,
h
);
}
else
{
if
(
GET_INFO
(
mv
)
==
stg_MUT_VAR_CLEAN_info
)
{
foreign
"
C
"
dirty_MUT_VAR
(
BaseReg
"
ptr
"
,
mv
"
ptr
"
)
[];
}
RET_NP
(
0
,
h
);
}
}
...
...
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