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

Fix ARC objects leak in MetalShaderCompiler thread #8306

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

pixelflinger
Copy link
Collaborator

When using async shader compilation, the compiler thread pool is a standard pthread and not an NSThread. Therefore, it needs a manual @autorelease pool, otherwise ARC objects never get truly released. 
 BUGS=[383167935]

When using async shader compilation, the compiler thread pool is a 
standard pthread and not an NSThread. Therefore, it needs a manual
@autorelease pool, otherwise ARC objects never get truly released. 

BUGS=[383167935]
@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Dec 9, 2024
@pixelflinger pixelflinger merged commit 03fdadf into main Dec 10, 2024
13 checks passed
@pixelflinger pixelflinger deleted the ma/metal-objc-leak branch December 10, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants