diff options
| author | 2015-12-14 18:01:21 +0000 | |
|---|---|---|
| committer | 2015-12-14 18:03:20 +0000 | |
| commit | 34021dd9bf1f396f01f32bb1b6c100538018127c (patch) | |
| tree | 1df0e58e7cb598169c69631b5231ff581aea1b07 /test/554-jit-profile-file/src/Main.java | |
| 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
Diffstat (limited to 'test/554-jit-profile-file/src/Main.java')
| -rw-r--r-- | test/554-jit-profile-file/src/Main.java | 6 |
1 files changed, 3 insertions, 3 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); |