8005082: NPG: Add specialized Metachunk sizes for reflection and anonymous classloaders

Reviewed-by: johnc, coleenp
This commit is contained in:
Jon Masamitsu 2012-12-03 15:09:39 -08:00
parent 52a0bed8f5
commit e8b3b89264
8 changed files with 419 additions and 226 deletions

View file

@ -67,7 +67,8 @@ void TreeChunk<Chunk_t, FreeList_t>::verify_tree_chunk_list() const {
}
template <class Chunk_t, template <class> class FreeList_t>
TreeList<Chunk_t, FreeList_t>::TreeList() {}
TreeList<Chunk_t, FreeList_t>::TreeList() : _parent(NULL),
_left(NULL), _right(NULL) {}
template <class Chunk_t, template <class> class FreeList_t>
TreeList<Chunk_t, FreeList_t>*
@ -82,7 +83,7 @@ TreeList<Chunk_t, FreeList_t>::as_TreeList(TreeChunk<Chunk_t,FreeList_t>* tc) {
tl->link_head(tc);
tl->link_tail(tc);
tl->set_count(1);
assert(tl->parent() == NULL, "Should be clear");
return tl;
}