Print this page
6583 remove whole-process swapping

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/common/modules/genunix/findstack_subr.c
          +++ new/usr/src/cmd/mdb/common/modules/genunix/findstack_subr.c
↓ open down ↓ 155 lines elided ↑ open up ↑
 156  156          if (mdb_ctf_vread(&thr, "kthread_t", "mdb_findstack_kthread_t",
 157  157              addr, print_warnings ? 0 : MDB_CTF_VREAD_QUIET) == -1) {
 158  158                  fsip->fsi_failed = FSI_FAIL_BADTHREAD;
 159  159                  return (DCMD_ERR);
 160  160          }
 161  161  
 162  162          fsip->fsi_sobj_ops = (uintptr_t)thr.t_sobj_ops;
 163  163          fsip->fsi_tstate = thr.t_state;
 164  164          fsip->fsi_panic = !!(thr.t_flag & T_PANIC);
 165  165  
 166      -        if ((thr.t_schedflag & TS_LOAD) == 0) {
 167      -                if (print_warnings)
 168      -                        mdb_warn("thread %p isn't in memory\n", addr);
 169      -                fsip->fsi_failed = FSI_FAIL_NOTINMEMORY;
 170      -                return (DCMD_ERR);
 171      -        }
 172      -
 173  166          if (thr.t_stk < thr.t_stkbase) {
 174  167                  if (print_warnings)
 175  168                          mdb_warn(
 176  169                              "stack base or stack top corrupt for thread %p\n",
 177  170                              addr);
 178  171                  fsip->fsi_failed = FSI_FAIL_THREADCORRUPT;
 179  172                  return (DCMD_ERR);
 180  173          }
 181  174  
 182  175          kbase = (uintptr_t)thr.t_stkbase;
↓ open down ↓ 240 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX