Upgrading to Emacs 26.3 seems to have fixed the memory problem but now there's another problem ... emacs becomes incredibly sluggish (almost unuseable) -- top(1) shows 70-100% CPU utilization even when the compilation step isn't outputting anything. (I use GNU parallel on the tests, with options to preserve the output order, so output happens at intervals.)
The compilation command is "find ... | sort | nice parallel -j 8 --keep-order --group -L80" (on a 4 CPU machine).
I tried reducing the number of parallel jobs to 3, but that didn't help.
Should I open a new bug for this? If so, what information can I collect, to help determine the cause?