Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Remove MemoryPool and fix System.Buffers version #2086

Merged
merged 5 commits into from
Jan 30, 2018

Conversation

ahsonkhan
Copy link
Member

Fixes the issue in #2072 (comment) and supersedes it.

MemoryPool got added to S.M in corefx here: dotnet/corefx#26563

cc @KrzysztofCwalina, @pakrym, @joshfree, @dotnet/corefxlab-contrib

@@ -45,7 +45,7 @@ protected override void Dispose(bool disposing)

public override OwnedMemory<byte> Rent(int numberOfBytes = DefaultSize)
{
if (numberOfBytes == AnySize) numberOfBytes = DefaultSize;
if (numberOfBytes == -1) numberOfBytes = DefaultSize;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we still have a private constant for documentation purposes?

@joshfree joshfree merged commit 1420939 into dotnet:master Jan 30, 2018
@ahsonkhan ahsonkhan deleted the RemoveMemoryPool branch January 31, 2018 20:47
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.

3 participants