找回密码
 立即注册
android开发 2022-11-09 77 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
Android使用程序是运行在Dalvik虚拟机里边的,而且每一个使用程序对应有一个独自的Dalvik虚拟机实例。Android使用程序中的Dalvik虚拟机实例实际上是从Zygote进程的地址空间复制而来的,这样就可以加速Android使用程序的启动速度。Dalvik虚拟机与Java虚拟机共享有差不多的特性,例如,它们都是解说履行,而且支持即时编译(JIT)、垃圾搜集(GC)、Java本地方法调用(JNI)和Java远程调试协议(JDWP)等,不同在于两者履行的命令集是不同的,而且前者的命令集是基本寄存器的,而后者的命令集是基于仓库的。这个PPT讲Dalvik虚拟机的内存管理、垃圾搜集、即时编译、Java本地调用、进程和线程管理等。理解Dalvik虚拟机的上述实现细节,有助于在运行时修复程序的行为,例如,阻拦Java函数的调用。

(Android user programs run in the Dalvik virtual machine, and each user program corresponds to a separate Dalvik virtual machine instance. The Dalvik virtual machine instance in the Android application is actually copied from the address space of the Zygote process, which can speed up the startup of the Android application. Dalvik virtual machine shares similar features with Java virtual machine. For example, both of them are interpretation execution, and support JIT, GC, JNI, and JDWP. The difference is that the command sets executed by the two are different, and the command sets of the former are basic registers, while the command sets of the latter are warehouse based. This PPT talks about the memory management, garbage collection, instant compilation, Java local calls, process and thread management of the Dalvik virtual machine. Understanding the above implementation details of Dalvik virtual machine is helpful to fix the behavior of the program at runtime, for example, blocking the call of Java functions.)

[下载]10382195151.rar




上一篇:Android应用程序输入事件处理机制
下一篇:Android应用程序消息处理机制