summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorMike Pall <mike>2014-04-21 22:26:46 +0200
committerMike Pall <mike>2014-04-21 22:26:46 +0200
commitf3374b526619671fe576d593dcdc6bd048bf5603 (patch)
treecbd75e5da96e2f3b2c425e9307bf734603e4e27b /src/Makefile
parent65626eac23633bfb511513b55b2b4dec5d50e4d3 (diff)
downloadluajit-f3374b526619671fe576d593dcdc6bd048bf5603.tar.gz
luajit-f3374b526619671fe576d593dcdc6bd048bf5603.tar.bz2
luajit-f3374b526619671fe576d593dcdc6bd048bf5603.zip
x64: Allow building with LUAJIT_USE_SYSMALLOC and LUAJIT_USE_VALGRIND.
Valgrind 3.9 killed MAP_32BIT support. Ugh. So now we have to rely on undocumented behavior where Valgrind always allocates from the bottom of memory. Alas, such a binary won't run properly without Valgrind.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 9551781a..c558003c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -122,8 +122,10 @@ XCFLAGS=
122# 122#
123# Use the system provided memory allocator (realloc) instead of the 123# Use the system provided memory allocator (realloc) instead of the
124# bundled memory allocator. This is slower, but sometimes helpful for 124# bundled memory allocator. This is slower, but sometimes helpful for
125# debugging. It's helpful for Valgrind's memcheck tool, too. This option 125# debugging. This option cannot be enabled on x64, since realloc usually
126# cannot be enabled on x64, since the built-in allocator is mandatory. 126# doesn't return addresses in the right address range.
127# OTOH this option is mandatory for Valgrind's memcheck tool on x64 and
128# the only way to get useful results from it for all other architectures.
127#XCFLAGS+= -DLUAJIT_USE_SYSMALLOC 129#XCFLAGS+= -DLUAJIT_USE_SYSMALLOC
128# 130#
129# This define is required to run LuaJIT under Valgrind. The Valgrind 131# This define is required to run LuaJIT under Valgrind. The Valgrind