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

Issue 1246083005: Work on Windows GN allocator. (Closed)

Created:
5 years, 5 months ago by brettw
Modified:
5 years, 4 months ago
Reviewers:
Dirk Pranke, Nico
CC:
chromium-reviews, wfh+watch_chromium.org, erikwright+watch_chromium.org, Dai Mikurube (NOT FULLTIME), feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Work on Windows GN allocator. Hooks up the allocator shim on Windows. The GN build uses the Windows heap like GYP does. This makes tcmalloc actually compile on Windows if you manually request it, although it doesn't actually seem to work correctly. I added an assert noting this if you try to set the flag on Windows. Note that this is never run by default on GYP and we may never want it. This sets the ALLOCATOR_SHIM for the one media file that uses it. Committed: https://crrev.com/5444db5ddf7eb68a5241e84f8f179c6d2739aaa5 Cr-Commit-Position: refs/heads/master@{#339798}

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -11 lines) Patch
M base/allocator/BUILD.gn View 5 chunks +32 lines, -10 lines 0 comments Download
M build/config/allocator.gni View 1 2 chunks +4 lines, -1 line 0 comments Download
M media/base/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246083005/1
5 years, 5 months ago (2015-07-21 21:20:51 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-21 21:50:47 UTC) #5
brettw
5 years, 5 months ago (2015-07-21 23:02:19 UTC) #6
Dirk Pranke
lgtm
5 years, 5 months ago (2015-07-21 23:27:41 UTC) #7
Will Harris
we don't use tcmalloc on Windows at all, I'm not sure why we would be ...
5 years, 5 months ago (2015-07-21 23:29:13 UTC) #8
brettw
On 2015/07/21 23:29:13, Will Harris wrote: > we don't use tcmalloc on Windows at all, ...
5 years, 5 months ago (2015-07-21 23:55:38 UTC) #9
Will Harris
On 2015/07/21 23:55:38, brettw wrote: > On 2015/07/21 23:29:13, Will Harris wrote: > > we ...
5 years, 5 months ago (2015-07-21 23:59:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246083005/20001
5 years, 5 months ago (2015-07-21 23:59:57 UTC) #12
Will Harris
i'd really like to see a BUG= link here to know what this the aim ...
5 years, 5 months ago (2015-07-22 00:06:18 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-22 00:42:39 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/5444db5ddf7eb68a5241e84f8f179c6d2739aaa5 Cr-Commit-Position: refs/heads/master@{#339798}
5 years, 5 months ago (2015-07-22 00:43:49 UTC) #15
brettw
For the record, Will and I chatted off line. This is just bringing the GN ...
5 years, 5 months ago (2015-07-22 04:32:19 UTC) #16
Nico
This breaks building with clang on Windows with gn: http://build.chromium.org/p/chromium.fyi/builders/CrWinClang64%28dbg%29/builds/1120/steps/compile/logs/stdio FAILED: ninja -t msvc -e ...
5 years, 5 months ago (2015-07-22 17:23:09 UTC) #18
Nico
On 2015/07/22 17:23:09, Nico (hiding) wrote: > This breaks building with clang on Windows with ...
5 years, 5 months ago (2015-07-22 20:09:45 UTC) #19
brettw
On 2015/07/22 20:09:45, Nico (hiding) wrote: > On 2015/07/22 17:23:09, Nico (hiding) wrote: > > ...
5 years, 5 months ago (2015-07-22 20:28:35 UTC) #20
Nico
5 years, 4 months ago (2015-08-17 23:40:02 UTC) #21
Message was sent while issue was closed.
On 2015/07/22 20:28:35, brettw wrote:
> On 2015/07/22 20:09:45, Nico (hiding) wrote:
> > On 2015/07/22 17:23:09, Nico (hiding) wrote:
> > > This breaks building with clang on Windows with gn:
> > > 
> > >
> >
>
http://build.chromium.org/p/chromium.fyi/builders/CrWinClang64%28dbg%29/build...
> > > 
> > > FAILED: ninja -t msvc -e environment.x64 --
> > > ../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe /nologo
> > > /showIncludes /FC
> > @obj/base/allocator/allocator_shim/allocator_shim_win.obj.rsp
> > > /c ../../base/allocator/allocator_shim_win.cc
> > > /Foobj/base/allocator/allocator_shim/allocator_shim_win.obj
> > > /Fdobj/base/allocator/allocator_shim_cc.pdb
> > > ../../base/allocator/allocator_shim_win.cc(149,5) :  error:
'_set_new_mode'
> > > redeclared without 'dllimport' attribute: previous 'dllimport' ignored
> > > [-Werror,-Winconsistent-dllimport]
> > > int _set_new_mode(int flag) throw() {
> > >     ^
> > >
> >
>
C:\b\depot_tools\win_toolchain\vs2013_files\win8sdk\bin\..\..\VC\include\new.h(114,21)
> > > :  note: previous declaration is here
> > > _CRTIMP int __cdecl _set_new_mode( _In_ int _NewMode);
> > >                     ^
> > >
> >
>
C:\b\depot_tools\win_toolchain\vs2013_files\win8sdk\bin\..\..\VC\include\new.h(114,1)
> > > :  note: previous attribute is here
> > > _CRTIMP int __cdecl _set_new_mode( _In_ int _NewMode);
> > > ^
> > >
> >
>
C:\b\depot_tools\win_toolchain\vs2013_files\win8sdk\bin\..\..\VC\include\crtdefs.h(21,28)
> > > :  note: expanded from macro '_CRTIMP'
> > > #define _CRTIMP __declspec(dllimport)
> > >                            ^
> > > 
> > > etc. Can you take a look?
> > 
> > Ping.
> 
> Will look shortly.

(I might've figured this out:
https://code.google.com/p/chromium/issues/detail?id=521788#c6)

Powered by Google App Engine
This is Rietveld 408576698