diff options
author | Simon Marlow <simonmar@microsoft.com> | 2007-10-31 14:36:34 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2007-10-31 14:36:34 +0000 |
commit | bf1197b67163d9f5b6509cf836e07ff83cc0a063 (patch) | |
tree | e01bc2f69a3f3581667334db3c72032ff0eb7a7b /includes/Dotnet.h | |
parent | 698364afaf2f346227910c0cf8d4f1929cdc56ef (diff) | |
download | haskell-bf1197b67163d9f5b6509cf836e07ff83cc0a063.tar.gz |
GC refactoring: make evacuate() take an StgClosure**
Change the type of evacuate() from
StgClosure *evacuate(StgClosure *);
to
void evacuate(StgClosure **);
So evacuate() itself writes the source pointer, rather than the
caller. This is slightly cleaner, and avoids a few memory writes:
sometimes evacuate() doesn't move the object, and in these cases the
source pointer doesn't need to be written. It doesn't have a
measurable impact on performance, though.
Diffstat (limited to 'includes/Dotnet.h')
0 files changed, 0 insertions, 0 deletions