JDK-8150872 : SQE test: GC unified logging: test that existing GC logging tags are preserved
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9,11
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2016-02-29
  • Updated: 2019-02-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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
New VM logging mechanism introduced in JDK9  supports tags. There should be a test checking that tags are preserved from build to build.

For the time of bug filing the following tags are available:
 alloc, age, barrier, bot, census, classhisto, classresolve, classinit, comp, compaction, cpu, cset, defaultmethods, ergo, exceptions, exit, freelist, gc, heap, humongous, ihop, itables, jni, liveness, logging, marking, metaspace, monitorinflation, phases, plab, promotion, ref, refine, region, remset, rt, safepoint, scavenge, scrub, start, state, stats, stringdedup, survivor, svc, sweep, task, tlab, time, verify, vmoperation, vtables
(quoted from output of java -Xlog:help -version)

A test could:
- parse output of: java -Xlog:help -version
- search for section of available tags
- check that all GC specific tags are there (list of such tags is a property of the test)

Comments
The problem is the tag set to be supported. To develop such test we need to know which logging tags are "officially" supported.
07-04-2016

Idea of the test: {code} /* * @test TestGCLoggingTags * @summary Verify VM starts normally with all GC logging tags (no tag is removed by mistake) * @key gc * @modules java.base/sun.misc * @run main/othervm -Xlog:cset,gc,sweep,plab,tlab TestGCLoggingTags */ public class TestGCLoggingTags { public static void main(String args[]) { System.gc(); } } {code}
07-04-2016