Skip to content

Remove ForceENC#124436

Merged
noahfalk merged 1 commit intodotnet:mainfrom
noahfalk:remove_force_enc
Feb 15, 2026
Merged

Remove ForceENC#124436
noahfalk merged 1 commit intodotnet:mainfrom
noahfalk:remove_force_enc

Conversation

@noahfalk
Copy link
Member

Now that we have DOTNET_MODIFIABLE_ASSEMBLIES as a supported config option we shouldn't also need DOTNET_ForceEnc env var Addresses part of #124017

@barosiak - I happened to be testing some stuff out with copilot and this seemed like a simple one to point it at. We still shouldn't resolve 124017 until the VS part is handled too.

Now that we have DOTNET_MODIFIABLE_ASSEMBLIES as a supported config option we shouldn't also need DOTNET_ForceEnc env var
Addresses part of dotnet#124017
@dotnet-policy-service
Copy link
Contributor

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

Copy link
Contributor

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

Removes the legacy/undocumented ForceEnc (aka ForceEnc config / env var) switch from CoreCLR configuration and EnC enablement paths, relying on the supported DOTNET_MODIFIABLE_ASSEMBLIES mechanism instead (per #124017).

Changes:

  • Removed EEConfig::ForceEnc() and the backing fForceEnc field and initialization.
  • Removed reading of UNSUPPORTED_ForceEnc from configuration.
  • Updated EnC/apply-update gating to no longer consider ForceEnc.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/coreclr/vm/eeconfig.h Removes ForceEnc() accessor and fForceEnc field from EEConfig.
src/coreclr/vm/eeconfig.cpp Removes fForceEnc initialization and config sync read of UNSUPPORTED_ForceEnc.
src/coreclr/vm/ceeload.cpp Stops using g_pConfig->ForceEnc() when deciding whether to enable EnC for a module.
src/coreclr/vm/assemblynative.cpp Stops using g_pConfig->ForceEnc() for AssemblyNative_IsApplyUpdateSupported().
src/coreclr/inc/clrconfigvalues.h Removes the UNSUPPORTED_ForceEnc config value definition.

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!

@noahfalk noahfalk merged commit 253a5c5 into dotnet:main Feb 15, 2026
110 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants