Don't crash on recursive native layout (#74630)
Fixes dotnet/runtimelab#163. * We don't have a nice way to pass context around when computing the native type. Use a threadstatic. This is pretty rare. * We had one more spot where we ran out of stack when we were trying to look for delegates. Remove the need for that code by using the generic `Marshal` API (that we recognize elsewhere). Move the code responsible for warnings to dataflow analysis.
Showing
想要评论请 注册 或 登录