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 6878059: test_shell_webblobregistry_impl.cc posts CString to other threads without (Closed)

Created:
9 years, 8 months ago by Dmitry Lomov
Modified:
9 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

Copying the WebURL that are params to PostTask to copy the underlying WebCString and avoid multithreaded refcounting BUG=78208 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82484

Patch Set 1 #

Patch Set 2 : Headers reordered #

Patch Set 3 : Naming #

Total comments: 4

Patch Set 4 : Additional fix + CR feedback #

Patch Set 5 : More CR feedback #

Total comments: 8

Patch Set 6 : CR feedback #

Total comments: 1

Patch Set 7 : Comment misprint #

Patch Set 8 : Copyright date fixed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -14 lines) Patch
M webkit/tools/test_shell/test_shell_webblobregistry_impl.cc View 1 2 3 4 5 6 7 3 chunks +48 lines, -14 lines 1 comment Download

Messages

Total messages: 18 (0 generated)
Dmitry Lomov
Copies the underlying WebCString to avoid multithreaded refcounting
9 years, 8 months ago (2011-04-19 22:17:02 UTC) #1
tony
http://codereview.chromium.org/6878059/diff/2002/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc File webkit/tools/test_shell/test_shell_webblobregistry_impl.cc (right): http://codereview.chromium.org/6878059/diff/2002/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc#newcode41 webkit/tools/test_shell/test_shell_webblobregistry_impl.cc:41: static void CopyWebURL(const WebURL& source, WebURL* target) { I ...
9 years, 8 months ago (2011-04-19 22:27:35 UTC) #2
jianli
Thanks for fixing this. Here're some comments. http://codereview.chromium.org/6878059/diff/2002/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc File webkit/tools/test_shell/test_shell_webblobregistry_impl.cc (right): http://codereview.chromium.org/6878059/diff/2002/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc#newcode41 webkit/tools/test_shell/test_shell_webblobregistry_impl.cc:41: static void ...
9 years, 8 months ago (2011-04-19 22:53:02 UTC) #3
Dmitry Lomov
Found one more issue: NewRunnableMethod creates one more copy of WebURL, which creates one more ...
9 years, 8 months ago (2011-04-19 23:06:00 UTC) #4
jianli
http://codereview.chromium.org/6878059/diff/6003/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc File webkit/tools/test_shell/test_shell_webblobregistry_impl.cc (right): http://codereview.chromium.org/6878059/diff/6003/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc#newcode26 webkit/tools/test_shell/test_shell_webblobregistry_impl.cc:26: // Copy WebURL object to safely pass it to ...
9 years, 8 months ago (2011-04-19 23:58:00 UTC) #5
Dmitry Lomov
Addressed CR feedback. Added comments clarifying the need for blocks around calls to NewRunnableMethod. http://codereview.chromium.org/6878059/diff/6003/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc ...
9 years, 8 months ago (2011-04-20 00:27:00 UTC) #6
jianli
LGTM with one small nit. http://codereview.chromium.org/6878059/diff/3003/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc File webkit/tools/test_shell/test_shell_webblobregistry_impl.cc (right): http://codereview.chromium.org/6878059/diff/3003/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc#newcode29 webkit/tools/test_shell/test_shell_webblobregistry_impl.cc:29: // This method creates ...
9 years, 8 months ago (2011-04-20 00:38:02 UTC) #7
Dmitry Lomov
Comment misprint fixed
9 years, 8 months ago (2011-04-20 00:47:11 UTC) #8
tony
LGTM
9 years, 8 months ago (2011-04-20 01:01:40 UTC) #9
commit-bot: I haz the power
Presubmit check for 6878059-6 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 8 months ago (2011-04-20 01:08:28 UTC) #10
Dmitry Lomov
Copyright header changed - could someone push the commit queue button again? Thanks! Mitya
9 years, 8 months ago (2011-04-20 18:04:35 UTC) #11
commit-bot: I haz the power
Try job failure for 6878059-7 on win: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=27597
9 years, 8 months ago (2011-04-20 18:37:07 UTC) #12
commit-bot: I haz the power
Try job failure for 6878059-7 on mac: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=23380
9 years, 8 months ago (2011-04-20 21:24:29 UTC) #13
commit-bot: I haz the power
Change committed as 82484
9 years, 8 months ago (2011-04-21 14:37:18 UTC) #14
levin
On 2011/04/21 14:37:18, commit-bot wrote: > Change committed as 82484 3rd try (punt mildly intended) ...
9 years, 8 months ago (2011-04-21 15:41:00 UTC) #15
John Knottenbelt
http://codereview.chromium.org/6878059/diff/7/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc File webkit/tools/test_shell/test_shell_webblobregistry_impl.cc (right): http://codereview.chromium.org/6878059/diff/7/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc#newcode31 webkit/tools/test_shell/test_shell_webblobregistry_impl.cc:31: const WebKit::WebCString spec(source.spec()); If I am reading the code ...
9 years, 5 months ago (2011-07-22 11:35:50 UTC) #16
levin
On 2011/07/22 11:35:50, John Knottenbelt wrote: > http://codereview.chromium.org/6878059/diff/7/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc > File webkit/tools/test_shell/test_shell_webblobregistry_impl.cc (right): > > http://codereview.chromium.org/6878059/diff/7/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc#newcode31 ...
9 years, 5 months ago (2011-07-22 12:55:09 UTC) #17
Dmitry Lomov (no reviews)
9 years, 5 months ago (2011-07-22 17:36:14 UTC) #18
Yikes. Thanks for investigating this John!

On 2011/07/22 11:35:50, John Knottenbelt wrote:
>
http://codereview.chromium.org/6878059/diff/7/webkit/tools/test_shell/test_sh...
> File webkit/tools/test_shell/test_shell_webblobregistry_impl.cc (right):
> 
>
http://codereview.chromium.org/6878059/diff/7/webkit/tools/test_shell/test_sh...
> webkit/tools/test_shell/test_shell_webblobregistry_impl.cc:31: const
> WebKit::WebCString spec(source.spec());
> If I am reading the code correctly, spec will still share the underlying
> m_private anyway. 
> 
> I think we need to break the string apart:
> 
> const WebKit::WebCString spec(m.spec().data(), m.spec().length());
> 
> See related https://bugs.webkit.org/show_bug.cgi?id=65022

Powered by Google App Engine
This is Rietveld 408576698