diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-01-20 23:53:40 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-01-20 23:53:40 +0100 |
| commit | a8632569bf8339f5fa468f99493d4d825db2cb12 (patch) | |
| tree | 9e14ab30b04104be234f0e75bced49a35d45c9ed | |
| parent | 02702eeef3a4386d548a35406c2cc681cb91cf27 (diff) | |
executor: reduce syscall blocking delay from 100ms to 20ms
Syscalls frequently block and this affects fuzzing speed.
20ms should be more than enough for a normal syscall to finish.
| -rw-r--r-- | executor/executor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index 22eea9439..9ef2248be 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -351,12 +351,12 @@ retry: for (;;) { timespec ts = {}; ts.tv_sec = 0; - ts.tv_nsec = (100 - (now - start)) * 1000 * 1000; + ts.tv_nsec = (20 - (now - start)) * 1000 * 1000; syscall(SYS_futex, &th->done, FUTEX_WAIT, 0, &ts); if (__atomic_load_n(&th->done, __ATOMIC_RELAXED)) break; now = current_time_ms(); - if (now - start > 100) + if (now - start > 20) break; } if (__atomic_load_n(&th->done, __ATOMIC_ACQUIRE)) |
