Skip to content

Conversation

@rolfbjarne
Copy link
Member

  • [static registrar] Optimize creation of delegates for blocks.

Optimize creation of delegates for blocks so that it doesn't require the
dynamic registrar.

This is done by getting the metadata token for the Create method that creates
the delegate, and embed that metadata token in the generated code from the
static registrar.

Also add tests, since this scenario was not covered by tests already.

  • [mmptest] Fix test after recent changes.

  • [test-libraries] Avoid duplicate symbols.

  • [tests] Update according to changes.

…#3623)

* [static registrar] Optimize creation of delegates for blocks.

Optimize creation of delegates for blocks so that it doesn't require the
dynamic registrar.

This is done by getting the metadata token for the Create method that creates
the delegate, and embed that metadata token in the generated code from the
static registrar.

Also add tests, since this scenario was not covered by tests already.

* [mmptest] Fix test after recent changes.

* [test-libraries] Avoid duplicate symbols.

* [tests] Update according to changes.
@rolfbjarne rolfbjarne added this to the d15-7 milestone Mar 2, 2018
Copy link
Member

@dalexsoto dalexsoto left a comment

Choose a reason for hiding this comment

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

I think this is a back port so might be late for my comments heh, otherwise LGTM 👍

Objective-C code, in particular when it involves blocks, since it's quite
complicated to get it right when doing it manually.

If this is not the case, please file a bug at [https://bugzilla.xamarin.com](https://bugzilla.xamarin.com/enter_bug.cgi?product=Xamarin.Mac) with a test case.
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 point people to bugzilla?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we should do what we do in the rest of the document so that we're not inconsistent within the same document (and eventually update everything to point to a page that explains how/where to file bugs). See also #3647 and #3570.

Objective-C code, in particular when it involves blocks, since it's quite
complicated to get it right when doing it manually.

If this is not the case, please file a bug at [https://bugzilla.xamarin.com](https://bugzilla.xamarin.com/enter_bug.cgi?product=iOS) with a test case.
Copy link
Member

Choose a reason for hiding this comment

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

same, should we still point people to bugzilla?

@chamons
Copy link
Contributor

chamons commented Mar 2, 2018

@dalexsoto #3623 was original.

@monojenkins
Copy link
Collaborator

Build failure

@rolfbjarne
Copy link
Member Author

Test failures are unrelated:

@rolfbjarne rolfbjarne merged commit 835f658 into dotnet:d15-7 Mar 5, 2018
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.

4 participants