+
+ static bool noLocksHeld(void) {
+ bool gotAll = true;
+ for (int i = 0; i < SIDE_TABLE_STRIPE && gotAll; i++) {
+ SideTable *s = (SideTable *)(&table_buf[i * SIDE_TABLE_SIZE]);
+ if (OSSpinLockTry(&s->slock)) {
+ OSSpinLockUnlock(&s->slock);
+ } else {
+ gotAll = false;
+ }
+ }
+ return gotAll;
+ }