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

Issue 6258: This CL is due the thread I have made on chromium-dev:... (Closed)

Created:
12 years, 2 months ago by mendola
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This CL is due the thread I have post on chromium-dev: http://groups.google.com/group/chromium-dev/browse_frm/thread/30af0b63b6adb245. As suggested by Adam Barth I have insert the check on RefCountedBase class; Tests made on base_unittests, as foreseen by Dean McNamee, are all passing; I have tried, just for test, to use RefCounted instead of the actual RefCountedThreadSafe on MessagePump and as expected the tests are not passing anymore.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+779 lines, -7 lines) Patch
M base/base.xcodeproj/project.pbxproj View 11 12 13 5 chunks +12 lines, -0 lines 0 comments Download
M base/base_lib.scons View 1 chunk +1 line, -0 lines 0 comments Download
M base/base_unittests.scons View 1 chunk +1 line, -0 lines 0 comments Download
M base/build/base.vcproj View 11 12 13 2 chunks +16 lines, -0 lines 0 comments Download
M base/build/base_unittests.vcproj View 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M base/condition_variable_unittest.cc View 6 7 8 9 10 11 12 13 5 chunks +15 lines, -0 lines 0 comments Download
M base/ref_counted.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
M base/ref_counted.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -0 lines 0 comments Download
M base/scoped_ptr.h View 8 9 10 11 12 13 15 chunks +48 lines, -5 lines 0 comments Download
M base/stack_container.h View 8 9 10 11 12 13 3 chunks +11 lines, -2 lines 0 comments Download
A base/thread_collision_warner.h View 4 5 6 7 8 9 10 11 12 13 1 chunk +239 lines, -0 lines 0 comments Download
A base/thread_collision_warner.cc View 4 5 6 7 8 9 10 11 12 1 chunk +62 lines, -0 lines 0 comments Download
A base/thread_collision_warner_unittest.cc View 8 9 10 11 12 13 1 chunk +362 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
mendola
Adapted the original code to be compliant with google coding rules. Renamed the macros in ...
12 years, 2 months ago (2008-10-04 13:48:18 UTC) #1
M-A Ruel
I like the idea. I included a few style nits but I really want Adam ...
12 years, 2 months ago (2008-10-04 18:31:12 UTC) #2
mendola
http://codereview.chromium.org/6258/diff/12/207 File base/ref_counted.cc (right): http://codereview.chromium.org/6258/diff/12/207#newcode28 Line 28: BOOK_CRITICAL_SECTION(AddRelease); //Current thread books the critical section "AddRelease" ...
12 years, 2 months ago (2008-10-04 22:00:14 UTC) #3
abarth-chromium
This looks promising. There two things I'd like to see happen before we check this ...
12 years, 2 months ago (2008-10-05 18:39:56 UTC) #4
mendola
I still haven't find any existing critical race, at least running base_unittests, I'm able to ...
12 years, 2 months ago (2008-10-06 10:32:16 UTC) #5
mendola
Added the concept of SCOPED_RECURSIVE_BOOK_CRITICAL_SECTION to cover this use case: class ClassNonThreadSafe { public: void ...
12 years, 2 months ago (2008-10-06 16:10:53 UTC) #6
M-A Ruel
Adding jar for the condition variable unit test. http://codereview.chromium.org/6258/diff/32/36 File base/thread_collision_warner.h (right): http://codereview.chromium.org/6258/diff/32/36#newcode169 Line 169: ...
12 years, 2 months ago (2008-10-06 16:24:58 UTC) #7
mendola
http://codereview.chromium.org/6258/diff/32/38 File base/condition_variable_unittest.cc (right): http://codereview.chromium.org/6258/diff/32/38#newcode69 Line 69: // They should use the lock to get ...
12 years, 2 months ago (2008-10-06 16:51:55 UTC) #8
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/6258/diff/32/36 File base/thread_collision_warner.h (right): http://codereview.chromium.org/6258/diff/32/36#newcode26 Line 26: // private: This macro has a terrible name, ...
12 years, 2 months ago (2008-10-06 17:25:07 UTC) #9
mendola
12 years, 2 months ago (2008-10-07 07:53:06 UTC) #10
abarth-chromium
This patch is definitely an improvement, but it hasn't meet the requirements outlined in the ...
12 years, 2 months ago (2008-10-07 08:20:34 UTC) #11
mendola
http://codereview.chromium.org/6258/diff/32/38 File base/condition_variable_unittest.cc (right): http://codereview.chromium.org/6258/diff/32/38#newcode19 Line 19: #include "base/thread_collision_warner.h" On 2008/10/07 08:20:35, abarth wrote: > ...
12 years, 2 months ago (2008-10-07 15:47:01 UTC) #12
mendola
* Renamed macros in D_XXXXXXXXXX * Used Atomic32 instead of int * New example in ...
12 years, 2 months ago (2008-10-07 15:49:31 UTC) #13
jar (doing other things)
Corrections and changes below. I'm not (personally) endorsing the macro, but simply correcting its use, ...
12 years, 2 months ago (2008-10-08 21:53:57 UTC) #14
mendola
* Unittest empty added, I'm still thinking about how to test it, I have to ...
12 years, 2 months ago (2008-10-09 15:50:34 UTC) #15
M-A Ruel
http://codereview.chromium.org/6258/diff/62/248 File base/thread_collision_warner.cc (right): http://codereview.chromium.org/6258/diff/62/248#newcode15 Line 15: if (! __sync_bool_compare_and_swap(&valid_thread_id_, This still can't be checked-in ...
12 years, 2 months ago (2008-10-14 19:36:20 UTC) #16
mendola
Removed the usage of GCC builtin, now it should work on windows too. Still missing: ...
12 years, 2 months ago (2008-10-15 09:21:33 UTC) #17
M-A Ruel
http://codereview.chromium.org/6258/diff/401/79 File base/thread_collision_warner.cc (right): http://codereview.chromium.org/6258/diff/401/79#newcode28 Line 28: current_thread_id, alignment http://codereview.chromium.org/6258/diff/401/79#newcode59 Line 59: } // namespace ...
12 years, 2 months ago (2008-10-15 13:45:23 UTC) #18
M-A Ruel
First, you need to modify the xcodeproj and the vcproj. The patch is at http://pastebin.com/m354cfbd1 ...
12 years, 2 months ago (2008-10-15 16:15:01 UTC) #19
M-A Ruel
35>condition_variable_unittest.cc 35>..\condition_variable_unittest.cc(481) : error C2065: 'locked_methods_' : undeclared identifier 35>..\condition_variable_unittest.cc(481) : error C3861: 'D_SCOPED_RECURSIVE_BOOK_CRITICAL_SECTION': identifier ...
12 years, 2 months ago (2008-10-15 17:35:21 UTC) #20
mendola
http://codereview.chromium.org/6258/diff/401/79 File base/thread_collision_warner.cc (right): http://codereview.chromium.org/6258/diff/401/79#newcode28 Line 28: current_thread_id, On 2008/10/15 13:45:23, M-A wrote: > alignment ...
12 years, 2 months ago (2008-10-17 09:59:30 UTC) #21
mendola
Applied patch for win and mac suggested by maruel on: http://pastebin.com/m354cfbd1. Rework on maruel comments
12 years, 2 months ago (2008-10-18 01:27:47 UTC) #22
mendola
First test implementation. Still missing tests with multiple threads.
12 years, 2 months ago (2008-10-18 17:58:03 UTC) #23
M-A Ruel
90% of the comments are style nits. As soon as I can (within the next ...
12 years, 2 months ago (2008-10-18 19:11:16 UTC) #24
mendola
Now Multi Thread tests are provided. TODO * Work on comments * Choose a better ...
12 years, 2 months ago (2008-10-19 02:22:42 UTC) #25
M-A Ruel
The patch looks good to me but since I'm getting a lot of asserts, I'd ...
12 years, 2 months ago (2008-10-20 19:54:21 UTC) #26
mendola
Removed spaces on comments, I hope those were last.
12 years, 2 months ago (2008-10-24 17:02:30 UTC) #27
cpu_(ooo_6.6-7.5)
Can we delete this issue? On 2008/10/24 17:02:30, mendola wrote: > Removed spaces on comments, ...
11 years, 10 months ago (2009-02-24 20:13:51 UTC) #28
mendola
11 years, 9 months ago (2009-03-01 11:07:28 UTC) #29
On 2009/02/24 20:13:51, cpu wrote:
> Can we delete this issue?
> 
> On 2008/10/24 17:02:30, mendola wrote:
> > Removed spaces on comments, I hope those were last.

Sure, I think maruel already created another issue with those classes.

Powered by Google App Engine
This is Rietveld 408576698