Check if External Object Context is still active after a possible GC (#59285)
authorAaron Robinson <arobins@microsoft.com>
Tue, 21 Sep 2021 15:01:38 +0000 (08:01 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 15:01:38 +0000 (08:01 -0700)
commit2f68bf6a57890ac957943579c55a377265035b6d
treee21256e8318b3fafb9abf4dba6de901ea7be90bc
parent3c63559029276fea97633ea6115bcb9acb2cffe2
Check if External Object Context is still active after a possible GC (#59285)

* Handle a possible GC after allocating an array by iterating over the hash again.

Co-authored-by: Elinor Fung <elfung@microsoft.com>
src/coreclr/vm/interoplibinterface_comwrappers.cpp
src/tests/Interop/COM/ComWrappers/GlobalInstance/GlobalInstance.cs