equal
deleted
inserted
replaced
105 HeapWord* start = (HeapWord*)initial_top(); |
105 HeapWord* start = (HeapWord*)initial_top(); |
106 size_t size = word_size() - overhead(); |
106 size_t size = word_size() - overhead(); |
107 Copy::fill_to_words(start, size, word_value); |
107 Copy::fill_to_words(start, size, word_value); |
108 } |
108 } |
109 |
109 |
110 void Metachunk::verify() { |
110 void Metachunk::verify() const { |
111 assert(is_valid_sentinel(), "Chunk " PTR_FORMAT ": sentinel invalid", p2i(this)); |
111 assert(is_valid_sentinel(), "Chunk " PTR_FORMAT ": sentinel invalid", p2i(this)); |
112 const ChunkIndex chunk_type = get_chunk_type(); |
112 const ChunkIndex chunk_type = get_chunk_type(); |
113 assert(is_valid_chunktype(chunk_type), "Chunk " PTR_FORMAT ": Invalid chunk type.", p2i(this)); |
113 assert(is_valid_chunktype(chunk_type), "Chunk " PTR_FORMAT ": Invalid chunk type.", p2i(this)); |
114 if (chunk_type != HumongousIndex) { |
114 if (chunk_type != HumongousIndex) { |
115 assert(word_size() == get_size_for_nonhumongous_chunktype(chunk_type, is_class()), |
115 assert(word_size() == get_size_for_nonhumongous_chunktype(chunk_type, is_class()), |