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

Issue 2732743002: AIX: Work around for malloc(0) behavior (Closed)

Created:
3 years, 9 months ago by JaideepBajwa
Modified:
3 years, 9 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

AIX: Work around for malloc(0) behavior malloc(0) returning 0 is expected behavior on AIX but compiling with -D_LINUX_SOURCE_COMPAT, malloc(0) should return a valid pointer (which we do define for AIX). However, including cstdlib resets the behaviour of _LINUX_SOURCE_COMPAT. GCC bug: 79839 R=jochen@chromium.org, titzer@chromium.org BUG= LOG=N Review-Url: https://codereview.chromium.org/2732743002 Cr-Commit-Position: refs/heads/master@{#43647} Committed: https://chromium.googlesource.com/v8/v8/+/7c0f3f0623aa6823caf0cf006dc5cc18148a4bd4

Patch Set 1 #

Total comments: 3

Patch Set 2 : fixed as suggested #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M src/d8.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (7 generated)
JaideepBajwa
ptal
3 years, 9 months ago (2017-03-03 21:11:54 UTC) #1
titzer
https://codereview.chromium.org/2732743002/diff/1/test/cctest/wasm/wasm-run-utils.h File test/cctest/wasm/wasm-run-utils.h (right): https://codereview.chromium.org/2732743002/diff/1/test/cctest/wasm/wasm-run-utils.h#newcode114 test/cctest/wasm/wasm-run-utils.h:114: #if V8_OS_AIX && _LINUX_SOURCE_COMPAT What about changing the CHECK() ...
3 years, 9 months ago (2017-03-04 23:29:56 UTC) #2
JaideepBajwa
https://codereview.chromium.org/2732743002/diff/1/test/cctest/wasm/wasm-run-utils.h File test/cctest/wasm/wasm-run-utils.h (right): https://codereview.chromium.org/2732743002/diff/1/test/cctest/wasm/wasm-run-utils.h#newcode114 test/cctest/wasm/wasm-run-utils.h:114: #if V8_OS_AIX && _LINUX_SOURCE_COMPAT On 2017/03/04 23:29:56, titzer wrote: ...
3 years, 9 months ago (2017-03-05 05:11:03 UTC) #3
JaideepBajwa
https://codereview.chromium.org/2732743002/diff/1/test/cctest/wasm/wasm-run-utils.h File test/cctest/wasm/wasm-run-utils.h (right): https://codereview.chromium.org/2732743002/diff/1/test/cctest/wasm/wasm-run-utils.h#newcode114 test/cctest/wasm/wasm-run-utils.h:114: #if V8_OS_AIX && _LINUX_SOURCE_COMPAT On 2017/03/04 23:29:56, titzer wrote: ...
3 years, 9 months ago (2017-03-06 22:35:26 UTC) #4
titzer
lgtm
3 years, 9 months ago (2017-03-07 09:33:58 UTC) #5
jochen (gone - plz use gerrit)
lgtm
3 years, 9 months ago (2017-03-07 11:45:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2732743002/20001
3 years, 9 months ago (2017-03-07 15:46:02 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 15:49:27 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/7c0f3f0623aa6823caf0cf006dc5cc18148...

Powered by Google App Engine
This is Rietveld 408576698