问题
I am getting the following message when opening a new screen I have added to my app
Warning: Degraded allocation. Consider increasing nursery-size if the warning persists.
Im assuming there is a build argument I can use to increase the nursery size. Does anyone know what the argument is and how to format it?
回答1:
You're probably pinning too many objects, or using too many threads.
According to http://www.mono-project.com/Working_With_SGen#Nursery_Size you can set the MONO_GC_PARAMS environment variable to nursery-size=8m to double the nursery-size.
You set Environment variable for a xamarin.iOS project in Project Options > Run > General
来源:https://stackoverflow.com/questions/18464295/degraded-allocation-consider-increasing-nursery-size-if-the-warning-persists