Does Android dalvik vm use escape analysis optimization?

Any ideas on dalwick escape analysis? Or when and if you plan to add?

I believe that evacuation analysis is a very important feature in GC languages ​​to avoid retrieving objects every time a method is called, and I currently pre-allocate the object in the class and reset at the beginning of the method, so I avoid (I'm writing 3D games for android ... in java), but I find this method ugly and keeps memory littered with pre-allocated objects.

+7
source share
1 answer

Any ideas on dalwick escape analysis?

There is source code in the dx section of the Dalvik project , which performs limited leak analysis. Whether this is actually used in production, I cannot say, and the topic, of course, does not seem very complicated.

Or when and if you plan to add?

Google is not much to think about the capabilities of Android.

+4
source

All Articles