RFR: 8275381 G1: refactor 2 constructors of G1CardSetConfiguration
Albert Mingkun Yang
ayang at openjdk.java.net
Wed Oct 20 15:30:10 UTC 2021
On Wed, 20 Oct 2021 08:45:38 GMT, Hamlin Li <mli at openjdk.org> wrote:
> 2 constructors of G1CardSetConfiguration share some code, it's better to refacoring them to simplify the code.
Instead of introducing a `init` method, I think [delegating constructor](https://en.cppreference.com/w/cpp/language/constructor) is designed for this use case.
-------------
Changes requested by ayang (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/6033
More information about the hotspot-gc-dev
mailing list