JDK-8077400 : Unnecessary and incorrect "Code Cache Roots" G1 log entry
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 8u60,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-04-10
  • Updated: 2015-06-03
  • Resolved: 2015-04-13
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 9
9 b64Fixed
Related Reports
Relates :  
Description
When the changes to enable per phase timing measurements for root scanning was introduced in JDK-8027962 a phase named "Code Cache Roots" was mistakenly added and measured around the call to oops_into_collection_set_do in G1RootProcessor. There are already sub-phases to measure that phase: UpdateRS, ScanRS and CodeRoots. Also, none of them are included in the Ext Root Scanning times.

Suggested fix is to simply remove the incorrect log entry, the information already exists in the gc log.
Comments
Initial ILW: I=M (misguiding gc log time entry) L=M (only when detailed logs are enabled) W=H (no known workaround) => P3
10-04-2015