summaryrefslogtreecommitdiff
path: root/libart
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2019-03-06 17:13:57 -0800
committerMathieu Chartier <mathieuc@google.com>2019-03-07 09:09:25 -0800
commit851a4b0761367e31071012a1c1807f9df1afc0c5 (patch)
tree27005a4fa5b845a4ad5d4b1f654e18331fd658f2 /libart
parent36aa0fdc9f92d0f95d0e370a8145e7524c91b983 (diff)
Add callback for notifying that startup is completed
Add a callback that can be called to denote that application startup is completed. This may affect how the profile is collected and how startup related caches are managed. Bug: 123377072 Bug: 120671223 Test: test-art-host Change-Id: Ia317627614566c3060e3c2e246bfb01f6b4f750a
Diffstat (limited to 'libart')
-rw-r--r--libart/src/main/java/dalvik/system/VMRuntime.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/libart/src/main/java/dalvik/system/VMRuntime.java b/libart/src/main/java/dalvik/system/VMRuntime.java
index 7721574359..206ae13c70 100644
--- a/libart/src/main/java/dalvik/system/VMRuntime.java
+++ b/libart/src/main/java/dalvik/system/VMRuntime.java
@@ -563,6 +563,13 @@ public final class VMRuntime {
public native void updateProcessState(int state);
/**
+ * Let the runtime know that the application startup is completed. This may affect behavior
+ * related to profiling and startup caches.
+ */
+ @libcore.api.CorePlatformApi
+ public native void notifyStartupCompleted();
+
+ /**
* Fill in dex caches with classes, fields, and methods that are
* already loaded. Typically used after Zygote preloading.
*/