Skip to content

[Xcode11.2][CoreFoundation] Make CFBundle.GetAll thread safe. - #7435

Closed
mandel-macaque wants to merge 2 commits into
dotnet:xcode11.2from
mandel-macaque:xcode11.2-bundle-backport
Closed

[Xcode11.2][CoreFoundation] Make CFBundle.GetAll thread safe.#7435
mandel-macaque wants to merge 2 commits into
dotnet:xcode11.2from
mandel-macaque:xcode11.2-bundle-backport

Conversation

@mandel-macaque

Copy link
Copy Markdown
Contributor

No description provided.

When working on https://github.com/xamarin/maccore/issues/940 we noticed
that clone the array would be a better approach.

The CFArrayCreateCopy add some nice things:

* The pointer values from theArray are copied into the new array.
* The values are also retained by the new array.
* The count of the new array is the same as theArray
* The new array uses the same callbacks as theArray. [IMPORTANT]

Whith this in, we can have a better fix for https://github.com/xamarin/maccore/issues/940
@mandel-macaque mandel-macaque added the requires-approval-before-merge The pull request requires special approval before it can be merged label Nov 13, 2019
@mandel-macaque

Copy link
Copy Markdown
Contributor Author

Manual backport because monojenkins could not deal with it.

@mandel-macaque mandel-macaque changed the title [CoreFoundation] Make CFBundle.GetAll thread safe. [Xcode11.2][CoreFoundation] Make CFBundle.GetAll thread safe. Nov 13, 2019

@rolfbjarne rolfbjarne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this is important enough to try to get it into xcode11.2.

@mandel-macaque

Copy link
Copy Markdown
Contributor Author

@rolfbjarne asking on my side is free hehe

@monojenkins

Copy link
Copy Markdown
Contributor

Build success
Build succeeded
⚠️ Mono built from source
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
Test run succeeded

@mandel-macaque

Copy link
Copy Markdown
Contributor Author

Closing since back porting and getting a release is not going to happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

requires-approval-before-merge The pull request requires special approval before it can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants