Skip to content

Commit

Permalink
Closing in on ubuntu crash reason.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnkz committed Jan 10, 2024
1 parent 8331ad7 commit a6e54e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ManagedObjectSize.Tests/ObjectSizeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,12 @@ public unsafe void ObjectSize_ReportsCorrectSize(bool useRtHelpers, bool useObje

GetSize(options, name, obj, data);

GC.EndNoGCRegion();
#if false
using (var dt = DataTarget.CreateSnapshotAndAttach(Environment.ProcessId))
{
// Got the snapshot. Release GC.
GC.EndNoGCRegion();

#if false
using (var runtime = dt.ClrVersions.Single().CreateRuntime())
{
Assert.IsTrue(runtime.Heap.CanWalkHeap);
Expand Down Expand Up @@ -417,8 +416,8 @@ public unsafe void ObjectSize_ReportsCorrectSize(bool useRtHelpers, bool useObje
}
}
}
}
#endif
}
}

// We could also use [DynamicData] to conduct the test of different objects/types, which would
Expand Down

0 comments on commit a6e54e7

Please sign in to comment.