Skip to content

Commit 57d8fba

Browse files
committed
add comment
1 parent a6c6888 commit 57d8fba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SOS/SOS.Hosting/RuntimeWrapper.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,13 @@ protected override void Destroy()
158158
}
159159
if (_dacHandle != IntPtr.Zero)
160160
{
161+
// Previously, the DAC was freed here, but as we transition to the cDAC which uses NativeAOT,
162+
// it is no longer possible to free the DAC library when it is using the shimmed cDAC.
161163
_dacHandle = IntPtr.Zero;
162164
}
163165
if (_cdacHandle != IntPtr.Zero)
164166
{
167+
// cDAC can not be freed because it is a NativeAOT dll.
165168
_cdacHandle = IntPtr.Zero;
166169
}
167170
if (_dbiHandle != IntPtr.Zero)

0 commit comments

Comments
 (0)