8292544: G1: Remove virtual specifier for methods in G1EdenRegions and G1SurvivorRegions

Reviewed-by: lkorinth, tschatzl
This commit is contained in:
Albert Mingkun Yang 2022-08-18 14:00:36 +00:00
parent f2773f6404
commit d00e7b92b4
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ private:
public:
G1EdenRegions() : _length(0), _used_bytes(0), _regions_on_node() { }
virtual uint add(HeapRegion* hr) {
uint add(HeapRegion* hr) {
assert(!hr->is_eden(), "should not already be set");
_length++;
return _regions_on_node.add(hr);

View File

@ -41,7 +41,7 @@ private:
public:
G1SurvivorRegions();
virtual uint add(HeapRegion* hr);
uint add(HeapRegion* hr);
void convert_to_eden();