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

Remove Finalize on obj holder for RawByteMemory #8237

Merged
merged 4 commits into from
Jan 20, 2020

Conversation

TIHan
Copy link
Member

@TIHan TIHan commented Jan 16, 2020

We do not need a Finalize on the object that is holding a memory mapped file for RawByteMemory. Memory mapped file implementation already uses a safe handle and does it for us.

src/absil/bytes.fs Outdated Show resolved Hide resolved
@TIHan TIHan merged commit b7a3bf8 into dotnet:master Jan 20, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
* Remove Finalize on obj holder for RawByteMemory as memory mapped files use a safe handler.

* Removed Finalize from SafeUnamanagedMemoryStream as it is an impl detail for viewing RawByteMemory as a stream

* Remove new

* Update bytes.fs
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.

None yet

2 participants