aboutsummaryrefslogtreecommitdiff
path: root/gnulib
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-12-13 12:03:34 -0700
committerTom Tromey <tromey@adacore.com>2023-01-17 07:06:56 -0700
commit6107546876df070688d75d8cd87d7c7a5f246091 (patch)
tree6092d20796d031fa4583af8c3f69dd4531626b8e /gnulib
parent2ec9694617bc3a84ef89588d849eaef8893c0ec4 (diff)
downloadgdb-6107546876df070688d75d8cd87d7c7a5f246091.zip
gdb-6107546876df070688d75d8cd87d7c7a5f246091.tar.gz
gdb-6107546876df070688d75d8cd87d7c7a5f246091.tar.bz2
Avoid submitting empty tasks in parallel_for_each
I found that parallel_for_each would submit empty tasks to the thread pool. For example, this can happen if the number of tasks is smaller than the number of available threads. In the DWARF reader, this resulted in the cooked index containing empty sub-indices. This patch arranges to instead shrink the result vector and process the trailing entries in the calling thread. (cherry picked from commit 63078a04984b73e1fdeb4571a63605ee5c13f929)
Diffstat (limited to 'gnulib')
0 files changed, 0 insertions, 0 deletions