Print this page
6583 remove whole-process swapping

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/timers.c
          +++ new/usr/src/uts/common/os/timers.c
↓ open down ↓ 646 lines elided ↑ open up ↑
 647  647                   */
 648  648                  if (t->t_rprof == NULL)
 649  649                          t->t_rprof = kmem_zalloc(sizeof (struct rprof),
 650  650                              KM_NOSLEEP);
 651  651                  if (t->t_rprof == NULL)
 652  652                          continue;
 653  653  
 654  654                  thread_lock(t);
 655  655                  switch (t->t_state) {
 656  656                  case TS_SLEEP:
 657      -                        /*
 658      -                         * Don't touch the lwp is it is swapped out.
 659      -                         */
 660      -                        if (!(t->t_schedflag & TS_LOAD)) {
 661      -                                mstate = LMS_SLEEP;
 662      -                                break;
 663      -                        }
 664  657                          switch (mstate = ttolwp(t)->lwp_mstate.ms_prev) {
 665  658                          case LMS_TFAULT:
 666  659                          case LMS_DFAULT:
 667  660                          case LMS_KFAULT:
 668  661                          case LMS_USER_LOCK:
 669  662                                  break;
 670  663                          default:
 671  664                                  mstate = LMS_SLEEP;
 672  665                                  break;
 673  666                          }
↓ open down ↓ 821 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX