JDK-8016302 : Change type of the number of GC workers to unsigned int (2)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-06-11
  • Updated: 2017-05-24
  • Resolved: 2014-04-09
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 8 JDK 9 Other
8u20 b10Fixed 9Fixed openjdk7uFixed
Description
In 7121618 variables representing GC workers (worker id, worker id offset) have been changed from int to unsigned int.

Since then, code reintroduced the use of int's for this type of variable; fix this by aligning the code to use uints for ints.

The following egrep command line may be useful to find these occurrences (these may however not be all of them):

egrep -m1 "\Wint worker" `find . -name '*.?pp'`

shows that a least the following files (all G1) seem to be affected:

gc_implementation/g1/concurrentG1Refine.hpp
gc_implementation/g1/g1RemSet.hpp
gc_implementation/g1/g1GCPhaseTimes.cpp
gc_implementation/g1/g1HotCardCache.hpp
gc_implementation/g1/concurrentMark.cpp
gc_implementation/g1/dirtyCardQueue.hpp
gc_implementation/g1/dirtyCardQueue.cpp
gc_implementation/g1/g1GCPhaseTimes.hpp
gc_implementation/g1/concurrentG1RefineThread.cpp
gc_implementation/g1/g1CollectedHeap.hpp
gc_implementation/g1/concurrentG1Refine.cpp
gc_implementation/g1/g1CollectedHeap.cpp
gc_implementation/g1/g1RemSet.cpp
gc_implementation/g1/concurrentG1RefineThread.hpp
gc_implementation/g1/g1HotCardCache.cpp
gc_implementation/g1/g1OopClosures.hpp
gc_implementation/g1/satbQueue.hpp
gc_implementation/g1/satbQueue.cpp


Comments
The fix needed for 8u20 as well
04-04-2014

Due to wrong fix version, a duplicate bug to track this has been created (JDK-8039223)
04-04-2014