Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set gcAllowVeryLargeObjects in coreCLR?

Now that there isn't a app.config, how do you set gcAllowVeryLargeObjects to true so that you can allocate big arrays?

like image 491
rjdevereux Avatar asked May 23 '16 04:05

rjdevereux


1 Answers

You can use the corresponding environment variable; just remember to use the COMPlus_ prefix (e.g. COMPlus_gcAllowVeryLargeObjects=1).

You can either set this up from the command line before running dotnet run, or add it on the environment variables section of the project's properties within Visual Studio (or probably add a registry entry).

like image 164
krontogiannis Avatar answered Oct 22 '22 07:10

krontogiannis