现在没有 app.config
,如何将 gcAllowVeryLargeObjects 设置为 true 以便可以分配大数组?
最佳答案
可以使用对应的environment variable ;只需记住使用 COMPlus_
前缀(例如 COMPlus_gcAllowVeryLargeObjects=1
)。
您可以在运行 dotnet run 之前从命令行进行设置,也可以将其添加到 Visual Studio 中项目属性的环境变量部分(或者可能添加注册表项)。
关于asp.net-core - 如何在 coreCLR 中设置 gcAllowVeryLargeObjects?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37382652/