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
The problem was always `// Note: We don't set the IsUnboxingStub flag on template methods (all template lookups performed at runtime are performed with this flag not set`, I tried working around it in the original fix, but looks like I actually need the function pointer in #111178 (the tests are not failing but I have a local test that does).
So trying an alternative approach that just deletes the weird code. It's possible this only had to be weird due to universal shared code.
Copy file name to clipboardexpand all lines: src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeLoaderEnvironment.ConstructedGenericMethodsLookup.cs
+10-1
Original file line number
Diff line number
Diff line change
@@ -258,8 +258,17 @@ public bool TryGetGenericVirtualMethodPointer(InstantiatedMethod method, out Int
258
258
}
259
259
}
260
260
261
+
InstantiatedMethodnonTemplateMethod=method;
262
+
263
+
// Templates are always unboxing stubs for valuetype instance methods
0 commit comments