Skip to content

Commit

Permalink
add parameter for avoiding full preload with exec
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Jun 7, 2021
1 parent e3a4d64 commit 4c26353
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dalvik/src/main/java/dalvik/system/ZygoteHooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private ZygoteHooks() {
* Called when the zygote begins preloading classes and data.
*/
@libcore.api.CorePlatformApi
public static void onBeginPreload() {
public static void onBeginPreload(boolean fullPreload) {
// Pin ICU data in memory from this point that would normally be held by soft references.
// Without this, any references created immediately below or during class preloading
// would be collected when the Zygote GC runs in gcAndFinalize().
Expand All @@ -71,7 +71,7 @@ public static void onBeginPreload() {
* Called when the zygote has completed preloading classes and data.
*/
@libcore.api.CorePlatformApi
public static void onEndPreload() {
public static void onEndPreload(boolean fullPreload) {
// All cache references created by ICU from this point will be soft.
CacheValue.setStrength(CacheValue.Strength.SOFT);

Expand Down
4 changes: 2 additions & 2 deletions mmodules/core_platform_api/api/platform/current-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,8 @@ package dalvik.system {

public final class ZygoteHooks {
method public static void gcAndFinalize();
method public static void onBeginPreload();
method public static void onEndPreload();
method public static void onBeginPreload(boolean);
method public static void onEndPreload(boolean);
method public static void postForkChild(int, boolean, boolean, String);
method public static void postForkCommon();
method public static void postForkSystemServer(int);
Expand Down

0 comments on commit 4c26353

Please sign in to comment.