[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#42819)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 1 Oct 2020 02:07:49 +0000 (22:07 -0400)
committerGitHub <noreply@github.com>
Thu, 1 Oct 2020 02:07:49 +0000 (22:07 -0400)
commiteb91a9663f87ea5955745777e8036e0e0588ee35
tree51a80b0cea3dfe6c0268470e780ed6191221bb6a
parent5e5e9235e319acc3505da2358907e17a63ac39c5
[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#42819)

In normal builds, the getters are `static inline` functions, so the profiler doesn't reference the symbols - it just accesses the fields by offset.

In checked builds with `--enable-checked-build=private_types`, the getters are not inlined, so the profiler shared libraries need the symbols to be visible.

Co-authored-by: lambdageek <lambdageek@users.noreply.github.com>
src/mono/mono/metadata/class-abi-details.h
src/mono/mono/metadata/class-internals.h