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

Optimize IUnknown identity checks #3073

Merged

Conversation

sivadeilra
Copy link
Collaborator

This fixes #3069 by adding more coverage for IUnknown identity tests.

This also adds a fast-path for comparing interface identity. If two COM interface pointers have the same pointer view, then they refer to the same object and we can avoid the QueryInterface calls.

@sivadeilra sivadeilra force-pushed the user/ardavis/iunknown-qi-tests branch from ab3c426 to 460803d Compare June 6, 2024 18:12
@kennykerr kennykerr changed the title Add test coverage for IUnknown identity #3069 Optimize IUnknown identity checks Jun 6, 2024
@sivadeilra sivadeilra requested a review from kennykerr June 6, 2024 23:37
@kennykerr kennykerr merged commit 7d94387 into microsoft:master Jun 7, 2024
90 checks passed
@sivadeilra sivadeilra deleted the user/ardavis/iunknown-qi-tests branch June 7, 2024 00:29
mati865 pushed a commit to mati865/windows-rs that referenced this pull request Jun 15, 2024
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.

Add test for IUnknown identity queries
2 participants