Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-114940: Add a Per-Interpreter Lock For the List of Thread States#127037

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrentlyericsnowcurrently commentedNov 19, 2024
edited by bedevere-appbot
Loading

The new lock may be used instead of the global "HEAD" lock. That global lock guards the list of interpreters, but unfortunately also gets used as a generic "lock everything". This change helps us move away from that situation.

FYI, this is very similar togh-125561.

Comment on lines +1757 to +1761
HEAD_LOCK(runtime);
if (runtime->stoptheworld.requested) {
decrement_stoptheworld_countdown(&runtime->stoptheworld);
}
HEAD_UNLOCK(runtime);
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I think this is correct, but need to double-check.

@rruuaanng
Copy link
Contributor

It seems that there is an error in CI, I will refer to your implementation.

Copy link
Contributor

Choose a reason for hiding this comment

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

If I remember correctly, this was an issue that could not be changed because it would cause unexpected issues with CI (it was originally changed in my PR)

@ericsnowcurrently
Copy link
MemberAuthor

I have factored outgh-127077 and will later update this PR on top of it.

@ericsnowcurrently
Copy link
MemberAuthor

I ended up splitting up these changes into#127077 and#127115, partly to make the change cleaner and to sort out the cases where we still have to useHEAD_LOCK().

@ericsnowcurrentlyericsnowcurrently deleted the interp-threads-lock branchNovember 21, 2024 18:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@rruuaanngrruuaanngrruuaanng left review comments

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ericsnowcurrently@rruuaanng

[8]ページ先頭

©2009-2025 Movatter.jp