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

Issue 613843003: Avoid holding locks across sync IPCs in command buffer (Closed)

Created:
6 years, 2 months ago by jbauman
Modified:
5 years, 5 months ago
Reviewers:
Peng, vmiura, piman
CC:
chromium-reviews, piman+watch_chromium.org, jamesr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Avoid holding locks across sync IPCs in command buffer Pepper drops its global lock and reacquires it during synchronous IPCs, so these can turn into deadlocks. BUG=418651

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -62 lines) Patch
M gpu/command_buffer/client/program_info_manager.cc View 1 6 chunks +82 lines, -56 lines 0 comments Download
M gpu/command_buffer/client/share_group.cc View 1 chunk +9 lines, -6 lines 3 comments Download

Messages

Total messages: 17 (3 generated)
jbauman
6 years, 2 months ago (2014-09-29 23:10:01 UTC) #2
jbauman
6 years, 2 months ago (2014-09-29 23:11:09 UTC) #3
Peng
https://codereview.chromium.org/613843003/diff/1/gpu/command_buffer/client/program_info_manager.cc File gpu/command_buffer/client/program_info_manager.cc (right): https://codereview.chromium.org/613843003/diff/1/gpu/command_buffer/client/program_info_manager.cc#newcode456 gpu/command_buffer/client/program_info_manager.cc:456: return gl->GetUniformLocationHelper(program, name); Does this gl call use sync ...
6 years, 2 months ago (2014-09-29 23:28:59 UTC) #5
jbauman
On 2014/09/29 23:28:59, Peng wrote: > https://codereview.chromium.org/613843003/diff/1/gpu/command_buffer/client/program_info_manager.cc > File gpu/command_buffer/client/program_info_manager.cc (right): > > https://codereview.chromium.org/613843003/diff/1/gpu/command_buffer/client/program_info_manager.cc#newcode456 > ...
6 years, 2 months ago (2014-09-29 23:41:56 UTC) #6
Peng
Tested this CL with the app several times, and the deadlock never happened again. thanks.
6 years, 2 months ago (2014-09-30 14:52:35 UTC) #7
Peng
Tested this CL with the app several times, and the deadlock never happened again. thanks.
6 years, 2 months ago (2014-09-30 14:52:38 UTC) #8
piman
https://codereview.chromium.org/613843003/diff/20001/gpu/command_buffer/client/share_group.cc File gpu/command_buffer/client/share_group.cc (right): https://codereview.chromium.org/613843003/diff/20001/gpu/command_buffer/client/share_group.cc#newcode65 gpu/command_buffer/client/share_group.cc:65: } I think this change would cause a potential ...
6 years, 2 months ago (2014-10-02 21:44:02 UTC) #10
jbauman
On 2014/10/02 21:44:02, piman (Very slow to review) wrote: > https://codereview.chromium.org/613843003/diff/20001/gpu/command_buffer/client/share_group.cc > File gpu/command_buffer/client/share_group.cc (right): ...
6 years, 2 months ago (2014-10-02 22:56:51 UTC) #11
piman
On Thu, Oct 2, 2014 at 3:56 PM, <jbauman@chromium.org> wrote: > On 2014/10/02 21:44:02, piman ...
6 years, 2 months ago (2014-10-03 03:11:52 UTC) #12
Peng
And update for this CL? On 2014/10/03 03:11:52, piman (Very slow to review) wrote: > ...
6 years, 2 months ago (2014-10-07 15:34:02 UTC) #13
Peng
https://codereview.chromium.org/613843003/diff/20001/gpu/command_buffer/client/share_group.cc File gpu/command_buffer/client/share_group.cc (right): https://codereview.chromium.org/613843003/diff/20001/gpu/command_buffer/client/share_group.cc#newcode65 gpu/command_buffer/client/share_group.cc:65: } On 2014/10/02 21:44:02, piman (Very slow to review) ...
6 years ago (2014-12-05 18:16:42 UTC) #14
piman
The program_info_manager.cc part is ok, but see below. https://codereview.chromium.org/613843003/diff/20001/gpu/command_buffer/client/share_group.cc File gpu/command_buffer/client/share_group.cc (right): https://codereview.chromium.org/613843003/diff/20001/gpu/command_buffer/client/share_group.cc#newcode65 gpu/command_buffer/client/share_group.cc:65: } ...
6 years ago (2014-12-05 20:51:49 UTC) #15
vmiura
Is this abandoned?
5 years, 6 months ago (2015-06-25 01:49:52 UTC) #16
dmichael (off chromium)
5 years, 6 months ago (2015-06-25 20:02:07 UTC) #17
On 2015/06/25 01:49:52, vmiura wrote:
> Is this abandoned?
Yes. I think there were concerns it might be racy in some cases (I haven't read
the review comments).

And the real problem it was trying to fix was:
https://code.google.com/p/chromium/issues/detail?id=418651
...which was fixed in a different, more robust way. This CL would only be an
optimization now, I think.

Powered by Google App Engine
This is Rietveld 408576698