diff options
author | 2019-06-14 11:07:26 -0700 | |
---|---|---|
committer | 2019-06-14 21:54:45 +0000 | |
commit | 43ae4acf219fe25a56e2055ebcebc4d08020a25d (patch) | |
tree | 47b5fbb84c96d3b5cd869339ceb7dbcc955ab52e | |
parent | 5212552b43496541ffeeb1c34a161413248fec5c (diff) |
Yield during test 1941 tight loop
Test 1941 performs a tight-loop in a thread. Perform Thread.yield()
periodically so that other threads will always have time to run.
Test: ./test.py --host
Bug: 133767752
Change-Id: I7d30a2d3b64115982c934ea1945c691e2ceff12d
-rw-r--r-- | test/1941-dispose-stress/src/art/Test1941.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/1941-dispose-stress/src/art/Test1941.java b/test/1941-dispose-stress/src/art/Test1941.java index 29cea6bdb8..2cffa56952 100644 --- a/test/1941-dispose-stress/src/art/Test1941.java +++ b/test/1941-dispose-stress/src/art/Test1941.java @@ -48,6 +48,7 @@ public class Test1941 { CNT++; long env = AllocEnv(); FreeEnv(env); + Thread.yield(); } } |