src/share/vm/runtime/thread.cpp

Print this page
rev 2110 : [mq]: is-debugger-present

*** 3642,3651 **** --- 3642,3652 ---- // Hang forever on exit if we are reporting an error. 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. // For 1.3 or later this is done in thread->invoke_shutdown_hooks() HandleMark rm(thread);