diff options
author | 2015-12-14 18:01:21 +0000 | |
---|---|---|
committer | 2015-12-14 18:03:20 +0000 | |
commit | 34021dd9bf1f396f01f32bb1b6c100538018127c (patch) | |
tree | 1df0e58e7cb598169c69631b5231ff581aea1b07 | |
parent | c44edf6528743139975bf33a9239c16f64ee956f (diff) |
Increase the sleep time in 554-jit-profile-file
The previous sleep time wasn't enough. Some tests failed because not
all the methods managed to be compiled in time.
Change-Id: I4d63b6c3602c72dfa608f62c55e0f484bbfcf900
-rw-r--r-- | test/554-jit-profile-file/src/Main.java | 6 | ||||
-rw-r--r-- | test/Android.run-test.mk | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/554-jit-profile-file/src/Main.java b/test/554-jit-profile-file/src/Main.java index 9228070d96..98297ed8ed 100644 --- a/test/554-jit-profile-file/src/Main.java +++ b/test/554-jit-profile-file/src/Main.java @@ -39,7 +39,7 @@ public class Main { private static final String PROFILE_FILE = PKG_NAME + ".prof"; private static final String TEMP_FILE_NAME_PREFIX = "dummy"; private static final String TEMP_FILE_NAME_SUFFIX = "-file"; - private static final int JIT_INVOCATION_COUNT = 101; + private static final int JIT_INVOCATION_COUNT = 200; /* needs to match Runtime:: kProfileBackground */ private static final int PROFILE_BACKGROUND = 1; @@ -72,8 +72,8 @@ public class Main { o.hotMethod(); } - // Sleep for 1 second to make sure that the methods had a chance to get compiled. - Thread.sleep(1000); + // Sleep for 2 second to make sure that the methods had a chance to get compiled. + Thread.sleep(2000); // Updating the process state to BACKGROUND will trigger profile saving. VMRuntime.updateProcessState(PROFILE_BACKGROUND); diff --git a/test/Android.run-test.mk b/test/Android.run-test.mk index 853db0bd3f..1d5af3ff4f 100644 --- a/test/Android.run-test.mk +++ b/test/Android.run-test.mk @@ -516,7 +516,7 @@ TEST_ART_BROKEN_OPTIMIZING_DEBUGGABLE_RUN_TESTS := # 137: Read barrier forces interpreter. Cannot run this with the interpreter. # 537: Expects an array copy to be intrinsified, but calling-on-slowpath intrinsics are not yet # handled in the read barrier configuration. -# 554: Cannot run in interpreter mode and this rule cover both: the compiler and the interpreter. +# 554: Cannot run in interpreter mode and this rule covers both: the compiler and the interpreter. TEST_ART_BROKEN_READ_BARRIER_RUN_TESTS := \ 055-enum-performance \ 137-cfi \ |