RFR: 8261804: Remove field _processing_is_mt, calculate it instead

Albert Mingkun Yang ayang at openjdk.java.net
Wed Feb 24 12:44:38 UTC 2021


On Wed, 24 Feb 2021 11:59:48 GMT, Leo Korinth <lkorinth at openjdk.org> wrote:

> In the reference processor, remove _processing_is_mt. Instead calculate its value in its accessor, processing_is_mt().
> 
> This change will remove some state, make RefProcMTDegreeAdjuster a bit simpler and make it much easier to derive when processing is indeed multi threaded.

I am curious if `mt_discovery` could be removed as well following the same reasoning.

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

Marked as reviewed by ayang (Author).

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



More information about the hotspot-gc-dev mailing list