mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-04 12:08:36 +00:00
8301378: CodeHeap has virtual methods that are not overridden
Reviewed-by: kvn, thartmann
This commit is contained in:
parent
aa3492442b
commit
a6867a7ec2
@ -175,8 +175,8 @@ class CodeHeap : public CHeapObj<mtCode> {
|
||||
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<mtCode> {
|
||||
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user