Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2020 07:07:47 -0700
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        Jonathan Chen <jonc@chen.org.nz>, freebsd-java@freebsd.org
Subject:   Re: OT: support for multicore javac?
Message-ID:  <2a86e22d-f07b-7891-5abb-6eb9f686d0d8@eyesbeyond.com>
In-Reply-To: <CAGBxaX=aE%2Brhb1TcvKS_-xbsogwTm3%2BL7%2BmfvDjR86KpD_G_-Q@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> <20200719052757.GA45160@misty.eyesbeyond.com> <CAGBxaX=aE%2Brhb1TcvKS_-xbsogwTm3%2BL7%2BmfvDjR86KpD_G_-Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 2020-07-18 22:51, Aryeh Friedman wrote:
>
>
> On Sun, Jul 19, 2020 at 1:28 AM Greg Lewis <glewis@eyesbeyond.com
> <mailto:glewis@eyesbeyond.com>> wrote:
>
>     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 <mailto: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.
>
>
> Does that mind if I use 9+ I can give the -j option and it will work
> as the sjavac docs say it will?.... the main reason why I decided no
> to use the github version even though I use openjdk 8 by default is it
> had no way to pass options down to the wrapped javac such as (which is
> the default I use in almost all my projects with the most important
> one being -Werror):
>
> -Xprefer:source -implicit:none -Xlint -Xdiags:verbose -Werror 
>
> -- 
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org


IIRC you don't have to pass any options.  It's just the default with
newer versions of OpenJDK.


-- Greg




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2a86e22d-f07b-7891-5abb-6eb9f686d0d8>