/// <summary> /// Flushes the DAC cache. This function <b>must</b> be called any time you expect to call the same function /// but expect different results. For example, after walking the heap, you need to call Flush before /// attempting to walk the heap again. /// </summary> public override void FlushCachedData() { if (_disposed) { throw new ObjectDisposedException(nameof(ClrRuntime)); } _domains = null; _systemDomain = null; _sharedDomain = null; _helpers.DataReader.FlushCachedData(); _helpers.FlushCachedData(); DacLibrary.Flush(); }
/// <summary> /// Flushes the DAC cache. This function <b>must</b> be called any time you expect to call the same function /// but expect different results. For example, after walking the heap, you need to call Flush before /// attempting to walk the heap again. /// </summary> public override void FlushCachedData() { if (_disposed) { throw new ObjectDisposedException(nameof(ClrRuntime)); } _heap = null; _bcl = null; _threads = default; _domains = default; _systemDomain = null; _sharedDomain = null; _helpers.DataReader.FlushCachedData(); _helpers.FlushCachedData(); }