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 6610029: Create a "GetWOW64Status()" utility function and make the rest of the codebas... (Closed)

Created:
9 years, 9 months ago by Peter Kasting
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, native-client-reviews_googlegroups.com, Paweł Hajdan Jr.
Visibility:
Public.

Description

Create a "GetWOW64Status()" utility function and make the rest of the codebase call it. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76854

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -144 lines) Patch
M base/win/windows_version.h View 1 3 chunks +20 lines, -1 line 2 comments Download
M base/win/windows_version.cc View 1 2 chunks +19 lines, -1 line 3 comments Download
M chrome/browser/memory_details_win.cc View 1 4 chunks +9 lines, -13 lines 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 4 chunks +3 lines, -23 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 3 chunks +4 lines, -19 lines 0 comments Download
M sandbox/src/Wow64.h View 1 3 chunks +5 lines, -11 lines 0 comments Download
M sandbox/src/Wow64.cc View 1 7 chunks +11 lines, -39 lines 0 comments Download
M sandbox/src/Wow64_64.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M sandbox/src/interception.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M sandbox/src/service_resolver_unittest.cc View 1 3 chunks +7 lines, -14 lines 0 comments Download
M sandbox/tests/common/controller.cc View 1 4 chunks +5 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Peter Kasting
Ricardo: Sandbox Brett: Rest The sandbox changes mean there's now exactly one usage of the ...
9 years, 9 months ago (2011-03-03 22:22:50 UTC) #1
brettw
LGTM http://codereview.chromium.org/6610029/diff/1/base/win/windows_version.cc File base/win/windows_version.cc (right): http://codereview.chromium.org/6610029/diff/1/base/win/windows_version.cc#newcode81 base/win/windows_version.cc:81: if (is_wow64_process == NULL) I guess I would ...
9 years, 9 months ago (2011-03-03 22:28:53 UTC) #2
Peter Kasting
http://codereview.chromium.org/6610029/diff/1/base/win/windows_version.cc File base/win/windows_version.cc (right): http://codereview.chromium.org/6610029/diff/1/base/win/windows_version.cc#newcode81 base/win/windows_version.cc:81: if (is_wow64_process == NULL) On 2011/03/03 22:28:53, brettw wrote: ...
9 years, 9 months ago (2011-03-03 22:33:23 UTC) #3
rvargas (doing something else)
LGTM http://codereview.chromium.org/6610029/diff/2006/base/win/windows_version.cc File base/win/windows_version.cc (right): http://codereview.chromium.org/6610029/diff/2006/base/win/windows_version.cc#newcode80 base/win/windows_version.cc:80: GetProcAddress(GetModuleHandle(L"kernel32.dll"), "IsWow64Process")); Can we save this pointer? GetProcAddress ...
9 years, 9 months ago (2011-03-04 00:12:18 UTC) #4
Peter Kasting
http://codereview.chromium.org/6610029/diff/2006/base/win/windows_version.cc File base/win/windows_version.cc (right): http://codereview.chromium.org/6610029/diff/2006/base/win/windows_version.cc#newcode80 base/win/windows_version.cc:80: GetProcAddress(GetModuleHandle(L"kernel32.dll"), "IsWow64Process")); On 2011/03/04 00:12:18, rvargas wrote: > Can ...
9 years, 9 months ago (2011-03-04 01:11:48 UTC) #5
rvargas (doing something else)
9 years, 9 months ago (2011-03-04 01:21:49 UTC) #6
http://codereview.chromium.org/6610029/diff/2006/base/win/windows_version.cc
File base/win/windows_version.cc (right):

http://codereview.chromium.org/6610029/diff/2006/base/win/windows_version.cc#...
base/win/windows_version.cc:80: GetProcAddress(GetModuleHandle(L"kernel32.dll"),
"IsWow64Process"));
On 2011/03/04 01:11:48, Peter Kasting wrote:
> On 2011/03/04 00:12:18, rvargas wrote:
> > Can we save this pointer? GetProcAddress is not that fast, and this may be
> > called a bunch of times for each process that we want to launch.
> 
> But the entire return value is cached in GetWOW64Status().  So this should
only
> be called once.

Even better :)

Powered by Google App Engine
This is Rietveld 408576698