HttpCache: Don't set mem hints based on doomed versions of entries.
This concerns the following scenario: Suppose you have a transaction t1, with a cache entry e1. Then t2, with entry e2 comes in, becomes definitive for the same URL, and gets t1 to doom its entry. The following sort of interleaving of events is possible: doom(e1) t2.writeInMemoryCacheHints() t1.writeInMemoryCacheHints() At this point a cache read later will have memory hints based on t1, but cache contents based on t2. Bug: 787958 Change-Id: I8c42d975fdbf8f6d1fb76238a71ee383842a8576 Reviewed-on: https://chromium-review.googlesource.com/791154Reviewed-by:Julia Tuttle <juliatuttle@chromium.org> Reviewed-by:
Shivani Sharma <shivanisha@chromium.org> Commit-Queue: Maks Orlovich <morlovich@chromium.org> Cr-Commit-Position: refs/heads/master@{#522168}
Showing
Please register or sign in to comment