[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
commit15c25d798382a0b729936b884098c0893614af67
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Thu, 1 Oct 2020 02:07:44 +0000 (30 22:07 -0400)
committerGitHub <noreply@github.com>
Thu, 1 Oct 2020 02:07:44 +0000 (30 22:07 -0400)
tree986cedab4eadb6ba6d4ed94f9c537a9cea9c3d46
parent870b47d157a41965c7c6f5f73dd2f8d2a8e630e0
[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)

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.
mono/metadata/class-abi-details.h
mono/metadata/class-internals.h