Skip to content

Remove IBC and Ngen related structures and comments - #96867

Merged
davidwrighton merged 3 commits into
dotnet:mainfrom
davidwrighton:remove_ibc_and_ngen_stuff
Jan 12, 2024
Merged

Remove IBC and Ngen related structures and comments#96867
davidwrighton merged 3 commits into
dotnet:mainfrom
davidwrighton:remove_ibc_and_ngen_stuff

Conversation

@davidwrighton

Copy link
Copy Markdown
Member
  • Remove all IBC comments from the vm portion of the codebase
  • Remove m_GenericTypeDefToCanonMethodTableMap and m_MethodDefToPropertyInfoMap which were only filled in by NGen
  • Remove a variety of flags enums which are never used
  • Remove infra for testing Zap and IBC scenarios
- Remove all IBC comments from the vm portion of the codebase
- Remove `m_GenericTypeDefToCanonMethodTableMap` and `m_MehtodDefToPropertyInfoMap` which were only filled in by NGen
- Remove a variety of flags enums which are never used
- Remove infra for testing Zap and IBC  scenarios
Comment thread src/coreclr/vm/assembly.cpp
Comment thread src/coreclr/vm/clsload.cpp Outdated
Comment thread src/coreclr/vm/clsload.cpp Outdated
Comment thread src/coreclr/vm/ceeload.cpp Outdated
@@ -3439,7 +3418,6 @@ MethodDesc *Module::FindMethod(mdToken pMethod)

//
// GetPropertyInfoForMethodDef wraps the metadata function of the same name,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// GetPropertyInfoForMethodDef wraps the metadata function of the same name,
// GetPropertyInfoForMethodDef wraps the metadata function of the same name.
Comment thread src/coreclr/vm/jitinterface.cpp Outdated
//---------------------------------------------------------------------------------------
//
// Used by the JIT to determine whether the profiler or IBC is tracking object
// Used by the JIT to determine whether the profiler is tracking object

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// Used by the JIT to determine whether the profiler is tracking object
// Used by the JIT to determine whether the profiler is tracking object
Comment thread src/coreclr/vm/jitinterface.cpp Outdated
//
// Return Value:
// bool indicating whether the profiler or IBC is tracking object allocations
// bool indicating whether the profiler is tracking object allocations

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// bool indicating whether the profiler is tracking object allocations
// bool indicating whether the profiler is tracking object allocations
Comment thread src/coreclr/vm/zapsig.cpp Outdated
// code:ZapImportTable.EncodeModuleHelper)
// During multicorejit this calls
// code:MulticoreJitManager.EncodeModuleHelper
//

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
//
Comment thread src/coreclr/inc/clrconfigvalues.h Outdated
///
RETAIL_CONFIG_STRING_INFO(INTERNAL_ZapBBInstr, W("ZapBBInstr"), "")
RETAIL_CONFIG_STRING_INFO(EXTERNAL_ZapBBInstrDir, W("ZapBBInstrDir"), "")
RETAIL_CONFIG_DWORD_INFO(EXTERNAL_ZapDisable, W("ZapDisable"), 0, "")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ZapDisabled is kept to maintain compatibility and is the same as ReadyToRun=0?

@davidwrighton
davidwrighton merged commit e55d342 into dotnet:main Jan 12, 2024
tmds pushed a commit to tmds/runtime that referenced this pull request Jan 23, 2024
- Remove all IBC comments from the vm portion of the codebase
- Remove `m_GenericTypeDefToCanonMethodTableMap` and `m_MehtodDefToPropertyInfoMap` which were only filled in by NGen
- Remove a variety of flags enums which are never used
- Remove infra for testing Zap and IBC  scenarios
- Remove ZapDisable as @EgorBo suggested
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

4 participants