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

Add the ability for a native host to load an assembly and specify the load context #77696

Closed
Tracked by #77456
elinor-fung opened this issue Oct 31, 2022 · 1 comment · Fixed by #84650
Closed
Tracked by #77456
Milestone

Comments

@elinor-fung
Copy link
Member

elinor-fung commented Oct 31, 2022

The hosting APIs provide a way to get a delegate for runtime functionality. There is a delegate for loading an assembly in an isolated context and getting a function pointer(hdt_load_assembly_and_get_function_pointer) and one for just getting a function pointer (hdt_get_function_pointer), but there is no way to simply load an assembly.

get_function_pointer takes in a void* load_context (which currently must be null, indicating the default ALC). We should add an equivalent for just loading an assembly (for example, load_assembly) with a void* load_context.

The most immediate concern is getting into the default ALC, so we could start with limiting the implementation to that case (like we currently do in get_function_pointer).

Related:

@elinor-fung elinor-fung added this to the 8.0.0 milestone Oct 31, 2022
@ghost
Copy link

ghost commented Oct 31, 2022

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

The hosting APIs provide a way to get a delegate for runtime functionality. There is a delegate for loading an assembly in an isolated context and getting a function pointer(hdt_load_assembly_and_get_function_pointer) and one for just getting a function pointer (hdt_get_function_pointer), but there is no way to simply load an assembly.

get_function_pointer takes in a void* load_context (which currently must be null, indicating the default ALC). We should add an equivalent for just loading an assembly (for example, load_assembly) with a void* load_context.

Author: elinor-fung
Assignees: -
Labels:

area-Host

Milestone: 8.0.0

@elinor-fung elinor-fung mentioned this issue Nov 1, 2022
10 tasks
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Apr 11, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Apr 13, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant