Some cleanups in Native AOT suspension area (#69885)
authorVladimir Sadov <vsadov@microsoft.com>
Fri, 3 Jun 2022 13:42:29 +0000 (06:42 -0700)
committerGitHub <noreply@github.com>
Fri, 3 Jun 2022 13:42:29 +0000 (06:42 -0700)
commitb44fd4aeffafd68bc710b2feec66318835ca3edc
tree8c22438092f21556bcea992a683ff56105493d65
parentff8393dc8e10b3fd42fa41cfa321197083ef1b1a
Some cleanups in Native AOT suspension area (#69885)

* some renames

* strongly typed transition frames

* remove remaining pieces of LoopHijack

* comments and some refactoring

* IsManaged

* removed m_CodeManagerList

* m_ModuleListLock

* better comment for a SafeHandle hack

* Renamed SetupHackPInvokeTunnel  (to not have "hack in the name)

* made IsInForbidBlockingRegion a debug-only assert

* removed ForbidBlockingHolder

* remove forbidBlocking tracking. It only affects 4 methods.

* Fix Unix build

* typo

* record managed code range in RuntimeInstance.
30 files changed:
src/coreclr/nativeaot/Runtime/AsmOffsets.h
src/coreclr/nativeaot/Runtime/EHHelpers.cpp
src/coreclr/nativeaot/Runtime/GCHelpers.cpp
src/coreclr/nativeaot/Runtime/ICodeManager.h
src/coreclr/nativeaot/Runtime/MiscHelpers.cpp
src/coreclr/nativeaot/Runtime/RuntimeInstance.cpp
src/coreclr/nativeaot/Runtime/RuntimeInstance.h
src/coreclr/nativeaot/Runtime/StackFrameIterator.cpp
src/coreclr/nativeaot/Runtime/StackFrameIterator.h
src/coreclr/nativeaot/Runtime/TypeManager.cpp
src/coreclr/nativeaot/Runtime/TypeManager.h
src/coreclr/nativeaot/Runtime/amd64/GcProbe.asm
src/coreclr/nativeaot/Runtime/arm/GcProbe.asm
src/coreclr/nativeaot/Runtime/arm64/GcProbe.asm
src/coreclr/nativeaot/Runtime/gcrhenv.cpp
src/coreclr/nativeaot/Runtime/gcrhscan.cpp
src/coreclr/nativeaot/Runtime/i386/GcProbe.asm
src/coreclr/nativeaot/Runtime/inc/ModuleHeaders.h
src/coreclr/nativeaot/Runtime/inc/rhbinder.h
src/coreclr/nativeaot/Runtime/stressLog.cpp
src/coreclr/nativeaot/Runtime/thread.cpp
src/coreclr/nativeaot/Runtime/thread.h
src/coreclr/nativeaot/Runtime/thread.inl
src/coreclr/nativeaot/Runtime/threadstore.cpp
src/coreclr/nativeaot/Runtime/unix/UnixNativeCodeManager.cpp
src/coreclr/nativeaot/Runtime/unix/UnixNativeCodeManager.h
src/coreclr/nativeaot/Runtime/windows/CoffNativeCodeManager.cpp
src/coreclr/nativeaot/Runtime/windows/CoffNativeCodeManager.h
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeHandle.NativeAot.cs
src/coreclr/tools/Common/Internal/Runtime/ModuleHeaders.cs