Use function-local StackingAllocator for adding EnC methods (dotnet/coreclr#26106)
authorJuan Hoyos <juan.hoyos@microsoft.com>
Tue, 20 Aug 2019 00:12:41 +0000 (17:12 -0700)
committerGitHub <noreply@github.com>
Tue, 20 Aug 2019 00:12:41 +0000 (17:12 -0700)
commit2ffe8d5fb456fd4372f61bc3702dbcd8b874919f
treeeb89f4f3b139e8a1a8dcb1755ba82f75c9ae20b7
parent5be1dd7db44fc51f90fdd4ebfe0ade11f215d9b1
Use function-local StackingAllocator for adding EnC methods (dotnet/coreclr#26106)

As adding EnC methods happens on the Debugger Thread, there's no managed Thread object from which to obtain the cached StackingAllocator. Instead, just use a function-local StackingAllocator.

Commit migrated from https://github.com/dotnet/coreclr/commit/0a2fa078d7cf18f8e51cdc34f1c8b322691e10c1
src/coreclr/src/vm/class.cpp