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

Issue 10854031: Support vtable_verify (new compiler option). (Closed)

Created:
8 years, 4 months ago by cmtice
Modified:
8 years, 4 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Support vtable_verify (new compiler option). I'm in the process of adding a new option to the gcc compiler in ChromeOS, that does vtable pointer verification before virtual method calls. The new compiler flag is "-fvtable-verify=std" or "-fvtable-verify=preinit". I'm modifying the Chrome ebuild flag in Chrome OS to allow "USE=vtable_verify" and which causes 'use_vtable_verify' to be defined and set to 1. In this CL I have modified common.gypi to add the compiler flag '-fvtable-verify=std' if it sees use_vtable_verify set to 1; and I have modified allocator.gyp to change '-fvtable-verify=std' into '-fvtable-verify=preinit' (tcmalloc stuff requires this special flag). BUG= TEST=Built Chrome with GYP_DEFINES=use_vtable_verify=1 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152003

Patch Set 1 #

Patch Set 2 : Do not turn on verification by default. #

Total comments: 4

Patch Set 3 : Removed common.gypi changes; further discussion led to conclusion it's not needed. #

Total comments: 5

Patch Set 4 : Add default definition of use_vtable_verify. #

Total comments: 2

Patch Set 5 : Remove useless, unneeded code from allocator.gyp #

Total comments: 1

