Commit Graph

3 Commits

Author SHA1 Message Date
Tipp Moseley
d995f8a668 Fixes a concurrency error in groupcache. Previously, multiple Get
requests could simultaneously result in a load().  Only requests that
enter singleflight Do concurrently would be deduped, so it was possible for
populateCache to be called multiple times for the same key.  That
would result in overcounting nbytes, and eventually leading to a
livelock where nbytes > cacheBytes, but there were no entries in the
cache.

Change-Id: I5b304ce82041c1310c31b662486744e86509cc53
2016-01-27 11:33:35 -08:00
Fumitoshi Ukai
5fb127ef79 goprotobuf has moved to GitHub
code.google.com/p/goprotobuf to github.com/golang/groupcache
2014-11-25 13:24:33 +09:00
Brad Fitzpatrick
6dad98a783 initial commit. 2013-07-23 18:03:06 -07:00