Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ language runtime. The main focus is on user-observable behavior of the engine.
* Enable FTS3, FTS4, FTS5, RTREE, and math function features in the bundled sqlite3 library.
* Add support patches for Torch 2.7.0, PyGObject 3.52.3, xmlschema 4.0.0, lxml < 5.4.0, SciPy 1.15, jq 1.8.0, NumPy < 2.3, ormsgpack < 1.9.1, pandas 2.2.3, PyArrow 19.0, PyMuPDF 1.25.4.
* The GraalPy Native standalone on Linux now uses the G1 garbage collector which is much faster.
* The GraalPy Native standalone on Linux now uses a lower-footprint Native Image garbage collection configuration. This reduces resident set size (RSS) for many workloads, but may increase startup time and warmup time, and can slow down some workloads.
* The full-featured Python REPL is now available on GraalPy standalone builds for Windows.

## Version 24.2.0
Expand Down
12 changes: 8 additions & 4 deletions mx.graalpython/mx_graalpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,20 @@ def libpythonvm_build_args():
if graalos := ("musl" in mx_subst.path_substitutions.substitute("<multitarget_libc_selection>")):
build_args += ['-H:+GraalOS']
else:
build_args += ["-Dpolyglot.image-build-time.PreinitializeContexts=python"]
build_args += [
"-Dpolyglot.image-build-time.PreinitializeContexts=python",
"-H:+UnlockExperimentalVMOptions",
'-H:+RelativeCodePointers',
"-H:-UnlockExperimentalVMOptions",
]

if (
mx.is_linux()
and not graalos
not graalos
and mx_sdk_vm_ng.is_nativeimage_ee()
and not os.environ.get('NATIVE_IMAGE_AUXILIARY_ENGINE_CACHE')
and not _is_overridden_native_image_arg("--gc")
):
build_args += ['--gc=G1', '-H:-ProtectionKeys']
build_args += ['-H:-ProtectionKeys']

profile = None
if (
Expand Down
Loading