You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bfc3d75
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ILBodyFixupSignature.cs
+37-11Lines changed: 37 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,42 @@
13
13
usingInternal.CorConstants;
14
14
usingInternal.JitInterface;
15
15
16
+
usingILCompiler.ReadyToRun.TypeSystem;
17
+
16
18
namespaceILCompiler.DependencyAnalysis.ReadyToRun
17
19
{
20
+
/// <summary>
21
+
/// This fixup instructs the runtime to validate that the IL found at runtime matches the hash of the IL computed at compile time.
22
+
/// </summary>
23
+
/// <remarks>
24
+
/// The fixup encodes two distinct pieces of information:
25
+
/// <list type="bullet">
26
+
/// <item>The IL body hash, computed from the <see cref="ILMethod"/> (the underlying EcmaMethod whose metadata
27
+
/// contains the IL). This is derived from _signatureMethod via GetPrimaryMethodDesc().</item>
28
+
/// <item>The method identity (_signatureMethod), encoded in the fixup signature. The runtime decodes this
29
+
/// back to a MethodDesc via ZapSig::DecodeMethod and reads the IL at that method's RVA to compare against
30
+
/// the hash.</item>
31
+
/// </list>
32
+
/// For most methods, _signatureMethod is already the EcmaMethod. For runtime-async methods, the JIT inlines
33
+
/// an AsyncMethodVariant. The EcmaMethod for AsyncMethodVariant can be retrieved with GetPrimaryMethodDesc().
// Async thunks are restricted from inlining. https://github.com/dotnet/runtime/issues/124665
0 commit comments