Integrated: JDK-8349077 : Rename GenerationCounters::update_all

Suchismith Roy sroy at openjdk.org
Wed Jun 25 15:42:35 UTC 2025


On Mon, 16 Jun 2025 14:39:26 GMT, Suchismith Roy <sroy at openjdk.org> wrote:

> JBS Issue : [JDK-8349077](https://bugs.openjdk.org/browse/JDK-8349077)
> 
> we found the method names update_all of the class GenerationCounters and its subclasses are not so good. It is better to rename it to something like update_capacity (such as ZGenerationCounters::update_capacity).
> 
> 
> 
> Update_capacity exists, since update_all updates the size and used , I found update_memory_state as a better name for this method.

This pull request has now been integrated.

Changeset: 52c6044f
Author:    Suchismith Roy <sroy at openjdk.org>
Committer: Albert Mingkun Yang <ayang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/52c6044fe48f2e964be4c4603a865143f0d43f90
Stats:     34 lines in 10 files changed: 0 ins; 20 del; 14 mod

8349077: Rename GenerationCounters::update_all

Reviewed-by: ayang, stefank

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

PR: https://git.openjdk.org/jdk/pull/25833


More information about the hotspot-gc-dev mailing list