Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@dotnet-bot
Copy link

This PR contains mirrored changes from dotnet/coreclr

Please REBASE this PR when merging

* Adding Memory.Pin() to eventually replace Memory.Retain(bool)

* Fix copy/paste error and return default for when object is null.

* Fix XML comments.

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
@ahsonkhan
Copy link

Cherry-picked the commits from #28517.

@ahsonkhan
Copy link

@dotnet-bot test this please

@ahsonkhan ahsonkhan merged commit bb5c468 into master Mar 29, 2018
@ahsonkhan ahsonkhan deleted the mirror-merge-9591891 branch March 29, 2018 03:22
@karelz karelz added this to the 2.1.0 milestone Mar 30, 2018
@Anipik
Copy link

Anipik commented Mar 30, 2018

@safern The commits after 5c53bdc are not getting mirrored in coreclr. most probably due to accidently hitting Squash and merge. is there any way we can mirror this ?

@safern
Copy link
Member

safern commented Mar 30, 2018

The best and easiest way would be to just port them manually and either point the mirror to after that PR once it is merged or to sign the commits when porting them with the mirror signature.

@ahsonkhan
Copy link

The best and easiest way would be to just port them manually

I did that here: dotnet/coreclr#17340

point the mirror to after that PR once it is merged

Yes, let's do that. Thanks!

picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Adding Memory.Pin() to eventually replace Memory.Retain(bool) (dotnet/corefx#17269)

* Adding Memory.Pin() to eventually replace Memory.Retain(bool)

* Fix copy/paste error and return default for when object is null.

* Fix XML comments.

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>

* Add Memory.Pin to the ref and add tests.

* Add Pin tests

* Update calls to Retain(true) to now call Pin()

* Remove extra space in tests.

* Add Pin to the ApiCompatBaseline for uapaot.


Commit migrated from dotnet/corefx@bb5c468
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants