commit | 3e12304ae004284e3186b489f398908e59a8574d | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Fri Jul 27 17:06:59 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jul 27 17:18:22 2018 +0200 |
tree | 1047bb1d48aa05360b598d37d6122c2728b98641 | |
parent | 85d9b84eb14987c9aa012195f09979c56e766447 [diff] |
BUG/MINOR: threads: Handle nbthread == MAX_THREADS. If nbthread is MAX_THREADS, the shift operation needed to compute all_threads_mask fails in thread_sync_init(). Instead pass a number of threads to this function and let it compute the mask without overflowing. This should be backported to 1.8.