[runtime] Add portable cached array creation functions and replace gcc-specific impl...
commit33d62537d4f7ceeabd8439b26724450a88981d58
authorJay Krell <jaykrell@microsoft.com>
Fri, 11 Oct 2019 23:47:20 +0000 (11 16:47 -0700)
committerAleksey Kliger (λgeek) <alklig@microsoft.com>
Fri, 11 Oct 2019 23:47:20 +0000 (11 19:47 -0400)
tree2a7fdf23cc093f02322a12c5ca70b5654b9d236e
parent9cc5ea3862894a10d87a51e302893b0165e4850c
[runtime] Add portable cached array creation functions and replace gcc-specific impl. (#16855)

* Remove unused mono_class_get_field_from_name_cached.

* Replace gcc-specific:
  mono_array_class_get_cached
  mono_array_new_cached
  mono_array_new_cached_handle

with portable forms that are easy enough to use and general enough.

Before was "easier" because cache provided for you -- possibly multiple.
Before was more general because rank was a parameter -- and had to be a constant.
It was always 1.
mono/metadata/class-internals.h
mono/metadata/object-internals.h
mono/mini/method-to-ir.c