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

Issue 1211243006: Oilpan: Replace checkHeader() with ASSERT(checkHeader()) (Closed)

Created:
5 years, 5 months ago by haraken
Modified:
5 years, 5 months ago
Reviewers:
keishi, Yuta Kitamura
CC:
blink-reviews, oilpan-reviews, kouhei+heap_chromium.org, Mads Ager (chromium)
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: Replace checkHeader() with ASSERT(checkHeader()) It seems compilers are not always smart enough to ignore checkHeader(). This CL replaces checkHeader() with ASSERT(checkHeader()) to make it more explicit that it is nop in production code. BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198039

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -34 lines) Patch
M Source/platform/heap/GCInfo.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/heap/Handle.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/heap/Heap.h View 5 chunks +11 lines, -10 lines 0 comments Download
M Source/platform/heap/Heap.cpp View 14 chunks +14 lines, -14 lines 0 comments Download
M Source/platform/heap/HeapAllocator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/heap/HeapAllocator.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/heap/TraceTraits.h View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
haraken
PTAL
5 years, 5 months ago (2015-06-30 05:52:24 UTC) #2
keishi
lgtm
5 years, 5 months ago (2015-06-30 05:56:11 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211243006/1
5 years, 5 months ago (2015-06-30 05:58:45 UTC) #5
Yuta Kitamura
Same here, not lgtm.
5 years, 5 months ago (2015-06-30 06:18:56 UTC) #7
haraken
On 2015/06/30 06:18:56, Yuta Kitamura wrote: > Same here, not lgtm. This CL doesn't have ...
5 years, 5 months ago (2015-06-30 06:22:23 UTC) #8
Yuta Kitamura
You're right, this seems fine. LGTM.
5 years, 5 months ago (2015-06-30 06:26:59 UTC) #9
Yuta Kitamura
The reason why the function calls slow down the release build is understandable in this ...
5 years, 5 months ago (2015-06-30 06:30:57 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=198039
5 years, 5 months ago (2015-06-30 07:33:12 UTC) #11
sof
On 2015/06/30 06:30:57, Yuta Kitamura wrote: > The reason why the function calls slow down ...
5 years, 5 months ago (2015-06-30 08:02:33 UTC) #12
haraken
On 2015/06/30 08:02:33, sof wrote: > On 2015/06/30 06:30:57, Yuta Kitamura wrote: > > The ...
5 years, 5 months ago (2015-06-30 08:11:23 UTC) #13
Yuta Kitamura
On 2015/06/30 08:11:23, haraken wrote: > I'm not sure if it is the case here, ...
5 years, 5 months ago (2015-06-30 08:47:03 UTC) #14
sof
5 years, 5 months ago (2015-06-30 08:49:49 UTC) #15
Message was sent while issue was closed.
On 2015/06/30 08:47:03, Yuta Kitamura wrote:
> On 2015/06/30 08:11:23, haraken wrote:
> > I'm not sure if it is the case here, but I guess putting assert-only
functions
> > in ASSERT() would be a reasonable thing. If we want to enable it on release,
> can
> > we try release+assert?
> 
> We have a gyp variable "dcheck_always_on" for this exact purpose.
> This should work for Blink's ASSERT()s, too.

A big hammer. I don't really see the merit of this CL, but fine to make
checkHeader() a predicate.

Powered by Google App Engine
This is Rietveld 408576698