Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
pybind
/
pybind11
Public
Notifications
You must be signed in to change notification settings
Fork
2.3k
Star
18k
Code
Issues
574
Pull requests
154
Discussions
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Wiki
Security and quality
Insights
fix: re-acquire the GIL in class_::init_instance before instance registration
- #6172
#6172
Merged
rwgk
merged 8 commits into
pybind:master
pybind/pybind11:master
from
trim21:fix/gil-scoped-release-init-instance
trim21/pybind11:fix/gil-scoped-release-init-instance
Copy head branch name to clipboard
Sep 15, 2026
Conversation
Commits
8
(8)
Checks
Files changed
Merged
fix: re-acquire the GIL in class_::init_instance before instance registration
#6172
rwgk
merged 8 commits into
pybind:master
pybind/pybind11:master
from
trim21:fix/gil-scoped-release-init-instance
trim21/pybind11:fix/gil-scoped-release-init-instance
Copy head branch name to clipboard
Commits
Commits on Sep 7, 2026
fix: re-acquire GIL in init_instance for thread-safe instance registration
Show description for 1be51f6
trim21
committed
1be51f6
View commit details
Copy full SHA for 1be51f6
Browse repository at this point
tests: avoid std::make_unique in test_gil_scoped (C++14 only)
Show description for 629e35b
trim21
committed
629e35b
View commit details
Copy full SHA for 629e35b
Browse repository at this point
tests: skip test_init_factory_gil_released_concurrent_construction on free-threaded builds
Show description for 19d242b
trim21
committed
19d242b
View commit details
Copy full SHA for 19d242b
Browse repository at this point
tests: run the init_instance race regression only as a direct test
Show description for 580a8c6
trim21
committed
580a8c6
View commit details
Copy full SHA for 580a8c6
Browse repository at this point
chore: retrigger CI (GCC 9 job failed on apt 404 for python3-setuptools, unrelated)
trim21
committed
e4402e4
View commit details
Copy full SHA for e4402e4
Browse repository at this point
Commits on Sep 13, 2026
fix: make init_instance GIL acquisition unconditional
Show description for d59f5db
trim21
committed
d59f5db
View commit details
Copy full SHA for d59f5db
Browse repository at this point
test: run init_instance regression on free-threaded builds too
Show description for a6c286a
trim21
committed
a6c286a
View commit details
Copy full SHA for a6c286a
Browse repository at this point
Commits on Sep 14, 2026
docs: cover free-threaded thread-state attach in init_instance comments
Show description for 1b0df99
trim21
committed
1b0df99
View commit details
Copy full SHA for 1b0df99
Browse repository at this point
You can’t perform that action at this time.