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.
When we run javax/swing/JFileChooser/6396844/TwentyThousandTest.java in Windows 7 machine in jtreg it times out and jtreg throws error.
Comments
The issue is observed only in Windows OS. In Mac OOME observed is part of Test process which calls generateOOME() of Util class. In Windows, dispose() method of DisposerRecord class is not invoked.
20-06-2024
Since this test runs in other vm mode, even if it generates OOME, the chances of causing instability elsewhere are nil.
30-10-2018
This test failed in jdk8u191 with "Failed. Execution failed: `main' threw exception: java.lang.OutOfMemoryError: GC overhead limit exceeded". This is a different error than the one seen with jdk10, but looks like this test has been failing since long time.
30-10-2018
On windows when I see a timeout I also see OOME thrown from system threads.
This test as well as taking 15 minutes to run is provoking OOME which can cause instablity elsewhere
So it is both unstable and a stress test. Its run time should be reduced and perhaps it should
install a default exception handler.
04-05-2018
Timeout information:
Running jstack on process 6500
2018-02-20 15:52:36
Full thread dump Java HotSpot(TM) 64-Bit Server VM (11-internal+0-jdk11-client.19 mixed mode):
Threads class SMR info:
_java_thread_list=0x000000006febd850, length=15, elements={
0x000000000031a800, 0x00000000069fe800, 0x0000000006a05800, 0x0000000006a0d000,
0x0000000006a48800, 0x0000000006a4b800, 0x0000000006a50000, 0x0000000006a5b800,
0x0000000006a86800, 0x0000000006a87800, 0x0000000006a88800, 0x0000000006a89000,
0x0000000006a8c000, 0x0000000006a90000, 0x0000000006a8d000
}
_java_thread_list_alloc_cnt=650,_java_thread_list_free_cnt=649,_java_thread_list_max=22, _nested_thread_list_max=1
_tlh_cnt=6934769, _tlh_times=137, avg_tlh_time=0.00, _tlh_time_max=33
_deleted_thread_cnt=317, _deleted_thread_times=29, avg_deleted_thread_time=0.09, _deleted_thread_time_max=18
_delete_lock_wait_cnt=0, _delete_lock_wait_max=0
_to_delete_list_cnt=0, _to_delete_list_max=2
"main" #1 prio=5 os_prio=0 tid=0x000000000031a800 nid=0x710 in Object.wait() [0x0000000001fbf000]
java.lang.Thread.State: WAITING (on object monitor)
JavaThread state: _thread_blocked
Thread: 0x000000000031a800 [0x710] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
at java.lang.Object.wait(java.base@11-internal/Native Method)
- waiting on <0x00000000f81c8970> (a java.lang.Thread)
at java.lang.Thread.join(java.base@11-internal/Thread.java:1350)
- waiting to re-lock in wait() <0x00000000f81c8970> (a java.lang.Thread)
at java.lang.Thread.join(java.base@11-internal/Thread.java:1424)
at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:74)
"Reference Handler" #2 daemon prio=10 os_prio=2 tid=0x00000000069fe800 nid=0x2a38 waiting on condition [0x0000000006f3f000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_blocked
Thread: 0x00000000069fe800 [0x2a38] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
at java.lang.ref.Reference.waitForReferencePendingList(java.base@11-internal/Native Method)
at java.lang.ref.Reference.processPendingReferences(java.base@11-internal/Reference.java:166)
at java.lang.ref.Reference.access$000(java.base@11-internal/Reference.java:44)
at java.lang.ref.Reference$ReferenceHandler.run(java.base@11-internal/Reference.java:138)
"Finalizer" #3 daemon prio=8 os_prio=1 tid=0x0000000006a05800 nid=0x950 in Object.wait() [0x000000000737e000]
java.lang.Thread.State: WAITING (on object monitor)
JavaThread state: _thread_blocked
Thread: 0x0000000006a05800 [0x950] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
at java.lang.Object.wait(java.base@11-internal/Native Method)
- waiting on <no object reference available>
at java.lang.ref.ReferenceQueue.remove(java.base@11-internal/ReferenceQueue.java:151)
- waiting to re-lock in wait() <0x00000000f81dfeb8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(java.base@11-internal/ReferenceQueue.java:172)
at java.lang.ref.Finalizer$FinalizerThread.run(java.base@11-internal/Finalizer.java:205)
"Signal Dispatcher" #4 daemon prio=9 os_prio=2 tid=0x0000000006a0d000 nid=0x1f64 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_blocked
Thread: 0x0000000006a0d000 [0x1f64] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
"Attach Listener" #5 daemon prio=5 os_prio=2 tid=0x0000000006a48800 nid=0x1ca8 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_blocked
Thread: 0x0000000006a48800 [0x1ca8] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
"C2 CompilerThread0" #6 daemon prio=9 os_prio=2 tid=0x0000000006a4b800 nid=0x2ac4 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_blocked
Thread: 0x0000000006a4b800 [0x2ac4] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
No compile task
"C2 CompilerThread1" #7 daemon prio=9 os_prio=2 tid=0x0000000006a50000 nid=0x2e24 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_blocked
Thread: 0x0000000006a50000 [0x2e24] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
No compile task
"C1 CompilerThread2" #8 daemon prio=9 os_prio=2 tid=0x0000000006a5b800 nid=0x1d64 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_blocked
Thread: 0x0000000006a5b800 [0x1d64] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
No compile task
"Sweeper thread" #9 daemon prio=9 os_prio=2 tid=0x0000000006a86800 nid=0x21cc runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_blocked
Thread: 0x0000000006a86800 [0x21cc] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
"Common-Cleaner" #10 daemon prio=8 os_prio=1 tid=0x0000000006a87800 nid=0x1b3c in Object.wait() [0x00000000626bf000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
JavaThread state: _thread_blocked
Thread: 0x0000000006a87800 [0x1b3c] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
at java.lang.Object.wait(java.base@11-internal/Native Method)
- waiting on <no object reference available>
at java.lang.ref.ReferenceQueue.remove(java.base@11-internal/ReferenceQueue.java:151)
- waiting to re-lock in wait() <0x00000000f81d3758> (a java.lang.ref.ReferenceQueue$Lock)
at jdk.internal.ref.CleanerImpl.run(java.base@11-internal/CleanerImpl.java:148)
at java.lang.Thread.run(java.base@11-internal/Thread.java:841)
at jdk.internal.misc.InnocuousThread.run(java.base@11-internal/InnocuousThread.java:134)
"Service Thread" #11 daemon prio=9 os_prio=0 tid=0x0000000006a88800 nid=0x27dc runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_blocked
Thread: 0x0000000006a88800 [0x27dc] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
"MainThread" #13 prio=5 os_prio=0 tid=0x0000000006a89000 nid=0x29d4 runnable [0x0000000061bde000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_blocked
Thread: 0x0000000006a89000 [0x29d4] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
at java.lang.Runtime.gc(java.base@11-internal/Native Method)
at java.lang.System.gc(java.base@11-internal/System.java:1743)
at Util.generateOOME(Util.java:103)
at TwentyThousandTest.doAttempt(TwentyThousandTest.java:156)
at TwentyThousandTest.main(TwentyThousandTest.java:86)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@11-internal/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@11-internal/NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@11-internal/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@11-internal/Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.lang.Thread.run(java.base@11-internal/Thread.java:841)
"AWT-Windows" #16 daemon prio=6 os_prio=0 tid=0x0000000006a8c000 nid=0x2f70 runnable [0x000000006daae000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_in_native
Thread: 0x0000000006a8c000 [0x2f70] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_in_native
at sun.awt.windows.WToolkit.eventLoop(java.desktop@11-internal/Native Method)
at sun.awt.windows.WToolkit.run(java.desktop@11-internal/WToolkit.java:301)
at java.lang.Thread.run(java.base@11-internal/Thread.java:841)
"Swing-Shell" #22 daemon prio=10 os_prio=2 tid=0x0000000006a90000 nid=0x2bfc waiting on condition [0x000000006f81e000]
java.lang.Thread.State: WAITING (parking)
JavaThread state: _thread_blocked
Thread: 0x0000000006a90000 [0x2bfc] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
at jdk.internal.misc.Unsafe.park(java.base@11-internal/Native Method)
- parking to wait for <0x00000000f82a14d0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(java.base@11-internal/LockSupport.java:194)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11-internal/AbstractQueuedSynchronizer.java:2081)
at java.util.concurrent.LinkedBlockingQueue.take(java.base@11-internal/LinkedBlockingQueue.java:433)
at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11-internal/ThreadPoolExecutor.java:1054)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11-internal/ThreadPoolExecutor.java:1114)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11-internal/ThreadPoolExecutor.java:628)
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$1.run(java.desktop@11-internal/Win32ShellFolderManager2.java:543)
at java.lang.Thread.run(java.base@11-internal/Thread.java:841)
"TimerQueue" #38 daemon prio=5 os_prio=0 tid=0x0000000006a8d000 nid=0x2f10 waiting on condition [0x000000007297f000]
java.lang.Thread.State: WAITING (parking)
JavaThread state: _thread_blocked
Thread: 0x0000000006a8d000 [0x2f10] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
JavaThread state: _thread_blocked
at jdk.internal.misc.Unsafe.park(java.base@11-internal/Native Method)
- parking to wait for <0x00000000f8201918> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(java.base@11-internal/LockSupport.java:194)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11-internal/AbstractQueuedSynchronizer.java:2081)
at java.util.concurrent.DelayQueue.take(java.base@11-internal/DelayQueue.java:217)
at javax.swing.TimerQueue.run(java.desktop@11-internal/TimerQueue.java:171)
at java.lang.Thread.run(java.base@11-internal/Thread.java:841)
"VM Thread" os_prio=2 tid=0x00000000069f9800 nid=0x18bc runnable
"GC Thread#0" os_prio=2 tid=0x000000000033b800 nid=0x2d0c runnable
"GC Thread#1" os_prio=2 tid=0x000000000033d000 nid=0x2bac runnable
"GC Thread#2" os_prio=2 tid=0x000000000033f800 nid=0x2fb8 runnable
"GC Thread#3" os_prio=2 tid=0x0000000000341000 nid=0x1ad0 runnable
"G1 Main Marker" os_prio=2 tid=0x0000000000350800 nid=0x20fc runnable
"G1 Conc#0" os_prio=2 tid=0x0000000000352800 nid=0x209c runnable
"G1 Refine#0" os_prio=2 tid=0x0000000005903800 nid=0x2968 runnable
"G1 Refine#1" os_prio=2 tid=0x0000000005905000 nid=0x2da0 runnable
"G1 Refine#2" os_prio=2 tid=0x0000000005909000 nid=0x2fcc runnable
"G1 Refine#3" os_prio=2 tid=0x000000000590f000 nid=0x2dd0 runnable
"G1 Young RemSet Sampling" os_prio=2 tid=0x0000000005911000 nid=0x980 runnable
"VM Periodic Task Thread" os_prio=2 tid=0x0000000061ed7800 nid=0x2a90 waiting on condition
JNI global refs: 97, weak refs: 40
--- Timeout information end.
20-02-2018
This test doesnt fail in Ubuntu 16.04. In Mac OSX 10.12.5 it throws OOME(for which we have JDK-8154548) and doesn't time out.
In Windows 10 also the test times out.