Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
9e9b7f07
Commit
9e9b7f07
authored
Feb 24, 1999
by
simonm
Browse files
[project @ 1999-02-24 17:24:07 by simonm]
Allow eager promotion to be turned off by a compile-time option.
parent
eb567ae7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/GC.c
View file @
9e9b7f07
/* -----------------------------------------------------------------------------
* $Id: GC.c,v 1.4
0
1999/02/24 1
6:30:45
simonm Exp $
* $Id: GC.c,v 1.4
1
1999/02/24 1
7:24:07
simonm Exp $
*
* (c) The GHC Team 1998-1999
*
...
...
@@ -868,7 +868,11 @@ copy(StgClosure *src, nat size, step *step)
* by evacuate()).
*/
if
(
step
->
gen
->
no
<
evac_gen
)
{
#ifdef NO_EAGER_PROMOTION
failed_to_evac
=
rtsTrue
;
#else
step
=
&
generations
[
evac_gen
].
steps
[
0
];
#endif
}
/* chain a new block onto the to-space for the destination step if
...
...
@@ -899,7 +903,11 @@ copyPart(StgClosure *src, nat size_to_reserve, nat size_to_copy, step *step)
TICK_GC_WORDS_COPIED
(
size_to_copy
);
if
(
step
->
gen
->
no
<
evac_gen
)
{
#ifdef NO_EAGER_PROMOTION
failed_to_evac
=
rtsTrue
;
#else
step
=
&
generations
[
evac_gen
].
steps
[
0
];
#endif
}
if
(
step
->
hp
+
size_to_reserve
>=
step
->
hpLim
)
{
...
...
@@ -971,7 +979,11 @@ evacuate_large(StgPtr p, rtsBool mutable)
*/
step
=
bd
->
step
->
to
;
if
(
step
->
gen
->
no
<
evac_gen
)
{
#ifdef NO_EAGER_PROMOTION
failed_to_evac
=
rtsTrue
;
#else
step
=
&
generations
[
evac_gen
].
steps
[
0
];
#endif
}
bd
->
step
=
step
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment