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

Issue 2619493003: Replace ASSERTs in platform/heap/ with DCHECKs

Created:
3 years, 11 months ago by haraken
Modified:
3 years, 11 months ago
Reviewers:
danakj, sof, dcheng
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), blink-reviews, kinuko+watch, kouhei+heap_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace ASSERTs in platform/heap/ with DCHECKs - ASSERT => DCHECK, DCHECK_EQ, DCHECK_LT etc - RELEASE_ASSERT => CHECK - ENABLE(ASSERT) => DCHECK_IS_ON BUG=596760

Patch Set 1 #

Patch Set 2 : temp #

Patch Set 3 : temp #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -500 lines) Patch
M third_party/WebKit/Source/platform/heap/BlinkGCInterruptor.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/CallbackStack.h View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/CallbackStack.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/GCInfo.h View 1 2 3 chunks +12 lines, -12 lines 2 comments Download
M third_party/WebKit/Source/platform/heap/GCInfo.cpp View 1 2 5 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/GCTaskRunner.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/Heap.h View 1 2 12 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Heap.cpp View 18 chunks +33 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapAllocator.h View 6 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapAllocator.cpp View 6 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapCompact.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapLinkedStack.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapPage.h View 1 2 23 chunks +48 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapPage.cpp View 62 chunks +120 lines, -120 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapTest.cpp View 26 chunks +31 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/InlinedGlobalMarkingVisitor.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/MarkingVisitor.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h View 6 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Member.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/PageMemory.h View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/PageMemory.cpp View 6 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/PagePool.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/PagePool.cpp View 5 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Persistent.h View 8 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/PersistentNode.h View 4 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/PersistentNode.cpp View 4 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/SafePoint.h View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/SafePoint.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/SelfKeepAlive.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.h View 10 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.cpp View 51 chunks +90 lines, -89 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/TraceTraits.h View 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Visitor.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/Visitor.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (6 generated)
haraken
PTAL https://codereview.chromium.org/2619493003/diff/40001/third_party/WebKit/Source/platform/heap/GCInfo.h File third_party/WebKit/Source/platform/heap/GCInfo.h (right): https://codereview.chromium.org/2619493003/diff/40001/third_party/WebKit/Source/platform/heap/GCInfo.h#newcode165 third_party/WebKit/Source/platform/heap/GCInfo.h:165: static const size_t gcInfoMaxIndex = 1 << 14; ...
3 years, 11 months ago (2017-01-06 04:18:49 UTC) #3
haraken
Hmm. https://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/259991/steps/compile%20%28with%20patch%29/logs/stdio This error indicates that we have to remove '#if DCHECK_IS_ON()' from methods used ...
3 years, 11 months ago (2017-01-06 05:19:08 UTC) #7
sof
On 2017/01/06 05:19:08, haraken wrote: > Hmm. > > https://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/259991/steps/compile%20%28with%20patch%29/logs/stdio > > This error indicates ...
3 years, 11 months ago (2017-01-06 08:31:33 UTC) #8
haraken
On 2017/01/06 08:31:33, sof wrote: > On 2017/01/06 05:19:08, haraken wrote: > > Hmm. > ...
3 years, 11 months ago (2017-01-06 09:01:07 UTC) #9
haraken
+dcheng +danakj What's an idiom to use dcheck-only methods? The following code doesn't compile. (See ...
3 years, 11 months ago (2017-01-06 09:08:02 UTC) #11
dcheng
On 2017/01/06 09:08:02, haraken wrote: > +dcheng +danakj > > What's an idiom to use ...
3 years, 11 months ago (2017-01-06 11:41:21 UTC) #12
danakj
On Fri, Jan 6, 2017 at 6:41 AM, <dcheng@chromium.org> wrote: > On 2017/01/06 09:08:02, haraken ...
3 years, 11 months ago (2017-01-06 15:17:34 UTC) #13
danakj
On Fri, Jan 6, 2017 at 6:41 AM, <dcheng@chromium.org> wrote: > On 2017/01/06 09:08:02, haraken ...
3 years, 11 months ago (2017-01-06 15:17:34 UTC) #14
haraken
On 2017/01/06 15:17:34, danakj_OOO_and_slow wrote: > On Fri, Jan 6, 2017 at 6:41 AM, <mailto:dcheng@chromium.org> ...
3 years, 11 months ago (2017-01-06 15:18:20 UTC) #15
sof
https://codereview.chromium.org/2619493003/diff/40001/third_party/WebKit/Source/platform/heap/GCInfo.h File third_party/WebKit/Source/platform/heap/GCInfo.h (right): https://codereview.chromium.org/2619493003/diff/40001/third_party/WebKit/Source/platform/heap/GCInfo.h#newcode165 third_party/WebKit/Source/platform/heap/GCInfo.h:165: static const size_t gcInfoMaxIndex = 1 << 14; On ...
3 years, 11 months ago (2017-01-08 07:10:47 UTC) #16
haraken
On 2017/01/08 07:10:47, sof wrote: > https://codereview.chromium.org/2619493003/diff/40001/third_party/WebKit/Source/platform/heap/GCInfo.h > File third_party/WebKit/Source/platform/heap/GCInfo.h (right): > > https://codereview.chromium.org/2619493003/diff/40001/third_party/WebKit/Source/platform/heap/GCInfo.h#newcode165 > ...
3 years, 11 months ago (2017-01-08 13:29:02 UTC) #17
sof
On 2017/01/08 13:29:02, haraken wrote: > On 2017/01/08 07:10:47, sof wrote: > > > https://codereview.chromium.org/2619493003/diff/40001/third_party/WebKit/Source/platform/heap/GCInfo.h ...
3 years, 11 months ago (2017-01-08 13:31:17 UTC) #18
haraken
3 years, 11 months ago (2017-01-08 13:45:38 UTC) #19
On 2017/01/08 13:31:17, sof wrote:
> On 2017/01/08 13:29:02, haraken wrote:
> > On 2017/01/08 07:10:47, sof wrote:
> > >
> >
>
https://codereview.chromium.org/2619493003/diff/40001/third_party/WebKit/Sour...
> > > File third_party/WebKit/Source/platform/heap/GCInfo.h (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/2619493003/diff/40001/third_party/WebKit/Sour...
> > > third_party/WebKit/Source/platform/heap/GCInfo.h:165: static const size_t
> > > gcInfoMaxIndex = 1 << 14;
> > > On 2017/01/06 04:18:49, haraken wrote:
> > > > 
> > > > I hit a link error if I put this in GCInfo. I couldn't work around it,
so
> > put
> > > it
> > > > outside the class declaration.
> > > > 
> > > 
> > > Do you remember what the link error was?
> > 
> > See the error in PS3. It happens only on ChromeOS.
> 
> I don't see any link errors related to gcInfoMaxIndex there.

This one:

FAILED: libblink_platform.so libblink_platform.so.TOC 
python
"/usr/local/google/home/haraken/chromium/src/build/toolchain/gcc_solink_wrapper.py"
--readelf="readelf" --nm="nm"  --sofile="./libblink_platform.so"
--tocfile="./libblink_platform.so.TOC" --output="./libblink_platform.so"  --
../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared
-Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro
-Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -fuse-ld=gold
-B../../third_party/binutils/Linux_x64/Release/bin -Wl,--threads
-Wl,--thread-count=4 -Wl,--icf=all -m64 -pthread -Werror -Wl,-O1
-Wl,--gc-sections --sysroot=../../build/linux/debian_wheezy_amd64-sysroot
-L/usr/local/google/home/haraken/chromium/src/build/linux/debian_wheezy_amd64-sysroot/lib/x86_64-linux-gnu
-Wl,-rpath-link=/usr/local/google/home/haraken/chromium/src/build/linux/debian_wheezy_amd64-sysroot/lib/x86_64-linux-gnu
-L/usr/local/google/home/haraken/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/lib/x86_64-linux-gnu
-Wl,-rpath-link=/usr/local/google/home/haraken/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/lib/x86_64-linux-gnu
-L/usr/local/google/home/haraken/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/lib/gcc/x86_64-linux-gnu/4.6
-Wl,-rpath-link=/usr/local/google/home/haraken/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/lib/gcc/x86_64-linux-gnu/4.6
-L/usr/local/google/home/haraken/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/lib
-Wl,-rpath-link=/usr/local/google/home/haraken/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/lib
-Wl,--export-dynamic -o "./libblink_platform.so"
-Wl,-soname="libblink_platform.so" @"./libblink_platform.so.rsp"
../../base/logging.h:631: error: undefined reference to
'blink::GCInfoTable::maxIndex'
../../base/logging.h:631: error: undefined reference to
'blink::GCInfoTable::maxIndex'
../../base/logging.h:631: error: undefined reference to
'blink::GCInfoTable::maxIndex'
../../base/logging.h:631: error: undefined reference to
'blink::GCInfoTable::maxIndex'

Powered by Google App Engine
This is Rietveld 408576698