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-116738: Make mmap.set_name thread-safe#145555

Merged
corona10 merged 3 commits intopython:mainfrom
aisk:mmap-set-name-thread-safe
Mar 7, 2026
Merged

gh-116738: Make mmap.set_name thread-safe#145555
corona10 merged 3 commits intopython:mainfrom
aisk:mmap-set-name-thread-safe

Conversation

@aisk
Copy link
Member

@aiskaisk commentedMar 5, 2026
edited by bedevere-appbot
Loading

mmap.resize may update the pointer todata andsize, which is under the protection of a critical section.

Inmmap.set_name, it usesdata andsize to annotate the mmap, but it does not have a critical section around it. So it may use an invaliddata andsize combination, which may have problems.

@vstinner
Copy link
Member

cc@corona10

@corona10corona10 self-assigned thisMar 5, 2026
Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

LGTM. It sounds reasonable to add a critical section to get a consistent view of the memory mapping.

Copy link
Member

@corona10corona10 left a comment

Choose a reason for hiding this comment

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

lgtm!

@corona10corona10 merged commit46761c9 intopython:mainMar 7, 2026
54 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vstinnervstinnervstinner approved these changes

@corona10corona10corona10 approved these changes

Assignees

@corona10corona10

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@aisk@vstinner@corona10

[8]ページ先頭

©2009-2026 Movatter.jp