Skip to content
Snippets Groups Projects
Commit 9f0f01ef authored by Nicolas Noble's avatar Nicolas Noble
Browse files

Merge pull request #3997 from a-veitch/fix_tsan_cpu_test

Fix for long-running tsan test
parents 4a09912b f987e3af
No related branches found
No related tags found
No related merge requests found
...@@ -81,9 +81,9 @@ static void worker_thread(void *arg) { ...@@ -81,9 +81,9 @@ static void worker_thread(void *arg) {
gpr_uint32 cpu; gpr_uint32 cpu;
int r = 12345678; int r = 12345678;
int i, j; int i, j;
for (i = 0; i < 1000; i++) { for (i = 0; i < 1000 / GRPC_TEST_SLOWDOWN_FACTOR; i++) {
/* run for a bit - just calculate something random. */ /* run for a bit - just calculate something random. */
for (j = 0; j < 1000000; j++) { for (j = 0; j < 1000000 / GRPC_TEST_SLOWDOWN_FACTOR; j++) {
r = (r * 17) & ((r - i) | (r * i)); r = (r * 17) & ((r - i) | (r * i));
} }
cpu = gpr_cpu_current_cpu(); cpu = gpr_cpu_current_cpu();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment