Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export jl_gc_set_max_memory #47545

Merged
merged 1 commit into from
Nov 15, 2022
Merged

export jl_gc_set_max_memory #47545

merged 1 commit into from
Nov 15, 2022

Conversation

JeffBezanson
Copy link
Sponsor Member

Also initialize it later, outside option parsing, so that modifying jl_options before calling jl_init works.

Also initialize it later, outside option parsing, so that modifying jl_options
before calling jl_init works.
@JeffBezanson JeffBezanson added the domain:embedding Embedding Julia using the C API label Nov 11, 2022
@PallHaraldsson
Copy link
Contributor

PallHaraldsson commented Nov 15, 2022

This is basically the New option --heap-size-hint=<size> under program control rather than for the user? For embedding, but I'm just thinking can you also use it from within Julia [programs]? Would that be then a simple ccall (I'm ok with nothing more, I don't think you should use this too often...)? I would like to know if and how exactly (I believe such is possible from within Python and more languages).

@JeffBezanson JeffBezanson merged commit 9b3f5c3 into master Nov 15, 2022
@JeffBezanson JeffBezanson deleted the jb/setmaxmem branch November 15, 2022 23:32
@JeffBezanson
Copy link
Sponsor Member Author

Yes. For now you can ccall it, though as you say I would not recommend doing that a lot.

d-netto pushed a commit to RelationalAI/julia that referenced this pull request Dec 20, 2023
Also initialize it later, outside option parsing, so that modifying jl_options
before calling jl_init works.
d-netto pushed a commit to RelationalAI/julia that referenced this pull request Dec 21, 2023
Also initialize it later, outside option parsing, so that modifying jl_options
before calling jl_init works.
d-netto added a commit to RelationalAI/julia that referenced this pull request Dec 21, 2023
Also initialize it later, outside option parsing, so that modifying jl_options
before calling jl_init works.

Co-authored-by: Jeff Bezanson <[email protected]>
d-netto added a commit to RelationalAI/julia that referenced this pull request Jan 2, 2024
Also initialize it later, outside option parsing, so that modifying jl_options
before calling jl_init works.

Co-authored-by: Jeff Bezanson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:embedding Embedding Julia using the C API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants