-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Conversation
@@ -1256,32 +1250,9 @@ bool DacDbiInterfaceImpl::GetILImageInfoFromNgenPEFile(VMPTR_PEFile vmPEFile, | |||
DWORD &dwSize, | |||
IStringHolder* pStrFilename) | |||
{ | |||
#if !defined(FEATURE_PREJIT) | |||
|
|||
return false; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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, should runtime/src/coreclr/inc/clrconfigvalues.h Line 405 in 8ec52d6
runtime/src/coreclr/inc/clrconfigvalues.h Line 800 in 8ec52d6
|
Indeed, they should: #75911 |
Fixes #57660
Contributes to #54129 and #53007
cc: @dotnet/crossgen-contrib @AaronRobinsonMSFT @jkoritzinsky @jkotas @agocke