I filed https://bugs.openjdk.org/browse/JDK-8339335 for this, and I created a PR: https://github.com/openjdk/jfx/pull/1554
- Johan On Wed, Apr 24, 2024 at 12:14 PM Thiago Milczarek Sayão < thiago.sa...@gmail.com> wrote: > Johan, > > I often have to try to build it a few times before it succeeds (on Linux). > And I used an old Ryzen 7 1700X with 16 threads, 16GB. I have now upgraded > it, but I haven't built webkit yet. I'm really scared of it :) > > So limiting the threads seems like a good idea. > > > Em qua., 24 de abr. de 2024 às 04:23, Johan Vos <johan....@gluonhq.com> > escreveu: > >> Hi, >> >> When building WebKit from the sources, the perl script that invokes the >> cmake/make build (build-webkit) will by default set the number of build >> threads to the number of available cores. >> This is often a bad idea, e.g. with 20 cores and 32GB this leads to a >> freeze of the system. >> >> As far as I know, we do not allow passing the number of parallel build >> threads (I typically modify them in the perl script). We already have the >> "NUM_COMPILE_THREADS" property in the build.gradle but we do not use that >> when building webkit. We only pass `--cmakeargs` to the buildscript, and >> the number of threads is set via e.g. `--makeargs=-j16` >> >> Is there a known other way to do this, or should we add passing the >> NUM_COMPILE_THREADS via `--makeargs` in the build.gradle? >> >> - Johan >> >