JDK-8211079 : gc/g1/mixedgc/TestOldGenCollectionUsage.java intermittently fails with Premature mixed collections(s)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2018-09-24
  • Updated: 2018-09-26
  • Resolved: 2018-09-26
Related Reports
Duplicate :  
Description
Test gc/g1/mixedgc/TestOldGenCollectionUsage.java
failed in JDK9 b9 testing with following log:
----------System.out:(13/789)----------
[0.063s][info][gc] Using G1
Monitor G1 Old Gen pool with G1 Young Generation collector.
Found pool: G1 Old Gen
Found collector: G1 Young Generation
[1.452s][info][gc] GC(0) Pause Young (Normal) (G1 Evacuation Pause) 5M->2M(12M) 23.473ms
[1.516s][info][gc] GC(1) To-space exhausted
[1.516s][info][gc] GC(1) Pause Young (Normal) (G1 Evacuation Pause) 5M->6M(12M) 27.766ms
[1.546s][info][gc] GC(2) To-space exhausted
[1.546s][info][gc] GC(2) Pause Young (Normal) (WhiteBox Initiated Young GC) 6M->8M(12M) 20.522ms
[1.592s][info][gc] GC(3) To-space exhausted
[1.592s][info][gc] GC(3) Pause Young (Normal) (WhiteBox Initiated Young GC) 8M->8M(12M) 25.302ms
[1.670s][info][gc] GC(4) Pause Full (WhiteBox Initiated Young GC) 8M->5M(12M) 75.997ms
G1 Old Gen: usage after GC = 5259624
----------System.err:(14/940)----------
java.lang.RuntimeException: Premature mixed collections(s)
	at TestOldGenCollectionUsage.run(TestOldGenCollectionUsage.java:106)
	at TestOldGenCollectionUsage.main(TestOldGenCollectionUsage.java:58)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:834)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Premature mixed collections(s)
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Premature mixed collections(s)
Comments
Already fixed by JDK-8210193. If this needs to be fixed in 9, please request a backport.
26-09-2018

Failure happened only once in 1000 iterations. The full log is in attachement.
24-09-2018