RFR: 8278581: Improve reference processing statistics log output

Per Liden pliden at openjdk.java.net
Wed Jan 12 14:09:25 UTC 2022


On Wed, 12 Jan 2022 11:15:30 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> "enqueued" could be misleading due to its similarity with Reference::enqueue()/ReferenceQueue though.

I actually think it's a good that it eludes to Reference::enqueue(). Even if the enqueuing onto the ReferenceQueue happens in the next step, the enqueuing onto the pending list is the precursor.

> True, but I am not sure how useful "knowing the total #refs" is. After all, only discovered-ref affects the duration of ref-processing. Ref-encountering happens along with marking, but #encountered doesn't directly affect marking phase duration.

I've found "encountered" to be very useful when debugging.

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

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



More information about the hotspot-gc-dev mailing list