-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Use similar types for self-referential generics instead of the exact canonical type #83995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
4c1df34
713786a
b6b8f77
332bdab
231c25f
5a1df4c
6149511
47a5515
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -324,6 +324,9 @@ class FieldDesc | |
| // Return -1 if the type isn't loaded yet (i.e. if LookupFieldTypeHandle() would return null) | ||
| UINT GetSize(); | ||
|
|
||
| // Return -1 if the type is a structure and pMTOfValueTypeField is NULL and LookupFieldTypeHandle() returns null | ||
|
||
| UINT GetSize(MethodTable *pMTOfValueTypeField); | ||
|
|
||
| // These routines encapsulate the operation of getting and setting | ||
| // fields. | ||
| void GetInstanceField(OBJECTREF o, VOID * pOutVal); | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -201,11 +201,19 @@ VOID ParseNativeType(Module* pModule, | |||||||||||||||||
| bool IsFieldBlittable( | ||||||||||||||||||
| Module* pModule, | ||||||||||||||||||
| mdFieldDef fd, | ||||||||||||||||||
| SigPointer fieldSig, | ||||||||||||||||||
| const SigTypeContext* pTypeContext, | ||||||||||||||||||
| CorElementType corElemType, | ||||||||||||||||||
| TypeHandle valueTypeHandle, | ||||||||||||||||||
| ParseNativeTypeFlags flags | ||||||||||||||||||
| ) | ||||||||||||||||||
| { | ||||||||||||||||||
jkotas marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||
| CONTRACTL | ||||||||||||||||||
| { | ||||||||||||||||||
| THROWS; | ||||||||||||||||||
| GC_TRIGGERS; | ||||||||||||||||||
| MODE_ANY; | ||||||||||||||||||
| } | ||||||||||||||||||
| CONTRACTL_END; | ||||||||||||||||||
|
||||||||||||||||||
| CONTRACTL | |
| { | |
| THROWS; | |
| GC_TRIGGERS; | |
| MODE_ANY; | |
| } | |
| CONTRACTL_END; | |
| STANDARD_VM_CONTRACT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should update this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, but this change is confusing enough as it is without adding a known potential behavior change. I'd like to see that done as a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you do that, please get rid of the weirdo ThrowButNullV11McppWorkaround logic too.