Skip to content

Delete code under FEATURE_PREJIT #57693

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

Merged
merged 3 commits into from
Aug 19, 2021

Conversation

elinor-fung
Copy link
Member

@elinor-fung elinor-fung commented Aug 18, 2021

Fixes #57660

Contributes to #54129 and #53007

cc: @dotnet/crossgen-contrib @AaronRobinsonMSFT @jkoritzinsky @jkotas @agocke

@@ -1256,32 +1250,9 @@ bool DacDbiInterfaceImpl::GetILImageInfoFromNgenPEFile(VMPTR_PEFile vmPEFile,
DWORD &dwSize,
IStringHolder* pStrFilename)
{
#if !defined(FEATURE_PREJIT)

return false;
Copy link
Member

Choose a reason for hiding this comment

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

This method is now a dead code. Should it be deleted?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. I wanted to keep this PR to just deleting things under the FEATURE_PREJIT define though, so I didn't do additional cleanup.

There's definitely a bunch of methods that now always return true/false/null or do nothing such that they and their usage can be removed. I'd rather handle those separately from the initial coarse delete of the ifdef-ed code.

@@ -5796,42 +5742,14 @@ HRESULT DacDbiInterfaceImpl::SetNGENCompilerFlags(DWORD dwFlags)
{
DD_ENTER_MAY_THROW;

#ifndef FEATURE_PREJIT
return CORDBG_E_NGEN_NOT_SUPPORTED;
Copy link
Member

Choose a reason for hiding this comment

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

This can also be deleted.

@elinor-fung elinor-fung merged commit 4061822 into dotnet:main Aug 19, 2021
@elinor-fung elinor-fung deleted the delete-feature-prejit branch August 19, 2021 17:11
@ghost ghost locked as resolved and limited conversation to collaborators Sep 18, 2021
@stephentoub
Copy link
Member

@elinor-fung, should

RETAIL_CONFIG_DWORD_INFO(INTERNAL_NGenReserveForJumpStubs, W("NGenReserveForJumpStubs"), 0, "Percentage of ngen image size to reserve for jump stubs")
and
CONFIG_DWORD_INFO(INTERNAL_clearNativeImageStress, W("clearNativeImageStress"), 0, "")
have been removed as well?

@elinor-fung
Copy link
Member Author

Indeed, they should: #75911

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove code guarded by FEATURE_PREJIT
5 participants