Lines Matching refs:thread
82 #include <kern/thread.h>
120 * will be throttled. The throttling is done by giving the thread that's trying to demand zero a page a
381 * one thread is banging on this object, no problem with the unprotected
527 thread_t thread = current_thread();
529 if (thread->options & TH_OPT_VMPRIV)
532 thread->t_page_creation_count++;
538 thread->t_page_creation_count > vm_page_creation_throttle) {
542 elapsed_sec = tv_sec - thread->t_page_creation_time;
544 if (elapsed_sec <= 6 || (thread->t_page_creation_count / elapsed_sec) >= (vm_page_creation_throttle / 6)) {
556 thread->t_page_creation_time = tv_sec;
557 thread->t_page_creation_count = (vm_page_creation_throttle / 6) * 5;
563 thread->t_page_creation_time = tv_sec;
564 thread->t_page_creation_count = 0;
880 * some other thread from trying to bring in
887 * 2) To prevent another thread from racing us down the
1499 * on the placeholder page, and if the pushing thread
1504 * and force this thread to retry the vm_fault_page after
2975 * a different thread could have inserted
3028 * a different thread could have inserted
3110 * a different thread could have inserted
3197 * a different thread could have inserted
3558 * could allow another thread to insert
3758 * thread has it read_locked (in vm_map_pageable), we
4302 thread_t thread = current_thread();
4308 if (thread != THREAD_NULL && thread->task != TASK_NULL)
4309 thread->task->faults++;
4373 * some other thread from trying to bring in