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

Issue 2102923002: Change MessagePumpForGpu and SharedMemory to ScopedHandle (Closed)

Created:
4 years, 5 months ago by stanisc
Modified:
4 years, 5 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, sadrul, gavinp+memory_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change MessagePumpForGpu and SharedMemory to ScopedHandle. One of the suspected reasons for GPU hangs is handle recycling with subsequent usage of the old closed handle - either closing it again or waiting on it. Changing these two classes from plain HANDLE to ScopedHandle should help to verify at least the double close case. It should help to detect handle leaks too. BUG=620904 Committed: https://crrev.com/2660facba19f2101c6c9c67e2739511baf4cb6b8 Cr-Commit-Position: refs/heads/master@{#403082}

Patch Set 1 #

Patch Set 2 : Fixed unit tests #

Total comments: 4

Patch Set 3 : Fixed spacing and added Bug ID #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -42 lines) Patch
M base/memory/shared_memory.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M base/memory/shared_memory_unittest.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M base/memory/shared_memory_win.cc View 1 10 chunks +18 lines, -21 lines 0 comments Download
M base/message_loop/message_pump_win.h View 1 chunk +1 line, -1 line 0 comments Download
M base/message_loop/message_pump_win.cc View 4 chunks +7 lines, -8 lines 0 comments Download
M base/metrics/persistent_memory_allocator_unittest.cc View 1 2 3 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
stanisc
PTAL https://codereview.chromium.org/2102923002/diff/20001/base/memory/shared_memory_unittest.cc File base/memory/shared_memory_unittest.cc (left): https://codereview.chromium.org/2102923002/diff/20001/base/memory/shared_memory_unittest.cc#oldcode595 base/memory/shared_memory_unittest.cc:595: SharedMemory shared_memory_handle_dup( This part of the test is ...
4 years, 5 months ago (2016-06-29 18:36:18 UTC) #3
Lei Zhang
Is there a relevant BUG= entry?
4 years, 5 months ago (2016-06-29 18:42:53 UTC) #4
Lei Zhang
lgtm https://codereview.chromium.org/2102923002/diff/20001/base/memory/shared_memory.h File base/memory/shared_memory.h (right): https://codereview.chromium.org/2102923002/diff/20001/base/memory/shared_memory.h#newcode270 base/memory/shared_memory.h:270: win::ScopedHandle mapped_file_; nit: extra space to keep the ...
4 years, 5 months ago (2016-06-29 18:47:15 UTC) #5
stanisc
https://codereview.chromium.org/2102923002/diff/20001/base/memory/shared_memory.h File base/memory/shared_memory.h (right): https://codereview.chromium.org/2102923002/diff/20001/base/memory/shared_memory.h#newcode270 base/memory/shared_memory.h:270: win::ScopedHandle mapped_file_; On 2016/06/29 18:47:15, Lei Zhang wrote: > ...
4 years, 5 months ago (2016-06-29 21:29:06 UTC) #7
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/2102923002/40001
4 years, 5 months ago (2016-06-30 00:10:48 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/96357)
4 years, 5 months ago (2016-06-30 02:26:13 UTC) #12
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/2102923002/40001
4 years, 5 months ago (2016-06-30 02:56:29 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-30 03:48:03 UTC) #16
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 03:48:14 UTC) #17
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 03:51:39 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2660facba19f2101c6c9c67e2739511baf4cb6b8
Cr-Commit-Position: refs/heads/master@{#403082}

Powered by Google App Engine
This is Rietveld 408576698