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

Issue 8751: Port last remaining test case in base/stats_table_unittest.cc, and... (Closed)

Created:
12 years, 1 month ago by dank
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Port last remaining test case in base/stats_table_unittest.cc, and fix the bug it exposes on posix in StatsTable, i.e. UnregisterThread() breaks when called inside SlotReturnFunction() on posix because posix clears tls data before calling destructor. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=4309

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -39 lines) Patch
M base/stats_table.h View 1 2 3 2 chunks +13 lines, -5 lines 1 comment Download
M base/stats_table.cc View 1 2 3 5 chunks +14 lines, -17 lines 1 comment Download
M base/stats_table_unittest.cc View 1 2 3 4 4 chunks +17 lines, -17 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
dank
Whaddaya know, I ported the last test case, and it found a real bug. Some ...
12 years, 1 month ago (2008-10-31 17:42:52 UTC) #1
dank
Sent to wrong address at first, sorry.
12 years, 1 month ago (2008-10-31 17:47:39 UTC) #2
Evan Martin
Style nit: You've gone over 80 columns in a few places. You can see them ...
12 years, 1 month ago (2008-10-31 17:55:59 UTC) #3
Evan Martin
LGTM (Would you mind putting some note about what the bug is in the changelog ...
12 years, 1 month ago (2008-10-31 19:17:13 UTC) #4
Dean McNamee
12 years, 1 month ago (2008-10-31 19:20:37 UTC) #5
http://codereview.chromium.org/8751/diff/18/213
File base/stats_table.cc (right):

http://codereview.chromium.org/8751/diff/18/213#newcode346
Line 346: 
Is this because you can no longer access the TLS key when you get the callback
on posix?  Can you make a note of that?

http://codereview.chromium.org/8751/diff/18/215
File base/stats_table_unittest.cc (right):

http://codereview.chromium.org/8751/diff/18/215#newcode69
Line 69: class StatsTableThread : public PlatformThread::Delegate {
Can you use SimpleThread, it was designed for unittests so we have a layer
between PlatformThread.

Powered by Google App Engine
This is Rietveld 408576698