-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[release/3.1] Backport AVX context fix #28238
Conversation
Why so many whitespace changes? Is that just auto-format after pasting code or these are real old/new diffs? |
Auto-whitespace changes, I think. If it's removing whitespace at the end of lines, VS code did it. |
I will take a look at the failures |
I have re-done porting manually. |
@jkotas Could you take a look? |
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.
LGTM
@agocke needs the servicing label. |
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.
Approved. We will take for consideration in 3.1.x
WooHoo!!! I can close dotnet/runtime#65292 now. |
Port of dotnet/runtime#66356
Port of a fix for dotnet/runtime#65292 and issues found along the way related to AVX registers and EE suspension.
Customer Impact
It is relatively easy to end up running AVX-accelerated code nowdays. Copying or comparing arrays or spans, using buffered IO are just some examples.
Issues with storing/restoring AVX context during EE suspension could result in:
Testing
Regular test passes.
Risk
Medium.
The code involved is fairly old. We keep discovering assumptions that may no longer hold. We have seen cases where fixing one bug exposes another. To our knowledge these fixes are robust, but this is a delicate area.