comparison src/share/vm/runtime/thread.cpp @ 2302:da091bb67459

7022037: Pause when exiting if debugger is attached on windows Reviewed-by: dsamersoff, kamg, hosterda
author sla
date Mon, 28 Feb 2011 14:19:52 +0100
parents 5197f3d713a1
children c7f3d0b4570f
comparison
equal deleted inserted replaced
2301:f91db74a6810 2302:da091bb67459
3642 3642
3643 // Hang forever on exit if we are reporting an error. 3643 // Hang forever on exit if we are reporting an error.
3644 if (ShowMessageBoxOnError && is_error_reported()) { 3644 if (ShowMessageBoxOnError && is_error_reported()) {
3645 os::infinite_sleep(); 3645 os::infinite_sleep();
3646 } 3646 }
3647 os::wait_for_keypress_at_exit();
3647 3648
3648 if (JDK_Version::is_jdk12x_version()) { 3649 if (JDK_Version::is_jdk12x_version()) {
3649 // We are the last thread running, so check if finalizers should be run. 3650 // We are the last thread running, so check if finalizers should be run.
3650 // For 1.3 or later this is done in thread->invoke_shutdown_hooks() 3651 // For 1.3 or later this is done in thread->invoke_shutdown_hooks()
3651 HandleMark rm(thread); 3652 HandleMark rm(thread);