[NativeAOT] Replace GVMLookupForSlot internal cache with generic cache similar to...
authorVladimir Sadov <vsadov@microsoft.com>
Mon, 24 Jul 2023 13:14:23 +0000 (06:14 -0700)
committerGitHub <noreply@github.com>
Mon, 24 Jul 2023 13:14:23 +0000 (06:14 -0700)
commitb06b32520ed77d66a7394a09447eea14cd7fb2d8
tree45619674196a7f8d5d667e6bbe3cb084d87b8f36
parent4964d542fccea3e80777a62966a7615d98bbb2ea
[NativeAOT] Replace GVMLookupForSlot internal cache with generic cache similar to CastCache (#89331)

* factored out CastCache to be able create several.

* Cache impl

* generic cache

* some refactoring

* separated GenericCache

* comments

* less refs

* do not store hash

* fix CoreCLR and some more refactoring

* PR feedback

* remove no longer needed CastCache wrapping constructor

* remove auto-inserted unused usings.

* remove unused ActivatorCreateInstanceAny
src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/CastHelpers.cs
src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/TypeCast.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/Internal/Runtime/CompilerHelpers/LibraryInitializer.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/TypeLoaderExports.cs
src/coreclr/nativeaot/Test.CoreLib/src/System/Runtime/CompilerServices/CastCache.cs
src/coreclr/vm/corelib.h
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/CastCache.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/GenericCache.cs [new file with mode: 0644]