File: Constants.cs
Web Access
Project: src\src\runtime\src\native\managed\cdac\Microsoft.Diagnostics.DataContractReader.Contracts\Microsoft.Diagnostics.DataContractReader.Contracts.csproj (Microsoft.Diagnostics.DataContractReader.Contracts)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace Microsoft.Diagnostics.DataContractReader;

public static class Constants
{
    public static class Globals
    {
        // See src/coreclr/debug/runtimeinfo/datadescriptor.inc
        public const string AppDomain = nameof(AppDomain);
        public const string SystemDomain = nameof(SystemDomain);
        public const string ThreadStore = nameof(ThreadStore);
        public const string FinalizerThread = nameof(FinalizerThread);
        public const string GCThread = nameof(GCThread);
        public const string Debugger = nameof(Debugger);
        public const string CLRJitAttachState = nameof(CLRJitAttachState);
        public const string CORDebuggerControlFlags = nameof(CORDebuggerControlFlags);
        public const string MetadataUpdatesApplied = nameof(MetadataUpdatesApplied);
        public const string EEConfig = nameof(EEConfig);

        public const string FeatureCOMInterop = nameof(FeatureCOMInterop);
        public const string FeatureComWrappers = nameof(FeatureComWrappers);
        public const string FeatureObjCMarshal = nameof(FeatureObjCMarshal);
        public const string FeatureJavaMarshal = nameof(FeatureJavaMarshal);
        public const string FeatureOnStackReplacement = nameof(FeatureOnStackReplacement);
        public const string FeaturePortableEntrypoints = nameof(FeaturePortableEntrypoints);
        public const string FeatureWebcil = nameof(FeatureWebcil);

        public const string ObjectToMethodTableUnmask = nameof(ObjectToMethodTableUnmask);
        public const string SOSBreakingChangeVersion = nameof(SOSBreakingChangeVersion);
        public const string RecommendedReaderVersion = nameof(RecommendedReaderVersion);

        public const string ContinuationMethodTable = nameof(ContinuationMethodTable);
        public const string ExceptionMethodTable = nameof(ExceptionMethodTable);
        public const string FreeObjectMethodTable = nameof(FreeObjectMethodTable);
        public const string ObjectMethodTable = nameof(ObjectMethodTable);
        public const string ObjectArrayMethodTable = nameof(ObjectArrayMethodTable);
        public const string StringMethodTable = nameof(StringMethodTable);

        public const string MiniMetaDataBuffAddress = nameof(MiniMetaDataBuffAddress);
        public const string MiniMetaDataBuffMaxSize = nameof(MiniMetaDataBuffMaxSize);
        public const string DacNotificationFlags = nameof(DacNotificationFlags);
        public const string OffsetOfCurrentThreadInfo = nameof(OffsetOfCurrentThreadInfo);
        public const string TlsIndexBase = nameof(TlsIndexBase);
        public const string ThinlockThreadIdDispenser = nameof(ThinlockThreadIdDispenser);
        public const string DispatchThisPtrMask = nameof(DispatchThisPtrMask);
        public const string ComWrappersVtablePtrs = nameof(ComWrappersVtablePtrs);
        public const string GcNotificationFlags = nameof(GcNotificationFlags);
        public const string JITNotificationTable = nameof(JITNotificationTable);
        public const string JITNotificationTableSize = nameof(JITNotificationTableSize);
        public const string GlobalAllocContext = nameof(GlobalAllocContext);

        public const string StressLogEnabled = nameof(StressLogEnabled);
        public const string StressLogHasModuleTable = nameof(StressLogHasModuleTable);
        public const string StressLog = nameof(StressLog);
        public const string StressLogModuleTable = nameof(StressLogModuleTable);
        public const string StressLogMaxModules = nameof(StressLogMaxModules);
        public const string StressLogChunkMaxSize = nameof(StressLogChunkMaxSize);
        public const string StressLogMaxMessageSize = nameof(StressLogMaxMessageSize);
        public const string StressLogChunkSize = nameof(StressLogChunkSize);
        public const string StressLogValidChunkSig = nameof(StressLogValidChunkSig);

