简体   繁体   English

android dalvik vm是否使用转义分析优化?

[英]Does the android dalvik vm use escape analysis optimization?

Any ideas about escape analysis in dalvik? 关于dalvik逃逸分析的任何想法? Or when and if it's planned to be added? 或者何时以及是否计划添加?

I consider escape analysis a very important feature in GC languages to avoid churning out objects every time a method is called, and currently I preallocate an object in the class and reset it at the beginning of the method, so I avoid allocation (I am writing 3D games for android...in java), but I find this method ugly and keeps the memory hogged with preallocated objects. 我认为转义分析是GC语言中一个非常重要的特性,可以避免每次调用方法时产生对象,并且当前我在类中预先分配一个对象并在方法的开头重置它,所以我避免分配(我正在写用于Android的3D游戏...在java)中,但我发现这种方法很丑陋,并且使用预分配的对象保持内存不足。

Any ideas about escape analysis in dalvik? 关于dalvik逃逸分析的任何想法?

There is source code in the dx portion of the Dalvik project that performs some limited escape analysis. Dalvik项目的dx部分中有源代码执行一些有限的逃逸分析。 Whether this is actually used in production, I cannot say, and the topic certainly does not seem to come up very much. 这是否真的用于生产,我不能说,这个话题肯定不会出现太多。

Or when and if it's planned to be added? 或者何时以及是否计划添加?

Google does not make much in the way of forward-thinking statements regarding Android's capabilities. 谷歌在有关Android功能的前瞻性陈述方面做得不多。

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

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