Fix the bug that Secure Delegate Stubs are compiled every time. (dotnet/coreclr#8592)
authorSujin Kim <sjsujin.kim@samsung.com>
Tue, 20 Dec 2016 06:53:51 +0000 (15:53 +0900)
committerJan Kotas <jkotas@microsoft.com>
Tue, 20 Dec 2016 06:53:51 +0000 (22:53 -0800)
commit3f7ecd8d17107447dd3a2693103accc882cfad63
tree20d5df7c2d041cb584a4750170476e4aeb2bdd3a
parentee0716a7816df50bce230d95dd60e1f3e28ea433
Fix the bug that Secure Delegate Stubs are compiled every time. (dotnet/coreclr#8592)

* Fix the bug that Secure Delegate Stubs are compiled every time.

I found that Secure Delegate stubs are compiled every time during application execution, which has a negative impact on execution performance. dotnet/coreclr#8554

Like the GetMulticastInvoke() method, GetSecureInvoke() checks the hashtable when the method is executed and uses it if it already exists.

* Fix pDelMT bug and change file rights

Commit migrated from https://github.com/dotnet/coreclr/commit/dea1b9e5c0393daa420831eb74177b1fd6546181
src/coreclr/src/vm/class.cpp
src/coreclr/src/vm/class.h
src/coreclr/src/vm/comdelegate.cpp