        public const string MethodDescAlignment = nameof(MethodDescAlignment);
        public const string ArrayBaseSize = nameof(ArrayBaseSize);
        public const string SyncBlockValueToObjectOffset = nameof(SyncBlockValueToObjectOffset);

        public const string SyncTableEntries = nameof(SyncTableEntries);
        public const string SyncBlockCache = nameof(SyncBlockCache);
        public const string SyncBlockMaskLockThreadId = nameof(SyncBlockMaskLockThreadId);
        public const string SyncBlockMaskLockRecursionLevel = nameof(SyncBlockMaskLockRecursionLevel);
        public const string SyncBlockRecursionLevelShift = nameof(SyncBlockRecursionLevelShift);
        public const string SyncBlockIsHashOrSyncBlockIndex = nameof(SyncBlockIsHashOrSyncBlockIndex);
        public const string SyncBlockIsHashCode = nameof(SyncBlockIsHashCode);
        public const string SyncBlockIndexMask = nameof(SyncBlockIndexMask);
        public const string SyncBlockHashCodeMask = nameof(SyncBlockHashCodeMask);

        public const string ArrayBoundsZero = nameof(ArrayBoundsZero);
        public const string CoreLib = nameof(CoreLib);
        public const string SizeOfGenericModeBlock = nameof(SizeOfGenericModeBlock);

        public const string MethodDescTokenRemainderBitCount = nameof(MethodDescTokenRemainderBitCount);
        public const string DirectorySeparator = nameof(DirectorySeparator);

        public const string ExecutionManagerCodeRangeMapAddress = nameof(ExecutionManagerCodeRangeMapAddress);
        public const string EEJitManagerAddress = nameof(EEJitManagerAddress);
        public const string StubCodeBlockLast = nameof(StubCodeBlockLast);

        public const string DefaultADID = nameof(DefaultADID);
        public const string StaticsPointerMask = nameof(StaticsPointerMask);
        public const string PtrArrayOffsetToDataArray = nameof(PtrArrayOffsetToDataArray);
        public const string NumberOfTlsOffsetsNotUsedInNoncollectibleArray = nameof(NumberOfTlsOffsetsNotUsedInNoncollectibleArray);
        public const string MaxClrNotificationArgs = nameof(MaxClrNotificationArgs);
        public const string ClrNotificationArguments = nameof(ClrNotificationArguments);
        public const string FieldOffsetBigRVA = nameof(FieldOffsetBigRVA);
        public const string FieldOffsetDynamicRVA = nameof(FieldOffsetDynamicRVA);
        public const string PlatformMetadata = nameof(PlatformMetadata);
        public const string ProfilerControlBlock = nameof(ProfilerControlBlock);

        public const string CCWNumInterfaces = nameof(CCWNumInterfaces);
        public const string CCWThisMask = nameof(CCWThisMask);
        public const string TearOffAddRef = nameof(TearOffAddRef);
        public const string TearOffAddRefSimple = nameof(TearOffAddRefSimple);
        public const string TearOffAddRefSimpleInner = nameof(TearOffAddRefSimpleInner);
        public const string RCWCleanupList = nameof(RCWCleanupList);
        public const string RCWInterfaceCacheSize = nameof(RCWInterfaceCacheSize);

        public const string HashMapSlotsPerBucket = nameof(HashMapSlotsPerBucket);
        public const string HashMapValueMask = nameof(HashMapValueMask);

        public const string Architecture = nameof(Architecture);
        public const string OperatingSystem = nameof(OperatingSystem);

        public const string GCInfoVersion = nameof(GCInfoVersion);
        public const string GCLowestAddress = nameof(GCLowestAddress);
        public const string GCHighestAddress = nameof(GCHighestAddress);

        // Globals found on GCDescriptor
        // see src/coreclr/gc/datadescriptors/datadescriptor.inc
        public const string GCIdentifiers = nameof(GCIdentifiers);
        public const string MaxGeneration = nameof(MaxGeneration);
        public const string StructureInvalidCount = nameof(StructureInvalidCount);
        public const string NumHeaps = nameof(NumHeaps);
        public const string Heaps = nameof(Heaps);
        public const string CurrentGCState = nameof(CurrentGCState);
        public const string DynamicAdaptationMode = nameof(DynamicAdaptationMode);
        public const string GCGlobalMechanisms = nameof(GCGlobalMechanisms);

