コード例 #1
0
        /// <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();
        }
コード例 #2
0
ファイル: ClrmdRuntime.cs プロジェクト: wp442638266/clrmd
        /// <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();
        }