-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Fix native aot outerloop #121541
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
Fix native aot outerloop #121541
Conversation
Test merging in dotnet#121078 caused us to start compiling this test again. We were not compiling it because more than 64k fields hits CodeView limitations in LF_STRUCTURE/LF_CLASS (can't have more than 65534 _introduced fields_). We assert and crash compilation. CoreCLR has it's own limitation of 65535 fields, including inherited, but not counting `object.m_pEEType` (that doesn't exist in CoreCLR CoreLib). This changes the test to not have a class with > 65535 introduced fields. This avoids the CodeView assert. We still don't generate correct CodeView for bigger classes. Not sure if it's worth adding blocking. We could block loading such types but 65534 is an odd number and CodeView is an odd reason.
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.
Pull Request Overview
This PR fixes a Native AOT compilation crash caused by CodeView limitations when a class has more than 65534 introduced fields. The test was inadvertently re-enabled after test merging in #121078, exposing an assert failure during compilation.
Key Changes:
- Restructured the
ManyFieldstest classes to comply with the 65534 introduced fields limit per class - Moved field m65535 from the base class to the derived class, reducing
ManyFieldsto 65534 introduced fields - Renamed
ManyFieldsPlusOnetoManyFieldsPlusTwoto reflect that the derived class now introduces two fields instead of one
|
/azp run runtime-nativeaot-outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jkotas
left a comment
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.
Thanks
|
/ba-g timeouts |
Test merging in #121078 caused us to start compiling this test again. We were not compiling it because more than 64k fields hits CodeView limitations in LF_STRUCTURE/LF_CLASS (can't have more than 65534 introduced fields). We assert and crash compilation.
CoreCLR has it's own limitation of 65535 fields, including inherited, but not counting
object.m_pEEType(that doesn't exist in CoreCLR CoreLib).This changes the test to not have a class with > 65534 introduced fields. This avoids the CodeView assert. We still don't generate correct CodeView for bigger classes. Not sure if it's worth adding blocking. We could block loading such types but 65534 is an odd number and CodeView is an odd reason.
Cc @dotnet/ilc-contrib