From owner-freebsd-java@freebsd.org Sun Jul 19 05:28:09 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 4931837DCD4 for ; Sun, 19 Jul 2020 05:28:09 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from resdmta-po-02v.sys.comcast.net (resdmta-po-02v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B8YKg44fgz4BCn for ; Sun, 19 Jul 2020 05:28:07 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from resqmta-po-01v.sys.comcast.net ([96.114.154.160]) by resqmta-po-12v.sys.comcast.net with ESMTP id x1Umj9nnpYqigx1rkjpcSl; Sun, 19 Jul 2020 05:28:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1595136480; bh=IwoDM0vs2jwrfI6rN7uPfvb6PgARuE4u1FHebr1e5Q0=; h=Received:Received:Received:Received:Received:Date:From:To:Subject: Message-ID:MIME-Version:Content-Type; b=nZJAs/yFGj/xwHCHTRIaZNhWbQMcj0+qQP2jGacsD+y9IWtjwIpnLDdJURtntnrGy 1+Yf/cN1WSvLfUmmt254Bp5hN1eMtQHDL4szGqL56rJF8SFaNMS7t0UBJ6pXhVebGh 2pXqLqtMpt+9ZxUwYi5+9T2Jjs49qxhEeeWoqrk11w/iZdtsB+fR3XtWFwBzOfFUsY rfQ0lc3ldnyalMFsc59WDOT9878xUvdX9H4V58UFQH+CAA6/eRDnWgNwnG9aojZi5e XYPxMFWzPh2zMfDj5UL4H6T6j+WKQyUF8X81VqMQElqMwMYSPTAOiTRba3272YTbhP yWns81D7USCoA== Received: from resomta-po-19v.sys.comcast.net ([96.114.154.243]) by resqmta-po-01v.sys.comcast.net with ESMTP id x1pXjUmrvqK90x1rkjg8Cb; Sun, 19 Jul 2020 05:28:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1595136480; bh=IwoDM0vs2jwrfI6rN7uPfvb6PgARuE4u1FHebr1e5Q0=; h=Received:Received:Received:Received:Date:From:To:Subject: Message-ID:MIME-Version:Content-Type; b=oEL+vuAHNXuYsnkRIuNvXcr/gTg/YK7tR4owZ1cfTX8Hc/W6TL+ErSseIOFEGd64R UvZxzhDQlu1R7QH2DT1+PVTfOyIBYaUOJFTN6CebYPxiAEme6ZJLs5WGiD0AAwaj4Y AR7f4qwcVg/gsPlSwNvCNf/iD5cf8JmjcpvebZLYv/0SAE0yIDuoif9v6myJ0Wt+61 LHD7q95DivVnZMifWQ6wKmFNoAWTNKGOrd8QIdbAHHHrMvIoJ7H3sLJoIlCS/1Rj0T 1NiceIeiqBUK4akyH4haU1JBkeM7/YWDZQ1op4JoLKeCXbKK2XV87COcBSOvIYC+oe 9gdPROaGKvPNg== Received: from misty.eyesbeyond.com ([24.16.127.181]) by resomta-po-19v.sys.comcast.net with ESMTPA id x1rijNlF2qDrPx1rijwnuS; Sun, 19 Jul 2020 05:28:00 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgeduiedrgedtgdelhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvuffkfhggtggujgesthdttddttddtvdenucfhrhhomhepifhrvghgucfnvgifihhsuceoghhlvgifihhssegvhigvshgsvgihohhnugdrtghomheqnecuggftrfgrthhtvghrnhepieetledukeejudejtdettdegfeetffetffegffehgeetkeeujeejjefhuedvvefhnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpfhhrvggvsghsugdrohhrghenucfkphepvdegrdduiedruddvjedrudekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehmihhsthihrdgvhigvshgsvgihohhnugdrtghomhdpihhnvghtpedvgedrudeirdduvdejrddukedupdhmrghilhhfrhhomhepghhlvgifihhssegvhigvshgsvgihohhnugdrtghomhdprhgtphhtthhopehjohhntgestghhvghnrdhorhhgrdhniidprhgtphhtthhopegrrhihvghhrdhfrhhivggumhgrnhesghhmrghilhdrtghomhdprhgtphhtthhopehfrhgvvggsshguqdhjrghvrgesfhhrvggvsghsugdrohhrgh X-Xfinity-VMeta: sc=-100.00;st=legit Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.15.2/8.15.2) with ESMTP id 06J5Rvf4052720; Sat, 18 Jul 2020 22:27:57 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: Host localhost.eyesbeyond.com [127.0.0.1] claimed to be misty.eyesbeyond.com Received: (from glewis@localhost) by misty.eyesbeyond.com (8.15.2/8.15.2/Submit) id 06J5Rvtu052686; Sat, 18 Jul 2020 22:27:57 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sat, 18 Jul 2020 22:27:57 -0700 From: Greg Lewis To: Jonathan Chen Cc: Aryeh Friedman , freebsd-java@freebsd.org Subject: Re: OT: support for multicore javac? Message-ID: <20200719052757.GA45160@misty.eyesbeyond.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4B8YKg44fgz4BCn X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=comcastmailservice.net header.s=20180828_2048 header.b=nZJAs/yF; dkim=pass header.d=comcastmailservice.net header.s=20180828_2048 header.b=oEL+vuAH; dmarc=none; spf=none (mx1.freebsd.org: domain of glewis@eyesbeyond.com has no SPF policy when checking 2001:558:fe16:19:96:114:154:210) smtp.mailfrom=glewis@eyesbeyond.com X-Spamd-Result: default: False [1.72 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_ALLOW(-0.20)[comcastmailservice.net:s=20180828_2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.94)[-0.937]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[eyesbeyond.com]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[comcastmailservice.net:+]; NEURAL_HAM_SHORT(-0.04)[-0.042]; HFILTER_HELO_5(3.00)[resdmta-po-02v.sys.comcast.net]; R_SPF_NA(0.00)[no SPF record]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; ASN(0.00)[asn:7922, ipnet:2001:558::/29, country:US]; RECEIVED_SPAMHAUS_PBL(0.00)[24.16.127.181:received] 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:28:09 -0000 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. -- Greg 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 From owner-freebsd-java@freebsd.org Mon Jul 20 14:07:53 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 680553602BA for ; Mon, 20 Jul 2020 14:07:53 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from resqmta-po-04v.sys.comcast.net (resqmta-po-04v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B9Npw1TTcz45MK for ; Mon, 20 Jul 2020 14:07:51 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from resomta-po-06v.sys.comcast.net ([96.114.154.230]) by resqmta-po-04v.sys.comcast.net with ESMTP id xW34jOhhW9TkvxWSLjdZDT; Mon, 20 Jul 2020 14:07:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1595254069; bh=N5o8xUn5CrqTI2UZRHjGay1oT5xc/rgotasOmmU88jg=; h=Received:Received:Received:Subject:To:From:Message-ID:Date: MIME-Version:Content-Type; b=C0fj7S6g7mfaJt5ixqaK6Snk4aOEKA2weqtAegNFDTdkK7I3KW0Cnfwms+NVxogW3 MZAZxlIH/B1rRIjVToOOBt1cTuEvrlId6UxkZ9AHwW9W3WmYT2bSBEVK+jrpXGlsIS 9A2lPpYCvQgkGG+Su84KXiFcLcAUQMBnFMTS48D9S7r2znJSQPSgC9TpqgV3j0l9uK a6cXU7uscsw0thnVn+PHieuVDiFOx6Sx1daNZuwGn4CBL05tWQ07fhMkwM1tysTOXW h/4QZ+m8zfC9aiBD5eXSCZ6LE9mzwHtjLPbfaEwn/HDGujy9u8L0s4upHigqMTg49V hYIwyLYsSHOQw== Received: from misty.eyesbeyond.com ([24.16.127.181]) by resomta-po-06v.sys.comcast.net with ESMTPA id xWSJjSUEZ3wWoxWSKjR1oG; Mon, 20 Jul 2020 14:07:49 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgeduiedrgeeggdegjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgesrgdtreertdefjeenucfhrhhomhepifhrvghgucfnvgifihhsuceoghhlvgifihhssegvhigvshgsvgihohhnugdrtghomheqnecuggftrfgrthhtvghrnhepfeefvedtudehkeelfeegieehuddtgfehtdekffdttdefkeeufefgffevvdefgeeinecuffhomhgrihhnpehgihhthhhusgdrtghomhdpfhhrvggvsghsugdrohhrghdpphgvthhithgvtghlohhuugdrohhrghenucfkphepvdegrdduiedruddvjedrudekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehmihhsthihrdgvhigvshgsvgihohhnugdrtghomhdpihhnvghtpedvgedrudeirdduvdejrddukedupdhmrghilhhfrhhomhepghhlvgifihhssegvhigvshgsvgihohhnugdrtghomhdprhgtphhtthhopegrrhihvghhrdhfrhhivggumhgrnhesghhmrghilhdrtghomhdprhgtphhtthhopehjohhntgestghhvghnrdhorhhgrdhniidprhgtphhtthhopehfrhgvvggsshguqdhjrghvrgesfhhrvggvsghsugdrohhrgh X-Xfinity-VMeta: sc=-100.00;st=legit Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.15.2/8.15.2) with ESMTP id 06KE7lfH068535; Mon, 20 Jul 2020 07:07:47 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: Host localhost.eyesbeyond.com [127.0.0.1] claimed to be misty.eyesbeyond.com Subject: Re: OT: support for multicore javac? To: Aryeh Friedman Cc: Jonathan Chen , freebsd-java@freebsd.org References: <20200719052757.GA45160@misty.eyesbeyond.com> From: Greg Lewis Autocrypt: addr=glewis@eyesbeyond.com; prefer-encrypt=mutual; keydata= mQGiBDyFNecRBACKn+4b36n2/e55yTfpLXS9a57gQNgx0WXBfbK9LMLf2D8otD+0z1DW2ecl AOwJVtPftjvYP0HKFVC8Pes9Wvp6Z0sIEPpdkL2NPlUuxXUyh1b92u7nBpt7Uwsom88fnn+B OPrvvPL8Arg3JBen+Jd8o9yRoABCYku8vQF6CEUDcwCgmHJd9hZ/kRb1rLdSLssB4VMQ3zED /0/SVm+6XV+2ObXn9FKQpCC6sMSq+PCoR9NzAVRInjTtkpyR0fjJZr69IN2E2MWPonv38Xg1 tWJnR3fKUOnNqwiVHBQKKrKa9lGWsZQpTrR+ihtJ9hC626dCq9JDb1Ls7TXn9ha+d0WNuqiw ugto/myHm/GVlCANhGzUuDNUMo27A/46YEAMuhSQWOxgSZ/Z5g0ybgpswVePrxvD4sX2/AVf KClOYpPiNJe+S7YTJmfIPkpP2P7v+87BaN/uWgaFmxlhpUOIuat44w52EwwGB+K24cGgq52X ncZsYTYHSrLitkRtt35tVdnn1v3gmDi83M8W/YunflpeJAgJC0QzxKuar7QiR3JlZyBMZXdp cyA8Z2xld2lzQGV5ZXNiZXlvbmQuY29tPohXBBMRAgAXBQI8hTXoBQsHCgMEAxUDAgMWAgEC F4AACgkQ3uqZIxu22eCXswCeN0vOYtjnUXXznfUZtq/A/a6rf3EAoJE+kpmyp/e142F9s1Jo ndlUZjNFuQINBDyFNqMQCACa5C6Q8Vp5+TMTsNMiBIMhzm9GZQcOzTVsanfpHt/kYSZfA20J n4x/4fnhBLO42HVBono2r+Jh3fksDTf8jsCBQXBJfVwRz+d82PGpLbsIBpvqci31LJv1YAAp QoMzBkKMcE2/j0IA/JVVvVpNQInJRy/WAZIw0devZuRalricg3j6uoPeGJ8cJfWP/ZcySZhj w0JVNjnbOo7iwJuH6iEAx9i1bbJXYjPPieCmmnR9RuaUZXoNW9MLUyLrVQIOSE75NkWUTepd 4aU/kZHRJul1CY+IjQmmKepmzjeBx3bG2JQEzscAyhAOnIWKsO7IMpSAxYmu0m0DBZrhx/gu 6H9/AAURB/92qkduXjy275EQA+uOT01ZoZWqLW+/Svgslejx1v1obHDADMpcOHCoejr0TqXj 9F36GxqwgkTu8Y1sYr656tOD9beOi33QyqtqmVce5LnhOM4zLNZJIbtLrKmYN/licrfFATg1 9Ni8LYbGmGi2QT5CYHOZ5+38yjeilViW/c44GqJCgJgHfjytdzPERQ9qbdsUHDXCnleMDSSp hFxRvE0TkAr1z6DpHZz+NP3oScNkOkxEI1mIAocUsSO0fLroGJUcq+C2KNYPSTG2VZXwoAo3 o6FSlJKwK/neOwIie00BEBUQ04o5XRFBUN8mDKR4r7d542tR0iMBYUBZxU4TDlNCiEYEGBEC AAYFAjyFNqMACgkQ3uqZIxu22eAdvgCffuZlTysTdIYICVMkItXUnFENdXIAmwUFWyHGKyfU bJx1PdQLBwlUAcnl Message-ID: <2a86e22d-f07b-7891-5abb-6eb9f686d0d8@eyesbeyond.com> Date: Mon, 20 Jul 2020 07:07:47 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-AU X-Rspamd-Queue-Id: 4B9Npw1TTcz45MK X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=comcastmailservice.net header.s=20180828_2048 header.b=C0fj7S6g; dmarc=none; spf=none (mx1.freebsd.org: domain of glewis@eyesbeyond.com has no SPF policy when checking 2001:558:fe16:19:96:114:154:163) smtp.mailfrom=glewis@eyesbeyond.com X-Spamd-Result: default: False [1.16 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; HAS_XAW(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[comcastmailservice.net:+]; NEURAL_HAM_SHORT(-0.88)[-0.878]; HFILTER_HELO_5(3.00)[resqmta-po-04v.sys.comcast.net]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:7922, ipnet:2001:558::/29, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[24.16.127.181:received]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.77)[-0.771]; R_DKIM_ALLOW(-0.20)[comcastmailservice.net:s=20180828_2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-0.89)[-0.890]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[eyesbeyond.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2001:558:fe16:19:96:114:154:163:from]; R_SPF_NA(0.00)[no SPF record] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: Mon, 20 Jul 2020 14:07:53 -0000 On 2020-07-18 22:51, Aryeh Friedman wrote: > > > 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 IIRC you don't have to pass any options.  It's just the default with newer versions of OpenJDK. -- Greg