JDK-8269596 : Snapshot soft ref policy before marking/copying
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-29
  • Updated: 2021-07-08
  • Resolved: 2021-07-02
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 18
18 b05Fixed
Related Reports
Blocks :  
Relates :  
Description
For users of `ReferenceProcessor`, set up the soft ref policy at the beginning of GC cycle, and use that policy across the whole GC cycle. IOW, the decision regarding clearing a soft ref will never give conflicting answers within a GC cycle. Therefore, the reconsideration of soft refs can be dropped (JDK-8051680).

Shenandoah and Z don't use `ReferenceProcessor`, but both set up the soft ref policy before marking.
Comments
Changeset: f8bcbf01 Author: Albert Mingkun Yang <ayang@openjdk.org> Date: 2021-07-02 09:19:58 +0000 URL: https://git.openjdk.java.net/jdk/commit/f8bcbf0172af25ac17b110d22232bd618cfd621a
02-07-2021