JDK-8176362 : Improve code quality of StarTask
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9,10
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2017-03-08
  • Updated: 2021-04-26
  • Resolved: 2021-04-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.
Other
tbdResolved
Related Reports
Relates :  
Relates :  
Description
While adding a similar class as StarTask for tagging LSBs of elements in task queue called G1TaskQueueEntry in JDK-8168467, we noticed several code quality related issues.

- need for a define to suppress MSVC warnings due to two assignment operator overloads (still pending discussion)
- copy-assign w/o copy-construct (which is often considered a bad smell)
- implicit conversions from oop/narrowoop using the constructors

Look into fixing this and potentially also trying to reuse code for both in some way.
Comments
`StarTask` was replaced by `ScannerTask`, which doesn't have the problems described originally.
26-04-2021

StarTask seems to no longer be used, having been superseded by ScannerTask.
08-01-2021