Skip to content
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

Remove IBC and Ngen related structures and comments #96867

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

davidwrighton
Copy link
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
src/coreclr/vm/assembly.cpp Show resolved Hide resolved
src/coreclr/vm/clsload.cpp Outdated Show resolved Hide resolved
src/coreclr/vm/clsload.cpp Outdated Show resolved Hide resolved
@@ -3439,7 +3418,6 @@ MethodDesc *Module::FindMethod(mdToken pMethod)

//
// GetPropertyInfoForMethodDef wraps the metadata function of the same name,
Copy link
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.

@@ -5700,17 +5700,17 @@ unsigned CEEInfo::getClassDomainID (CORINFO_CLASS_HANDLE clsHnd,

//---------------------------------------------------------------------------------------
//
// 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
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

// allocations
//
// Return Value:
// bool indicating whether the profiler or IBC is tracking object allocations
// bool indicating whether the profiler is tracking object allocations
Copy link
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

// During ngen this calls
// code:ZapImportTable.EncodeModuleHelper)
// During multicorejit this calls
// code:MulticoreJitManager.EncodeModuleHelper
//
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
//

@@ -662,8 +662,6 @@ RETAIL_CONFIG_DWORD_INFO(INTERNAL_EnableDumpOnSigTerm, W("EnableDumpOnSigTerm"),
///
/// Zap
///
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
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
109 of 112 checks passed
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants