From 8c0784dfeb22d5346902d92153b3ba3dc88cdfb2 Mon Sep 17 00:00:00 2001 From: cnkz Date: Wed, 10 Jan 2024 12:05:11 +0100 Subject: [PATCH] Futher closing in... --- src/ManagedObjectSize.Tests/ObjectSizeTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ManagedObjectSize.Tests/ObjectSizeTests.cs b/src/ManagedObjectSize.Tests/ObjectSizeTests.cs index 36c7815..bbc4840 100644 --- a/src/ManagedObjectSize.Tests/ObjectSizeTests.cs +++ b/src/ManagedObjectSize.Tests/ObjectSizeTests.cs @@ -380,9 +380,9 @@ public unsafe void ObjectSize_ReportsCorrectSize(bool useRtHelpers, bool useObje // Got the snapshot. Release GC. GC.EndNoGCRegion(); -#if false using (var runtime = dt.ClrVersions.Single().CreateRuntime()) { +#if false Assert.IsTrue(runtime.Heap.CanWalkHeap); foreach (ulong address in data.Keys) @@ -415,8 +415,8 @@ public unsafe void ObjectSize_ReportsCorrectSize(bool useRtHelpers, bool useObje throw new Exception($"Handling {currentName}: " + ex.Message, ex); } } - } #endif + } } }