RFR: 8277916: Gather non-strong reference count logic in a single place

Stefan Johansson sjohanss at openjdk.java.net
Thu Dec 2 16:32:26 UTC 2021


On Mon, 29 Nov 2021 10:31:29 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Move the logic of tracking ref-count to `ReferenceProcessorPhaseTimes` so that the provider of getter/setter is consistent inside ref-processing.
> 
> Test: hotspot_gc

Change looks good. 

I wonder if it would make sense to remove `ReferenceProcessorStats` and instead pass in the "phase times" to `report_gc_reference_stats`. What do you think? I just quickly looked at this, might missing something. Anyways, that might be better in a separate PR anyways.

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

Marked as reviewed by sjohanss (Reviewer).

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



More information about the hotspot-gc-dev mailing list