--- old/src/share/vm/runtime/thread.cpp 2011-02-25 15:53:23.778052700 +0100 +++ new/src/share/vm/runtime/thread.cpp 2011-02-25 15:53:23.341027700 +0100 @@ -3644,6 +3644,7 @@ if (ShowMessageBoxOnError && is_error_reported()) { os::infinite_sleep(); } + os::check_for_debugger_and_wait(); if (JDK_Version::is_jdk12x_version()) { // We are the last thread running, so check if finalizers should be run.