JDK-4530775 : jvm dies with "panic: GC failed to enter single threaded mode" message
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.
under stress the jvm (1.2.2_010 on windows nt on 4cpu compaq)
dies with the error message:
panic: GC failed to enter single threaded mode (possibly undetached threads?),
error code = -1
According to MSDN: "If the thread is making a kernel call, SuspendThread fails.
An application may need to repeat the SuspendThread several times for it to
The fix would be to call SuspendThread() inside the loop for a reasonable
number of times. See http://jpsesvr.sfbay.sun.com:8080/ctetools/servlet/sun.cte.codeMngt.ViewDetail?op=approve&id=43
This bug is only possible on a multiprocessor machine with a heavy load of threads and a constant lack of memory.
GC thread is trying to suspend all Java threads to do Garbage Collection and fails to suspend one of them.