commit | 223ac0ca7a14f4c592cc7ec51d3aa6c08f00c9a7 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Thu Jun 09 09:53:55 2016 +0100 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Thu Jun 09 09:53:55 2016 +0100 |
tree | eb2aced9b1bec26d97e1e38ff709162a32cdfa8b | |
parent | 01273f154d1c3234d5126a15f25495493d8de13a [diff] [blame] |
Use usleep instead of sleep(0). sleep(0) is unfortunately not specified. Change-Id: I5e9c626d21a562ca04329c0cc039a1f3a71dfc84
diff --git a/test/604-hot-static-interface/hot_static_interface.cc b/test/604-hot-static-interface/hot_static_interface.cc index 71877f5..9074a0a 100644 --- a/test/604-hot-static-interface/hot_static_interface.cc +++ b/test/604-hot-static-interface/hot_static_interface.cc
@@ -49,7 +49,7 @@ break; } else { // Sleep to yield to the compiler thread. - sleep(0); + usleep(1000); // Will either ensure it's compiled or do the compilation itself. jit->CompileMethod(method, Thread::Current(), /* osr */ false); }