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

Issue 2596903002: discardable shared memory: Allow resetting the allocator instance. (Closed)

Created:
4 years ago by sadrul
Modified:
4 years ago
Reviewers:
Nico, reveman
CC:
chromium-reviews, gavinp+memory_chromium.org, tfarina, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

discardable shared memory: Allow resetting the allocator instance. Make sure the allocator can be unset when it is destroyed. This is necessary when running tests, when each test recreates the allocator instance. In case of views_aura_mus_unittests, this causes a number of crashing failures, causing a lot of tests to be re-run separately. Without this fix, the test step takes ~40 seconds to complete. With this fix, it takes ~7 seconds. BUG=none Committed: https://crrev.com/b61111db19d6b9f012c470d01a59bcb4e7c882db Cr-Commit-Position: refs/heads/master@{#440270}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -6 lines) Patch
M base/memory/discardable_memory_allocator.cc View 1 chunk +1 line, -6 lines 0 comments Download
M ui/views/mus/mus_client.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
sadrul
4 years ago (2016-12-21 17:41:49 UTC) #4
reveman
lgtm
4 years ago (2016-12-21 17:51:26 UTC) #5
sadrul
+thakis@ for base/
4 years ago (2016-12-21 17:52:41 UTC) #7
Nico
what's this for? test?
4 years ago (2016-12-21 18:00:27 UTC) #8
sadrul
On 2016/12/21 18:00:27, Nico (swamped sorry) wrote: > what's this for? test? It is, yes. ...
4 years ago (2016-12-21 18:01:46 UTC) #9
Nico
On 2016/12/21 18:01:46, sadrul wrote: > On 2016/12/21 18:00:27, Nico (swamped sorry) wrote: > > ...
4 years ago (2016-12-21 18:03:52 UTC) #10
sadrul
On 2016/12/21 18:03:52, Nico (swamped sorry) wrote: > On 2016/12/21 18:01:46, sadrul wrote: > > ...
4 years ago (2016-12-21 18:06:44 UTC) #12
sadrul
On 2016/12/21 18:06:44, sadrul wrote: > On 2016/12/21 18:03:52, Nico (swamped sorry) wrote: > > ...
4 years ago (2016-12-21 18:28:42 UTC) #15
Nico
lgtm, thanks!
4 years ago (2016-12-21 21:17:23 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2596903002/1
4 years ago (2016-12-21 23:53:18 UTC) #20
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-22 00:01:17 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-22 00:04:21 UTC) #25
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b61111db19d6b9f012c470d01a59bcb4e7c882db
Cr-Commit-Position: refs/heads/master@{#440270}

Powered by Google App Engine
This is Rietveld 408576698