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

use IsReferenceOrContainsReferences for .NET Standard 2.1+ and 6_0+ #901

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

Tornhoof
Copy link
Contributor

This ports the change done by @PaulusParssinen done in microsoft/garnet#36 to FASTER.
This only applies to the builds for .NET STANDARD 2.1 and 6_0+ as otherwise the helper method is not available, the reflection method is also still used in the code.

@badrishc badrishc merged commit 281bdff into microsoft:main Mar 24, 2024
1 check passed
@Tornhoof Tornhoof deleted the IsBlittableFixes branch March 24, 2024 21:13
@PaulusParssinen
Copy link

Deleted earlier incorrect comment, misread the changes 🤦‍♂️

This actually fixes a bug as the .NET 7+ onwards it is invalid to rely on dummy GCHandle for the blittability check (see dotnet/runtime#68694)

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.

3 participants