diff options
Diffstat (limited to 'src/xz/hardware.c')
-rw-r--r-- | src/xz/hardware.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xz/hardware.c b/src/xz/hardware.c index c6948821..73bac4a9 100644 --- a/src/xz/hardware.c +++ b/src/xz/hardware.c @@ -15,7 +15,7 @@ /// Maximum number of worker threads. This can be set with /// the --threads=NUM command line option. -static uint32_t threads_max = 1; +static uint32_t threads_max; /// True when the number of threads is automatically determined based /// on the available hardware threads. @@ -334,5 +334,9 @@ hardware_init(void) memlimit_mt_default = mem_ceiling; #endif + // Enable threaded mode by default. xz 5.4.x and older + // used single-threaded mode by default. + hardware_threads_set(0); + return; } |