src/hotspot/share/memory/metachunk.cpp
changeset 50066 bd3e4517dfa3
parent 49365 825f006619e5
equal deleted inserted replaced
50065:ae0ebd3cf949 50066:bd3e4517dfa3
   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()),