Skip to content

Commit a6867a7

Browse files
jckingTobiHartmann
authored andcommitted
8301378: CodeHeap has virtual methods that are not overridden
Reviewed-by: kvn, thartmann
1 parent aa34924 commit a6867a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hotspot/share/memory/heap.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ class CodeHeap : public CHeapObj<mtCode> {
175175
return contains((void*)blob);
176176
}
177177

178-
virtual void* find_start(void* p) const; // returns the block containing p or null
179-
virtual CodeBlob* find_blob(void* start) const;
178+
void* find_start(void* p) const; // returns the block containing p or null
179+
CodeBlob* find_blob(void* start) const;
180180
size_t alignment_unit() const; // alignment of any block
181181
size_t alignment_offset() const; // offset of first byte of any block, within the enclosing alignment unit
182182
static size_t header_size() { return sizeof(HeapBlock); } // returns the header size for each heap block
@@ -192,9 +192,9 @@ class CodeHeap : public CHeapObj<mtCode> {
192192
int freelist_length() const { return _freelist_length; } // number of elements in the freelist
193193

194194
// returns the first block or null
195-
virtual void* first() const { return next_used(first_block()); }
195+
void* first() const { return next_used(first_block()); }
196196
// returns the next block given a block p or null
197-
virtual void* next(void* p) const { return next_used(next_block(block_start(p))); }
197+
void* next(void* p) const { return next_used(next_block(block_start(p))); }
198198

199199
// Statistics
200200
size_t capacity() const;

0 commit comments

Comments
 (0)