JDK-8203028 : Simplify reference processing in light of JDK-8175797
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-05-13
  • Updated: 2022-03-30
  • Resolved: 2018-05-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11 b16Fixed
Related Reports
Blocks :  
Blocks :  
Relates :  
Relates :  
Relates :  
Description
JDK-8175797 changed Reference.enqueue to ensure the reference object is cleared before enqueuing it. This eliminates some states and state transitions, allowing some simplification of reference processing.

In particular, for reference processing when discovery is not atomic, the case of a discovered reference which is later found to have been enqueued but still has a non-null referent is no longer possible.  This means that much of the difference between pp2_work and pp2_work_concurrent_discovery is no longer required, and those functions can be mostly merged.

For the most part, the Reference.next field no longer needs any special treatment, and can be handled like any normal object field.  It still requires some special handling in support of FinalReferences though; a non-null next is the mechanism used to indicate a FinalReference is no longer active, since the reference object is not cleared.

Comments
URL: http://hg.openjdk.java.net/jdk/jdk/rev/f84ae8aa5d88 User: kbarrett Date: 2018-05-26 07:14:00 +0000
26-05-2018

JDK-8203028 blocks JDK-8202845 because the claim in the latter that complete_gc isn't needed isn't true until the simplification around pp2_work_concurrent_discovery is done.
13-05-2018