Fix #24577 correctly, cfg->code_len is the size of the code, while cfg->code_size is the size of the memory area allocated for code.
[jit] Use the proper function to get classes

For the opcodes sizeof, mkrefany and refanyval the jit
was resolving the operand tokens directly from the image.

In dynamic scenarios where the tokens are stored in the
wrapper data, this triggered TypeLoadExceptions.

This patch uses mini_get_class, as used everywhere else,
to resolve the operand tokens of those opcodes.
Test sizeof, mkrefany & refanyvalue in dynamic methods

They previously resulted in TypeLoadExceptions.
Added missing projects files to corlib-net_4_5.csproj
[msvc] Add a definition for _WIN32_WINNT to MonoPosixHelper

MonoPosixHelper fails to build in my testing, due to config.h bailing the
build out if it doesn't think the build platform is XP SP2 or higher.
Adding this define forces that minimum Windows version, allowing mono.sln
to build fully.
Merge pull request #1417 from directhex/fix_msvc_build

[msvc] Add a definition for _WIN32_WINNT to MonoPosixHelper
Test ConcurrentBag growth. Covers #24213.
Fixed CyclicDeque array growth. Fixes 24213.
Changed CyclicDeque.PushBottom to resize the array when its size is equal to its length.
Merge pull request #1418 from esdrubal/concurrentbag

Fixed CyclicDeque array growth.
Changed ConcurrentBagTests.Bug24213 () to reuse variable array.
Merge pull request #1416 from jbevain/token-wrapper-data

[jit] Use the proper function to resolve classes
[msvc] Bump winconfig.h VERSION to match configure.ac

Unhelpfully, winconfig.h is used for building eglib, and it includes a hardcoded VERSION definition which needs to match configure.ac - otherwise msvc builds identify themselves as 2.11
Merge pull request #1419 from directhex/bump_msvc_VERSION

[msvc] Bump winconfig.h VERSION to match configure.ac
Fix monitor-resurrection test.

Try to avoid the pinning of the object that needs to be finalized.
Merge pull request #1421 from BrzVlad/fix-monitor-resurrection

Fix monitor-resurrection test.
[utils] Add foreach variant that supports filtering the list as you go.
[runtime] Introduce the notion of a tools thread.

A tools thread is one that can access core runtime structures but not touch anything managed (code or heap).

It's intended to enable the profiler to resolve missing backtraces from its helper thread.

THIS IS A HACK.

The right solution would be to not perform this on the profiler at all and simply log IPs and let the decoder
resolve them. But then there's reality and we can't simply break the current format without consequences.

We're taking this hack for now until we can fix the profiler to do something sensible.
[jit] Don't sample threads that are not fully attached.
[profiler] Use the new hidden API to attach the helper thread as a tools thread. This makes JI lookup work more reliably.
[msvc] Define SSIZE_MAX if not already defined (i.e. on Windows)

limits.h from MSVC does not include SIZE_MAX or SSIZE_MAX. We need the latter to build sgen, so define it.