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

Switch GC_incremental mode on/off at runtime #670

Open
liuwjchinal opened this issue Oct 16, 2024 · 5 comments
Open

Switch GC_incremental mode on/off at runtime #670

liuwjchinal opened this issue Oct 16, 2024 · 5 comments

Comments

@liuwjchinal
Copy link

I want ask if bdwgc support runtime switch GC_incremental Mode and how?

@ivmai
Copy link
Owner

ivmai commented Oct 16, 2024

If I got your question correctly, you should call GC_enable_incremental() after GC_INIT(), or set GC_ENABLE_INCREMENTAL environment variable to 1.
Note that incremental mode is not provided (not supported ) on some platforms.

@liuwjchinal
Copy link
Author

ok, thanks~

@ivmai ivmai closed this as completed Oct 16, 2024
@liuwjchinal
Copy link
Author

Will there be any issues if I enable incremental GC at the start of a runtime and then dynamically disable it? this is what I actually want to ask

@ivmai ivmai changed the title Can I Runtime Switch GC_incremental Mode? Switch GC_incremental mode on/off at runtime Oct 17, 2024
@ivmai ivmai reopened this Oct 17, 2024
@ivmai
Copy link
Owner

ivmai commented Oct 17, 2024

Normally GC incremental mode is turned on at process start.
Turning the mode off is not implemented.

@liuwjchinal
Copy link
Author

ok,ivmai. Thank you for your response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants