diff --git a/src/hotspot/share/memory/heap.hpp b/src/hotspot/share/memory/heap.hpp index c4930e2db71..97ac11708c1 100644 --- a/src/hotspot/share/memory/heap.hpp +++ b/src/hotspot/share/memory/heap.hpp @@ -175,8 +175,8 @@ class CodeHeap : public CHeapObj { return contains((void*)blob); } - virtual void* find_start(void* p) const; // returns the block containing p or null - virtual CodeBlob* find_blob(void* start) const; + void* find_start(void* p) const; // returns the block containing p or null + CodeBlob* find_blob(void* start) const; size_t alignment_unit() const; // alignment of any block size_t alignment_offset() const; // offset of first byte of any block, within the enclosing alignment unit static size_t header_size() { return sizeof(HeapBlock); } // returns the header size for each heap block @@ -192,9 +192,9 @@ class CodeHeap : public CHeapObj { int freelist_length() const { return _freelist_length; } // number of elements in the freelist // returns the first block or null - virtual void* first() const { return next_used(first_block()); } + void* first() const { return next_used(first_block()); } // returns the next block given a block p or null - virtual void* next(void* p) const { return next_used(next_block(block_start(p))); } + void* next(void* p) const { return next_used(next_block(block_start(p))); } // Statistics size_t capacity() const;