![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
art
文章平均质量分 84
xiongtiancheng
android application,android frameworks,android hal,linux kernel,linux driver,freertos
展开
-
android runtime 创建流程
在zygote进程启动过程中会创建art虚拟机,那我们就看一下art虚拟机是怎么创建出来的。用户空间的init进程起来之后,会根据.xxxrc 文件中的配置,把相关进程运行起来,通过fork()和execve()来创建和加载对应的进程,我们锁熟悉的zygote进程也是在这个时候被运行起来的,zygote进程的前身是app_process,到了后面才把这个进程的名字改成zygote,可执行程序为原创 2017-11-12 21:53:00 · 3394 阅读 · 0 评论 -
art heap创建流程
通过前面的博客我们知道在art 创建的时候,会创建出heap实例,也就是管理art 的堆的对象。art/runtime/runtime.cc932 bool Runtime::Init(RuntimeArgumentMap&& runtime_options_in) {...1015 heap_ = new gc::Heap(runtime_options.GetOrDef原创 2017-11-19 21:09:37 · 969 阅读 · 0 评论