Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 31dc8958efeae7277d89182eac43b44fcc5e4d8e..64349f2761fae47f5e35af8addfcbd46679fd911 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -100,7 +100,13 @@ class ShellArrayBufferAllocator : public v8::ArrayBuffer::Allocator { |
#if USE_VM |
if (RoundToPageSize(&length)) return VirtualMemoryAllocate(length); |
#endif |
+// Work around for GCC bug on AIX |
+// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79839 |
+#if V8_OS_AIX && _LINUX_SOURCE_COMPAT |
+ return __linux_malloc(length); |
+#else |
return malloc(length); |
+#endif |
} |
virtual void Free(void* data, size_t length) { |
#if USE_VM |