Is Android garbage collector pausing other apps while running?

后端 未结 3 1697
醉话见心
醉话见心 2021-02-05 22:53

I\'ve found some information about the Android garbage collector that are contradictions to me.

Android Devevelopers Guide says:

Android 3.0 is th

3条回答
  •  不思量自难忘°
    2021-02-05 23:53

    Complete independence is rather impossible: garbage collector and program use the same memory and have to communicate somehow. Even "pauseless" GCs, like Azul's (btw, a good read: http://www.artima.com/lejava/articles/azul_pauseless_gc.html), have technical pauses. Dalvik is probably (pure guess, based on anecdotal evidence and resources likely poured into JVMs during the last 15 years by the likes of IBM, Sun and Oracle) years behind the newest technology found in JVMs, so I suspect that the pauses will be longer.

提交回复
热议问题