OT: support for multicore javac?

Greg Lewis glewis at eyesbeyond.com
Sun Jul 19 05:28:09 UTC 2020


On Sat, Jul 18, 2020 at 12:50:36PM +1200, Jonathan Chen wrote:
> On Sat, 18 Jul 2020 at 12:31, Aryeh Friedman <aryeh.friedman at gmail.com> wrote:
> >> I'm building eclipse, and invocations to javac seem to spread across
> >> multiple cores when building with multiple threads using openjdk11; at
> >> least that's what "top -H" tells me. I don't see what smart-javac
> >> brings to the table.
> >
> > I don't use eclipse or any IDE and many people other users don't also.   All this is done by eclipse not the command line tools and people who work with them need good support for them (see the README in sjavac...  https://github.com/weetmuts/sjavac ... as to the reasons for not using an IDE see https://docs.freebsd.org/cgi/getmsg.cgi?fetch=31816+0+current/freebsd-questions
> >
> 
> My statement should be re-phrased as: When I'm building the eclipse
> port from the command line, with maven, each javac invocation spreads
> the work over multiple cores. You can easily view this with "top -H".

FWIW, sjavac has been used by default since JDK 9, so yes, you'd expect to
see multiple cores being used with openjdk11.  The sjavac Github reference
above is a backport to openjdk8.

-- Greg


More information about the freebsd-java mailing list