JDK-8224168 : Simplify flushing PtrQueues
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 13
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2019-05-18
  • Updated: 2020-12-23
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
Description
The current implementation of flushing of PtrQueues is made a bit complicated by having SATB queues first filter the buffer.  However, that filtering isn't necessary, and might even be wasteful.  It isn't necessary because the entries will eventually be re-filtered as part of marking.  So any entries that survive the flush filtering will just be checked again later.  There is some benefit to flush filtering if it completely empties the buffer, so the buffer can be deallocated rather than enqueued, but that's a small benefit and may not happen often.