JDK-4530775 : jvm dies with "panic: GC failed to enter single threaded mode" message
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.2.2_010
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-11-22
  • Updated: 2012-10-08
  • Resolved: 2002-01-31
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
1.2.2_012 012Fixed
Related Reports
Relates :  
Description
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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.2.2_012 1.3.1_04 1.4.0_01 hopper FIXED IN: 1.2.2_012 1.3.1_04 1.4.0_01 hopper INTEGRATED IN: 1.2.2_012 1.3.1_04 1.4.0_01 hopper
14-06-2004

PUBLIC COMMENTS 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
10-06-2004

SUGGESTED FIX 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 succeed." 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 for details. ###@###.### 2002-01-24
24-01-2002

EVALUATION 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. ###@###.### 2002-01-24
24-01-2002