Skip to content

Python 3.13 with (modified) mimalloc #559

Open
@PallHaraldsson

Description

@PallHaraldsson

A modified version of mimalloc is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.

python/cpython#113141 (comment)

[I.e. likely for all platforms Julia support.] But it's unclear to me if this is a problem for using together since using different malloc.

I've tried before to switch out Julia's use of malloc for mimalloc (it didn't work, I though somebody made it work since).

In C, if you use an alternative malloc you must use its corresponding free, and that rule would translate to Python for its allocations. Julia would do similarily, but assuming still with Libc's standard malloc and free.

I'm just thinking, can you sometimes malloc (indirectly) by Python, then Julia would do the free, and it wouldn't work? Or vice versa?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions