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 Unsafe.SizeOf to calculate object sizes #39

Merged
merged 7 commits into from
Mar 21, 2024

Conversation

PaulusParssinen
Copy link
Contributor

@PaulusParssinen PaulusParssinen commented Mar 19, 2024

Fixes potential GC hole by using BCL's Unsafe.SizeOf<T>() to calculate sizes for given type parameter more safely 😆.

Contributes to #38

@PaulusParssinen
Copy link
Contributor Author

PaulusParssinen commented Mar 19, 2024

No idea why build is failing in the CI..

nvm. There apparently was a Tsavorite.test project that is not visible in the normal project solution view. Fixing..

@badrishc
Copy link
Contributor

No idea why build is failing in the CI..

nvm. There apparently was a Tsavorite.test project that is not visible in the normal project solution view. Fixing..

Yes, there are too many tests in Tsavorite.test and that degrades the dev experience for Garnet, so those tests are not included in the Garnet solution. They are limited to Tsavorite. Tsavorite CI kicks off if any changes to Tsavorite folder are detected.

@PaulusParssinen PaulusParssinen marked this pull request as draft March 19, 2024 19:56
@PaulusParssinen PaulusParssinen marked this pull request as ready for review March 19, 2024 21:06
@TedHartMS TedHartMS merged commit 5a82884 into microsoft:main Mar 21, 2024
10 checks passed
@PaulusParssinen PaulusParssinen deleted the unsafe-sizeof branch March 21, 2024 05:11
@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants