Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 2020 22:27:57 -0700
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Jonathan Chen <jonc@chen.org.nz>
Cc:        Aryeh Friedman <aryeh.friedman@gmail.com>, freebsd-java@freebsd.org
Subject:   Re: OT: support for multicore javac?
Message-ID:  <20200719052757.GA45160@misty.eyesbeyond.com>
In-Reply-To: <CAJuc1zNmv5L-k2XiYMRxzJQgZSO0-Y3n2jCVaCrJQu58maCwpA@mail.gmail.com>
References:  <CAGBxaXkyNBa7RdK5cbSHH2dm5_7vk-Kb=Tf9gB1x8PpUmQD-rA@mail.gmail.com> <CAJuc1zMk2bNt=LbLCx1LvvAi=ip3bqRh1EXnsXUom8CpsvKRKw@mail.gmail.com> <CAGBxaXmSsY3-eoq97DpP6X06oVnUJbhsFYSeXYp%2BYWbyz7hzyg@mail.gmail.com> <CAJuc1zNmv5L-k2XiYMRxzJQgZSO0-Y3n2jCVaCrJQu58maCwpA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200719052757.GA45160>