JDK-8352969 : G1: Improve testability of optional collections
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-03-26
  • Updated: 2025-03-28
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
JDK-8352508 (and probably in earlier issues as well) showed an issue with reproduceability of optional collections: there is no good way to force optional collections, making us rely on random testing.

This is bad.

Improve the situation; one suggestion has been to introduce a flag that always makes all old gen regions in the collection set part of optional evacuation, exercising this functionality.

As an example this functionality could be used to create a test for JDK-8352508 that verifies optional collections in that scenario too.