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

Issue 2032753002: Replace 0x42 with 0x420 in ThreadDelegateForNewHandlerTest (Closed)

Created:
4 years, 6 months ago by bcf
Modified:
4 years, 6 months ago
CC:
chromium-reviews, wfh+watch_chromium.org, Dai Mikurube (NOT FULLTIME)
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace 0x42 with 0x420 in ThreadDelegateForNewHandlerTest On GCC -O2, the comparison operator between realloc's result and the uintptr_t 0x42 is optimized away. 0x42 is not aligned, so the compiler assumes realloc cannot return this value. BUG=616860 BUG=internal b/28801531 Committed: https://crrev.com/2dcb3524b6daaa812c2af10baf4b1f4b1a6a25ba Cr-Commit-Position: refs/heads/master@{#397526}

Patch Set 1 #

Patch Set 2 : Switch cast order of EXPECT_EQ #

Patch Set 3 : Replace 0x42 with 0x420 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -10 lines) Patch
M base/allocator/allocator_shim_unittest.cc View 1 2 5 chunks +11 lines, -10 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
bcf
4 years, 6 months ago (2016-06-01 21:45:25 UTC) #3
wzhong
If aliasing is the problem, how about using a union without volatile?
4 years, 6 months ago (2016-06-01 22:34:46 UTC) #5
bcf
On 2016/06/01 22:34:46, wzhong wrote: > If aliasing is the problem, how about using a ...
4 years, 6 months ago (2016-06-01 22:38:00 UTC) #6
wzhong
I am wondering if static_cast is more appropriate than reinterpret_cast here.
4 years, 6 months ago (2016-06-01 22:40:21 UTC) #7
bcf
On 2016/06/01 22:40:21, wzhong wrote: > I am wondering if static_cast is more appropriate than ...
4 years, 6 months ago (2016-06-01 22:47:58 UTC) #8
Primiano Tucci (use gerrit)
On 2016/06/01 22:47:58, bcf wrote: > On 2016/06/01 22:40:21, wzhong wrote: > > I am ...
4 years, 6 months ago (2016-06-01 22:57:08 UTC) #9
bcf
On 2016/06/01 22:57:08, Primiano Tucci wrote: > On 2016/06/01 22:47:58, bcf wrote: > > On ...
4 years, 6 months ago (2016-06-01 23:12:15 UTC) #10
wzhong
lgtm
4 years, 6 months ago (2016-06-02 00:38:09 UTC) #12
Primiano Tucci (use gerrit)
On 2016/06/02 00:38:09, wzhong wrote: > lgtm OK I think I figured this out (thanks ...
4 years, 6 months ago (2016-06-02 16:31:50 UTC) #13
bcf
On 2016/06/02 16:31:50, Primiano Tucci wrote: > On 2016/06/02 00:38:09, wzhong wrote: > > lgtm ...
4 years, 6 months ago (2016-06-02 20:08:18 UTC) #15
Primiano Tucci (use gerrit)
On 2016/06/02 20:08:18, bcf wrote: > On 2016/06/02 16:31:50, Primiano Tucci wrote: > > On ...
4 years, 6 months ago (2016-06-02 20:11:31 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2032753002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2032753002/40001
4 years, 6 months ago (2016-06-02 20:15:47 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-02 21:53:44 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2032753002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2032753002/40001
4 years, 6 months ago (2016-06-02 21:55:24 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-02 22:10:34 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 22:12:57 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2dcb3524b6daaa812c2af10baf4b1f4b1a6a25ba
Cr-Commit-Position: refs/heads/master@{#397526}

Powered by Google App Engine
This is Rietveld 408576698