How do you set gcAllowVeryLargeObjects in coreCLR?

不打扰是莪最后的温柔 提交于 2020-01-03 20:29:34

问题


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


回答1:


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).



来源:https://stackoverflow.com/questions/37382652/how-do-you-set-gcallowverylargeobjects-in-coreclr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!