RFR: 8310311: Serial: move Generation::contribute_scratch to DefNewGeneration

Albert Mingkun Yang ayang at openjdk.org
Tue Jun 20 10:03:05 UTC 2023


On Tue, 20 Jun 2023 09:41:20 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> if GenCollectedHeap::young_gen() returned a DefNewGeneration right away;

I tried that but it affects too much other code, so I went with the current approach.

> This also removes the need for some helpers for the scratch space, like sorting the list (which is always very degenerate anyway).

I was planning to do that in a followup PR. The current PR is mostly a structural-change affecting both young & old-gen, while further cleanup is specific to young-gen, so I decided to not merge them into one PR.

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

PR Comment: https://git.openjdk.org/jdk/pull/14540#issuecomment-1598479994


More information about the hotspot-gc-dev mailing list