From owner-freebsd-java@freebsd.org Sun Jul 19 05:52:10 2020 Return-Path: Delivered-To: freebsd-java@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3947C37E506 for ; Sun, 19 Jul 2020 05:52:10 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B8YsP0yyMz4Byb for ; Sun, 19 Jul 2020 05:52:09 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-io1-xd34.google.com with SMTP id v6so14387215iob.4 for ; Sat, 18 Jul 2020 22:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q0eSBv3mcIAwYtUVfkna/LmTdFhiWh6MnQ47QC8Tv0M=; b=Gxw3eiUkkL9xOdsGBHOrYb8Eg7tn6ZKRNHsyF0u7rOPe96CbYXYodGCSBrD8WhDJln Fim3oQUbqqyZqa43zwOZgQ1ymNGjrzuf1syNSsGM4bTrIU26hBcoo4+oqPW7aWmwJbwj 7Li9pvOSpUlq9uniE+/8pLm5T1VprprEXf8fj8oj5JIGKF8t1oS30cRUMBk9zYSp2If9 6uCTIOk8RMS342o9c1HQUZK45HW1by0FMw6/JqF5h6ygGkr6fZteOm6HacO4roXRzJqa haop5kP6+Lgq4KPlec1uUcsMyqrPFlsSl8dri8FnWYbuxzgfFo8uxI2P3suDx33DLCYO yQxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q0eSBv3mcIAwYtUVfkna/LmTdFhiWh6MnQ47QC8Tv0M=; b=MyRqhRUgeXqRbnkgDejxrsNrgZVE32Q1QF8q0PeGWQa+c2vovvvaaWq9ZzwgXsXw68 MO6YSigNmvtybqumfNOtRfClhkY0IJ04YWzHQ5tYPLKH59oyC42miv8aYvq9HqLxRCOB pzxUYZQLJTaoGC6oE8rh+auINkfDGmr787rqulcJCTCEIzvjNzG6B6ZteXIdz0H18vRO f9Lwyq9sPACDqkzQP9azyaEFIRncbGyQZW2s+oCKebdGlXy1NaXENkwycO5s7+CtgoXL rGk1/13pYqdPkOmnS1e8kwNdTknhXK+uk037yLRN8yZlAppo+6c3OL7iulKvpLYR47B4 xV/g== X-Gm-Message-State: AOAM530XoIvOgxZSqHc4NJ3CiuZXA5CrjalofrCgguK6qYXrKs1z0kce PWnxFnDhaV9LauxxQ7ZHGCaYOuAej13ZewI2GuTTHrpW4nI= X-Google-Smtp-Source: ABdhPJyL6Yp3z19MQGotZ4QG6RqxwzRqC/QW7a3LiPdRdHP/q2tsic/j2LLeLGCgdJ0X4czFV957UMPXe9PapcyrJy4= X-Received: by 2002:a05:6602:2ac8:: with SMTP id m8mr17502640iov.36.1595137927381; Sat, 18 Jul 2020 22:52:07 -0700 (PDT) MIME-Version: 1.0 References: <20200719052757.GA45160@misty.eyesbeyond.com> In-Reply-To: <20200719052757.GA45160@misty.eyesbeyond.com> From: Aryeh Friedman Date: Sun, 19 Jul 2020 01:51:56 -0400 Message-ID: Subject: Re: OT: support for multicore javac? To: Greg Lewis Cc: Jonathan Chen , freebsd-java@freebsd.org X-Rspamd-Queue-Id: 4B8YsP0yyMz4Byb X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Gxw3eiUk; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::d34 as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-2.73 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.04)[-1.039]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-java@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-0.997]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d34:from]; NEURAL_HAM_SHORT(-0.69)[-0.694]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2020 05:52:10 -0000 On Sun, Jul 19, 2020 at 1:28 AM Greg Lewis wrote: > On Sat, Jul 18, 2020 at 12:50:36PM +1200, Jonathan Chen wrote: > > On Sat, 18 Jul 2020 at 12:31, Aryeh Friedman > 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