JDK-8268290 : Improve LockFreeQueue<> utility
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-06
  • Updated: 2021-06-28
  • Resolved: 2021-06-22
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 b03Fixed
Related Reports
Relates :  
Relates :  
Description
The LockFreeQueue<> utility class has some limitations.  There are cases where concurrent operations may interfere with each other in ways that prevent progress by one thread if another thread is stalled.  That was acceptable in the original context where this class was developed (an implementation detail in G1DirtyCardQueue).  But it's a problem now that it's a general utility.  To mitigate this, the pop API was made more complex.  But we should try to do better.

Comments
Changeset: 0c693e2f Author: Kim Barrett <kbarrett@openjdk.org> Date: 2021-06-22 17:43:59 +0000 URL: https://git.openjdk.java.net/jdk/commit/0c693e2f03b1adef0e946ebc32827ac09192f5f0
22-06-2021