        public const string TotalGenerationCount = nameof(TotalGenerationCount);
        public const string CFinalizeFillPointersLength = nameof(CFinalizeFillPointersLength);
        public const string InterestingDataLength = nameof(InterestingDataLength);
        public const string CompactReasonsLength = nameof(CompactReasonsLength);
        public const string ExpandMechanismsLength = nameof(ExpandMechanismsLength);
        public const string InterestingMechanismBitsLength = nameof(InterestingMechanismBitsLength);
        public const string GlobalMechanismsLength = nameof(GlobalMechanismsLength);

        public const string GCHeapMarkArray = nameof(GCHeapMarkArray);
        public const string GCHeapNextSweepObj = nameof(GCHeapNextSweepObj);
        public const string GCHeapBackgroundMinSavedAddr = nameof(GCHeapBackgroundMinSavedAddr);
        public const string GCHeapBackgroundMaxSavedAddr = nameof(GCHeapBackgroundMaxSavedAddr);
        public const string GCHeapAllocAllocated = nameof(GCHeapAllocAllocated);
        public const string GCHeapEphemeralHeapSegment = nameof(GCHeapEphemeralHeapSegment);
        public const string GCHeapCardTable = nameof(GCHeapCardTable);
        public const string GCHeapFinalizeQueue = nameof(GCHeapFinalizeQueue);
        public const string GCHeapGenerationTable = nameof(GCHeapGenerationTable);
        public const string GCHeapSavedSweepEphemeralSeg = nameof(GCHeapSavedSweepEphemeralSeg);
        public const string GCHeapSavedSweepEphemeralStart = nameof(GCHeapSavedSweepEphemeralStart);
        public const string GCHeapOomData = nameof(GCHeapOomData);
        public const string GCHeapInternalRootArray = nameof(GCHeapInternalRootArray);
        public const string GCHeapInternalRootArrayIndex = nameof(GCHeapInternalRootArrayIndex);
        public const string GCHeapHeapAnalyzeSuccess = nameof(GCHeapHeapAnalyzeSuccess);
        public const string GCHeapInterestingData = nameof(GCHeapInterestingData);
        public const string GCHeapCompactReasons = nameof(GCHeapCompactReasons);
        public const string GCHeapExpandMechanisms = nameof(GCHeapExpandMechanisms);
        public const string GCHeapInterestingMechanismBits = nameof(GCHeapInterestingMechanismBits);
        public const string HandleTableMap = nameof(HandleTableMap);
        public const string InitialHandleTableArraySize = nameof(InitialHandleTableArraySize);
        public const string DebugDestroyedHandleValue = nameof(DebugDestroyedHandleValue);
        public const string HandleSegmentSize = nameof(HandleSegmentSize);
        public const string HandleBlocksPerSegment = nameof(HandleBlocksPerSegment);
        public const string HandleMaxInternalTypes = nameof(HandleMaxInternalTypes);
        public const string HandlesPerBlock = nameof(HandlesPerBlock);
        public const string BlockInvalid = nameof(BlockInvalid);
        public const string TotalCpuCount = nameof(TotalCpuCount);
        public const string CardTableInfoSize = nameof(CardTableInfoSize);
        public const string CountFreeRegionKinds = nameof(CountFreeRegionKinds);
        public const string GlobalFreeHugeRegions = nameof(GlobalFreeHugeRegions);
        public const string GlobalRegionsToDecommit = nameof(GlobalRegionsToDecommit);
        public const string BookkeepingStart = nameof(BookkeepingStart);
        public const string GCHeapFreeableSohSegment = nameof(GCHeapFreeableSohSegment);
        public const string GCHeapFreeableUohSegment = nameof(GCHeapFreeableUohSegment);
        public const string GCHeapFreeRegions = nameof(GCHeapFreeRegions);
        public const string AuxiliarySymbols = nameof(AuxiliarySymbols);
        public const string AuxiliarySymbolCount = nameof(AuxiliarySymbolCount);

    }
    public static class FieldNames
    {
        public static class Array
        {
            public const string NumComponents = $"m_{nameof(NumComponents)}";
        }

        public static class ModuleLookupMap
        {
            public const string TableData = nameof(TableData);
        }
    }
}