Changes between Version 5 and Version 6 of Commentary/Rts/Storage/BlockAlloc
- Dec 4, 2009 11:48:51 AM (5 years ago)
v5 v6 47 47 * At the bottom, talking to the OS, is the megablock allocator ([[GhcFile(rts/sm/MBlock.c)]], [[GhcFile(includes/rts/storage/MBlock.h)]]). 48 48 It is responsible for delivering megablocks, correctly aligned, to the upper layers. It is also responsible for 49 implementing `HEAP_ALLOCED()`: the predicate that tests whether a pointer points to dynamically allocated memory 49 implementing : the predicate that tests whether a pointer points to dynamically allocated memory 50 50 or not. This is implemented as a simple bitmap lookup on a 32-bit machine, and something more complex on 51 51 64-bit addressed machines. See [[GhcFile(includes/rts/storage/MBlock.h)]] for details.