Patch Set 6 : Remove redundant flags. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M base/allocator/allocator.gyp View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
cmtice
Please review this CL. It is needed for a new compiler feature, vtable pointer verification.
8 years, 4 months ago (2012-08-07 20:59:15 UTC) #1
jam
On 2012/08/07 20:59:15, cmtice wrote: > Please review this CL. It is needed for a ...
8 years, 4 months ago (2012-08-07 23:27:30 UTC) #2
cmtice
Added a few more reviewers in the hopes of finding someone who is 'appropriate'. :-)
8 years, 4 months ago (2012-08-07 23:41:10 UTC) #3
Mark Mentovai
Where can I read about this feature and its code impact? Why is this not ...
8 years, 4 months ago (2012-08-08 00:47:07 UTC) #4
cmtice1
cmtice@google.com On Tue, Aug 7, 2012 at 5:47 PM, <mark@chromium.org> wrote: > Where can I ...
8 years, 4 months ago (2012-08-08 14:51:56 UTC) #5
cmtice
I modified the patch slightly and have uploaded the new patchset to this CL. The ...
8 years, 4 months ago (2012-08-13 20:02:13 UTC) #6
Mark Mentovai
http://codereview.chromium.org/10854031/diff/4003/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/10854031/diff/4003/base/allocator/allocator.gyp#newcode398 base/allocator/allocator.gyp:398: 'cflags': [ It is normal in GYP conditions like ...
8 years, 4 months ago (2012-08-13 20:07:12 UTC) #7
cmtice
New patch set uploaded. I made requested format changes in allocator.gyp. I removed common.gypi from ...
8 years, 4 months ago (2012-08-14 21:12:13 UTC) #8
Mark Mentovai
http://codereview.chromium.org/10854031/diff/5002/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/10854031/diff/5002/base/allocator/allocator.gyp#newcode397 base/allocator/allocator.gyp:397: [ 'use_vtable_verify==1', { Since you’ve removed use_vtable_verify from common.gypi ...
8 years, 4 months ago (2012-08-14 21:31:54 UTC) #9
Mark Mentovai
http://codereview.chromium.org/10854031/diff/5002/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/10854031/diff/5002/base/allocator/allocator.gyp#newcode404 base/allocator/allocator.gyp:404: '-fvtable-verify=std', If nothing is adding this option any more, ...
8 years, 4 months ago (2012-08-14 21:32:23 UTC) #10
cmtice
use_vtable_verify is now being defined in the Chrome ebuild file in ChromeOS (in the version ...
8 years, 4 months ago (2012-08-14 23:49:48 UTC) #11
cmtice
What I really *wanted* to do was to have allocator.gyp detect if the cflags contains ...
8 years, 4 months ago (2012-08-14 23:53:52 UTC) #12
Mark Mentovai
http://codereview.chromium.org/10854031/diff/5002/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/10854031/diff/5002/base/allocator/allocator.gyp#newcode6 base/allocator/allocator.gyp:6: 'variables': { This is a good variables section to ...
8 years, 4 months ago (2012-08-15 00:18:40 UTC) #13
cmtice
On Tue, Aug 14, 2012 at 5:18 PM, <mark@chromium.org> wrote: > > http://codereview.chromium.org/10854031/diff/5002/base/allocator/allocator.gyp > File ...
8 years, 4 months ago (2012-08-15 00:30:29 UTC) #14
Mark Mentovai
Caroline Tice wrote: > $ git try > Loaded authentication cookies from /home/cmtice/.codereview_upload_cookies > .gclient ...
8 years, 4 months ago (2012-08-15 00:40:07 UTC) #15
cmtice
I've uploaded a new patch set that adds a default definition of use_vtable_verify. I managed ...
8 years, 4 months ago (2012-08-15 19:52:10 UTC) #16
Mark Mentovai
http://codereview.chromium.org/10854031/diff/15002/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/10854031/diff/15002/base/allocator/allocator.gyp#newcode405 base/allocator/allocator.gyp:405: '-fvtable-verify=std', OK, so let’s talk more about this. Where’s ...
8 years, 4 months ago (2012-08-15 20:21:38 UTC) #17
cmtice
On Wed, Aug 15, 2012 at 1:21 PM, <mark@chromium.org> wrote: > > http://codereview.chromium.org/10854031/diff/15002/base/allocator/allocator.gyp > File ...
8 years, 4 months ago (2012-08-15 20:37:03 UTC) #18
Mark Mentovai
http://codereview.chromium.org/10854031/diff/15002/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/10854031/diff/15002/base/allocator/allocator.gyp#newcode405 base/allocator/allocator.gyp:405: '-fvtable-verify=std', So then this line, which is supposed to ...
8 years, 4 months ago (2012-08-15 20:38:36 UTC) #19
asharif1
On 2012/08/15 20:38:36, Mark Mentovai wrote: > http://codereview.chromium.org/10854031/diff/15002/base/allocator/allocator.gyp > File base/allocator/allocator.gyp (right): > > http://codereview.chromium.org/10854031/diff/15002/base/allocator/allocator.gyp#newcode405 ...
8 years, 4 months ago (2012-08-16 00:11:42 UTC) #20
Mark Mentovai
asharif@chromium.org wrote: > Mark, is there a way for gyp to do a check at ...
8 years, 4 months ago (2012-08-16 12:40:17 UTC) #21
cmtice
On Wed, Aug 15, 2012 at 1:38 PM, <mark@chromium.org> wrote: > > http://codereview.chromium.org/10854031/diff/15002/base/allocator/allocator.gyp > File ...
8 years, 4 months ago (2012-08-16 18:02:41 UTC) #22
Mark Mentovai
http://codereview.chromium.org/10854031/diff/1004/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/10854031/diff/1004/base/allocator/allocator.gyp#newcode400 base/allocator/allocator.gyp:400: '-Wno-sign-compare', OS==linux already sets -Wno-sign-compare and -Wno-unused-result above on ...
8 years, 4 months ago (2012-08-16 18:05:09 UTC) #23
cmtice
New patch set uploaded; redundant cflags removed. On Thu, Aug 16, 2012 at 11:05 AM, ...
8 years, 4 months ago (2012-08-16 19:04:01 UTC) #24
Mark Mentovai
LGTM
8 years, 4 months ago (2012-08-16 19:05:28 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmtice@chromium.org/10854031/12003
8 years, 4 months ago (2012-08-16 21:20:46 UTC) #26
commit-bot: I haz the power
8 years, 4 months ago (2012-08-17 00:18:27 UTC) #27
Change committed as 152003

Powered by Google App Engine
This is Rietveld 408576698