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 out/in parameters from function pointers to avoid generating marshalling stubs. #1416

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jlaanstra
Copy link
Collaborator

Contributes to #1315 and #1318

@manodasanW
Copy link
Member

Some of these are already addressed in the staging/aot branch. But these changes might be worth having in master before the aot branch is merged. We should do a comparison between the changes here and there and make sure they are done in the same way or any that are missing there are ported.

@@ -3195,19 +3195,23 @@ db_path.stem().string());
auto get_invoke_info(writer& w, MethodDef const& method, uint32_t const& abi_methods_start_index = INSPECTABLE_METHOD_COUNT)
{
TypeDef const& type = method.Parent();
if (!settings.netstandard_compat && distance(type.GenericParam()) == 0)
bool signature_has_generic_parameters = abi_signature_has_generic_parameters(w, method_signature{ method });
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@manodasanW to check this logic that I ported from staging/AOT.

Copy link
Member

@Sergio0694 Sergio0694 left a comment

Choose a reason for hiding this comment

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

I'm thinking it probably makes sense to wait for #1497 to be merged first, and then change the target branch for this PR to staging/AOT and rebase and update it from there 🤔

@dongle-the-gadget
Copy link
Contributor

change the target branch for this PR to staging/AOT

Didn't Mano say that the changes should probably be merged to master before we officially merge the AOT branch?

@Sergio0694
Copy link
Member

It just feels like a recipe to have a bazillion merge conflicts. I don't really see the point of merging them first. You don't gain much even if you published another patch release from master, just with this, if you don't have all the other improvements from the AOT branch anyway. Just seems like extra (and very annoying) work for no reason. Better ways to spend your time 😅

@dongle-the-gadget
Copy link
Contributor

Some of these fixes have been implemented in the AOT branch, so I feel like rebasing this would probably lead to lots of duplicates.

@Sergio0694
Copy link
Member

You would have to deal with that eventually anyway. My point is, we can at least just do it once, in the AOT branch.

@jlaanstra
Copy link
Collaborator Author

The point of this PR would be to bring some of this from staging/AOT to master. Everything should be already in staging/AOT. If something is missing I can see about porting those change to staging/AOT.

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

4 participants