Do not copy XState other than AVX when redirecting for GC stress (#65825)
authorVladimir Sadov <vsadov@microsoft.com>
Fri, 25 Feb 2022 01:23:22 +0000 (17:23 -0800)
committerGitHub <noreply@github.com>
Fri, 25 Feb 2022 01:23:22 +0000 (17:23 -0800)
commit1857d04600c098475db8dc13bf98007b68761033
treea1f8f8456038acf1feb6195a7a90895eaf6d9e7a
parenta82d92c36624e89e831e37515a9b0c95a4cfe183
Do not copy XState other than AVX when redirecting for GC stress (#65825)

* Do not copy XState other than AVX

* #if defined(TARGET_X86) || defined(TARGET_AMD64)

* mask XState unconditionally

* Ensure XSTATE_MASK_AVX is set before calling EEGetThreadContext

* redundant supportsAVX, more clear comment

* PR feedback
src/coreclr/vm/threadsuspend.cpp