Commit 56b4ef24 authored by Vasili Skurydzin's avatar Vasili Skurydzin Committed by V8 LUCI CQ

Aix: Fix typo in __linux_malloc, __linux_realloc arguments

Change-Id: Ia0078bed77f5f75eebd837b7ffcc34cfb2c7d305
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3863723Reviewed-by: 's avatarMilad Farazmand <mfarazma@redhat.com>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82807}
parent 0adc9cac
......@@ -35,7 +35,7 @@ inline void* Malloc(size_t size) {
#elif V8_OS_AIX && _LINUX_SOURCE_COMPAT
// Work around for GCC bug on AIX.
// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79839
return __linux_malloc(length);
return __linux_malloc(size);
#else
return malloc(size);
#endif
......@@ -47,7 +47,7 @@ inline void* Realloc(void* memory, size_t size) {
#elif V8_OS_AIX && _LINUX_SOURCE_COMPAT
// Work around for GCC bug on AIX, see Malloc().
// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79839
return __linux_realloc(data, new_length);
return __linux_realloc(memory, size);
#else
return realloc(memory, size);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment