181 references to Globals
Microsoft.Diagnostics.DataContractReader.Contracts (168)
Contracts\AuxiliarySymbols_1.cs (2)
23TargetPointer helperArrayPtr = _target.ReadGlobalPointer(Constants.Globals.AuxiliarySymbols); 24uint helperCount = _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.AuxiliarySymbolCount));
Contracts\BuiltInCOM_1.cs (5)
72TargetPointer tearOffAddRef = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.TearOffAddRef)); 73TargetPointer tearOffSimple = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.TearOffAddRefSimple)); 74TargetPointer tearOffSimpleInner = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.TearOffAddRefSimpleInner)); 80ulong thisMask = _target.ReadGlobal<ulong>(Constants.Globals.CCWThisMask); 206TargetPointer globalPtr = _target.ReadGlobalPointer(Constants.Globals.RCWCleanupList);
Contracts\CodeNotifications_1.cs (3)
175public uint Capacity => _target.ReadGlobal<uint>(Constants.Globals.JITNotificationTableSize); 214TargetPointer globalAddr = _target.ReadGlobalPointer(Constants.Globals.JITNotificationTable); 234uint capacity = _target.ReadGlobal<uint>(Constants.Globals.JITNotificationTableSize);
Contracts\ComWrappers_1.cs (2)
47if (!_target.TryReadGlobalPointer(Constants.Globals.ComWrappersVtablePtrs, out TargetPointer? comWrappersVtablePtrs)) 57if (!_target.TryReadPointer(ccw & _target.ReadGlobalPointer(Constants.Globals.DispatchThisPtrMask), out TargetPointer MOWWrapper))
Contracts\DacStreams_1.cs (2)
60TargetPointer miniMetaDataBuffAddress = target.ReadPointer(target.ReadGlobalPointer(Constants.Globals.MiniMetaDataBuffAddress)); 61uint miniMetaDataBuffMaxSize = target.Read<uint>(target.ReadGlobalPointer(Constants.Globals.MiniMetaDataBuffMaxSize));
Contracts\Debugger_1.cs (6)
26TargetPointer debuggerPtrPtr = _target.ReadGlobalPointer(Constants.Globals.Debugger); 47TargetPointer addr = _target.ReadGlobalPointer(Constants.Globals.CLRJitAttachState); 53TargetPointer addr = _target.ReadGlobalPointer(Constants.Globals.CORDebuggerControlFlags); 60TargetPointer addr = _target.ReadGlobalPointer(Constants.Globals.CORDebuggerControlFlags); 74if (_target.TryReadGlobalPointer(Constants.Globals.MetadataUpdatesApplied, out TargetPointer? addr)) 131uint maxHijackFunctions = _target.ReadGlobal<uint>(Constants.Globals.MaxHijackFunctions);
Contracts\ExecutionManager\ExecutionManager_1.cs (1)
15TargetPointer addr = target.ReadGlobalPointer(Constants.Globals.ExecutionManagerCodeRangeMapAddress);
Contracts\ExecutionManager\ExecutionManager_2.cs (1)
15TargetPointer addr = target.ReadGlobalPointer(Constants.Globals.ExecutionManagerCodeRangeMapAddress);
Contracts\ExecutionManager\ExecutionManagerCore.cs (4)
148byte stubCodeBlockLast = target.ReadGlobal<byte>(Constants.Globals.StubCodeBlockLast); 442TargetPointer eeJitManagerPtr = _target.ReadGlobalPointer(Constants.Globals.EEJitManagerAddress); 519_target.ReadGlobalPointer(Constants.Globals.ObjectMethodTable)); 564_target.ReadGlobalPointer(Constants.Globals.ObjectMethodTable));
Contracts\ExecutionManager\ExecutionManagerCore.EEJitManager.cs (1)
144gcVersion = Target.ReadGlobal<uint>(Constants.Globals.GCInfoVersion);
Contracts\ExecutionManager\ExecutionManagerCore.InterpreterJitManager.cs (1)
104gcVersion = Target.ReadGlobal<uint>(Constants.Globals.GCInfoVersion);
Contracts\ExecutionManager\Helpers\HashMapLookup.cs (1)
26_valueMask = target.ReadGlobal<ulong>(Constants.Globals.HashMapValueMask);
Contracts\FeatureFlags_1.cs (7)
19RuntimeFeature.COMInterop => Constants.Globals.FeatureCOMInterop, 20RuntimeFeature.ComWrappers => Constants.Globals.FeatureComWrappers, 21RuntimeFeature.ObjCMarshal => Constants.Globals.FeatureObjCMarshal, 22RuntimeFeature.JavaMarshal => Constants.Globals.FeatureJavaMarshal, 23RuntimeFeature.OnStackReplacement => Constants.Globals.FeatureOnStackReplacement, 24RuntimeFeature.PortableEntrypoints => Constants.Globals.FeaturePortableEntrypoints, 25RuntimeFeature.Webcil => Constants.Globals.FeatureWebcil,
Contracts\GC\GC_1.cs (37)
62_handlesPerBlock = target.ReadGlobal<uint>(Constants.Globals.HandlesPerBlock); 63_blockInvalid = target.ReadGlobal<byte>(Constants.Globals.BlockInvalid); 64_debugDestroyedHandleValue = target.ReadGlobalPointer(Constants.Globals.DebugDestroyedHandleValue); 65_handleMaxInternalTypes = target.ReadGlobal<uint>(Constants.Globals.HandleMaxInternalTypes); 66_handleSegmentSize = target.ReadGlobal<uint>(Constants.Globals.HandleSegmentSize); 72string gcIdentifiers = _target.ReadGlobalString(Constants.Globals.GCIdentifiers); 83TargetPointer pNumHeaps = _target.ReadGlobalPointer(Constants.Globals.NumHeaps); 92TargetPointer pInvalidCount = _target.ReadGlobalPointer(Constants.Globals.StructureInvalidCount); 99TargetPointer pMaxGeneration = _target.ReadGlobalPointer(Constants.Globals.MaxGeneration); 105minAddr = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.GCLowestAddress)); 106maxAddr = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.GCHighestAddress)); 113return _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.CurrentGCState)); 121mode = _target.Read<int>(_target.ReadGlobalPointer(Constants.Globals.DynamicAdaptationMode)); 144if (!_target.TryReadGlobalPointer(Constants.Globals.GCGlobalMechanisms, out TargetPointer? globalMechanismsArrayStart)) 146uint globalMechanismsLength = _target.ReadGlobal<uint>(Constants.Globals.GlobalMechanismsLength); 156TargetPointer heapTable = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.Heaps)); 204_target.ReadGlobal<uint>(Constants.Globals.InterestingDataLength)) 208_target.ReadGlobal<uint>(Constants.Globals.CompactReasonsLength)) 212_target.ReadGlobal<uint>(Constants.Globals.ExpandMechanismsLength)) 216_target.ReadGlobal<uint>(Constants.Globals.InterestingMechanismBitsLength)) 223uint generationTableLength = _target.ReadGlobal<uint>(Constants.Globals.TotalGenerationCount); 244uint fillPointersLength = _target.ReadGlobal<uint>(Constants.Globals.CFinalizeFillPointersLength); 265TargetPointer oomHistory = _target.ReadGlobalPointer(Constants.Globals.GCHeapOomData); 295TargetPointer globalAllocContextAddress = _target.ReadGlobalPointer(Constants.Globals.GlobalAllocContext); 335TargetPointer handleTableMap = _target.ReadGlobalPointer(Constants.Globals.HandleTableMap); 340GCType.Server => _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.TotalCpuCount)), 690GCType.Server => _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.TotalCpuCount)), 695TargetPointer handleTableMap = _target.ReadGlobalPointer(Constants.Globals.HandleTableMap); 742TargetPointer bookkeepingStartGlobal = _target.ReadGlobalPointer(Constants.Globals.BookkeepingStart); 750uint cardTableInfoSize = _target.ReadGlobal<uint>(Constants.Globals.CardTableInfoSize); 801if (_target.TryReadGlobal<uint>(Constants.Globals.CountFreeRegionKinds, out uint? freeRegionKindsValue)) 809if (_target.TryReadGlobalPointer(Constants.Globals.GlobalFreeHugeRegions, out TargetPointer? globalFreeHugePtr)) 815if (_target.TryReadGlobalPointer(Constants.Globals.GlobalRegionsToDecommit, out TargetPointer? globalDecommitPtr)) 827TargetPointer heapTable = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.Heaps)); 855if (_target.TryReadGlobalPointer(Constants.Globals.GCHeapFreeRegions, out TargetPointer? freeRegionsPtr)) 864if (_target.TryReadGlobalPointer(Constants.Globals.GCHeapFreeableSohSegment, out TargetPointer? freeableSohPtr)) 871if (_target.TryReadGlobalPointer(Constants.Globals.GCHeapFreeableUohSegment, out TargetPointer? freeableUohPtr))
Contracts\GC\GCHeapWKS.cs (22)
10if (target.TryReadGlobalPointer(Constants.Globals.GCHeapMarkArray, out TargetPointer? markArrayPtr)) 12if (target.TryReadGlobalPointer(Constants.Globals.GCHeapNextSweepObj, out TargetPointer? nextSweepObjPtr)) 14if (target.TryReadGlobalPointer(Constants.Globals.GCHeapBackgroundMinSavedAddr, out TargetPointer? bgMinPtr)) 16if (target.TryReadGlobalPointer(Constants.Globals.GCHeapBackgroundMaxSavedAddr, out TargetPointer? bgMaxPtr)) 18AllocAllocated = target.ReadPointer(target.ReadGlobalPointer(Constants.Globals.GCHeapAllocAllocated)); 19EphemeralHeapSegment = target.ReadPointer(target.ReadGlobalPointer(Constants.Globals.GCHeapEphemeralHeapSegment)); 20CardTable = target.ReadPointer(target.ReadGlobalPointer(Constants.Globals.GCHeapCardTable)); 21FinalizeQueue = target.ReadPointer(target.ReadGlobalPointer(Constants.Globals.GCHeapFinalizeQueue)); 22GenerationTable = target.ReadGlobalPointer(Constants.Globals.GCHeapGenerationTable); 24if (target.TryReadGlobalPointer(Constants.Globals.GCHeapSavedSweepEphemeralSeg, out TargetPointer? savedSweepEphemeralSegPtr)) 26if (target.TryReadGlobalPointer(Constants.Globals.GCHeapSavedSweepEphemeralStart, out TargetPointer? savedSweepEphemeralStartPtr)) 29OomData = target.ProcessedData.GetOrAdd<Data.OomHistory>(target.ReadGlobalPointer(Constants.Globals.GCHeapOomData)); 31if (target.TryReadGlobalPointer(Constants.Globals.GCHeapInternalRootArray, out TargetPointer? internalRootArrayPtr)) 33if (target.TryReadGlobalPointer(Constants.Globals.GCHeapInternalRootArrayIndex, out TargetPointer? internalRootArrayIndexPtr)) 35if (target.TryReadGlobalPointer(Constants.Globals.GCHeapHeapAnalyzeSuccess, out TargetPointer? heapAnalyzeSuccessPtr)) 38InterestingData = target.ReadGlobalPointer(Constants.Globals.GCHeapInterestingData); 39CompactReasons = target.ReadGlobalPointer(Constants.Globals.GCHeapCompactReasons); 40ExpandMechanisms = target.ReadGlobalPointer(Constants.Globals.GCHeapExpandMechanisms); 41InterestingMechanismBits = target.ReadGlobalPointer(Constants.Globals.GCHeapInterestingMechanismBits); 43if (target.TryReadGlobalPointer(Constants.Globals.GCHeapFreeableSohSegment, out TargetPointer? freeableSohSegPtr)) 45if (target.TryReadGlobalPointer(Constants.Globals.GCHeapFreeableUohSegment, out TargetPointer? freeableUohSegPtr)) 47if (target.TryReadGlobalPointer(Constants.Globals.GCHeapFreeRegions, out TargetPointer? freeRegionsPtr))
Contracts\Loader_1.cs (4)
160TargetPointer appDomainPointer = _target.ReadGlobalPointer(Constants.Globals.AppDomain); 433TargetPointer configPtr = _target.ReadGlobalPointer(Constants.Globals.EEConfig); 621TargetPointer systemDomainPointer = _target.ReadGlobalPointer(Constants.Globals.SystemDomain); 628TargetPointer systemDomainPointer = _target.ReadGlobalPointer(Constants.Globals.SystemDomain);
Contracts\Notifications_1.cs (1)
30TargetPointer pGcNotificationFlags = _target.ReadGlobalPointer(Constants.Globals.GcNotificationFlags);
Contracts\Object_1.cs (7)
25_objectToMethodTableUnmask = target.ReadGlobal<byte>(Constants.Globals.ObjectToMethodTableUnmask); 26_stringMethodTable = target.ReadPointer(target.ReadGlobalPointer(Constants.Globals.StringMethodTable)); 27_syncBlockIsHashOrSyncBlockIndex = target.ReadGlobal<uint>(Constants.Globals.SyncBlockIsHashOrSyncBlockIndex); 28_syncBlockIsHashCode = target.ReadGlobal<uint>(Constants.Globals.SyncBlockIsHashCode); 29_syncBlockHashCodeMask = target.ReadGlobal<uint>(Constants.Globals.SyncBlockHashCodeMask); 30_syncBlockIndexMask = target.ReadGlobal<uint>(Constants.Globals.SyncBlockIndexMask); 100lowerBounds = _target.ReadGlobalPointer(Constants.Globals.ArrayBoundsZero);
Contracts\PlatformMetadata_1.cs (1)
18_cdacMetadataAddress = target.ReadGlobalPointer(Constants.Globals.PlatformMetadata);
Contracts\ReJIT_1.cs (1)
38_profControlBlockAddress = target.ReadGlobalPointer(Constants.Globals.ProfilerControlBlock);
Contracts\RuntimeInfo_1.cs (4)
46if (_target.TryReadGlobalString(Constants.Globals.Architecture, out string? arch)) 59if (_target.TryReadGlobalString(Constants.Globals.OperatingSystem, out string? os)) 72if (_target.TryReadGlobalString(Constants.Globals.RuntimeFlavor, out string? flavor)) 85_target.TryReadGlobal(Constants.Globals.RecommendedReaderVersion, out uint? runtimeVersion);
Contracts\RuntimeMutableTypeSystem_1.cs (1)
26return offset == _target.ReadGlobal<uint>(Constants.Globals.FieldOffsetNewEnc);
Contracts\RuntimeTypeSystem_1.cs (20)
221int tokenRemainderBitCount = target.ReadGlobal<byte>(Constants.Globals.MethodDescTokenRemainderBitCount); 318ulong chunkSize = (ulong)(_chunk.Size + 1) * _target.ReadGlobal<ulong>(Constants.Globals.MethodDescAlignment); 422target.ReadGlobalPointer(Constants.Globals.FreeObjectMethodTable)); 424target.ReadGlobalPointer(Constants.Globals.ObjectMethodTable)); 426target.ReadGlobalPointer(Constants.Globals.ContinuationMethodTable)); 428target.ReadGlobalPointer(Constants.Globals.ContinuationSingletonEEClass)); 430target.ReadGlobalPointer(Constants.Globals.MulticastDelegateMethodTable)); 431_methodDescAlignment = target.ReadGlobal<ulong>(Constants.Globals.MethodDescAlignment); 446_target.ReadGlobalPointer(Constants.Globals.ContinuationMethodTable)); 458_target.ReadGlobalPointer(Constants.Globals.ContinuationSingletonEEClass)); 599WellKnownMethodTable.Object => Constants.Globals.ObjectMethodTable, 600WellKnownMethodTable.String => Constants.Globals.StringMethodTable, 601WellKnownMethodTable.Array => Constants.Globals.ObjectArrayMethodTable, 602WellKnownMethodTable.Exception => Constants.Globals.ExceptionMethodTable, 603WellKnownMethodTable.Free => Constants.Globals.FreeObjectMethodTable, 604WellKnownMethodTable.Canon => Constants.Globals.CanonMethodTable, 1003uint arrayBaseSize = _target.ReadGlobal<uint>(Constants.Globals.ArrayBaseSize); 1208TargetPointer coreLib = _target.ReadGlobalPointer(Constants.Globals.CoreLib); 2073if (fieldDesc.DWord2 == _target.ReadGlobal<uint>(Constants.Globals.FieldOffsetBigRVA)) 2156if (offset == _target.ReadGlobal<uint>(Constants.Globals.FieldOffsetDynamicRVA))
Contracts\StackWalk\GC\GcScanContext.cs (1)
43_objectToMethodTableUnmask = target.ReadGlobal<byte>(Constants.Globals.ObjectToMethodTableUnmask);
Contracts\StressLog.cs (11)
22uint validSig = target.ReadGlobal<uint>(Constants.Globals.StressLogValidChunkSig); 26public bool HasStressLog() => target.ReadGlobal<byte>(Constants.Globals.StressLogEnabled) != 0; 35return GetStressLogData(target.ReadGlobalPointer(Constants.Globals.StressLog)); 98if (target.ReadGlobal<byte>(Constants.Globals.StressLogHasModuleTable) == 0) 100Data.StressLog stressLog = target.ProcessedData.GetOrAdd<Data.StressLog>(target.ReadGlobalPointer(Constants.Globals.StressLog)); 105if (!target.TryReadGlobalPointer(Constants.Globals.StressLogModuleTable, out moduleTable)) 107if (!target.TryReadGlobalPointer(Constants.Globals.StressLog, out TargetPointer? pStressLog)) 115uint maxModules = target.ReadGlobal<uint>(Constants.Globals.StressLogMaxModules); 140uint chunkSize = target.ReadGlobal<uint>(Constants.Globals.StressLogChunkSize); 147currentPointer = new TargetPointer((ulong)currentPointer - target.ReadGlobal<ulong>(Constants.Globals.StressLogMaxMessageSize)); 179&& p - currentChunkData.Buf < target.ReadGlobal<ulong>(Constants.Globals.StressLogMaxMessageSize))
Contracts\SyncBlock_1.cs (6)
14_syncTableEntries = target.ReadPointer(target.ReadGlobalPointer(Constants.Globals.SyncTableEntries)); 37TargetPointer syncBlockCache = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.SyncBlockCache)); 62owningThreadId = sb.ThinLock & _target.ReadGlobal<uint>(Constants.Globals.SyncBlockMaskLockThreadId); 66recursion = (sb.ThinLock & _target.ReadGlobal<uint>(Constants.Globals.SyncBlockMaskLockRecursionLevel)) >> (int)_target.ReadGlobal<uint>(Constants.Globals.SyncBlockRecursionLevelShift); 85TargetPointer syncBlockCache = _target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.SyncBlockCache));
Contracts\Thread_1.cs (7)
45_threadStoreAddr = target.ReadPointer(target.ReadGlobalPointer(Constants.Globals.ThreadStore)); 67_target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.FinalizerThread)), 68_target.ReadPointer(_target.ReadGlobalPointer(Constants.Globals.GCThread))); 177TargetPointer idDispenserPtr = _target.ReadGlobalPointer(Constants.Globals.ThinlockThreadIdDispenser); 210int arrayIndex = indexOffset - _target.ReadGlobal<byte>(Constants.Globals.NumberOfTlsOffsetsNotUsedInNoncollectibleArray); 211TargetPointer arrayStartAddress = nonCollectibleArray + _target.ReadGlobalPointer(Constants.Globals.PtrArrayOffsetToDataArray); 309byte[] rval = new byte[_target.ReadGlobal<uint>(Constants.Globals.SizeOfGenericModeBlock)];
Data\Bucket.cs (1)
21uint numSlots = target.ReadGlobal<uint>(Constants.Globals.HashMapSlotsPerBucket);
Data\ComCallWrapper.cs (1)
23int numInterfaces = (int)target.ReadGlobal<uint>(Constants.Globals.CCWNumInterfaces);
Data\DynamicStaticsInfo.cs (1)
15TargetPointer mask = target.ReadGlobalPointer(Constants.Globals.StaticsPointerMask);
Data\HandleTableMap.cs (1)
20uint arrayLength = target.ReadGlobal<uint>(Constants.Globals.InitialHandleTableArraySize);
Data\RCW.cs (1)
32uint cacheSize = target.ReadGlobal<uint>(Constants.Globals.RCWInterfaceCacheSize);
Data\TableSegment.cs (2)
24uint handleBlocksPerSegment = target.ReadGlobal<uint>(Constants.Globals.HandleBlocksPerSegment); 25uint handleMaxInternalTypes = target.ReadGlobal<uint>(Constants.Globals.HandleMaxInternalTypes);
RuntimeTypeSystemHelpers\TypeValidation.cs (2)
29_target.ReadGlobalPointer(Constants.Globals.ContinuationMethodTable)); 41_target.ReadGlobalPointer(Constants.Globals.ContinuationSingletonEEClass));
Microsoft.Diagnostics.DataContractReader.Legacy (13)
Dbi\DacDbiImpl.cs (1)
53if (!_target.TryReadGlobalPointer(Constants.Globals.ProfilerControlBlock, out TargetPointer? profControlBlockAddress))
Dbi\Helpers\HeapWalk.cs (1)
35_methodTableMask = (ulong)~target.ReadGlobal<byte>(Constants.Globals.ObjectToMethodTableUnmask);
SOSDacImpl.cs (8)
749int sizeOfGenericModeBlock = (int)_target.ReadGlobal<uint>(Constants.Globals.SizeOfGenericModeBlock); 2628char directorySeparator = (char)_target.ReadGlobal<byte>(Constants.Globals.DirectorySeparator); 4106ulong stressLogAddress = _target.ReadGlobalPointer(Constants.Globals.StressLog); 4472uint TlsIndexBase = _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.TlsIndexBase)); 4473uint OffsetOfCurrentThreadInfo = _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.OffsetOfCurrentThreadInfo)); 5231_target.TryReadGlobal<uint>(Constants.Globals.MaxClrNotificationArgs, out uint? maxArgs); 5236TargetPointer basePtr = _target.ReadGlobalPointer(Constants.Globals.ClrNotificationArguments); 6019int version = _target.ReadGlobal<byte>(Constants.Globals.SOSBreakingChangeVersion);
SOSDacImpl.IXCLRDataProcess.cs (3)
962*flags = _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags)); 993TargetPointer dacNotificationFlags = _target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags); 1012flagsLocal = _target.Read<uint>(_target.ReadGlobalPointer(Constants.Globals.DacNotificationFlags));