Skip to content

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

Merged
cjdoris merged 1 commit into
JuliaPy:v1from
JamesWrigley:incref
Oct 24, 2026
Merged

cjdoris merged 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.
@cjdoris
cjdoris merged commit fcb6a7c into JuliaPy:v1 Oct 24, 2026
18 checks passed
@cjdoris

cjdoris commented Oct 24, 2026

Copy link
Copy Markdown
Member

Thanks!

@JamesWrigley
JamesWrigley deleted the incref branch October 24, 2026 20:24
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.

2 participants