JDK-8145092 : Use Unified Logging for the GC logging
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-12-10
  • Updated: 2023-08-07
  • Resolved: 2015-12-11
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 b103Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8170636 :  
Description
Replace the use of gclog_or_tty in the code base with calls to the new logging framework.

This will change the bulk of the GC related logging. 
Comments
Suggested wording for a release note: The logging for all garbage collectors in HotSpot have been changed to make use of a new logging framework that is configured through the -Xlog command line option. The command line flags -XX:+PrintGC, -XX:+PrintGCDetails and -Xloggc have been deprecated and will likely be removed in a future release. They are currently mapped to similar -Xlog configurations. All other flags that were used to control garbage collection logging have been removed. See the documentation for -Xlog for details on how to now configure and control the logging. These are the flags that were removed: CMSDumpAtPromotionFailure, CMSPrintEdenSurvivorChunks, G1LogLevel, G1PrintHeapRegions, G1PrintRegionLivenessInfo, G1SummarizeConcMark, G1SummarizeRSetStats, G1TraceConcRefinement, G1TraceEagerReclaimHumongousObjects, G1TraceStringSymbolTableScrubbing, GCLogFileSize, NumberOfGCLogFiles, PrintAdaptiveSizePolicy, PrintClassHistogramAfterFullGC, PrintClassHistogramBeforeFullGC, PrintCMSInitiationStatistics, PrintCMSStatistics, PrintFLSCensus, PrintFLSStatistics, PrintGCApplicationConcurrentTime, PrintGCApplicationStoppedTime, PrintGCCause, PrintGCDateStamps, PrintGCID, PrintGCTaskTimeStamps, PrintGCTimeStamps, PrintHeapAtGC, PrintHeapAtGCExtended, PrintJNIGCStalls, PrintOldPLAB, PrintParallelOldGCPhaseTimes, PrintPLAB, PrintPromotionFailure, PrintReferenceGC, PrintStringDeduplicationStatistics, PrintTaskqueue, PrintTenuringDistribution, PrintTerminationStats,,PrintTLAB, TraceDynamicGCThreads, TraceMetadataHumongousAllocation, UseGCLogFileRotation, VerifySilently
09-03-2016

URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/f944761a3ce3 User: lana Date: 2016-01-27 21:42:23 +0000
27-01-2016

URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/b979c2442791 User: lana Date: 2016-01-27 21:42:04 +0000
27-01-2016

URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/f944761a3ce3 User: brutisso Date: 2015-12-11 06:54:53 +0000
11-12-2015

URL: http://hg.openjdk.java.net/jdk9/hs-rt/jdk/rev/b979c2442791 User: brutisso Date: 2015-12-11 06:54:55 +0000
11-12-2015

This change removed the following flags: CMSDumpAtPromotionFailure CMSPrintEdenSurvivorChunks G1LogLevel G1PrintHeapRegions G1PrintRegionLivenessInfo G1SummarizeConcMark G1SummarizeRSetStats G1TraceConcRefinement G1TraceEagerReclaimHumongousObjects G1TraceStringSymbolTableScrubbing GCLogFileSize NumberOfGCLogFiles PrintAdaptiveSizePolicy PrintClassHistogramAfterFullGC PrintClassHistogramBeforeFullGC PrintCMSInitiationStatistics PrintCMSStatistics PrintFLSCensus PrintFLSStatistics PrintGC PrintGCApplicationConcurrentTime PrintGCApplicationStoppedTime PrintGCCause PrintGCDateStamps PrintGCDetails PrintGCID PrintGCTaskTimeStamps PrintGCTimeStamps PrintHeapAtGC PrintHeapAtGCExtended PrintJNIGCStalls PrintOldPLAB PrintParallelOldGCPhaseTimes PrintPLAB PrintPromotionFailure PrintReferenceGC PrintStringDeduplicationStatistics PrintTaskqueue PrintTenuringDistribution PrintTerminationStats PrintTLAB TraceDynamicGCThreads TraceMetadataHumongousAllocation UseGCLogFileRotation VerifySilently -Xloggc The flags PrintGC, PrintGCDetails and -Xloggc will be added back as deprecated flags by JDK-8145180.
11-12-2015