Mercurial > hg > truffle
comparison src/share/vm/memory/freeList.hpp @ 10334:7c5a1b62f53d
8014971: Minor code cleanup of the freelist management
Reviewed-by: jwilhelm, jmasa, tschatzl
author | brutisso |
---|---|
date | Wed, 22 May 2013 08:04:58 +0200 |
parents | 685df3c6f84b |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
10333:6702da6b6082 | 10334:7c5a1b62f53d |
---|---|
78 | 78 |
79 public: | 79 public: |
80 // Constructor | 80 // Constructor |
81 // Construct a list without any entries. | 81 // Construct a list without any entries. |
82 FreeList(); | 82 FreeList(); |
83 // Construct a list with "fc" as the first (and lone) entry in the list. | |
84 FreeList(Chunk_t* fc); | |
85 | 83 |
86 // Do initialization | 84 // Do initialization |
87 void initialize(); | 85 void initialize(); |
88 | 86 |
89 // Reset the head, tail, and count of a free list. | 87 // Reset the head, tail, and count of a free list. |
175 | 173 |
176 // Verify that the chunk is in the list. | 174 // Verify that the chunk is in the list. |
177 // found. Return NULL if "fc" is not found. | 175 // found. Return NULL if "fc" is not found. |
178 bool verify_chunk_in_free_list(Chunk_t* fc) const; | 176 bool verify_chunk_in_free_list(Chunk_t* fc) const; |
179 | 177 |
180 // Stats verification | |
181 // void verify_stats() const { ShouldNotReachHere(); }; | |
182 | |
183 // Printing support | 178 // Printing support |
184 static void print_labels_on(outputStream* st, const char* c); | 179 static void print_labels_on(outputStream* st, const char* c); |
185 void print_on(outputStream* st, const char* c = NULL) const; | 180 void print_on(outputStream* st, const char* c = NULL) const; |
186 }; | 181 }; |
187 | 182 |