Skip to content

Conversation

nsajko
Copy link
Member

@nsajko nsajko commented Aug 25, 2025

The variable i was unintentionally shared between the generator closure in _register_kinds! and another part of the body of _register_kinds!. Thus i was boxed, causing trouble for inference.

Fix this by moving the part of _register_kinds! with i to a new function.

Fixing this should make the sysimage more resistant to invalidation, once the change propagates to Julia itself.

xref:

@nsajko
Copy link
Member Author

nsajko commented Aug 26, 2025

This PR seems to eliminate the exact same invalidations as PR #588.

@nsajko nsajko marked this pull request as ready for review August 26, 2025 07:19
@nsajko nsajko marked this pull request as draft August 26, 2025 07:19
…liaLang#586)

The variable `i` was unintentionally shared between the generator
closure in `_register_kinds!` and another part of the body of
`_register_kinds!`. Thus `i` was boxed, causing trouble for inference.

Fix this by moving the part of `_register_kinds!` with `i` to a new
function.

Fixing this should make the sysimage more resistant to invalidation,
once the change propagates to Julia itself.

(cherry picked from commit 00bd17e)
@nsajko nsajko marked this pull request as ready for review August 26, 2025 07:30
@nsajko
Copy link
Member Author

nsajko commented Aug 27, 2025

bump

1 similar comment
@nsajko
Copy link
Member Author

nsajko commented Sep 5, 2025

bump

@aviatesk aviatesk merged commit 4e5f85e into JuliaLang:backports-release-1 Sep 5, 2025
35 checks passed
@nsajko nsajko deleted the backport_pr_586 branch September 5, 2025 12:11
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