Print this page
5042 stop using deprecated atomic functions

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/common/modules/genunix/genunix.c
          +++ new/usr/src/cmd/mdb/common/modules/genunix/genunix.c
↓ open down ↓ 3599 lines elided ↑ open up ↑
3600 3600          eqdp->eqd_size = eq.eq_size;
3601 3601  
3602 3602          /*
3603 3603           * The newest elements in the queue are on the pending list, so we
3604 3604           * push those on to our stack first.
3605 3605           */
3606 3606          eqd_push_list(eqdp, (uintptr_t)eq.eq_pend);
3607 3607  
3608 3608          /*
3609 3609           * If eq_ptail is set, it may point to a subset of the errors on the
3610      -         * pending list in the event a casptr() failed; if ptail's data is
3611      -         * already in our stack, NULL out eq_ptail and ignore it.
     3610 +         * pending list in the event a atomic_cas_ptr() failed; if ptail's
     3611 +         * data is already in our stack, NULL out eq_ptail and ignore it.
3612 3612           */
3613 3613          if (eq.eq_ptail != NULL) {
3614 3614                  for (i = 0; i < eqdp->eqd_qpos; i++) {
3615 3615                          if (eqdp->eqd_stack[i] == (uintptr_t)eqe.eqe_data) {
3616 3616                                  eq.eq_ptail = NULL;
3617 3617                                  break;
3618 3618                          }
3619 3619                  }
3620 3620          }
3621 3621  
↓ open down ↓ 1006 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX