-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b31
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8014166 | 8 | Stefan Karlsson | P4 | Resolved | Fixed | b89 |
JDK-8033506 | 7u80 | Stefan Karlsson | P4 | Resolved | Fixed | b01 |
JDK-8034525 | 7u65 | Stefan Karlsson | P4 | Resolved | Fixed | b01 |
JDK-8029487 | 7u60 | Thomas Schatzl | P4 | Closed | Fixed | b05 |
The HotSpot verification code is rather verbose and intrusive. I propose that we add a flag that can be used to turn this output off.
An example of the verification output:
$ java -XX:+PrintGC -XX:+UnlockDiagnosticVMOptions -XX:+VerifyBeforeExit -XX:+VerifyAfterGC -XX:+VerifyBeforeGC -XX:+UseConcMarkSweepGC -XX:+ExplicitGCInvokesConcurrent -cp /localhome/tests/ HelloSystemGC
VerifyBeforeGC:[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
[GC (System.gc()) 672K->260K(121600K), 0.0060920 secs]
VerifyAfterGC:[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
[GC (CMS Initial Mark) 260K(121600K), 0.0204040 secs]
[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
[GC (CMS Final Remark) [Verifying CMS Marking... done] 1604K(121600K), 0.1008210 secs]
[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
And with the proposed flag turned on:
[GC (System.gc()) 672K->269K(121600K), 0.0050710 secs]
[GC (CMS Initial Mark) 269K(121600K), 0.0203380 secs]
[GC (CMS Final Remark) 1613K(121600K), 0.1007210 secs]
An example of the verification output:
$ java -XX:+PrintGC -XX:+UnlockDiagnosticVMOptions -XX:+VerifyBeforeExit -XX:+VerifyAfterGC -XX:+VerifyBeforeGC -XX:+UseConcMarkSweepGC -XX:+ExplicitGCInvokesConcurrent -cp /localhome/tests/ HelloSystemGC
VerifyBeforeGC:[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
[GC (System.gc()) 672K->260K(121600K), 0.0060920 secs]
VerifyAfterGC:[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
[GC (CMS Initial Mark) 260K(121600K), 0.0204040 secs]
[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
[GC (CMS Final Remark) [Verifying CMS Marking... done] 1604K(121600K), 0.1008210 secs]
[Verifying threads heap concurrent mark-sweep generation par new generation remset syms strs zone dict cldg metaspace chunks hand C-heap code cache ]
And with the proposed flag turned on:
[GC (System.gc()) 672K->269K(121600K), 0.0050710 secs]
[GC (CMS Initial Mark) 269K(121600K), 0.0203380 secs]
[GC (CMS Final Remark) 1613K(121600K), 0.1007210 secs]
- backported by
-
JDK-8014166 Add a flag to turn off the output of the verbose verification code
-
- Resolved
-
-
JDK-8033506 Add a flag to turn off the output of the verbose verification code
-
- Resolved
-
-
JDK-8034525 Add a flag to turn off the output of the verbose verification code
-
- Resolved
-
-
JDK-8029487 Add a flag to turn off the output of the verbose verification code
-
- Closed
-
- relates to
-
JDK-8032771 The flag VerifySilently misses a test case
-
- Resolved
-