Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Issue 1741403002: base: Avoid calling VirtualAlloc with 0 length. (Closed)

Created:
4 years, 9 months ago by reveman
Modified:
4 years, 9 months ago
Reviewers:
penny, Nico
CC:
chromium-reviews, gavinp+memory_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Avoid calling VirtualAlloc with 0 length. BUG=577786, 590792 TEST=base_unittests --gtest_filter=DiscardableSharedMemoryTest.ZeroSize Committed: https://crrev.com/4ffe952ecf9319a9f6eed847e7a6d6d20b893e4c Cr-Commit-Position: refs/heads/master@{#378595}

Patch Set 1 #

Total comments: 5

Patch Set 2 : return PURGED in Lock #

Patch Set 3 : keep most of unit test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M base/memory/discardable_shared_memory.cc View 1 1 chunk +4 lines, -0 lines 2 comments Download
M base/memory/discardable_shared_memory_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1741403002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1741403002/1
4 years, 9 months ago (2016-02-28 14:39:45 UTC) #2
reveman
pennymac@, wdyt? I'm hoping this will fix: https://build.chromium.org/p/chromium.fyi/builders/Chromium%20Win%2010/builds/2253
4 years, 9 months ago (2016-02-28 14:41:34 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-28 15:57:13 UTC) #6
penny
So I suppose I think we should be catching these "bad" arguments, in case they ...
4 years, 9 months ago (2016-02-28 18:44:01 UTC) #7
penny
On 2016/02/28 18:44:01, penny wrote: > So I suppose I think we should be catching ...
4 years, 9 months ago (2016-02-28 18:47:12 UTC) #8
reveman
https://codereview.chromium.org/1741403002/diff/1/base/memory/discardable_shared_memory.cc File base/memory/discardable_shared_memory.cc (right): https://codereview.chromium.org/1741403002/diff/1/base/memory/discardable_shared_memory.cc#newcode205 base/memory/discardable_shared_memory.cc:205: length = AlignToPageSize(mapped_size_) - offset; On 2016/02/28 at 18:44:00, ...
4 years, 9 months ago (2016-02-28 20:36:16 UTC) #9
penny
Sure, I'm on board with tracking down delinquents at a higher level. Just see my ...
4 years, 9 months ago (2016-02-28 21:49:10 UTC) #10
reveman
+thakis for base/ https://codereview.chromium.org/1741403002/diff/1/base/memory/discardable_shared_memory.cc File base/memory/discardable_shared_memory.cc (right): https://codereview.chromium.org/1741403002/diff/1/base/memory/discardable_shared_memory.cc#newcode235 base/memory/discardable_shared_memory.cc:235: if (length && On 2016/02/28 at ...
4 years, 9 months ago (2016-02-29 16:36:59 UTC) #12
Nico
https://codereview.chromium.org/1741403002/diff/40001/base/memory/discardable_shared_memory.cc File base/memory/discardable_shared_memory.cc (right): https://codereview.chromium.org/1741403002/diff/40001/base/memory/discardable_shared_memory.cc#newcode205 base/memory/discardable_shared_memory.cc:205: length = AlignToPageSize(mapped_size_) - offset; this writes to length_ ...
4 years, 9 months ago (2016-02-29 20:10:13 UTC) #14
reveman
https://codereview.chromium.org/1741403002/diff/40001/base/memory/discardable_shared_memory.cc File base/memory/discardable_shared_memory.cc (right): https://codereview.chromium.org/1741403002/diff/40001/base/memory/discardable_shared_memory.cc#newcode205 base/memory/discardable_shared_memory.cc:205: length = AlignToPageSize(mapped_size_) - offset; On 2016/02/29 at 20:10:13, ...
4 years, 9 months ago (2016-02-29 20:42:45 UTC) #15
Will Harris
will this be committed soon? This is the final breaking CL on the win10 bot ...
4 years, 9 months ago (2016-03-01 17:27:39 UTC) #16
Nico
lgtm
4 years, 9 months ago (2016-03-01 17:38:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1741403002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1741403002/40001
4 years, 9 months ago (2016-03-01 20:04:51 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-01 23:15:56 UTC) #21
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 23:17:22 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4ffe952ecf9319a9f6eed847e7a6d6d20b893e4c
Cr-Commit-Position: refs/heads/master@{#378595}

Powered by Google App Engine
This is Rietveld 408576698