Skip to content

Retain Metal devices selected by name - #117

Merged
Try merged 1 commit into
Try:masterfrom
tryk016:codex/pr-tempest-metal-device-ownership
Oct 3, 2026
Merged

Try merged 1 commit into
Try:masterfrom
tryk016:codex/pr-tempest-metal-device-ownership

Conversation

@tryk016

@tryk016 tryk016 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

NS::Array::object() returns a borrowed device, but NsPtr releases it on destruction. Retain the selected device before releasing the array.

This fixes the macOS CI crash after MetalApi.ArrayLength: rejecting the named device released a reference Tempest didn't own. Reproduced on current master; the same test suite completes with this change.

@Try
Try merged commit efe4a9f into Try:master Oct 3, 2026
4 checks passed
@Try

Try commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Merged, thanks!

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