Lines Matching defs:TreeChunk
40 template <class Chunk> class TreeChunk;
48 friend class TreeChunk<Chunk>;
97 static TreeList<Chunk>* as_TreeList(TreeChunk<Chunk>* tc);
100 // Returns the head of the free list as a pointer to a TreeChunk.
101 TreeChunk<Chunk>* head_as_TreeChunk();
104 // to a TreeChunk.
105 TreeChunk<Chunk>* first_available();
110 TreeChunk<Chunk>* largest_address();
118 TreeList<Chunk>* remove_chunk_replace_if_needed(TreeChunk<Chunk>* tc);
120 void return_chunk_at_head(TreeChunk<Chunk>* tc);
121 void return_chunk_at_tail(TreeChunk<Chunk>* tc);
124 // A TreeChunk is a subclass of a Chunk that additionally
127 // A TreeChunk is also used as a node in the binary tree. This
131 // TreeChunk has an embedded TreeList for this purpose. Because
138 class TreeChunk : public Chunk {
148 static TreeChunk<Chunk>* as_TreeChunk(Chunk* fc);
149 // Initialize fields in a TreeChunk that should be
150 // initialized when the TreeChunk is being added to
194 TreeChunk<Chunk>* get_chunk_from_tree(size_t size, enum FreeBlockDictionary<Chunk>::Dither dither, bool splay);
200 TreeChunk<Chunk>* remove_chunk_from_tree(TreeChunk<Chunk>* tc);
209 static const size_t min_tree_chunk_size = sizeof(TreeChunk<Chunk>)/HeapWordSize;
268 remove_chunk_from_tree((TreeChunk<Chunk>*)chunk);