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

[Question] 1:1 mapping between MethodDescs and entry points #7819

Closed
gbalykov opened this issue Apr 5, 2017 · 1 comment
Closed

[Question] 1:1 mapping between MethodDescs and entry points #7819

gbalykov opened this issue Apr 5, 2017 · 1 comment
Labels
question Answer questions and provide assistance, not an issue with source code or documentation.

Comments

@gbalykov
Copy link
Member

gbalykov commented Apr 5, 2017

Hello.

As said in "Method Descriptor" chapter of "The Book of the Runtime", there are multiple places in the runtime that depend on 1:1 mapping between MethodDescs and entry points. This leads to requirement that slot and entry point must exist for all methods.

Could someone explain where are these places and why exactly is 1:1 mapping needed?

@Dmitri-Botcharnikov @ruben-ayrapetyan

@jkotas
Copy link
Member

jkotas commented Apr 5, 2017

One methoddesc can have multiple entrypoints. We need to be able to map each of them back to the matching MethodDesc.

The key method for entrypoint -> MethodDesc mapping is MethodTable::GetMethodDescForSlotAddress.

The key method for MethodDesc -> current entrypoint mapping is MethodDesc::GetMethodEntryPoint.

@jkotas jkotas closed this as completed Apr 7, 2017
@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Answer questions and provide assistance, not an issue with source code or documentation.
Projects
None yet
Development

No branches or pull requests

2 participants