-
Notifications
You must be signed in to change notification settings - Fork 101
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
base: master
Are you sure you want to change the base?
Conversation
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. |
…arshalling stubs.
d9ed3ab
to
c2f8dd7
Compare
c2f8dd7
to
8a2088e
Compare
8a2088e
to
3088c64
Compare
@@ -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 }); |
There was a problem hiding this comment.
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.
There was a problem hiding this 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 🤔
Didn't Mano say that the changes should probably be merged to master before we officially merge the AOT branch? |
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 😅 |
Some of these fixes have been implemented in the AOT branch, so I feel like rebasing this would probably lead to lots of duplicates. |
You would have to deal with that eventually anyway. My point is, we can at least just do it once, in the AOT branch. |
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. |
Contributes to #1315 and #1318