Does the Xamarin.iOS garbage collector use a fixed MaxGeneration?

与世无争的帅哥 提交于 2019-12-24 00:54:22

问题


In my tests, Xamarin.iOS always seems to use two generations. That is, GC.MaxGeneration always returns 1. The Xamarin Cross-Platform Performance Documentation seems to support that by referring to the Mono SGen Documentation, which states the SGen uses two generations. On the other hand, the Xamarin API Documentation of GC.MaxGeneration suggests that MaxGeneration can increase over time.

Is GC.MaxGeneration fixed in Xamarin.iOS, or can it increase given enough time?

Also, just in case: Has the behaviour changed in the last year? Reason for this question: Alongside the current stable release of Xamarin iOS, we are using Cycle 6 Service Release 4 for bugfixes for an older product.

来源:https://stackoverflow.com/questions/45409233/does-the-xamarin-ios-garbage-collector-use-a-fixed-maxgeneration

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