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

module: Prepare usings array for world age partition #55357

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

Keno
Copy link
Member

@Keno Keno commented Aug 3, 2024

This is a relatively independent part of the bindings partition branch, extending the module usings list to gain min_world and max_world size_ts. These are always 0 and (size_t)-1 respectively in this PR, which handles the GC and serialization implications of this change. The semantic part will come later.

This is a relatively independent part of the bindings partition branch,
extending the module usings list to gain `min_world` and `max_world`
`size_t`s. These are always `0` and `(size_t)-1` respectively in this
PR, which handles the GC and serialization implications of this change.
The semantic part will come later.
@Keno Keno merged commit eb3ed5e into master Oct 17, 2024
7 checks passed
@Keno Keno deleted the kf/usingspartition branch October 17, 2024 16:03
Comment on lines +755 to +756
arraylist_grow(&to->usings, sizeof(struct _jl_module_using)/sizeof(void*));
memcpy(&to->usings.items[to->usings.len-3], &new_item, sizeof(struct _jl_module_using));
Copy link
Member

Choose a reason for hiding this comment

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

IIUC, you don't always access this state with a lock (e.g. in jl_module_names), so this is a concurrency issue. The simplest fix is to make sure there add a lock (like using_resolve_binding does). The alternative fix is to use the similar functions in mtarraylist.c which should allow concurrent reading

KristofferC pushed a commit that referenced this pull request Oct 21, 2024
This is a relatively independent part of the bindings partition branch,
extending the module usings list to gain `min_world` and `max_world`
`size_t`s. These are always `0` and `(size_t)-1` respectively in this
PR, which handles the GC and serialization implications of this change.
The semantic part will come later.
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