What can you not do on the Dalvik VM (Android's VM) that you can in Sun VM?

后端 未结 4 1887
失恋的感觉
失恋的感觉 2020-12-02 07:28

I know that you can run almost all Java in Dalvik\'s VM that you can in Java\'s VM but the limitations are not very clear. Has anyone run into any major s

4条回答
  •  忘掉有多难
    2020-12-02 08:00

    If you see "Dalvik Virtual Machine internals" Google IO session, you can find Dalvik does not support generational GC.

    So, it could degrade performance of frequent object creation and deletion. Java VM supports generational GC so, it would show better GC performance for the same situation.

    And also, Dalvik uses trace-granuality JIT instead of method granuality JIT.

提交回复
热议问题