871 template <class Chunk_t, template <class> class FreeList_t> |
871 template <class Chunk_t, template <class> class FreeList_t> |
872 void BinaryTreeDictionary<Chunk_t, FreeList_t>::dict_census_update(size_t size, bool split, bool birth){} |
872 void BinaryTreeDictionary<Chunk_t, FreeList_t>::dict_census_update(size_t size, bool split, bool birth){} |
873 |
873 |
874 #ifndef SERIALGC |
874 #ifndef SERIALGC |
875 template <> |
875 template <> |
876 void BinaryTreeDictionary<FreeChunk, AdaptiveFreeList>::dict_census_update(size_t size, bool split, bool birth){ |
876 void AFLBinaryTreeDictionary::dict_census_update(size_t size, bool split, bool birth){ |
877 TreeList<FreeChunk, AdaptiveFreeList>* nd = find_list(size); |
877 TreeList<FreeChunk, AdaptiveFreeList>* nd = find_list(size); |
878 if (nd) { |
878 if (nd) { |
879 if (split) { |
879 if (split) { |
880 if (birth) { |
880 if (birth) { |
881 nd->increment_split_births(); |
881 nd->increment_split_births(); |
909 return true; |
909 return true; |
910 } |
910 } |
911 |
911 |
912 #ifndef SERIALGC |
912 #ifndef SERIALGC |
913 template <> |
913 template <> |
914 bool BinaryTreeDictionary<FreeChunk, AdaptiveFreeList>::coal_dict_over_populated(size_t size) { |
914 bool AFLBinaryTreeDictionary::coal_dict_over_populated(size_t size) { |
915 if (FLSAlwaysCoalesceLarge) return true; |
915 if (FLSAlwaysCoalesceLarge) return true; |
916 |
916 |
917 TreeList<FreeChunk, AdaptiveFreeList>* list_of_size = find_list(size); |
917 TreeList<FreeChunk, AdaptiveFreeList>* list_of_size = find_list(size); |
918 // None of requested size implies overpopulated. |
918 // None of requested size implies overpopulated. |
919 return list_of_size == NULL || list_of_size->coal_desired() <= 0 || |
919 return list_of_size == NULL || list_of_size->coal_desired() <= 0 || |
1286 FreeList_t<Chunk_t>::print_labels_on(gclog_or_tty, " "); |
1286 FreeList_t<Chunk_t>::print_labels_on(gclog_or_tty, " "); |
1287 } |
1287 } |
1288 |
1288 |
1289 #ifndef SERIALGC |
1289 #ifndef SERIALGC |
1290 template <> |
1290 template <> |
1291 void BinaryTreeDictionary<FreeChunk, AdaptiveFreeList>::print_dict_census(void) const { |
1291 void AFLBinaryTreeDictionary::print_dict_census(void) const { |
1292 |
1292 |
1293 gclog_or_tty->print("\nBinaryTree\n"); |
1293 gclog_or_tty->print("\nBinaryTree\n"); |
1294 AdaptiveFreeList<FreeChunk>::print_labels_on(gclog_or_tty, "size"); |
1294 AdaptiveFreeList<FreeChunk>::print_labels_on(gclog_or_tty, "size"); |
1295 PrintTreeCensusClosure<FreeChunk, AdaptiveFreeList> ptc; |
1295 PrintTreeCensusClosure<FreeChunk, AdaptiveFreeList> ptc; |
1296 ptc.do_tree(root()); |
1296 ptc.do_tree(root()); |