X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..d1ecb069dfe24481e4a83f44cb5217a2b06746d7:/osfmk/kern/thread_act.c diff --git a/osfmk/kern/thread_act.c b/osfmk/kern/thread_act.c index da6510382..8c18ffc30 100644 --- a/osfmk/kern/thread_act.c +++ b/osfmk/kern/thread_act.c @@ -77,8 +77,6 @@ #include -#include - void act_abort(thread_t); void install_special_handler_locked(thread_t); void special_handler_continue(void); @@ -87,9 +85,12 @@ void special_handler_continue(void); * Internal routine to mark a thread as started. * Always called with the thread locked. * - * Note: function intentionall declared with the noinline attribute to + * Note: function intentionally declared with the noinline attribute to * prevent multiple declaration of probe symbols in this file; we would * prefer "#pragma noinline", but gcc does not support it. + * PR-6385749 -- the lwp-start probe should fire from within the context + * of the newly created thread. Commented out for now, in case we + * turn it into a dead code probe. */ void thread_start_internal( @@ -97,7 +98,7 @@ thread_start_internal( { clear_wait(thread, THREAD_AWAKENED); thread->started = TRUE; - DTRACE_PROC1(lwp__start, thread_t, thread); + // DTRACE_PROC1(lwp__start, thread_t, thread); } /* @@ -110,8 +111,6 @@ thread_terminate_internal( { kern_return_t result = KERN_SUCCESS; - DTRACE_PROC(lwp__exit); - thread_mtx_lock(thread); if (thread->active) { @@ -759,7 +758,6 @@ special_handler_continue(void) thread->sched_pri = DEPRESSPRI; myprocessor->current_pri = thread->sched_pri; - thread->sched_mode &= ~TH_MODE_PREEMPT; } thread_unlock(thread); splx(s);