Allocate space for siLatestTrackedScopes on demand
authorMike Danes <onemihaid@hotmail.com>
Sat, 16 Jun 2018 15:56:36 +0000 (18:56 +0300)
committerMike Danes <onemihaid@hotmail.com>
Sat, 30 Jun 2018 19:34:10 +0000 (22:34 +0300)
commit7588f770cecd5456f332ad9f649b911ab3fa942d
tree77dddfb544e1d920f2720e7c369ae9576c5f6c59
parentdc7e282344df166bf2a62bd969c14e8df65a8df7
Allocate space for siLatestTrackedScopes on demand

By the time siLatestTrackedScopes is needed the number of tracked variables is known so we can allocate an array of suitable size. Defaulting to lclMAX_TRACKED requires 4 kbytes and for many small methods that's a waste.

Commit migrated from https://github.com/dotnet/coreclr/commit/2e0cc331a72b2473317f9652646bcc6796ece449
src/coreclr/src/jit/codegen.h
src/coreclr/src/jit/scopeinfo.cpp