|
|
Chromium Code Reviews
DescriptionFix loop early exit bug in blockfile cache Trim behavior.
This bug fixes an issue in which a "done" bool in a loop is never set
since it is reinitialized at the top of the loop body.
(Detected as a dead store by the Clang static analyzer.)
R=wez@chromium.org,msramek@chromium.org
BUG=686838
Review-Url: https://codereview.chromium.org/2673863003
Cr-Commit-Position: refs/heads/master@{#449392}
Committed: https://chromium.googlesource.com/chromium/src/+/468141a302bc1a593c5f9ec5286e858cf3a5f465
Patch Set 1 #
Messages
Total messages: 25 (13 generated)
Description was changed from ========== Fix loop early exit bug in disk cache Trim bheavior. This bug fixes an issue in which a "done" bool in a loop is never set since it is reinitialized at the top of the loop body. (Detected as a dead store by the Clang static analyzer.) R=wez@chromium.org,msramek@chromium.org BUG=686838 ========== to ========== Fix loop early exit bug in disk cache Trim bheavior. This bug fixes an issue in which a "done" bool in a loop is never set since it is reinitialized at the top of the loop body. (Detected as a dead store by the Clang static analyzer.) R=wez@chromium.org,msramek@chromium.org BUG=686838 ==========
Description was changed from ========== Fix loop early exit bug in disk cache Trim bheavior. This bug fixes an issue in which a "done" bool in a loop is never set since it is reinitialized at the top of the loop body. (Detected as a dead store by the Clang static analyzer.) R=wez@chromium.org,msramek@chromium.org BUG=686838 ========== to ========== Fix loop early exit bug in blockfile cache Trim behavior. This bug fixes an issue in which a "done" bool in a loop is never set since it is reinitialized at the top of the loop body. (Detected as a dead store by the Clang static analyzer.) R=wez@chromium.org,msramek@chromium.org BUG=686838 ==========
Not a high priority issue, but it popped up during a spot inspection of the Clang analyzer results.
LGTM Looks like the effect of this is to alter which cache entry gets evicted?
Wow, this code is from 2009. By now, it could easily be expected behavior not to quit the loop :) LGTM, but I'm not an owner.
The CQ bit was checked by msramek@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by kmarshall@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
kmarshall@chromium.org changed reviewers: + mmenke@chromium.org
mmenke for OWNERS review
kmarshall@chromium.org changed reviewers: + cbentzel@chromium.org - mmenke@chromium.org
R += cbentzel (mmenke is OOO)
On 2017/02/06 18:34:02, Kevin M wrote: > R += cbentzel (mmenke is OOO) Sorry for delay. This does LGTM, I was trying to understand testing and what possibe uninted side-effects would be. But still LGTM.
On 2017/02/08 23:27:16, cbentzel wrote: > On 2017/02/06 18:34:02, Kevin M wrote: > > R += cbentzel (mmenke is OOO) > > Sorry for delay. This does LGTM, I was trying to understand testing and what > possibe uninted side-effects would be. But still LGTM. IIUC the broken version of the code will incorrectly prioritize eviction of HIGH_USE nodes, rather than unused or LOW_USE ones, which sounds like it may actually have significant run-time performance impact?
The CQ bit was checked by kmarshall@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 1, "attempt_start_ts": 1486667173820240, "parent_rev":
"76115ff06c69c188db4f51db7816cb5700d63788", "commit_rev":
"468141a302bc1a593c5f9ec5286e858cf3a5f465"}
Message was sent while issue was closed.
Description was changed from ========== Fix loop early exit bug in blockfile cache Trim behavior. This bug fixes an issue in which a "done" bool in a loop is never set since it is reinitialized at the top of the loop body. (Detected as a dead store by the Clang static analyzer.) R=wez@chromium.org,msramek@chromium.org BUG=686838 ========== to ========== Fix loop early exit bug in blockfile cache Trim behavior. This bug fixes an issue in which a "done" bool in a loop is never set since it is reinitialized at the top of the loop body. (Detected as a dead store by the Clang static analyzer.) R=wez@chromium.org,msramek@chromium.org BUG=686838 Review-Url: https://codereview.chromium.org/2673863003 Cr-Commit-Position: refs/heads/master@{#449392} Committed: https://chromium.googlesource.com/chromium/src/+/468141a302bc1a593c5f9ec5286e... ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/468141a302bc1a593c5f9ec5286e... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
