Runtime environment Flashcards

1
Q

ART is

A

Android Runtime (ART) is an application runtime environment used by the Android operating system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ART was introduced in

A

Android 4.4 KitKat brought a technology preview of ART, including it as an alternative runtime environment and keeping Dalvik as the default virtual machine. In the subsequent major Android release, Android 5.0 Lollipop, Dalvik was entirely replaced by ART.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ART JIT

A

Android 7.0 Nougat introduced JIT compiler with code profiling to ART, which lets it constantly improve the performance of Android apps as they run. The JIT compiler complements ART’s current Ahead of Time compiler and helps improve runtime performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ART vs Dalvik

A

Dalvik is process virtual machine, while ART performs the translation of the application’s bytecode into native instructions that are later executed by the device’s runtime environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ART Advantages

A
  • Ahead-of-time (AOT) compilation
  • Improved garbage collection
  • Support for sampling profiler (more accurate profiling)
  • Support for more debugging features ()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ART Sampling Profiler

A

ART adds support for a dedicated sampling profiler that is not skewed by the per-method-call overhead of Dalvik profiler, and its use does not affects run time performance as noticeably.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ART Debugging Features

A
  • See what locks are held in stack traces, then jump to the thread that holds a lock.
  • Ask how many live instances there are of a given class, ask to see the instances, and see what references are keeping an object live.
  • Filter events (like breakpoint) for a specific instance.
  • See the value returned by a method when it exits (using “method-exit” events).
  • Set field watchpoint to suspend the execution of a program when a specific field is accessed and/or modified.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ART Crash Reports

A

ART gives you as much context and detail as possible when runtime exceptions occur. ART provides expanded exception detail for java.lang.ClassCastException, java.lang.ClassNotFoundException, and java.lang.NullPointerException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Dalvik

A

Dalvik is a discontinued process virtual machine (VM) in Google’s Android operating system (while its bytecode format is still used as a distribution format, but no longer at runtime in newer Android) that executes applications written for Android

How well did you know this?
1
Not at all
2
3
4
5
Perfectly