Skip to content

Commit

Permalink
More experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
cnkz committed Jan 10, 2024
1 parent ca09af1 commit 5e6e5dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ManagedObjectSize.Tests/ObjectSizeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,13 @@ public unsafe void ObjectSize_ReportsCorrectSize(bool useRtHelpers, bool useObje
// Got the snapshot. Release GC.
GC.EndNoGCRegion();

using (var runtime = dt.ClrVersions.Single().CreateRuntime("dkdkd"))
string dacPath = "ffo";
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
dacPath = "/usr/share/dotnet/Microsoft.NETCore.App/7.0.405/libmscordaccore.so";
}

using (var runtime = dt.ClrVersions.Single().CreateRuntime(dacPath))
{
#if false
Assert.IsTrue(runtime.Heap.CanWalkHeap);
Expand Down

0 comments on commit 5e6e5dc

Please sign in to comment.