Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mx.graalpython/mx_graalpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,12 @@ def libpythonvm_build_args():
# MAP_JIT memory is mapped next to the (ASLR-slid) dylibs.
build_args += ['-H:-RandomizeRuntimeCodeCache']

if not graalos and not _is_overridden_native_image_arg("-R:+CompileInIsolates") and not _is_overridden_native_image_arg("-R:-CompileInIsolates"):
# Runtime compilation runs in a separate isolate by default, with its own heap (which starts
# with a young generation of about 48 MB) and a second mapping of the image heap that it
# touches. Compile in the main isolate instead; --vm.XX:+CompileInIsolates restores it.
build_args += ['-R:-CompileInIsolates']

profile = None
require_profile = get_boolean_env("GRAALPY_REQUIRE_PGO_PROFILE")
if (
Expand Down
Loading