Skip to content

Use @pyregion when loading Python objects from arrays - #843

Open
JamesWrigley wants to merge 1 commit into
JuliaPy:v1from
JamesWrigley:incref
Open

JamesWrigley wants to merge 1 commit into
JuliaPy:v1from
JamesWrigley:incref

Conversation

@JamesWrigley

Copy link
Copy Markdown
Contributor

This branch calls incref(u) to increment the objects refcount, which without @pyregion would be a data race if other threads accessed it at the same time. Discovered by Claude while explaining the code to me 🤖 I couldn't think of a reliable way to test it so I didn't add a test.

This branch calls incref(u) to increment the objects refcount, which without
@pyregion would be a data race if other threads accessed it at the same time.

This branch has not been deployed

No deployments
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.

1 participant