--- a/src/hotspot/share/memory/metachunk.cpp Tue May 08 15:40:03 2018 +0200
+++ b/src/hotspot/share/memory/metachunk.cpp Wed May 09 06:51:41 2018 +0200
@@ -107,7 +107,7 @@
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));