RFR: 8257073: ZGC: Try forward object before retaining page

Stefan Karlsson stefank at openjdk.java.net
Thu Nov 26 12:23:56 UTC 2020


On Wed, 25 Nov 2020 12:44:01 GMT, Per Liden <pliden at openjdk.org> wrote:

> This is a follow up to @albertnetymk's comment in the review of #1228, where he suggested that we could try to forward the object before we go ahead and retain the page. This could be an optimization in two cases:
> 1) A mutator would avoid a relocation stall in case the page is claimed, but the object the mutator is interested in has already been relocated.
> 2) The worker thread detaching the page would not have to wait for a mutator that is just forwarding an object.

Marked as reviewed by stefank (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/1431



More information about the hotspot-gc-dev mailing list