简体   繁体   English

MonoTouch 6.0.8发行说明中的​​“运行时蹦床”是什么意思?

[英]What do “Runtime Trampolines” mean in MonoTouch 6.0.8 Release Notes?

MonoTouch 6.0.8 release notes say: MonoTouch 6.0.8发行说明说:

Runtime Trampolines: It is no longer necessary to manually manage trampolines in the Mono runtime, trampolines are now handled dynamically. 运行时蹦床:不再需要在Mono运行时中手动管理蹦床,现在可以动态处理蹦床。

What does this mean? 这是什么意思? How do you manually manage trampolines anyway? 无论如何,您如何手动管理蹦床?
Do you still need to add compiler flags when you know you're probably going to run out of trampolines? 当您知道蹦床可能用完时,是否仍需要添加编译器标志?

This means just as the release notes say that Monotouch now figures out how many trampolines to allocate. 就像发行说明说的那样,这意味着Monotouch现在可以计算出要分配的蹦床数量。

To add more trampolines you add compiler flags such as: 要添加更多蹦床,请添加编译器标志,例如:

-aot "nrgctx-trampolines=4096" -aot "nimt-trampolines=4096" -aot "ntrampolines=4096"

Usually when you were running out of trampolines meant that you were using a lot of generics and interfaces, which are hard to calculate how much memory needs to be allocated for ahead of time (aot). 通常,当您用完蹦床时,就意味着您使用了许多泛型和接口,很难计算需要提前分配多少内存(自动)。 So Xamarin must have found a magic way to do this calculation and allocate the trampolines accordingly. 因此,Xamarin必须找到一种神奇的方法来进行此计算并相应地分配蹦床。 I couldn't find more information about this. 我找不到有关此的更多信息。

There's a bit more information about trampolines in general in this thread: http://forums.xamarin.com/discussion/503/trampolines-cost and this thread which was prior to the other one: http://lists.ximian.com/pipermail/monotouch/2012-March/008800.html 在此线程中,通常有关于蹦床的更多信息: http : //forums.xamarin.com/discussion/503/trampolines-cost和该线程在其他线程之前: http : //lists.ximian.com /pipermail/monotouch/2012-March/008800.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM