Skip to content

Commit 9dc2c98

Browse files
authored
Allocate JIT code via named anonymous mmap (#52)
Closes #38
1 parent f0063f0 commit 9dc2c98

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ else
9393
'asmprinter', 'executionengine', 'target', 'orcjit', 'native',
9494
])
9595

96+
if target_machine.system() == 'linux'
97+
# GH-38: allocate JIT code via a named anonymous mmap instead of the heap.
98+
add_project_arguments('-DREACTOR_ANONYMOUS_MMAP_NAME=akarin_jit', language: 'cpp')
99+
endif
100+
96101
if static_llvm and is_windows
97102
# HACK: work around multiple definition of `llvm::getTypeName<llvm::LICMPass>()::Name`.
98103
add_project_link_arguments('-Wl,--allow-multiple-definition', language: 'cpp')

0 commit comments

Comments
 (0)