[metadata] Lock around special static fields hash access
authorVlad Brezae <brezaevlad@gmail.com>
Thu, 20 Apr 2017 12:01:30 +0000 (15:01 +0300)
committerVlad Brezae <brezaevlad@gmail.com>
Fri, 21 Apr 2017 23:30:23 +0000 (02:30 +0300)
commitb1360afe0acf89893afce3ada862ce9480aa5a67
treebcf89f1c25411a0c6f0228ea509ef8129e81d7e0
parent00c6a94a9ccc2a17d6e6748144291a1aff10373c
[metadata] Lock around special static fields hash access

If a type is loaded in another thread, the fields hash can get resized, leading to failure.
mono/mini/jit-icalls.c
mono/tests/Makefile.am
mono/tests/generic-special2.2.cs [new file with mode: 0644]