Skip to content

Revert removal of embedModuleHandle and embedFieldHandle #116036

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented May 27, 2025

to keep the abstraction, cc @jkotas

@Copilot Copilot AI review requested due to automatic review settings May 27, 2025 19:22
@EgorBo EgorBo requested a review from MichalStrehovsky as a code owner May 27, 2025 19:22
@github-actions github-actions bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label May 27, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reverts the removal of the embedModuleHandle and embedFieldHandle APIs, restoring their implementations in the JIT interface and related components.

  • Reintroduces embedModuleHandle and embedFieldHandle method implementations in the VM, SuperPMI, and JIT interface layers.
  • Updates the corresponding headers, thunk generation files, and runtime structures to include the restored APIs.
  • Adjusts debug and logging functions to capture calls to the restored functions.

Reviewed Changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/coreclr/vm/jitinterface.cpp Adds implementations for embedModuleHandle and embedFieldHandle in CEEInfo.
src/coreclr/tools/superpmi/* Updates in various SuperPMI shim and generated files to forward/embed the restored functions.
src/coreclr/tools/Common/JitInterface/* Adjustments in generated headers and thunk input to reflect the reintroduced functions.
src/coreclr/jit/* Updates in importer.cpp and compiler.hpp to handle the new helper argument type CORINFO_HELPER_ARG_TYPE_Module and invoke the restored functions.
src/coreclr/inc/* Updates in corinfo.h and related generated headers to include the new virtual declarations.

Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@jkotas
Copy link
Member

jkotas commented May 27, 2025

Context #115542 (comment)

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants