- if ((thread != current_thread() || exception == EXC_CORPSE_NOTIFY)
- && behavior != EXCEPTION_STATE) {
- use_fast_retrieve = FALSE;
-
- task_reference(task);
- task_port = convert_task_to_port(task);
- /* task ref consumed */
- thread_reference(thread);
- thread_port = convert_thread_to_port(thread);
- /* thread ref consumed */
+ if (behavior != EXCEPTION_STATE) {
+ if (thread != current_thread() || exception == EXC_CORPSE_NOTIFY) {