Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for missCount (0.16 sec)

  1. pkg/cache/ttlCache.go

    	// forgets.
    	c.entries.Range(func(key any, value any) bool {
    		e := value.(*entry)
    		if e.expiration <= n {
    			c.entries.Delete(key)
    			c.callback(key, value.(*entry).value)
    			// Note: can miscount if the key was removed before it was evicted
    			atomic.AddUint64(&c.stats.Evictions, 1)
    		}
    		return true
    	})
    }
    
    func (c *ttlCache) EvictExpired() {
    	c.evictExpired(time.Now())
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/select.go

    			r := mkcallstmt("selectsetpc", typecheck.NodAddr(ir.NewIndexExpr(base.Pos, pcs, ir.NewInt(base.Pos, int64(i)))))
    			init = append(init, r)
    		}
    	}
    	if nsends+nrecvs != ncas {
    		base.Fatalf("walkSelectCases: miscount: %v + %v != %v", nsends, nrecvs, ncas)
    	}
    
    	// run the select
    	base.Pos = sellineno
    	chosen := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top