< prev index next >

src/hotspot/share/memory/metachunk.cpp

Print this page
rev 50036 : imported patch 8202634-simplify-spacemanager

@@ -105,11 +105,11 @@
   HeapWord* start = (HeapWord*)initial_top();
   size_t size = word_size() - overhead();
   Copy::fill_to_words(start, size, word_value);
 }
 
-void Metachunk::verify() {
+void Metachunk::verify() const {
   assert(is_valid_sentinel(), "Chunk " PTR_FORMAT ": sentinel invalid", p2i(this));
   const ChunkIndex chunk_type = get_chunk_type();
   assert(is_valid_chunktype(chunk_type), "Chunk " PTR_FORMAT ": Invalid chunk type.", p2i(this));
   if (chunk_type != HumongousIndex) {
     assert(word_size() == get_size_for_nonhumongous_chunktype(chunk_type, is_class()),
< prev index next >