RFR: 8327365: Serial: Move _gc_stats to TenuredGeneration

Guoxiong Li gli at openjdk.org
Tue Mar 5 15:17:46 UTC 2024


On Tue, 5 Mar 2024 11:47:11 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Simple refactoring to move a field from superclass to subclass.

Changes requested by gli (Committer).

src/hotspot/share/gc/serial/generation.hpp line 168:

> 166:   virtual HeapWord* expand_and_allocate(size_t word_size, bool is_tlab) = 0;
> 167: 
> 168:   virtual void update_gc_stats(Generation* current_generation, bool full) {}

The method `update_gc_stats` here can be removed and the method `update_gc_stats` in `tenuredGeneration.hpp` can be non-virtual.

-------------

PR Review: https://git.openjdk.org/jdk/pull/18122#pullrequestreview-1917328868
PR Review Comment: https://git.openjdk.org/jdk/pull/18122#discussion_r1513002971


More information about the hotspot-gc-dev mailing list