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

Use support for gc_safe=true in Base if available #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vchuravy
Copy link
Member

Fixes #5

Copy link

github-actions bot commented Feb 17, 2025

Your PR no longer requires formatting changes. Thank you for your contribution!

# note that this is generally only safe with functions that do not call back into Julia.
# when callbacks occur, the code should ensure the GC is not running by wrapping the code
# in the `@gcunsafe` macro

const HAS_CCALL_GCSAFE = VERSION >= v"1.13.0-DEV.70"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait for JuliaLang/julia#57408 to be merged to add that compat/version bound to this PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const HAS_CCALL_GCSAFE = VERSION >= v"1.13.0-DEV.70"
const HAS_CCALL_GCSAFE = VERSION >= v"1.13.0-DEV.70" || v"1.12-DEV.2029" <= VERSION < v"1.13-"

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

Successfully merging this pull request may close these issues.

Use @ccall gc_safe=true when available.
2 participants