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
Blake Mizerany
0fb45dacf0 fix doc typo 2013-08-26 16:42:09 -07:00
Brad Fitzpatrick
6dad98a783 initial commit. 2013-07-23 18:03:06 -07:00