7 years, 3 months ago
(2013-09-17 12:24:57 UTC)
#6
Please fix the memory leak as well.
earthdok
https://codereview.chromium.org/23578026/diff/80001/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc File chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc (left): https://codereview.chromium.org/23578026/diff/80001/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc#oldcode259 chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc:259: scoped_ptr<base::Thread> file_thread_; It looks like there's a race condition ...
7 years, 3 months ago
(2013-09-17 12:39:26 UTC)
#7
https://codereview.chromium.org/23578026/diff/80001/chrome/browser/sync_file_...
File chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc
(left):
https://codereview.chromium.org/23578026/diff/80001/chrome/browser/sync_file_...
chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc:259:
scoped_ptr<base::Thread> file_thread_;
It looks like there's a race condition between the main message loop and one of
these real threads. Is there any reason why we can't replace the whole bunch
with content::TestBrowserThreadBundle? That would both ensure clean teardown and
get rid of a lot of boilerplate code.
7 years, 3 months ago
(2013-09-17 13:36:09 UTC)
#8
2013/09/17 21:39 <earthdok@chromium.org>:
>
>
>
https://codereview.chromium.org/23578026/diff/80001/chrome/browser/sync_file_...
> File
> chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc
> (left):
>
>
https://codereview.chromium.org/23578026/diff/80001/chrome/browser/sync_file_...
>
chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc:259:
> scoped_ptr<base::Thread> file_thread_;
> It looks like there's a race condition between the main message loop and
> one of these real threads. Is there any reason why we can't replace the
> whole bunch with content::TestBrowserThreadBundle? That would both
> ensure clean teardown and get rid of a lot of boilerplate code.
Because this code has been just moved from webkit/, where we didn't have
access to all those nice content:: utils. Migrating to ThreadBundle is on
our todo list.
Reg: leak, sorry, which leak error are you refering to? I'm working on one
leak but might not be the one you're talking about. (I'm on phone right
now, will take a look later anyway)
> https://codereview.chromium.org/23578026/
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.
earthdok
> Reg: leak, sorry, which leak error are you refering to? I'm working on one ...
7 years, 3 months ago
(2013-09-17 13:41:59 UTC)
#9
> Reg: leak, sorry, which leak error are you refering to? I'm working on one
> leak but might not be the one you're talking about. (I'm on phone right
See the linux_asan failure for patch set 3:
http://build.chromium.org/p/tryserver.chromium/builders/linux_asan/builds/470...
It's almost certainly caused by the race condition I mentioned, so using
ThreadBundle should fix it.
kinuko
On 2013/09/17 13:41:59, earthdok wrote: > > Reg: leak, sorry, which leak error are you ...
7 years, 3 months ago
(2013-09-17 13:45:55 UTC)
#10
On 2013/09/17 13:41:59, earthdok wrote:
> > Reg: leak, sorry, which leak error are you refering to? I'm working on one
> > leak but might not be the one you're talking about. (I'm on phone right
>
> See the linux_asan failure for patch set 3:
>
http://build.chromium.org/p/tryserver.chromium/builders/linux_asan/builds/470...
>
> It's almost certainly caused by the race condition I mentioned, so using
> ThreadBundle should fix it.
I see, thanks! Will fix it now then.
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/23578026/80001
7 years, 3 months ago
(2013-09-18 05:54:43 UTC)
#11
Issue 23578026: Use SNAPSHOT sync mode for LocalSync
(Closed)
Created 7 years, 3 months ago by kinuko
Modified 7 years, 3 months ago
Reviewers: tzik, nhiroki, earthdok
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 7