comparison src/share/vm/runtime/thread.cpp @ 1836:894b1d7c7e01

6423256: GC stacks should use a better data structure 6942771: SEGV in ParScanThreadState::take_from_overflow_stack Reviewed-by: apetrusenko, ysr, pbk
author jcoomes
date Tue, 28 Sep 2010 15:56:15 -0700
parents ee5cc9e78493
children 8f6f7587d292
comparison
equal deleted inserted replaced
1835:4805b9f4779e 1836:894b1d7c7e01
1071 break; 1071 break;
1072 prev_time = now; 1072 prev_time = now;
1073 } 1073 }
1074 } 1074 }
1075 1075
1076 #if 0
1076 if (is_error_reported()) { 1077 if (is_error_reported()) {
1077 // A fatal error has happened, the error handler(VMError::report_and_die) 1078 // A fatal error has happened, the error handler(VMError::report_and_die)
1078 // should abort JVM after creating an error log file. However in some 1079 // should abort JVM after creating an error log file. However in some
1079 // rare cases, the error handler itself might deadlock. Here we try to 1080 // rare cases, the error handler itself might deadlock. Here we try to
1080 // kill JVM if the fatal error handler fails to abort in 2 minutes. 1081 // kill JVM if the fatal error handler fails to abort in 2 minutes.
1098 // Wake up 5 seconds later, the fatal handler may reset OnError or 1099 // Wake up 5 seconds later, the fatal handler may reset OnError or
1099 // ShowMessageBoxOnError when it is ready to abort. 1100 // ShowMessageBoxOnError when it is ready to abort.
1100 os::sleep(this, 5 * 1000, false); 1101 os::sleep(this, 5 * 1000, false);
1101 } 1102 }
1102 } 1103 }
1104 #endif // #if 0
1103 1105
1104 PeriodicTask::real_time_tick(time_to_wait); 1106 PeriodicTask::real_time_tick(time_to_wait);
1105 1107
1106 // If we have no more tasks left due to dynamic disenrollment, 1108 // If we have no more tasks left due to dynamic disenrollment,
1107 // shut down the thread since we don't currently support dynamic enrollment 1109 // shut down the thread since we don't currently support dynamic enrollment