Fix profiler\gc\gcbasic test to work with SVR GC on many cores. (#54057)
authorPeter Sollich <petersol@microsoft.com>
Sun, 13 Jun 2021 15:25:30 +0000 (17:25 +0200)
committerGitHub <noreply@github.com>
Sun, 13 Jun 2021 15:25:30 +0000 (17:25 +0200)
commit4bb1318a4844a48eb9b0bad0995eadc8516d0438
treec3321ff0091a37610b3dde9d2f04ed5a1e5257df
parentfeae07921934805dc84d8d1c830b22008246b869
Fix profiler\gc\gcbasic test to work with SVR GC on many cores. (#54057)

Problem was that we had a fixed size buffer (32 entries), and we may have way more generation bounds than that, especially with regions.

Fix is to heap allocate the buffer if the size of the buffer on the stack is exceeded.
src/tests/profiler/native/gcbasicprofiler/gcbasicprofiler.cpp