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 10453082: Base: Add a handle verifier to ScopedHandle. (Closed)

Created:
8 years, 6 months ago by rvargas (doing something else)
Modified:
8 years, 6 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, dcaiafa+watch_chromium.org, wez+watch_chromium.org, erikwright (departed), amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, brettw-cc_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Base: Add a handle verifier to ScopedHandle. This provides basic tracking of handles for XP. BUG=127931 TEST=none TBR=abodenha, wez Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139736

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -6 lines) Patch
M base/base.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/win/scoped_handle.h View 7 chunks +37 lines, -2 lines 0 comments Download
A base/win/scoped_handle.cc View 1 2 1 chunk +88 lines, -0 lines 1 comment Download
M chrome/service/cloud_print/print_system_win.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cloud_print/service/win/cloud_print_service.cc View 1 chunk +2 lines, -1 line 0 comments Download
M printing/backend/win_helper.h View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/base/scoped_sc_handle_win.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
rvargas (doing something else)
8 years, 6 months ago (2012-05-30 19:25:12 UTC) #1
alexeypa (please no reviews)
A drive by, but I think this CL needs more work. https://chromiumcodereview.appspot.com/10453082/diff/1/base/win/scoped_handle.cc File base/win/scoped_handle.cc (right): ...
8 years, 6 months ago (2012-05-30 20:19:29 UTC) #2
alexeypa (please no reviews)
Oh, another thing. Won't Application Verifier (http://www.microsoft.com/en-us/download/details.aspx?id=20028) give you similar sort of checks? Sure it ...
8 years, 6 months ago (2012-05-30 20:26:37 UTC) #3
rvargas (doing something else)
https://chromiumcodereview.appspot.com/10453082/diff/1/base/win/scoped_handle.cc File base/win/scoped_handle.cc (right): https://chromiumcodereview.appspot.com/10453082/diff/1/base/win/scoped_handle.cc#newcode25 base/win/scoped_handle.cc:25: base::LazyInstance<std::set<const void*> > g_owner_set = On 2012/05/30 20:19:30, alexeypa ...
8 years, 6 months ago (2012-05-30 21:39:01 UTC) #4
rvargas (doing something else)
I'm not too concerned about overhead here... I could go to a hash table if ...
8 years, 6 months ago (2012-05-30 22:12:33 UTC) #5
alexeypa (please no reviews)
Since this CL is only for tracking the bug my performance related comment can probably ...
8 years, 6 months ago (2012-05-30 23:00:54 UTC) #6
rvargas (doing something else)
On 2012/05/30 23:00:54, alexeypa wrote: > Since this CL is only for tracking the bug ...
8 years, 6 months ago (2012-05-30 23:48:31 UTC) #7
alexeypa (please no reviews)
On 2012/05/30 23:48:31, rvargas wrote: > the Alias() that I have close to the CHECKs ...
8 years, 6 months ago (2012-05-31 00:11:35 UTC) #8
rvargas (doing something else)
Adding owner.
8 years, 6 months ago (2012-05-31 00:17:00 UTC) #9
cpu_(ooo_6.6-7.5)
lgtm as long is a temporary/short lived change.
8 years, 6 months ago (2012-05-31 02:37:21 UTC) #10
willchan no longer on Chromium
lgtm as a temporary change too https://chromiumcodereview.appspot.com/10453082/diff/12001/base/win/scoped_handle.cc File base/win/scoped_handle.cc (right): https://chromiumcodereview.appspot.com/10453082/diff/12001/base/win/scoped_handle.cc#newcode24 base/win/scoped_handle.cc:24: base::LazyInstance<HandleMap> g_handle_map = ...
8 years, 6 months ago (2012-05-31 03:01:23 UTC) #11
rvargas (doing something else)
done. Thanks.
8 years, 6 months ago (2012-05-31 03:13:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/10453082/11005
8 years, 6 months ago (2012-05-31 03:16:13 UTC) #13
commit-bot: I haz the power
Change committed as 139736
8 years, 6 months ago (2012-05-31 05:04:23 UTC) #14
Nico
8 years, 6 months ago (2012-06-05 19:58:44 UTC) #15
https://chromiumcodereview.appspot.com/10453082/diff/11005/base/win/scoped_ha...
File base/win/scoped_handle.cc (right):

https://chromiumcodereview.appspot.com/10453082/diff/11005/base/win/scoped_ha...
base/win/scoped_handle.cc:43: AutoLock(g_lock.Get());
This produces a temporary that lives for only one line. You want this to be a
RAII object; this line needs to read 

  AutoLock lock(g_lock.Get());

Also in line 67. I'll send you a CL.

(found by clang! in a win-only file!)

Powered by Google App Engine
This is Rietveld 408576698