Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

lambdageek
Copy link
Member

Fixes #77512

When a method is added, the paramlist column in the MethodDef is empty. Instead, the parameter info is added by separate EnCLog "Add Param" commands. Store that info in the image, keyed on the method definition token.

@ghost ghost added the area-EnC-mono Hot Reload for WebAssembly, iOS/Android, etc label Oct 27, 2022
@ghost ghost assigned lambdageek Oct 27, 2022
@lambdageek
Copy link
Member Author

lambdageek commented Oct 27, 2022

I would like to backport this for 7.0.x servicing to unblock MAUI XAML hot reload scenarios

@lambdageek lambdageek force-pushed the fix-gh-77512 branch 3 times, most recently from 862aaaa to 8e610e2 Compare October 28, 2022 17:15
otherwise the CancellationToken type is trimmed on wasm
@lambdageek
Copy link
Member Author

lambdageek commented Oct 31, 2022

@vargaz mind taking another look? same approach as before, but I put all the logic about figuring out the first & last param of a method into a separate function even for the non-update case. removed a bunch of copy/pasted code

@lambdageek

This comment was marked as outdated.

1 similar comment
@lambdageek
Copy link
Member Author

/backport to release/7.0

@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2022

Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3371579628

@lambdageek lambdageek merged commit a27ecc5 into dotnet:main Nov 2, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-EnC-mono Hot Reload for WebAssembly, iOS/Android, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[mono][hot reload] MethodBase.GetParameters on added method causes a crash
2 participants