[GHC] #8742: Reuse scavenge_small_bitmap
GHC
ghc-devs at haskell.org
Tue Apr 29 19:35:11 UTC 2014
#8742: Reuse scavenge_small_bitmap
-------------------------------------+------------------------------------
Reporter: Tarrasch | Owner: Tarrasch
Type: task | Status: patch
Priority: lowest | Milestone: 7.10.1
Component: Runtime System | Version: 7.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Simon Marlow <marlowsd@…>):
In [changeset:"43b3bab38eafef8c02a09fb4ff1e757f5cba6073/ghc"]:
{{{
#!CommitTicketReference repository="ghc"
revision="43b3bab38eafef8c02a09fb4ff1e757f5cba6073"
Rts: Consistently use StgWord for sizes of bitmaps
A long debate is in issue #8742, but the main motivation is that this
allows for applying a patch to reuse the function scavenge_small_bitmap
without changing the .o-file output.
Similarly, I changed the types in rts/sm/Compact.c, so I can create
a STATIC_INLINE function for the redundant code block:
while (size > 0) {
if ((bitmap & 1) == 0) {
thread((StgClosure **)p);
}
p++;
bitmap = bitmap >> 1;
size--;
}
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8742#comment:17>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list