-state.compute_forwarding(). */
-template<typename Block>
-template<typename Iterator, typename Fixup>
-void free_list_allocator<Block>::compact(Iterator &iter, Fixup fixup, const Block **finger)
-{
- heap_compactor<Block,Iterator> compactor(&state,first_block(),iter,finger);
- iterate(compactor,fixup);
-
- /* Now update the free list; there will be a single free block at
- the end */
- free_blocks.initial_free_list(start,end,(cell)compactor.address - start);
-}
-
-/* During compaction we have to be careful and measure object sizes differently */
-template<typename Block>
-template<typename Iterator, typename Fixup>
-void free_list_allocator<Block>::iterate(Iterator &iter, Fixup fixup)
-{
- Block *scan = first_block();
- Block *end = last_block();
-
- while(scan != end)
- {
- cell size = fixup.size(scan);
- Block *next = (Block *)((cell)scan + size);
- if(!scan->free_p()) iter(scan,size);
- scan = next;
- }
-}
-
-template<typename Block>
-template<typename Iterator>
-void free_list_allocator<Block>::iterate(Iterator &iter)
-{
- iterate(iter,no_fixup());
+ state.compute_forwarding(). */
+template <typename Block>
+template <typename Iterator, typename Fixup>
+void free_list_allocator<Block>::compact(Iterator& iter, Fixup fixup,
+ const Block** finger) {
+ heap_compactor<Block, Iterator> compactor(&state, first_block(), iter,
+ finger);
+ iterate(compactor, fixup);
+
+ /* Now update the free list; there will be a single free block at
+ the end */
+ free_blocks.initial_free_list(start, end, (cell) compactor.address - start);
+}
+
+/* During compaction we have to be careful and measure object sizes
+ differently */
+template <typename Block>
+template <typename Iterator, typename Fixup>
+void free_list_allocator<Block>::iterate(Iterator& iter, Fixup fixup) {
+ Block* scan = first_block();
+ Block* end = last_block();
+
+ while (scan != end) {
+ cell size = fixup.size(scan);
+ Block* next = (Block*)((cell) scan + size);
+ if (!scan->free_p())
+ iter(scan, size);
+ scan = next;
+ }
+}
+
+template <typename Block>
+template <typename Iterator>
+void free_list_allocator<Block>::iterate(Iterator& iter) {
+ iterate(iter, no_fixup());