From owner-freebsd-java@freebsd.org Sun Jan 31 10:54:24 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F180BA749B8 for ; Sun, 31 Jan 2016 10:54:23 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D61D010C7 for ; Sun, 31 Jan 2016 10:54:23 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id D55CBA749B7; Sun, 31 Jan 2016 10:54:23 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB235A749B6 for ; Sun, 31 Jan 2016 10:54:23 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "aserp1040.oracle.com", Issuer "Oracle SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9110210C6 for ; Sun, 31 Jan 2016 10:54:23 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u0VAsF4J005231 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 31 Jan 2016 10:54:16 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u0VAsFpx001276 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Sun, 31 Jan 2016 10:54:15 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0122.oracle.com (8.14.4/8.13.8) with ESMTP id u0VAsF6S013674 for ; Sun, 31 Jan 2016 10:54:15 GMT Received: from [10.175.186.216] (/10.175.186.216) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 31 Jan 2016 02:54:15 -0800 From: Magnus Ihse Bursie Subject: Helping out with JDK 9 on BSD To: java@freebsd.org Message-ID: <56ADE7D4.8020107@oracle.com> Date: Sun, 31 Jan 2016 11:54:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: userv0022.oracle.com [156.151.31.74] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2016 10:54:24 -0000 Hi, [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but it's not clear where to put them, or how.] I'm working at Oracle on the OpenJDK build team and is responsible for large parts of the build system of OpenJDK. Lately, I've been playing around with FreeBSD (and other BSDs) in my free time, and I've written a patch that will add build system support for FreeBSD, OpenBSD and NetBSD in JDK 9 (tracked in https://bugs.openjdk.java.net/browse/JDK-8147795). I started writing this when I realized that the jdk9 branch in the OpenJDK bsd-port repository did not contain any BSD-specific changes at all, and the old JDK 8 changes will not readily be portable, due to major changes in the build system between JDK 8 and JDK 9. I thought it would be a no-brainer to integrate these changes into the JDK 9 mainline, so they would be in place for whenever you guys would start to attack porting the code base. However, some of my collegues thought otherwise. The end result, I think, is that they wanted to see someone (not necessarily a company, the FreeBSD organisation for instance seemed to be okay), to step forward and say "we take responsibility for the BSD port", and give some kind of commitment to actually use these build changes in producing a viable port. You can read the mail conversation here: http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html An alternative to pushing this code into the JDK 9 mainline is of course to push it to the bsd-port/jdk9 repo (given that the owners of that repo approves), but that seems like a less favourable solution. Having the code in the mainline does not mean that it gets tested automatically, but it means that it will be part of e.g. refactoring, that would otherwise break a downstream patchset. I cc:ed this conversation to the bsd-port-dev@openjdk.java.net mailing list, but never got any kind of official response there. Since this list seems more active, I'm trying here instead. :) So, I'm offering two patches here, one that applies to the build system, is nice and clean, and possible to integrate into JDK 9 mainline, if my collegues are convinced that someone is backing up the BSD port. And there's a second patch, which fixes broken C/C++/Java code and results in a product that can at least run "javac HelloWorld", but this is not yet clean enough for integration anywere, at least not the JDK 9 mainline. (I don't know enough of the BSD internals to fix all problems, so there's some "#if 0" code here and there.) /Magnus From owner-freebsd-java@freebsd.org Sun Jan 31 11:00:25 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C73DDA74B2D for ; Sun, 31 Jan 2016 11:00:25 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AFD661190 for ; Sun, 31 Jan 2016 11:00:25 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id AD470A74B2C; Sun, 31 Jan 2016 11:00:25 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94652A74B2A for ; Sun, 31 Jan 2016 11:00:25 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "aserp1040.oracle.com", Issuer "Oracle SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 68C28118F for ; Sun, 31 Jan 2016 11:00:25 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u0VB0OwW009474 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 31 Jan 2016 11:00:24 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u0VB0Mp3007368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sun, 31 Jan 2016 11:00:24 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u0VB0MCG019463 for ; Sun, 31 Jan 2016 11:00:22 GMT Received: from [10.175.186.216] (/10.175.186.216) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 31 Jan 2016 03:00:22 -0800 Subject: Re: Helping out with JDK 9 on BSD To: java@freebsd.org References: <56ADE7D4.8020107@oracle.com> From: Magnus Ihse Bursie Message-ID: <56ADE943.6020103@oracle.com> Date: Sun, 31 Jan 2016 12:00:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56ADE7D4.8020107@oracle.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2016 11:00:25 -0000 On 2016-01-31 11:54, Magnus Ihse Bursie wrote: > Hi, > > [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but it's not > clear where to put them, or how.] > > I'm working at Oracle on the OpenJDK build team and is responsible for > large parts of the build system of OpenJDK. Lately, I've been playing > around with FreeBSD (and other BSDs) in my free time, and I've written > a patch that will add build system support for FreeBSD, OpenBSD and > NetBSD in JDK 9 (tracked in > https://bugs.openjdk.java.net/browse/JDK-8147795). > > I started writing this when I realized that the jdk9 branch in the > OpenJDK bsd-port repository did not contain any BSD-specific changes > at all, and the old JDK 8 changes will not readily be portable, due to > major changes in the build system between JDK 8 and JDK 9. > > I thought it would be a no-brainer to integrate these changes into the > JDK 9 mainline, so they would be in place for whenever you guys would > start to attack porting the code base. However, some of my collegues > thought otherwise. The end result, I think, is that they wanted to see > someone (not necessarily a company, the FreeBSD organisation for > instance seemed to be okay), to step forward and say "we take > responsibility for the BSD port", and give some kind of commitment to > actually use these build changes in producing a viable port. You can > read the mail conversation here: > http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html I forgot to add that I'm willing to help with build issues for the BSD port, as far as my (like everybode else's) limited free time allows me. Unfortunately, I'm still a noob at BSD internals and can't really help with much apart from that. /Magnus > > An alternative to pushing this code into the JDK 9 mainline is of > course to push it to the bsd-port/jdk9 repo (given that the owners of > that repo approves), but that seems like a less favourable solution. > Having the code in the mainline does not mean that it gets tested > automatically, but it means that it will be part of e.g. refactoring, > that would otherwise break a downstream patchset. > > I cc:ed this conversation to the bsd-port-dev@openjdk.java.net mailing > list, but never got any kind of official response there. Since this > list seems more active, I'm trying here instead. :) > > So, I'm offering two patches here, one that applies to the build > system, is nice and clean, and possible to integrate into JDK 9 > mainline, if my collegues are convinced that someone is backing up the > BSD port. And there's a second patch, which fixes broken C/C++/Java > code and results in a product that can at least run "javac > HelloWorld", but this is not yet clean enough for integration anywere, > at least not the JDK 9 mainline. (I don't know enough of the BSD > internals to fix all problems, so there's some "#if 0" code here and > there.) > > /Magnus > > _______________________________________________ > freebsd-java@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@freebsd.org Sun Jan 31 15:27:03 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ADF6CA73F09 for ; Sun, 31 Jan 2016 15:27:03 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9910491E for ; Sun, 31 Jan 2016 15:27:03 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: by mailman.ysv.freebsd.org (Postfix) id 95C5AA73F08; Sun, 31 Jan 2016 15:27:03 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C043A73F07 for ; Sun, 31 Jan 2016 15:27:03 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from mail.timestudybuddy.com (mail.timestudybuddy.com [72.29.186.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 20DB591D for ; Sun, 31 Jan 2016 15:27:01 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from [192.168.0.2] (66-169-227-8.dhcp.gvrb.ca.charter.com [66.169.227.8]) (authenticated bits=0) by mail.timestudybuddy.com (8.15.2/8.14.9) with ESMTPSA id u0VEnbTa087779 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 31 Jan 2016 06:49:41 -0800 (PST) (envelope-from openjdk@getsnappy.com) X-Authentication-Warning: mailA.getsnappy.com: Host 66-169-227-8.dhcp.gvrb.ca.charter.com [66.169.227.8] claimed to be [192.168.0.2] Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Helping out with JDK 9 on BSD From: Brian Gardner In-Reply-To: <56ADE943.6020103@oracle.com> Date: Sun, 31 Jan 2016 06:57:26 -0800 Cc: java@freebsd.org Message-Id: <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> To: Magnus Ihse Bursie X-Mailer: Apple Mail (2.3112) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2016 15:27:03 -0000 I=E2=80=99m interested in helping. I ported openjdk6 to freebsd and = also helped out with openjdk8. Brian Gardner > On Jan 31, 2016, at 3:00 AM, Magnus Ihse Bursie = wrote: >=20 > On 2016-01-31 11:54, Magnus Ihse Bursie wrote: >> Hi, >>=20 >> [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but it's = not clear where to put them, or how.] >>=20 >> I'm working at Oracle on the OpenJDK build team and is responsible = for large parts of the build system of OpenJDK. Lately, I've been = playing around with FreeBSD (and other BSDs) in my free time, and I've = written a patch that will add build system support for FreeBSD, OpenBSD = and NetBSD in JDK 9 (tracked in = https://bugs.openjdk.java.net/browse/JDK-8147795). >>=20 >> I started writing this when I realized that the jdk9 branch in the = OpenJDK bsd-port repository did not contain any BSD-specific changes at = all, and the old JDK 8 changes will not readily be portable, due to = major changes in the build system between JDK 8 and JDK 9. >>=20 >> I thought it would be a no-brainer to integrate these changes into = the JDK 9 mainline, so they would be in place for whenever you guys = would start to attack porting the code base. However, some of my = collegues thought otherwise. The end result, I think, is that they = wanted to see someone (not necessarily a company, the FreeBSD = organisation for instance seemed to be okay), to step forward and say = "we take responsibility for the BSD port", and give some kind of = commitment to actually use these build changes in producing a viable = port. You can read the mail conversation here: = http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html >=20 > I forgot to add that I'm willing to help with build issues for the BSD = port, as far as my (like everybode else's) limited free time allows me. = Unfortunately, I'm still a noob at BSD internals and can't really help = with much apart from that. >=20 > /Magnus >=20 >=20 >>=20 >> An alternative to pushing this code into the JDK 9 mainline is of = course to push it to the bsd-port/jdk9 repo (given that the owners of = that repo approves), but that seems like a less favourable solution. = Having the code in the mainline does not mean that it gets tested = automatically, but it means that it will be part of e.g. refactoring, = that would otherwise break a downstream patchset. >>=20 >> I cc:ed this conversation to the bsd-port-dev@openjdk.java.net = mailing list, but never got any kind of official response there. Since = this list seems more active, I'm trying here instead. :) >>=20 >> So, I'm offering two patches here, one that applies to the build = system, is nice and clean, and possible to integrate into JDK 9 = mainline, if my collegues are convinced that someone is backing up the = BSD port. And there's a second patch, which fixes broken C/C++/Java code = and results in a product that can at least run "javac HelloWorld", but = this is not yet clean enough for integration anywere, at least not the = JDK 9 mainline. (I don't know enough of the BSD internals to fix all = problems, so there's some "#if 0" code here and there.) >>=20 >> /Magnus >>=20 >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-java@freebsd.org mailing = list > https://lists.freebsd.org/mailman/listinfo/freebsd-java = > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org = " From owner-freebsd-java@freebsd.org Mon Feb 1 00:01:04 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 046AAA740D6 for ; Mon, 1 Feb 2016 00:01:04 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E35BB1B02 for ; Mon, 1 Feb 2016 00:01:03 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: by mailman.ysv.freebsd.org (Postfix) id E1C06A740D5; Mon, 1 Feb 2016 00:01:03 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C761BA740D4 for ; Mon, 1 Feb 2016 00:01:03 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from mail.timestudybuddy.com (mail.timestudybuddy.com [72.29.186.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AA1C11B00 for ; Mon, 1 Feb 2016 00:01:02 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from [192.168.0.2] (66-169-227-8.dhcp.gvrb.ca.charter.com [66.169.227.8]) (authenticated bits=0) by mail.timestudybuddy.com (8.15.2/8.14.9) with ESMTPSA id u0VNr1c3014789 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 31 Jan 2016 15:53:02 -0800 (PST) (envelope-from openjdk@getsnappy.com) X-Authentication-Warning: mailA.getsnappy.com: Host 66-169-227-8.dhcp.gvrb.ca.charter.com [66.169.227.8] claimed to be [192.168.0.2] Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Helping out with JDK 9 on BSD From: Brian Gardner In-Reply-To: <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> Date: Sun, 31 Jan 2016 16:00:54 -0800 Cc: java@freebsd.org Message-Id: <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> To: Magnus Ihse Bursie X-Mailer: Apple Mail (2.3112) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 00:01:04 -0000 Hi Magnus, I was able to clone the jdk9/dev repo, apply your patches, and compile = on FreeBSD 10.1 amd64, with some changes to the Serviceability Agent = ported from bad-port/jdk8 repo, however when I try to run javac I get a = bunch of messages like: Thread 832744400 has exited with leftover thread-specific data after 4 = destructor iterations I=E2=80=99m curious where you left off in getting "javac HelloWorld=E2=80=9D= working on FreeBSD? Brian Gardner > On Jan 31, 2016, at 6:57 AM, Brian Gardner = wrote: >=20 > I=E2=80=99m interested in helping. I ported openjdk6 to freebsd and = also helped out with openjdk8. >=20 > Brian Gardner >=20 >=20 >> On Jan 31, 2016, at 3:00 AM, Magnus Ihse Bursie = > = wrote: >>=20 >> On 2016-01-31 11:54, Magnus Ihse Bursie wrote: >>> Hi, >>>=20 >>> [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but it's = not clear where to put them, or how.] >>>=20 >>> I'm working at Oracle on the OpenJDK build team and is responsible = for large parts of the build system of OpenJDK. Lately, I've been = playing around with FreeBSD (and other BSDs) in my free time, and I've = written a patch that will add build system support for FreeBSD, OpenBSD = and NetBSD in JDK 9 (tracked in = https://bugs.openjdk.java.net/browse/JDK-8147795). >>>=20 >>> I started writing this when I realized that the jdk9 branch in the = OpenJDK bsd-port repository did not contain any BSD-specific changes at = all, and the old JDK 8 changes will not readily be portable, due to = major changes in the build system between JDK 8 and JDK 9. >>>=20 >>> I thought it would be a no-brainer to integrate these changes into = the JDK 9 mainline, so they would be in place for whenever you guys = would start to attack porting the code base. However, some of my = collegues thought otherwise. The end result, I think, is that they = wanted to see someone (not necessarily a company, the FreeBSD = organisation for instance seemed to be okay), to step forward and say = "we take responsibility for the BSD port", and give some kind of = commitment to actually use these build changes in producing a viable = port. You can read the mail conversation here: = http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html >>=20 >> I forgot to add that I'm willing to help with build issues for the = BSD port, as far as my (like everybode else's) limited free time allows = me. Unfortunately, I'm still a noob at BSD internals and can't really = help with much apart from that. >>=20 >> /Magnus >>=20 >>=20 >>>=20 >>> An alternative to pushing this code into the JDK 9 mainline is of = course to push it to the bsd-port/jdk9 repo (given that the owners of = that repo approves), but that seems like a less favourable solution. = Having the code in the mainline does not mean that it gets tested = automatically, but it means that it will be part of e.g. refactoring, = that would otherwise break a downstream patchset. >>>=20 >>> I cc:ed this conversation to the bsd-port-dev@openjdk.java.net = mailing list, but never got any kind of official response there. Since = this list seems more active, I'm trying here instead. :) >>>=20 >>> So, I'm offering two patches here, one that applies to the build = system, is nice and clean, and possible to integrate into JDK 9 = mainline, if my collegues are convinced that someone is backing up the = BSD port. And there's a second patch, which fixes broken C/C++/Java code = and results in a product that can at least run "javac HelloWorld", but = this is not yet clean enough for integration anywere, at least not the = JDK 9 mainline. (I don't know enough of the BSD internals to fix all = problems, so there's some "#if 0" code here and there.) >>>=20 >>> /Magnus >>>=20 >>> _______________________________________________ >>> freebsd-java@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org" >>=20 >> _______________________________________________ >> freebsd-java@freebsd.org = > = mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-java = = > >> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org = = >" >=20 > _______________________________________________ > freebsd-java@freebsd.org mailing = list > https://lists.freebsd.org/mailman/listinfo/freebsd-java = > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org = " From owner-freebsd-java@freebsd.org Mon Feb 1 12:00:40 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 071CCA9709F for ; Mon, 1 Feb 2016 12:00:40 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E0F77D55 for ; Mon, 1 Feb 2016 12:00:39 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id DD8AAA9709E; Mon, 1 Feb 2016 12:00:39 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD164A9709D for ; Mon, 1 Feb 2016 12:00:39 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "aserp1040.oracle.com", Issuer "Oracle SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 767EAD51 for ; Mon, 1 Feb 2016 12:00:39 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u11C0UGc027716 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Feb 2016 12:00:30 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u11C0UGf032310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 1 Feb 2016 12:00:30 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u11C0UED021562; Mon, 1 Feb 2016 12:00:30 GMT Received: from [10.161.190.202] (/10.161.190.202) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 01 Feb 2016 04:00:29 -0800 Subject: Re: Helping out with JDK 9 on BSD To: Brian Gardner References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> Cc: java@freebsd.org From: Magnus Ihse Bursie Message-ID: <56AF48F1.4070506@oracle.com> Date: Mon, 1 Feb 2016 13:00:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> X-Source-IP: aserv0022.oracle.com [141.146.126.234] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 12:00:40 -0000 On 2016-02-01 01:00, Brian Gardner wrote: > Hi Magnus, > I was able to clone the jdk9/dev repo, apply your patches, and compile > on FreeBSD 10.1 amd64, with some changes to the Serviceability Agent > ported from bad-port/jdk8 repo, however when I try to run javac I get > a bunch of messages like: > Thread 832744400 has exited with leftover thread-specific data after 4 > destructor iterations > > I’m curious where you left off in getting "javac HelloWorld” working > on FreeBSD? Somewhere around there. :-) I got it "working" on FreeBSD, OpenBSD and NetBSD, with some caveats. I did not say it worked perfectly. :) I don't remember exactly right now what workarounds were needed in what circumstances, but on one of the platforms I needed to set LD_LIBRARY_PATH, and on some other I needed to set an -X option to specify memory sizes (which were not correctly read from the system). The message you describe is a warning due to lack of proper code to cleanup some kind of TLS data, if I remember correctly. It's harmless, but annoying. The fix is relative straightforward, but I didn't bother doing it. /Magnus > > Brian Gardner > > > >> On Jan 31, 2016, at 6:57 AM, Brian Gardner > > wrote: >> >> I’m interested in helping. I ported openjdk6 to freebsd and also >> helped out with openjdk8. >> >> Brian Gardner >> >> >>> On Jan 31, 2016, at 3:00 AM, Magnus Ihse Bursie >>> >> > wrote: >>> >>> On 2016-01-31 11:54, Magnus Ihse Bursie wrote: >>>> Hi, >>>> >>>> [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but it's >>>> not clear where to put them, or how.] >>>> >>>> I'm working at Oracle on the OpenJDK build team and is responsible >>>> for large parts of the build system of OpenJDK. Lately, I've been >>>> playing around with FreeBSD (and other BSDs) in my free time, and >>>> I've written a patch that will add build system support for >>>> FreeBSD, OpenBSD and NetBSD in JDK 9 (tracked in >>>> https://bugs.openjdk.java.net/browse/JDK-8147795). >>>> >>>> I started writing this when I realized that the jdk9 branch in the >>>> OpenJDK bsd-port repository did not contain any BSD-specific >>>> changes at all, and the old JDK 8 changes will not readily be >>>> portable, due to major changes in the build system between JDK 8 >>>> and JDK 9. >>>> >>>> I thought it would be a no-brainer to integrate these changes into >>>> the JDK 9 mainline, so they would be in place for whenever you guys >>>> would start to attack porting the code base. However, some of my >>>> collegues thought otherwise. The end result, I think, is that they >>>> wanted to see someone (not necessarily a company, the FreeBSD >>>> organisation for instance seemed to be okay), to step forward and >>>> say "we take responsibility for the BSD port", and give some kind >>>> of commitment to actually use these build changes in producing a >>>> viable port. You can read the mail conversation here: >>>> http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html >>> >>> I forgot to add that I'm willing to help with build issues for the >>> BSD port, as far as my (like everybode else's) limited free time >>> allows me. Unfortunately, I'm still a noob at BSD internals and >>> can't really help with much apart from that. >>> >>> /Magnus >>> >>> >>>> >>>> An alternative to pushing this code into the JDK 9 mainline is of >>>> course to push it to the bsd-port/jdk9 repo (given that the owners >>>> of that repo approves), but that seems like a less favourable >>>> solution. Having the code in the mainline does not mean that it >>>> gets tested automatically, but it means that it will be part of >>>> e.g. refactoring, that would otherwise break a downstream patchset. >>>> >>>> I cc:ed this conversation to the bsd-port-dev@openjdk.java.net >>>> mailing list, but never got >>>> any kind of official response there. Since this list seems more >>>> active, I'm trying here instead. :) >>>> >>>> So, I'm offering two patches here, one that applies to the build >>>> system, is nice and clean, and possible to integrate into JDK 9 >>>> mainline, if my collegues are convinced that someone is backing up >>>> the BSD port. And there's a second patch, which fixes broken >>>> C/C++/Java code and results in a product that can at least run >>>> "javac HelloWorld", but this is not yet clean enough for >>>> integration anywere, at least not the JDK 9 mainline. (I don't know >>>> enough of the BSD internals to fix all problems, so there's some >>>> "#if 0" code here and there.) >>>> >>>> /Magnus >>>> >>>> _______________________________________________ >>>> freebsd-java@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>>> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" >>> >>> _______________________________________________ >>> freebsd-java@freebsd.org >>> >>> mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>> To unsubscribe, send any mail to >>> "freebsd-java-unsubscribe@freebsd.org >>> " >> >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to >> "freebsd-java-unsubscribe@freebsd.org >> " > From owner-freebsd-java@freebsd.org Mon Feb 1 15:46:56 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2CDE2A97521 for ; Mon, 1 Feb 2016 15:46:56 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 11A181FCD for ; Mon, 1 Feb 2016 15:46:56 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0ED13A97520; Mon, 1 Feb 2016 15:46:56 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8B90A9751F for ; Mon, 1 Feb 2016 15:46:55 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from mail.timestudybuddy.com (mail.timestudybuddy.com [72.29.186.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8F5621FCC for ; Mon, 1 Feb 2016 15:46:55 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from [192.168.0.2] (66-169-227-8.dhcp.gvrb.ca.charter.com [66.169.227.8]) (authenticated bits=0) by mail.timestudybuddy.com (8.15.2/8.14.9) with ESMTPSA id u11Fcf2C040128 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Feb 2016 07:38:47 -0800 (PST) (envelope-from openjdk@getsnappy.com) X-Authentication-Warning: mailA.getsnappy.com: Host 66-169-227-8.dhcp.gvrb.ca.charter.com [66.169.227.8] claimed to be [192.168.0.2] Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Helping out with JDK 9 on BSD From: Brian Gardner In-Reply-To: <56AF48F1.4070506@oracle.com> Date: Mon, 1 Feb 2016 07:46:32 -0800 Cc: java@freebsd.org Message-Id: <0B79DC9D-2379-4B42-9923-0ECC7CB28D22@getsnappy.com> References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> <56AF48F1.4070506@oracle.com> To: Magnus Ihse Bursie X-Mailer: Apple Mail (2.3112) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 15:46:56 -0000 Hi Magnus, I=E2=80=99ve been looking into it further and it lead me to a couple of = change sets: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/469835cd5494 = and then this change set: http://hg.openjdk.java.net/jdk9/dev/hotspot/rev/f7dc8eebc3f5 = The second change set titled, Replace ThreadLocalStorage with = compiler/language-based thread-local variables, seems to add in logic for doing compiler based thread local storage = THREAD_LOCAL_DECL, but fails to actually replace the ThreadLocalStorage = usage when persisting the current thread. I couldn=E2=80=99t understand = why you would want to persist both ways. In any case it seemed = harmless, and I=E2=80=99m trying to get gdb working with my images so I = can debug the TLS issue further. =20 It sounds like you already have an idea how to fix it though. Any ideas = or pointers would be greatly appreciated. Brian Gardner > On Feb 1, 2016, at 4:00 AM, Magnus Ihse Bursie = wrote: >=20 > On 2016-02-01 01:00, Brian Gardner wrote: >> Hi Magnus, >> I was able to clone the jdk9/dev repo, apply your patches, and = compile on FreeBSD 10.1 amd64, with some changes to the Serviceability = Agent ported from bad-port/jdk8 repo, however when I try to run javac I = get a bunch of messages like: >> Thread 832744400 has exited with leftover thread-specific data after = 4 destructor iterations >>=20 >> I=E2=80=99m curious where you left off in getting "javac = HelloWorld=E2=80=9D working on FreeBSD? >=20 > Somewhere around there. :-) I got it "working" on FreeBSD, OpenBSD and = NetBSD, with some caveats. I did not say it worked perfectly. :) I don't = remember exactly right now what workarounds were needed in what = circumstances, but on one of the platforms I needed to set = LD_LIBRARY_PATH, and on some other I needed to set an -X option to = specify memory sizes (which were not correctly read from the system). >=20 > The message you describe is a warning due to lack of proper code to = cleanup some kind of TLS data, if I remember correctly. It's harmless, = but annoying. The fix is relative straightforward, but I didn't bother = doing it. >=20 > /Magnus >=20 >>=20 >> Brian Gardner >>=20 >>=20 >>=20 >>> On Jan 31, 2016, at 6:57 AM, Brian Gardner < = openjdk@getsnappy.com = > wrote: >>>=20 >>> I=E2=80=99m interested in helping. I ported openjdk6 to freebsd and = also helped out with openjdk8. >>>=20 >>> Brian Gardner >>>=20 >>>=20 >>>> On Jan 31, 2016, at 3:00 AM, Magnus Ihse Bursie < = magnus.ihse.bursie@oracle.com = > wrote: >>>>=20 >>>> On 2016-01-31 11:54, Magnus Ihse Bursie wrote: >>>>> Hi, >>>>>=20 >>>>> [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but it's = not clear where to put them, or how.] >>>>>=20 >>>>> I'm working at Oracle on the OpenJDK build team and is responsible = for large parts of the build system of OpenJDK. Lately, I've been = playing around with FreeBSD (and other BSDs) in my free time, and I've = written a patch that will add build system support for FreeBSD, OpenBSD = and NetBSD in JDK 9 (tracked in = https://bugs.openjdk.jav= a.net/browse/JDK-8147795 = ). >>>>>=20 >>>>> I started writing this when I realized that the jdk9 branch in the = OpenJDK bsd-port repository did not contain any BSD-specific changes at = all, and the old JDK 8 changes will not readily be portable, due to = major changes in the build system between JDK 8 and JDK 9. >>>>>=20 >>>>> I thought it would be a no-brainer to integrate these changes into = the JDK 9 mainline, so they would be in place for whenever you guys = would start to attack porting the code base. However, some of my = collegues thought otherwise. The end result, I think, is that they = wanted to see someone (not necessarily a company, the FreeBSD = organisation for instance seemed to be okay), to step forward and say = "we take responsibility for the BSD port", and give some kind of = commitment to actually use these build changes in producing a viable = port. You can read the mail conversation here: = http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html= = >>>>=20 >>>> I forgot to add that I'm willing to help with build issues for the = BSD port, as far as my (like everybode else's) limited free time allows = me. Unfortunately, I'm still a noob at BSD internals and can't really = help with much apart from that. >>>>=20 >>>> /Magnus >>>>=20 >>>>=20 >>>>>=20 >>>>> An alternative to pushing this code into the JDK 9 mainline is of = course to push it to the bsd-port/jdk9 repo (given that the owners of = that repo approves), but that seems like a less favourable solution. = Having the code in the mainline does not mean that it gets tested = automatically, but it means that it will be part of e.g. refactoring, = that would otherwise break a downstream patchset. >>>>>=20 >>>>> I cc:ed this conversation to the = bsd-port-dev@openjdk.java.net = mailing list, but never got any = kind of official response there. Since this list seems more active, I'm = trying here instead. :) >>>>>=20 >>>>> So, I'm offering two patches here, one that applies to the build = system, is nice and clean, and possible to integrate into JDK 9 = mainline, if my collegues are convinced that someone is backing up the = BSD port. And there's a second patch, which fixes broken C/C++/Java code = and results in a product that can at least run "javac HelloWorld", but = this is not yet clean enough for integration anywere, at least not the = JDK 9 mainline. (I don't know enough of the BSD internals to fix all = problems, so there's some "#if 0" code here and there.) >>>>>=20 >>>>> /Magnus >>>>>=20 >>>>> _______________________________________________ >>>>> freebsd-java@freebsd.org mailing = list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-java = >>>>> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org" = >>>>=20 >>>> _______________________________________________ >>>> freebsd-java@freebsd.org < = mailto:freebsd-java@freebsd.org = > mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-java = < = https://lists.fre= ebsd.org/mailman/listinfo/freebsd-java = > >>>> To unsubscribe, send any mail to " = freebsd-java-unsubscribe@free= bsd.org < = mailto:freebsd-java-unsubscri= be@freebsd.org >" >>>=20 >>> _______________________________________________ >>> freebsd-java@freebsd.org mailing = list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-java = >>> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org = " >>=20 >=20 From owner-freebsd-java@freebsd.org Mon Feb 1 22:11:12 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0EE60A98A19 for ; Mon, 1 Feb 2016 22:11:12 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E978210B9 for ; Mon, 1 Feb 2016 22:11:11 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id E6B95A98A18; Mon, 1 Feb 2016 22:11:11 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E530FA98A17 for ; Mon, 1 Feb 2016 22:11:11 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "aserp1040.oracle.com", Issuer "Oracle SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A304710B8 for ; Mon, 1 Feb 2016 22:11:11 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u11MB8QO029348 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Feb 2016 22:11:09 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u11MB89l000625 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 1 Feb 2016 22:11:08 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u11MB8Jl031159; Mon, 1 Feb 2016 22:11:08 GMT Received: from [10.175.174.162] (/10.175.174.162) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 01 Feb 2016 14:11:07 -0800 Subject: Re: Helping out with JDK 9 on BSD To: Brian Gardner References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> <56AF48F1.4070506@oracle.com> <0B79DC9D-2379-4B42-9923-0ECC7CB28D22@getsnappy.com> Cc: java@freebsd.org From: Magnus Ihse Bursie Message-ID: <56AFD7FA.3090103@oracle.com> Date: Mon, 1 Feb 2016 23:11:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <0B79DC9D-2379-4B42-9923-0ECC7CB28D22@getsnappy.com> X-Source-IP: aserv0022.oracle.com [141.146.126.234] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 22:11:12 -0000 From owner-freebsd-java@freebsd.org Mon Feb 1 22:21:59 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2AD32A98EBD for ; Mon, 1 Feb 2016 22:21:59 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1187D1BA8 for ; Mon, 1 Feb 2016 22:21:59 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0382CA98EBC; Mon, 1 Feb 2016 22:21:59 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03167A98EBB for ; Mon, 1 Feb 2016 22:21:59 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "userp1040.oracle.com", Issuer "Oracle SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B9DF71BA7 for ; Mon, 1 Feb 2016 22:21:58 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u11MLo59006250 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Feb 2016 22:21:50 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u11MLooJ009520 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 1 Feb 2016 22:21:50 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u11MLndY011354; Mon, 1 Feb 2016 22:21:49 GMT Received: from [10.175.174.162] (/10.175.174.162) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 01 Feb 2016 14:21:49 -0800 Subject: Re: Helping out with JDK 9 on BSD To: Brian Gardner References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> <56AF48F1.4070506@oracle.com> <0B79DC9D-2379-4B42-9923-0ECC7CB28D22@getsnappy.com> <56AFD7FA.3090103@oracle.com> Cc: java@freebsd.org From: Magnus Ihse Bursie Message-ID: <56AFDA78.60701@oracle.com> Date: Mon, 1 Feb 2016 23:21:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <56AFD7FA.3090103@oracle.com> X-Source-IP: userv0021.oracle.com [156.151.31.71] MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 22:21:59 -0000 From owner-freebsd-java@freebsd.org Mon Feb 1 22:29:10 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C17C5A76202 for ; Mon, 1 Feb 2016 22:29:10 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A8A941ED3 for ; Mon, 1 Feb 2016 22:29:10 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id A60A6A76201; Mon, 1 Feb 2016 22:29:10 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5A96A76200 for ; Mon, 1 Feb 2016 22:29:10 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "userp1040.oracle.com", Issuer "Oracle SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 510781ED2 for ; Mon, 1 Feb 2016 22:29:10 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u11MT8EJ015197 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Feb 2016 22:29:08 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u11MT77p018277 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 1 Feb 2016 22:29:08 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u11MT7dH007949; Mon, 1 Feb 2016 22:29:07 GMT Received: from [10.175.174.162] (/10.175.174.162) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 01 Feb 2016 14:29:07 -0800 Subject: Re: Helping out with JDK 9 on BSD To: Brian Gardner References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> <56AF48F1.4070506@oracle.com> <0B79DC9D-2379-4B42-9923-0ECC7CB28D22@getsnappy.com> <56AFD7FA.3090103@oracle.com> Cc: java@freebsd.org From: Magnus Ihse Bursie Message-ID: <56AFDC30.7070800@oracle.com> Date: Mon, 1 Feb 2016 23:29:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56AFD7FA.3090103@oracle.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 22:29:10 -0000 On 2016-02-01 23:11, Magnus Ihse Bursie wrote: > _______________________________________________ > freebsd-java@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" I'm not sure what's happening here. My emails are being stripped of content. :-( I'll try to resend using my private SMTP server. /Magnus From owner-freebsd-java@freebsd.org Mon Feb 1 22:34:51 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D40C7A7641B for ; Mon, 1 Feb 2016 22:34:51 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BC10F2E3 for ; Mon, 1 Feb 2016 22:34:51 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id BB405A7641A; Mon, 1 Feb 2016 22:34:51 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A10AEA76419 for ; Mon, 1 Feb 2016 22:34:51 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from manu26.manufrog.com (manu26.manufrog.com [67.23.251.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6B2C42E2 for ; Mon, 1 Feb 2016 22:34:51 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from h-217-42.a357.priv.bahnhof.se ([81.170.217.42]:55296 helo=[192.168.7.17]) by manu26.manufrog.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.86) (envelope-from ) id 1aQN3Z-003JCm-Eo; Mon, 01 Feb 2016 23:34:49 +0100 Subject: Re: Helping out with JDK 9 on BSD To: Brian Gardner References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> <56AF48F1.4070506@oracle.com> <0B79DC9D-2379-4B42-9923-0ECC7CB28D22@getsnappy.com> <56AFD7FA.3090103@oracle.com> <56AFDA78.60701@oracle.com> Cc: java@freebsd.org From: Magnus Ihse Bursie Message-ID: <56AFDD87.6090508@oracle.com> Date: Mon, 1 Feb 2016 23:34:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <56AFDA78.60701@oracle.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - manu26.manufrog.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - oracle.com X-Get-Message-Sender-Via: manu26.manufrog.com: authenticated_id: magnus@ihse.net X-Authenticated-Sender: manu26.manufrog.com: magnus@ihse.net X-Source: X-Source-Args: X-Source-Dir: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 22:34:52 -0000 From owner-freebsd-java@freebsd.org Mon Feb 1 22:55:50 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 09ECBA76D39 for ; Mon, 1 Feb 2016 22:55:50 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E5717F07 for ; Mon, 1 Feb 2016 22:55:49 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id E4689A76D36; Mon, 1 Feb 2016 22:55:49 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3FCAA76D34 for ; Mon, 1 Feb 2016 22:55:49 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "userp1040.oracle.com", Issuer "Oracle SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B9C8FF06 for ; Mon, 1 Feb 2016 22:55:49 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u11MtllQ011192 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Feb 2016 22:55:47 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u11Mtk5Y020050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 1 Feb 2016 22:55:47 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u11MtkAs020265; Mon, 1 Feb 2016 22:55:46 GMT Received: from [192.168.7.17] (/81.170.217.42) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 01 Feb 2016 14:55:45 -0800 Subject: Re: Helping out with JDK 9 on BSD To: Brian Gardner References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> <56AF48F1.4070506@oracle.com> <0B79DC9D-2379-4B42-9923-0ECC7CB28D22@getsnappy.com> <56AFD7FA.3090103@oracle.com> <56AFDC30.7070800@oracle.com> Cc: java@freebsd.org From: Magnus Ihse Bursie Message-ID: <56AFE270.5010502@oracle.com> Date: Mon, 1 Feb 2016 23:55:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56AFDC30.7070800@oracle.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 22:55:50 -0000 On 2016-02-01 23:29, Magnus Ihse Bursie wrote: > On 2016-02-01 23:11, Magnus Ihse Bursie wrote: >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > I'm not sure what's happening here. My emails are being stripped of > content. :-( I'll try to resend using my private SMTP server. Didn't work either. I give up. Seems the content is filtered by mailman? :( I'll try to post a few highlights anyway: This might be due to a different interpretation/implementation of pthreads in FreeBSD, see e.g. https://lists.freebsd.org/pipermail/freebsd-threads/2009-June/004563.html. I can't really say this situation applies (I can't find usages of pthread_key_delete) but maybe there's a similar issue. One approach would be to compile a debug build (configure --enable-debug) and see if the "initializing TLS more than once" assert is triggered. Or try recompiling with -DUSE_LIBRARY_BASED_TLS_ONLY. I don't think it should matter, but maybe. /Magnus > > /Magnus > _______________________________________________ > freebsd-java@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@freebsd.org Mon Feb 1 23:02:36 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1D1E9A76FD7 for ; Mon, 1 Feb 2016 23:02:36 +0000 (UTC) (envelope-from magnus@ihse.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 03B691223 for ; Mon, 1 Feb 2016 23:02:36 +0000 (UTC) (envelope-from magnus@ihse.net) Received: by mailman.ysv.freebsd.org (Postfix) id 02193A76FD6; Mon, 1 Feb 2016 23:02:36 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 019CDA76FD5 for ; Mon, 1 Feb 2016 23:02:36 +0000 (UTC) (envelope-from magnus@ihse.net) Received: from manu26.manufrog.com (manu26.manufrog.com [67.23.251.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BB5FA1222 for ; Mon, 1 Feb 2016 23:02:35 +0000 (UTC) (envelope-from magnus@ihse.net) Received: from h-217-42.a357.priv.bahnhof.se ([81.170.217.42]:52224 helo=[192.168.7.18]) by manu26.manufrog.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.86) (envelope-from ) id 1aQN10-003IjY-4Z; Mon, 01 Feb 2016 23:32:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> <56AF48F1.4070506@oracle.com> <0B79DC9D-2379-4B42-9923-0ECC7CB28D22@getsnappy.com> <56AFD7FA.3090103@oracle.com> In-Reply-To: <56AFD7FA.3090103@oracle.com> Mime-Version: 1.0 Message-Id: Cc: java@freebsd.org X-Mailer: iPhone Mail (13A452) From: Magnus Ihse Bursie Subject: Re: Helping out with JDK 9 on BSD Date: Mon, 1 Feb 2016 23:32:07 +0100 To: Brian Gardner X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - manu26.manufrog.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - ihse.net X-Get-Message-Sender-Via: manu26.manufrog.com: authenticated_id: magnus@ihse.net X-Authenticated-Sender: manu26.manufrog.com: magnus@ihse.net X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 23:02:36 -0000 Resending.=20 /Magnus > On 2016-02-01 23:11, Magnus Ihse Bursie wrote: > _______________________________________________ > freebsd-java@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" I'm not sure what happened there. Here is what I sent: > On 2016-02-01 16:46, Brian Gardner wrote: > Hi Magnus, > I=E2=80=99ve been looking into it further and it lead me to a couple of ch= ange sets: > http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/469835cd5494 > and then this change set: > http://hg.openjdk.java.net/jdk9/dev/hotspot/rev/f7dc8eebc3f5 >=20 > The second change set titled, Replace ThreadLocalStorage with compiler/la= nguage-based thread-local variables, > seems to add in logic for doing compiler based thread local storage THREAD= _LOCAL_DECL, but fails to actually replace the ThreadLocalStorage usage when= persisting the current thread. I couldn=E2=80=99t understand why you would= want to persist both ways.=20 I believe the reason for this is given in the bug description (https://bugs.= openjdk.java.net/browse/JDK-8132510): "The code underpinning __thread use is not async-signal-safe, which is not r= eally a surprise as pthread_get/setspecific are not designated async-signal-= safe either. [...] So I've reinstated a very basic ThreadLocalStorage class which will only nee= d two implementations: a POSIX one, and a Windows one. This class is always i= nitialized and ThreadLocalStorage::thread() is used from the signal handlers= (as today). " > In any case it seemed harmless, and I=E2=80=99m trying to get gdb working= with my images so I can debug the TLS issue further. =20 >=20 > It sounds like you already have an idea how to fix it though. Any ideas o= r pointers would be greatly appreciated. I think you've dug up about as much as I did. I believe the main cause for t= he problems is JDK-8132510 (the second of your changesets) which rewrote the= entire infrastructure on how TLS is used in hotspot. And this was not teste= d on bsd. I know it took some iterations to get it right on the platforms it= was tested on. I think one approach is to study this changeset more in deta= il on how linux and macosx is handled, which will likely give some hints on w= hat's missing for bsd. It seems you've might have been finding some discrepa= ncies already.=20 The first of your changesets indicate a way this same problem was fixed prev= iously. It seems to me that this fix (creating the key with a restore_thread= _pointer callback) is implemented in JDK-8132510, but maybe it doesn't work.= Perhaps there is some difference in the implementation of this on FreeBSD? = =46rom the manpage for pthread_key_create I read: If, after all the destructors have been called for all non-NULL values with associated destructors, there are still some non-NULL values with associated destructors, then the process is repeated. If, after at lea= st [PTHREAD_DESTRUCTOR_ITERATIONS] iterations of destructor calls for out-= standing non-NULL values, there are still some non-NULL values with ass= o- ciated destructors, the implementation stops calling destructors. It seems that PTHREAD_DESTRUCTOR_ITERATIONS is 4 on FreeBSD. Maybe it's l= arger on other systems? (Checking on my Ubuntu, I read 4 there as well). Hm,= so maybe something is iterating out of control here. I have some ideas of it's cause, at least. I'll provide what info I have. This was (probably) introduced by JDK-8132510 (the second of your changesets= ), which rewrote the entire infrastructure on how TLS is used in hotspot. An= d this was not adapted to bsd. I think one approach is to study this changes= et more in detail on how linux and macosx is handled, which will likely give= some hints on what's missing for bsd. I'm currently trying to recompile with -DUSE_LIBRARY_BASED_TLS_ONLY, to see i= f that modifies the behavior. I don't really think it will, but if it does, i= t'll shed some light on the problem. Another approach is to compile a debug build (configure --enable-debug) and s= ee if this assert is triggered: assert(!_initialized, "initializing TLS more than once!"); /Magnus From owner-freebsd-java@freebsd.org Tue Feb 2 15:35:50 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F49CA970FE for ; Tue, 2 Feb 2016 15:35:50 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id EC1701A83 for ; Tue, 2 Feb 2016 15:35:49 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: by mailman.ysv.freebsd.org (Postfix) id E9874A970FD; Tue, 2 Feb 2016 15:35:49 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0E5EA970FC for ; Tue, 2 Feb 2016 15:35:49 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from mail.timestudybuddy.com (mail.timestudybuddy.com [72.29.186.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BD9CA1A82 for ; Tue, 2 Feb 2016 15:35:49 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from [192.168.0.2] (66-169-227-8.dhcp.gvrb.ca.charter.com [66.169.227.8]) (authenticated bits=0) by mail.timestudybuddy.com (8.15.2/8.14.9) with ESMTPSA id u12FRjXo046847 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Feb 2016 07:27:47 -0800 (PST) (envelope-from openjdk@getsnappy.com) X-Authentication-Warning: mailA.getsnappy.com: Host 66-169-227-8.dhcp.gvrb.ca.charter.com [66.169.227.8] claimed to be [192.168.0.2] Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Helping out with JDK 9 on BSD From: Brian Gardner In-Reply-To: <56AFE270.5010502@oracle.com> Date: Tue, 2 Feb 2016 07:35:41 -0800 Cc: java@freebsd.org Message-Id: <48E788C9-8AE8-41EC-8AEC-54FD53B91B19@getsnappy.com> References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <08F78FBA-70D2-4819-99BB-05476638726C@getsnappy.com> <56AF48F1.4070506@oracle.com> <0B79DC9D-2379-4B42-9923-0ECC7CB28D22@getsnappy.com> <56AFD7FA.3090103@oracle.com> <56AFDC30.7070800@oracle.com> <56AFE270.5010502@oracle.com> To: Magnus Ihse Bursie X-Mailer: Apple Mail (2.3112) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2016 15:35:50 -0000 I=92ve been working on getting the debug build running. I=92m stuck on = a SIGBUS error trickling up from a new test, test_safefetch32 at = StubRoutines.cpp line:599. It seems like it=92s trying to test an = passing an invalid address but expects to get a response and to be able = to handle it, but can=92t. I haven=92t looked into the change sets yet = to determine what they are trying to achieve with this new code, and = what the expected behavior is. I=92ll continue with that tomorrow. Brian > On Feb 1, 2016, at 2:55 PM, Magnus Ihse Bursie = wrote: >=20 > On 2016-02-01 23:29, Magnus Ihse Bursie wrote: >> On 2016-02-01 23:11, Magnus Ihse Bursie wrote: >>> _______________________________________________ >>> freebsd-java@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org" >>=20 >> I'm not sure what's happening here. My emails are being stripped of = content. :-( I'll try to resend using my private SMTP server. > Didn't work either. I give up. Seems the content is filtered by = mailman? :( >=20 > I'll try to post a few highlights anyway: >=20 > This might be due to a different interpretation/implementation of = pthreads in FreeBSD, see e.g. = https://lists.freebsd.org/pipermail/freebsd-threads/2009-June/004563.html.= I can't really say this situation applies (I can't find usages of = pthread_key_delete) but maybe there's a similar issue. >=20 > One approach would be to compile a debug build (configure = --enable-debug) and see if the "initializing TLS more than once" assert = is triggered. >=20 > Or try recompiling with -DUSE_LIBRARY_BASED_TLS_ONLY. I don't think it = should matter, but maybe. >=20 > /Magnus >=20 >>=20 >> /Magnus >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org" >=20 From owner-freebsd-java@freebsd.org Wed Feb 3 03:41:02 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9379A99FE7 for ; Wed, 3 Feb 2016 03:41:02 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A4F3A6B2 for ; Wed, 3 Feb 2016 03:41:02 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: by mailman.ysv.freebsd.org (Postfix) id A331EA99FE6; Wed, 3 Feb 2016 03:41:02 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2C6FA99FE5 for ; Wed, 3 Feb 2016 03:41:02 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 542F06B1 for ; Wed, 3 Feb 2016 03:41:01 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) 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 u133esQB002025; Tue, 2 Feb 2016 19:40:54 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.15.2/8.15.2/Submit) id u133erbu002024; Tue, 2 Feb 2016 19:40:53 -0800 (PST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 2 Feb 2016 19:40:53 -0800 From: Greg Lewis To: Brian Gardner Cc: Magnus Ihse Bursie , java@freebsd.org Subject: Re: Helping out with JDK 9 on BSD Message-ID: <20160203034053.GA36170@misty.eyesbeyond.com> References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2016 03:41:02 -0000 On Sun, Jan 31, 2016 at 06:57:26AM -0800, Brian Gardner wrote: > I???m interested in helping. I ported openjdk6 to freebsd and also helped out with openjdk8. > > Brian Gardner I'd love to see as much of these changes get into the jdk9 mainline. My time is really limited for the next couple of weeks though. If it would help you or Magnus to use the bsd-port repo to stage changes then that would be great too. Let me do a merge to make sure it is up to date with mainline. Notionally we'd have to do a vote to get you both access I think? But I can shepherd changes in if that will help with sharing them. FWIW, in terms of taking responsibility, I've been regularly updating the repos for jdk8 and jdk7 for a couple of years. I'm happy to keep jdk9 building if that is what is being looked for there and also port more of the BSD changes for jdk8 as appropriate. - Greg > > On Jan 31, 2016, at 3:00 AM, Magnus Ihse Bursie wrote: > > > > On 2016-01-31 11:54, Magnus Ihse Bursie wrote: > >> Hi, > >> > >> [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but it's not clear where to put them, or how.] > >> > >> I'm working at Oracle on the OpenJDK build team and is responsible for large parts of the build system of OpenJDK. Lately, I've been playing around with FreeBSD (and other BSDs) in my free time, and I've written a patch that will add build system support for FreeBSD, OpenBSD and NetBSD in JDK 9 (tracked in https://bugs.openjdk.java.net/browse/JDK-8147795). > >> > >> I started writing this when I realized that the jdk9 branch in the OpenJDK bsd-port repository did not contain any BSD-specific changes at all, and the old JDK 8 changes will not readily be portable, due to major changes in the build system between JDK 8 and JDK 9. > >> > >> I thought it would be a no-brainer to integrate these changes into the JDK 9 mainline, so they would be in place for whenever you guys would start to attack porting the code base. However, some of my collegues thought otherwise. The end result, I think, is that they wanted to see someone (not necessarily a company, the FreeBSD organisation for instance seemed to be okay), to step forward and say "we take responsibility for the BSD port", and give some kind of commitment to actually use these build changes in producing a viable port. You can read the mail conversation here: http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html > > > > I forgot to add that I'm willing to help with build issues for the BSD port, as far as my (like everybode else's) limited free time allows me. Unfortunately, I'm still a noob at BSD internals and can't really help with much apart from that. > > > > /Magnus > > > > > >> > >> An alternative to pushing this code into the JDK 9 mainline is of course to push it to the bsd-port/jdk9 repo (given that the owners of that repo approves), but that seems like a less favourable solution. Having the code in the mainline does not mean that it gets tested automatically, but it means that it will be part of e.g. refactoring, that would otherwise break a downstream patchset. > >> > >> I cc:ed this conversation to the bsd-port-dev@openjdk.java.net mailing list, but never got any kind of official response there. Since this list seems more active, I'm trying here instead. :) > >> > >> So, I'm offering two patches here, one that applies to the build system, is nice and clean, and possible to integrate into JDK 9 mainline, if my collegues are convinced that someone is backing up the BSD port. And there's a second patch, which fixes broken C/C++/Java code and results in a product that can at least run "javac HelloWorld", but this is not yet clean enough for integration anywere, at least not the JDK 9 mainline. (I don't know enough of the BSD internals to fix all problems, so there's some "#if 0" code here and there.) > >> > >> /Magnus > >> > >> _______________________________________________ > >> freebsd-java@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-java > >> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > > _______________________________________________ > > freebsd-java@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-java > > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org " > > _______________________________________________ > freebsd-java@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@freebsd.org Thu Feb 4 00:31:20 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 226ACA9B47D for ; Thu, 4 Feb 2016 00:31:20 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0B8F27AC for ; Thu, 4 Feb 2016 00:31:20 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0B0E4A9B47C; Thu, 4 Feb 2016 00:31:20 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A70BA9B47B for ; Thu, 4 Feb 2016 00:31:20 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from mail.timestudybuddy.com (mail.timestudybuddy.com [72.29.186.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B01B77AB for ; Thu, 4 Feb 2016 00:31:19 +0000 (UTC) (envelope-from openjdk@getsnappy.com) Received: from [192.168.0.2] (66-169-227-8.dhcp.gvrb.ca.charter.com [66.169.227.8]) (authenticated bits=0) by mail.timestudybuddy.com (8.15.2/8.14.9) with ESMTPSA id u140LqZO046415 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Feb 2016 16:21:53 -0800 (PST) (envelope-from openjdk@getsnappy.com) X-Authentication-Warning: mailA.getsnappy.com: Host 66-169-227-8.dhcp.gvrb.ca.charter.com [66.169.227.8] claimed to be [192.168.0.2] Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Helping out with JDK 9 on BSD From: Brian Gardner In-Reply-To: <20160203034053.GA36170@misty.eyesbeyond.com> Date: Wed, 3 Feb 2016 16:29:50 -0800 Cc: java@freebsd.org, Magnus Ihse Bursie Message-Id: References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <20160203034053.GA36170@misty.eyesbeyond.com> To: Greg Lewis X-Mailer: Apple Mail (2.3112) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2016 00:31:20 -0000 Hi Greg, Great to hear from you, it=E2=80=99s been a while since I took on one of = these projects, but I do follow the java@freebsd mailing list and see = all the work you put in. I must tell you how greatly your work is = appreciated by me and I=E2=80=99m sure the rest of the community. I = have good news, with fairly minimal changes I have it compiling, = building HelloWorld, and running HelloWorld all without errors. I think it=E2=80=99ll break down into 4 change sets, NM - I ported some code from = bsd-port/jdk8/hotspot/make/bsd/makefiles/build_vm_def.sh that fixes a = compile error=20 SUPPORT_RESERVED_STACK_AREA - define SUPPORT_RESERVED_STACK_AREA for = _ALLBSD_SOURCE Serviceability Agent - ported from bad-port/jdk8, currently compiles but = hasn=E2=80=99t been tested TLS - there is problems with the TLS in jdk9 used for Thread::current(). = This caused several issues for me and while the fix was relatively = straight forward in using THREAD_LOCAL_DECL completely in place of TLS = completely, I=E2=80=99d imagine there was a reason it was implemented in = sort of a Hybrid fashion alongside TLS. It would be great if I could post these as web reviews for others to = review. Greg, would getting access to bsd-port/jdk9 allow us to = collaborate through web reviews? Magnus, do you think using = bsd-port/jdk9 for this purpose be a step towards getting these basic = changes into the jdk9 mainline, or would your colleagues think "if they = have bsd-port/jdk9, why bother with integrating them into the jdk9 = mainline?=E2=80=9D Brian Gardner > On Feb 2, 2016, at 7:40 PM, Greg Lewis wrote: >=20 > On Sun, Jan 31, 2016 at 06:57:26AM -0800, Brian Gardner wrote: >> I???m interested in helping. I ported openjdk6 to freebsd and also = helped out with openjdk8. >>=20 >> Brian Gardner >=20 > I'd love to see as much of these changes get into the jdk9 mainline. = My time > is really limited for the next couple of weeks though. If it would = help you > or Magnus to use the bsd-port repo to stage changes then that would be > great too. Let me do a merge to make sure it is up to date with = mainline. > Notionally we'd have to do a vote to get you both access I think? But = I > can shepherd changes in if that will help with sharing them. >=20 > FWIW, in terms of taking responsibility, I've been regularly updating = the > repos for jdk8 and jdk7 for a couple of years. I'm happy to keep jdk9 > building if that is what is being looked for there and also port more = of > the BSD changes for jdk8 as appropriate. >=20 > - Greg >=20 >>> On Jan 31, 2016, at 3:00 AM, Magnus Ihse Bursie = wrote: >>>=20 >>> On 2016-01-31 11:54, Magnus Ihse Bursie wrote: >>>> Hi, >>>>=20 >>>> [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but it's = not clear where to put them, or how.] >>>>=20 >>>> I'm working at Oracle on the OpenJDK build team and is responsible = for large parts of the build system of OpenJDK. Lately, I've been = playing around with FreeBSD (and other BSDs) in my free time, and I've = written a patch that will add build system support for FreeBSD, OpenBSD = and NetBSD in JDK 9 (tracked in = https://bugs.openjdk.java.net/browse/JDK-8147795). >>>>=20 >>>> I started writing this when I realized that the jdk9 branch in the = OpenJDK bsd-port repository did not contain any BSD-specific changes at = all, and the old JDK 8 changes will not readily be portable, due to = major changes in the build system between JDK 8 and JDK 9. >>>>=20 >>>> I thought it would be a no-brainer to integrate these changes into = the JDK 9 mainline, so they would be in place for whenever you guys = would start to attack porting the code base. However, some of my = collegues thought otherwise. The end result, I think, is that they = wanted to see someone (not necessarily a company, the FreeBSD = organisation for instance seemed to be okay), to step forward and say = "we take responsibility for the BSD port", and give some kind of = commitment to actually use these build changes in producing a viable = port. You can read the mail conversation here: = http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html >>>=20 >>> I forgot to add that I'm willing to help with build issues for the = BSD port, as far as my (like everybode else's) limited free time allows = me. Unfortunately, I'm still a noob at BSD internals and can't really = help with much apart from that. >>>=20 >>> /Magnus >>>=20 >>>=20 >>>>=20 >>>> An alternative to pushing this code into the JDK 9 mainline is of = course to push it to the bsd-port/jdk9 repo (given that the owners of = that repo approves), but that seems like a less favourable solution. = Having the code in the mainline does not mean that it gets tested = automatically, but it means that it will be part of e.g. refactoring, = that would otherwise break a downstream patchset. >>>>=20 >>>> I cc:ed this conversation to the bsd-port-dev@openjdk.java.net = mailing list, but never got any kind of official response there. Since = this list seems more active, I'm trying here instead. :) >>>>=20 >>>> So, I'm offering two patches here, one that applies to the build = system, is nice and clean, and possible to integrate into JDK 9 = mainline, if my collegues are convinced that someone is backing up the = BSD port. And there's a second patch, which fixes broken C/C++/Java code = and results in a product that can at least run "javac HelloWorld", but = this is not yet clean enough for integration anywere, at least not the = JDK 9 mainline. (I don't know enough of the BSD internals to fix all = problems, so there's some "#if 0" code here and there.) >>>>=20 >>>> /Magnus >>>>=20 >>>> _______________________________________________ >>>> freebsd-java@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>>> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org" >>>=20 >>> _______________________________________________ >>> freebsd-java@freebsd.org mailing = list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-java = >>> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org = " >>=20 >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to = "freebsd-java-unsubscribe@freebsd.org" >=20 > --=20 > Greg Lewis Email : glewis@eyesbeyond.com > Eyes Beyond Web : = http://www.eyesbeyond.com > Information Technology FreeBSD : glewis@FreeBSD.org = > _______________________________________________ > freebsd-java@freebsd.org mailing = list > https://lists.freebsd.org/mailman/listinfo/freebsd-java = > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org = " From owner-freebsd-java@freebsd.org Fri Feb 5 07:51:13 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 693589D91EC for ; Fri, 5 Feb 2016 07:51:13 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 50C631B06 for ; Fri, 5 Feb 2016 07:51:13 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id 4D9359D91EB; Fri, 5 Feb 2016 07:51:13 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D0029D91EA for ; Fri, 5 Feb 2016 07:51:13 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "userp1040.oracle.com", Issuer "Oracle SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0AF811B04 for ; Fri, 5 Feb 2016 07:51:12 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u157opVK015920 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 5 Feb 2016 07:50:51 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u157op38024130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 5 Feb 2016 07:50:51 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u157olXS013615; Fri, 5 Feb 2016 07:50:48 GMT Received: from [10.175.203.75] (/10.175.203.75) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 04 Feb 2016 23:50:47 -0800 Subject: Re: Helping out with JDK 9 on BSD To: Brian Gardner , Greg Lewis References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <20160203034053.GA36170@misty.eyesbeyond.com> Cc: java@freebsd.org From: Magnus Ihse Bursie Message-ID: <56B45453.9020006@oracle.com> Date: Fri, 5 Feb 2016 08:50:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: X-Source-IP: userv0021.oracle.com [156.151.31.71] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 07:51:13 -0000 From owner-freebsd-java@freebsd.org Fri Feb 5 08:02:22 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91DDC9D9939 for ; Fri, 5 Feb 2016 08:02:22 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7923C6D9 for ; Fri, 5 Feb 2016 08:02:22 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id 77DCB9D9938; Fri, 5 Feb 2016 08:02:22 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D7C49D9937 for ; Fri, 5 Feb 2016 08:02:22 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "userp1040.oracle.com", Issuer "Oracle SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 323F46D7 for ; Fri, 5 Feb 2016 08:02:21 +0000 (UTC) (envelope-from magnus.ihse.bursie@oracle.com) Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u15827bw026598 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 5 Feb 2016 08:02:08 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u15827B9020847 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 5 Feb 2016 08:02:07 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u15827oZ010181; Fri, 5 Feb 2016 08:02:07 GMT Received: from [10.175.203.75] (/10.175.203.75) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 05 Feb 2016 00:02:06 -0800 Subject: Re: Helping out with JDK 9 on BSD To: Greg Lewis , Brian Gardner References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <20160203034053.GA36170@misty.eyesbeyond.com> Cc: java@freebsd.org From: Magnus Ihse Bursie Message-ID: <56B456FB.4040707@oracle.com> Date: Fri, 5 Feb 2016 09:02:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160203034053.GA36170@misty.eyesbeyond.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 08:02:22 -0000 On 2016-02-03 04:40, Greg Lewis wrote: > On Sun, Jan 31, 2016 at 06:57:26AM -0800, Brian Gardner wrote: >> I???m interested in helping. I ported openjdk6 to freebsd and also helped out with openjdk8. >> >> Brian Gardner > I'd love to see as much of these changes get into the jdk9 mainline. My time > is really limited for the next couple of weeks though. If it would help you > or Magnus to use the bsd-port repo to stage changes then that would be > great too. Let me do a merge to make sure it is up to date with mainline. > Notionally we'd have to do a vote to get you both access I think? But I > can shepherd changes in if that will help with sharing them. To make Brian and me committers on the bsd-port project will require a community vote with a 2 weeks voting time, yes. Unless Brian already is an OpenJDK Author (that is, has an OpenJDK account), getting the account created after the vote, has in the past been a long wait for the OpenJDK ops to do their thing as well. :( So the quickest and easiest way, at least if we're just talking a few number of patches, is that you shepherd them in. > > FWIW, in terms of taking responsibility, I've been regularly updating the > repos for jdk8 and jdk7 for a couple of years. I'm happy to keep jdk9 > building if that is what is being looked for there and also port more of > the BSD changes for jdk8 as appropriate. I think "regularly building" is kind of the basic they're looking for here, and maybe such a promise is good enough to get my build changes into the mainline. Apparently the FreeBSD foundation has a license to use the official TCK test suite. Getting a port to completely pass the TCK is likely to be quite some work, but if it does it can be integrated as a core supported platform in the JDK9 mainline (and then, automatically, in future versions of the JDK). Maybe it's not even a requirement to pass the full TCK for a community effort. Perhaps it's fine to just run the TCK sort-of regularly and tracking the results so that the number of failures does not drastically increase, and having some kind of long term goal/vision of having zero TCK failures. But I'm not sure about these things. We should probably involve Dalibor Topic in that discussion. /Magnus > > - Greg > >>> On Jan 31, 2016, at 3:00 AM, Magnus Ihse Bursie wrote: >>> >>> On 2016-01-31 11:54, Magnus Ihse Bursie wrote: >>>> Hi, >>>> >>>> [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but it's not clear where to put them, or how.] >>>> >>>> I'm working at Oracle on the OpenJDK build team and is responsible for large parts of the build system of OpenJDK. Lately, I've been playing around with FreeBSD (and other BSDs) in my free time, and I've written a patch that will add build system support for FreeBSD, OpenBSD and NetBSD in JDK 9 (tracked in https://bugs.openjdk.java.net/browse/JDK-8147795). >>>> >>>> I started writing this when I realized that the jdk9 branch in the OpenJDK bsd-port repository did not contain any BSD-specific changes at all, and the old JDK 8 changes will not readily be portable, due to major changes in the build system between JDK 8 and JDK 9. >>>> >>>> I thought it would be a no-brainer to integrate these changes into the JDK 9 mainline, so they would be in place for whenever you guys would start to attack porting the code base. However, some of my collegues thought otherwise. The end result, I think, is that they wanted to see someone (not necessarily a company, the FreeBSD organisation for instance seemed to be okay), to step forward and say "we take responsibility for the BSD port", and give some kind of commitment to actually use these build changes in producing a viable port. You can read the mail conversation here: http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html >>> I forgot to add that I'm willing to help with build issues for the BSD port, as far as my (like everybode else's) limited free time allows me. Unfortunately, I'm still a noob at BSD internals and can't really help with much apart from that. >>> >>> /Magnus >>> >>> >>>> An alternative to pushing this code into the JDK 9 mainline is of course to push it to the bsd-port/jdk9 repo (given that the owners of that repo approves), but that seems like a less favourable solution. Having the code in the mainline does not mean that it gets tested automatically, but it means that it will be part of e.g. refactoring, that would otherwise break a downstream patchset. >>>> >>>> I cc:ed this conversation to the bsd-port-dev@openjdk.java.net mailing list, but never got any kind of official response there. Since this list seems more active, I'm trying here instead. :) >>>> >>>> So, I'm offering two patches here, one that applies to the build system, is nice and clean, and possible to integrate into JDK 9 mainline, if my collegues are convinced that someone is backing up the BSD port. And there's a second patch, which fixes broken C/C++/Java code and results in a product that can at least run "javac HelloWorld", but this is not yet clean enough for integration anywere, at least not the JDK 9 mainline. (I don't know enough of the BSD internals to fix all problems, so there's some "#if 0" code here and there.) >>>> >>>> /Magnus >>>> >>>> _______________________________________________ >>>> freebsd-java@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>>> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" >>> _______________________________________________ >>> freebsd-java@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org " >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@freebsd.org Fri Feb 5 12:08:42 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5DA8A9CCCA for ; Fri, 5 Feb 2016 12:08:42 +0000 (UTC) (envelope-from hamiltcl@verizon.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A224C3D1 for ; Fri, 5 Feb 2016 12:08:42 +0000 (UTC) (envelope-from hamiltcl@verizon.net) Received: by mailman.ysv.freebsd.org (Postfix) id A1432A9CCC9; Fri, 5 Feb 2016 12:08:42 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0D39A9CCC8 for ; Fri, 5 Feb 2016 12:08:42 +0000 (UTC) (envelope-from hamiltcl@verizon.net) Received: from vms173025pub.verizon.net (vms173025pub.verizon.net [206.46.173.25]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8251D3CF for ; Fri, 5 Feb 2016 12:08:42 +0000 (UTC) (envelope-from hamiltcl@verizon.net) Received: from lenoil1 ([96.255.168.17]) by vms173025.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0O2200LEHMXA0500@vms173025.mailsrvcs.net> for java@FreeBSD.org; Fri, 05 Feb 2016 05:07:59 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=btqxfxui c=1 sm=1 tr=0 a=TXQDfM1T7tsaHFmtCUVSow==:117 a=jFJIQSaiL_oA:10 a=DAwyPP_o2Byb1YXLmDAA:9 a=2iRy1PKwpPidiZQYuFQA:9 a=QEXdDO2ut3YA:10 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=7BIZjsvXsXPFz8nKE_QA:9 a=gKO2Hq4RSVkA:10 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=frz4AuCg-hUA:10 From: "Curtis Hamilton" To: Subject: JDK7 Shark Build Date: Fri, 05 Feb 2016 06:07:47 -0500 Message-id: <00fd01d16005$7296e650$57c4b2f0$@verizon.net> MIME-version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-index: AdFfn8f3sP4VaF0iRkuZh2OJecuhrA== Content-language: en-us Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 12:08:42 -0000 Has anyone been successful in building a JDK7 Shark JVM on a non-X86? =20 I=E2=80=99ve been successfully built a Zero JVM for ppc64. Building = Shark, after applying a couple of patches to ciTypeFlow.cpp, everything = seems to build the JVM okay. However, it errors when trying to use the = newly built JVM following: =20 =E2=80=9CError while creating Shark JIT: Unable to find target for this = triple (no targets are registered)=E2=80=9D I=E2=80=99ve searched the net and found references to at least one other = person getting the same results building Shark on MIPS. I don=E2=80=99t = believe a bug report was filed. And cannot find any solution. I have = no idea how to register the shark JIT into the build. Does anybody know how to deal with this? Thanks in advance and looking = forward to any reply. Curtis From owner-freebsd-java@freebsd.org Sat Feb 6 19:40:27 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C63B8A9F0D9 for ; Sat, 6 Feb 2016 19:40:27 +0000 (UTC) (envelope-from pathiaki2@yahoo.com) Received: from nm49-vm4.bullet.mail.bf1.yahoo.com (nm49-vm4.bullet.mail.bf1.yahoo.com [216.109.115.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8F17C10AB for ; Sat, 6 Feb 2016 19:40:26 +0000 (UTC) (envelope-from pathiaki2@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1454787513; bh=ktGWcnCupMBxQtSU96udhQaSk66chQcgmmPG46dxXvg=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=NJiMCJ2+ejInwThQSt4LDNQgVLhEc5zWYGc0bGyWUJXFuWBawXKI+ay74CIiAafmCtI5UICNQSKGwfrkkiU5E/QZMSLR3XozkNJx6U+T04GH8NxUlBro/zVgW3kSNs51/e0NoOm0oMNLkIGdVPcoqAdoCq3LPCJI2gEHZAfzbzMZT7v9ziOqCWQAR4q8lQARSOkll/H64a6L18NoHx+GYdX05y0FszdPdw1eaIzMzCpDj6W7yNnrrEnrbQNmEYG0d5tJFpM03NjioRIHqOZvx2UjoWqtabTMScbZMyPgdZeCB6ob7ZhaH6l/dU6osR220/tkgiKfUKtxz2e8wmoa3Q== Received: from [98.139.215.141] by nm49.bullet.mail.bf1.yahoo.com with NNFMP; 06 Feb 2016 19:38:33 -0000 Received: from [68.142.230.74] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 06 Feb 2016 19:38:33 -0000 Received: from [127.0.0.1] by smtp231.mail.bf1.yahoo.com with NNFMP; 06 Feb 2016 19:38:33 -0000 X-Yahoo-Newman-Id: 714110.81098.bm@smtp231.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: ZxrnMoAVM1l6g.kAQDUZChl5ouNyRATxvejIm_yy5UPZU63 VNJJG0bN4sx7loWIdILFg2a7ZqH2zY3.bnX0D4KNCLrlIDM6dUPUzOx3xpea SLKHIO47mQbPIGtMXf.2T8aKPSOKBDmLbm65qaj2fyiTDv8aMQ3pVtevID7S FDw3q.KBHROXQ_AWqod56uhRLnJZPijENpffdVouebsXrXp4s.zPt4UyUmaM o8nux50jCQd0e6LeBEZaCgu4Ve3HseREwomx5y5Ou6rvTnUxah1Yz7acsgg0 L2OhvhFyTY.1WOM.UmqRvQZULfQcX56K1z6tJFXGuWfYeE5ADZX2MjDEsjwG tAOh8oB3.arUygI.jI37NMCtazQy9Dd8tvpQbP81tCH71BIsClXlWIDrJ6Io Xrx6XR02w0NI5sMG8e6PPihENTDMNB1jVuwj7cZHIscJ_t46BDFNhwcwZE08 zUwZMJ_b.VmNhGZiYwf40P10NLYwkpHV_P3ShHN8gLXmRBryriKmQirxedJj xfqsm.2W8uPGSlCGOpBkb0nwX3IwbSlvdyA-- X-Yahoo-SMTP: h3Xqg6.swBC0yI913RMMwp94grO_cg-- Subject: Re: Helping out with JDK 9 on BSD To: freebsd-java@freebsd.org References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <20160203034053.GA36170@misty.eyesbeyond.com> <56B456FB.4040707@oracle.com> From: pathiaki2 Message-ID: <56B64BB7.8030908@yahoo.com> Date: Sat, 6 Feb 2016 14:38:31 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56B456FB.4040707@oracle.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2016 19:40:28 -0000 and getting it to pass the test suite would be very much appreciated by a lot of us. There's some serious java applications that are very useful out there that used to work the OpenJDK port for FreeBSD but no longer. I mention this as I wanted to create a port for OpenNMS as it is truly, IMHO, more advanced than most other enterprise monitoring systems. I created a page on how easy it is to setup with their own installer, but, despite the stabilization of OJDK 8, instead of crashing in less than two hours, it will crash in a little over 24 now. :-( https://www.opennms.org/wiki/Installing_on_FreeBSD_10.x_with_OpenJDK It's coming up on a year, I've now verified the issue still exists with OpenNMS 1.17.x . It would be very much appreciated to get the OpenJDK core figured out as something just goes South. I'm willing to do builds and produce cores as needed, but the fact this runs fine on Linux using Oracle JDK and OpenJDK, just kind of irks me as FreeBSD is just so tight regarding everything else. Thank you all for your efforts and from all the people who want to see OpenNMS running native on FreeBSD. P. On 02/05/2016 03:02, Magnus Ihse Bursie wrote: > On 2016-02-03 04:40, Greg Lewis wrote: >> On Sun, Jan 31, 2016 at 06:57:26AM -0800, Brian Gardner wrote: >>> I???m interested in helping. I ported openjdk6 to freebsd and also >>> helped out with openjdk8. >>> >>> Brian Gardner >> I'd love to see as much of these changes get into the jdk9 mainline. >> My time >> is really limited for the next couple of weeks though. If it would >> help you >> or Magnus to use the bsd-port repo to stage changes then that would be >> great too. Let me do a merge to make sure it is up to date with >> mainline. >> Notionally we'd have to do a vote to get you both access I think? But I >> can shepherd changes in if that will help with sharing them. > To make Brian and me committers on the bsd-port project will require a > community vote with a 2 weeks voting time, yes. Unless Brian already > is an OpenJDK Author (that is, has an OpenJDK account), getting the > account created after the vote, has in the past been a long wait for > the OpenJDK ops to do their thing as well. :( > > So the quickest and easiest way, at least if we're just talking a few > number of patches, is that you shepherd them in. > >> >> FWIW, in terms of taking responsibility, I've been regularly updating >> the >> repos for jdk8 and jdk7 for a couple of years. I'm happy to keep jdk9 >> building if that is what is being looked for there and also port more of >> the BSD changes for jdk8 as appropriate. > > I think "regularly building" is kind of the basic they're looking for > here, and maybe such a promise is good enough to get my build changes > into the mainline. > > Apparently the FreeBSD foundation has a license to use the official > TCK test suite. Getting a port to completely pass the TCK is likely to > be quite some work, but if it does it can be integrated as a core > supported platform in the JDK9 mainline (and then, automatically, in > future versions of the JDK). Maybe it's not even a requirement to pass > the full TCK for a community effort. Perhaps it's fine to just run the > TCK sort-of regularly and tracking the results so that the number of > failures does not drastically increase, and having some kind of long > term goal/vision of having zero TCK failures. But I'm not sure about > these things. We should probably involve Dalibor Topic in that > discussion. > > /Magnus > >> >> - Greg >> >>>> On Jan 31, 2016, at 3:00 AM, Magnus Ihse Bursie >>>> wrote: >>>> >>>> On 2016-01-31 11:54, Magnus Ihse Bursie wrote: >>>>> Hi, >>>>> >>>>> [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but it's >>>>> not clear where to put them, or how.] >>>>> >>>>> I'm working at Oracle on the OpenJDK build team and is responsible >>>>> for large parts of the build system of OpenJDK. Lately, I've been >>>>> playing around with FreeBSD (and other BSDs) in my free time, and >>>>> I've written a patch that will add build system support for >>>>> FreeBSD, OpenBSD and NetBSD in JDK 9 (tracked in >>>>> https://bugs.openjdk.java.net/browse/JDK-8147795). >>>>> >>>>> I started writing this when I realized that the jdk9 branch in the >>>>> OpenJDK bsd-port repository did not contain any BSD-specific >>>>> changes at all, and the old JDK 8 changes will not readily be >>>>> portable, due to major changes in the build system between JDK 8 >>>>> and JDK 9. >>>>> >>>>> I thought it would be a no-brainer to integrate these changes into >>>>> the JDK 9 mainline, so they would be in place for whenever you >>>>> guys would start to attack porting the code base. However, some of >>>>> my collegues thought otherwise. The end result, I think, is that >>>>> they wanted to see someone (not necessarily a company, the FreeBSD >>>>> organisation for instance seemed to be okay), to step forward and >>>>> say "we take responsibility for the BSD port", and give some kind >>>>> of commitment to actually use these build changes in producing a >>>>> viable port. You can read the mail conversation here: >>>>> http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html >>>> I forgot to add that I'm willing to help with build issues for the >>>> BSD port, as far as my (like everybode else's) limited free time >>>> allows me. Unfortunately, I'm still a noob at BSD internals and >>>> can't really help with much apart from that. >>>> >>>> /Magnus >>>> >>>> >>>>> An alternative to pushing this code into the JDK 9 mainline is of >>>>> course to push it to the bsd-port/jdk9 repo (given that the owners >>>>> of that repo approves), but that seems like a less favourable >>>>> solution. Having the code in the mainline does not mean that it >>>>> gets tested automatically, but it means that it will be part of >>>>> e.g. refactoring, that would otherwise break a downstream patchset. >>>>> >>>>> I cc:ed this conversation to the bsd-port-dev@openjdk.java.net >>>>> mailing list, but never got any kind of official response there. >>>>> Since this list seems more active, I'm trying here instead. :) >>>>> >>>>> So, I'm offering two patches here, one that applies to the build >>>>> system, is nice and clean, and possible to integrate into JDK 9 >>>>> mainline, if my collegues are convinced that someone is backing up >>>>> the BSD port. And there's a second patch, which fixes broken >>>>> C/C++/Java code and results in a product that can at least run >>>>> "javac HelloWorld", but this is not yet clean enough for >>>>> integration anywere, at least not the JDK 9 mainline. (I don't >>>>> know enough of the BSD internals to fix all problems, so there's >>>>> some "#if 0" code here and there.) >>>>> >>>>> /Magnus >>>>> >>>>> _______________________________________________ >>>>> freebsd-java@freebsd.org mailing list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>>>> To unsubscribe, send any mail to >>>>> "freebsd-java-unsubscribe@freebsd.org" >>>> _______________________________________________ >>>> freebsd-java@freebsd.org mailing >>>> list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>>> >>>> To unsubscribe, send any mail to >>>> "freebsd-java-unsubscribe@freebsd.org >>>> " >>> _______________________________________________ >>> freebsd-java@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-java@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@freebsd.org Sat Feb 6 20:06:48 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DFDF2A9FDC4 for ; Sat, 6 Feb 2016 20:06:47 +0000 (UTC) (envelope-from prvs=0844ff1724=pmcnary@cameron.net) Received: from northmo.net (mailcleaner1.northmo.net [208.110.72.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C8C371A28 for ; Sat, 6 Feb 2016 20:06:46 +0000 (UTC) (envelope-from prvs=0844ff1724=pmcnary@cameron.net) Received: from [198.207.210.77] by northmo.net stage1 with esmtpsa (Exim MailCleaner) id 1aS938-0003Hj-5x from ; Sat, 06 Feb 2016 14:01:42 -0600 Subject: Re: Helping out with JDK 9 on BSD To: pathiaki2 , freebsd-java@freebsd.org References: <56ADE7D4.8020107@oracle.com> <56ADE943.6020103@oracle.com> <8B9ACABA-F9B2-4288-9DB5-CA843DE48C34@getsnappy.com> <20160203034053.GA36170@misty.eyesbeyond.com> <56B456FB.4040707@oracle.com> <56B64BB7.8030908@yahoo.com> From: Paul Message-ID: <56B65111.6050700@cameron.net> Date: Sat, 6 Feb 2016 14:01:21 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56B64BB7.8030908@yahoo.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-MailCleaner-RDNS: invalid reverse DNS for 198.207.210.77 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2016 20:06:48 -0000 +1 On 2/6/2016 1:38 PM, pathiaki2 via freebsd-java wrote: > and getting it to pass the test suite would be very much appreciated > by a lot of us. There's some serious java applications that are very > useful out there that used to work the OpenJDK port for FreeBSD but no > longer. > > I mention this as I wanted to create a port for OpenNMS as it is > truly, IMHO, more advanced than most other enterprise monitoring systems. > > I created a page on how easy it is to setup with their own installer, > but, despite the stabilization of OJDK 8, instead of crashing in less > than two hours, it will crash in a little over 24 now. :-( > > https://www.opennms.org/wiki/Installing_on_FreeBSD_10.x_with_OpenJDK > > It's coming up on a year, I've now verified the issue still exists > with OpenNMS 1.17.x . It would be very much appreciated to get the > OpenJDK core figured out as something just goes South. I'm willing to > do builds and produce cores as needed, but the fact this runs fine on > Linux using Oracle JDK and OpenJDK, just kind of irks me as FreeBSD is > just so tight regarding everything else. > > Thank you all for your efforts and from all the people who want to see > OpenNMS running native on FreeBSD. > > P. > > On 02/05/2016 03:02, Magnus Ihse Bursie wrote: >> On 2016-02-03 04:40, Greg Lewis wrote: >>> On Sun, Jan 31, 2016 at 06:57:26AM -0800, Brian Gardner wrote: >>>> I???m interested in helping. I ported openjdk6 to freebsd and also >>>> helped out with openjdk8. >>>> >>>> Brian Gardner >>> I'd love to see as much of these changes get into the jdk9 >>> mainline. My time >>> is really limited for the next couple of weeks though. If it would >>> help you >>> or Magnus to use the bsd-port repo to stage changes then that would be >>> great too. Let me do a merge to make sure it is up to date with >>> mainline. >>> Notionally we'd have to do a vote to get you both access I think? >>> But I >>> can shepherd changes in if that will help with sharing them. >> To make Brian and me committers on the bsd-port project will require >> a community vote with a 2 weeks voting time, yes. Unless Brian >> already is an OpenJDK Author (that is, has an OpenJDK account), >> getting the account created after the vote, has in the past been a >> long wait for the OpenJDK ops to do their thing as well. :( >> >> So the quickest and easiest way, at least if we're just talking a few >> number of patches, is that you shepherd them in. >> >>> >>> FWIW, in terms of taking responsibility, I've been regularly >>> updating the >>> repos for jdk8 and jdk7 for a couple of years. I'm happy to keep jdk9 >>> building if that is what is being looked for there and also port >>> more of >>> the BSD changes for jdk8 as appropriate. >> >> I think "regularly building" is kind of the basic they're looking for >> here, and maybe such a promise is good enough to get my build changes >> into the mainline. >> >> Apparently the FreeBSD foundation has a license to use the official >> TCK test suite. Getting a port to completely pass the TCK is likely >> to be quite some work, but if it does it can be integrated as a core >> supported platform in the JDK9 mainline (and then, automatically, in >> future versions of the JDK). Maybe it's not even a requirement to >> pass the full TCK for a community effort. Perhaps it's fine to just >> run the TCK sort-of regularly and tracking the results so that the >> number of failures does not drastically increase, and having some >> kind of long term goal/vision of having zero TCK failures. But I'm >> not sure about these things. We should probably involve Dalibor Topic >> in that discussion. >> >> /Magnus >> >>> >>> - Greg >>> >>>>> On Jan 31, 2016, at 3:00 AM, Magnus Ihse Bursie >>>>> wrote: >>>>> >>>>> On 2016-01-31 11:54, Magnus Ihse Bursie wrote: >>>>>> Hi, >>>>>> >>>>>> [TL;DR: I'm offering patches to compile JDK 9 on FreeBSD, but >>>>>> it's not clear where to put them, or how.] >>>>>> >>>>>> I'm working at Oracle on the OpenJDK build team and is >>>>>> responsible for large parts of the build system of OpenJDK. >>>>>> Lately, I've been playing around with FreeBSD (and other BSDs) in >>>>>> my free time, and I've written a patch that will add build system >>>>>> support for FreeBSD, OpenBSD and NetBSD in JDK 9 (tracked in >>>>>> https://bugs.openjdk.java.net/browse/JDK-8147795). >>>>>> >>>>>> I started writing this when I realized that the jdk9 branch in >>>>>> the OpenJDK bsd-port repository did not contain any BSD-specific >>>>>> changes at all, and the old JDK 8 changes will not readily be >>>>>> portable, due to major changes in the build system between JDK 8 >>>>>> and JDK 9. >>>>>> >>>>>> I thought it would be a no-brainer to integrate these changes >>>>>> into the JDK 9 mainline, so they would be in place for whenever >>>>>> you guys would start to attack porting the code base. However, >>>>>> some of my collegues thought otherwise. The end result, I think, >>>>>> is that they wanted to see someone (not necessarily a company, >>>>>> the FreeBSD organisation for instance seemed to be okay), to step >>>>>> forward and say "we take responsibility for the BSD port", and >>>>>> give some kind of commitment to actually use these build changes >>>>>> in producing a viable port. You can read the mail conversation >>>>>> here: >>>>>> http://mail.openjdk.java.net/pipermail/build-dev/2016-January/016421.html >>>>> I forgot to add that I'm willing to help with build issues for the >>>>> BSD port, as far as my (like everybode else's) limited free time >>>>> allows me. Unfortunately, I'm still a noob at BSD internals and >>>>> can't really help with much apart from that. >>>>> >>>>> /Magnus >>>>> >>>>> >>>>>> An alternative to pushing this code into the JDK 9 mainline is of >>>>>> course to push it to the bsd-port/jdk9 repo (given that the >>>>>> owners of that repo approves), but that seems like a less >>>>>> favourable solution. Having the code in the mainline does not >>>>>> mean that it gets tested automatically, but it means that it will >>>>>> be part of e.g. refactoring, that would otherwise break a >>>>>> downstream patchset. >>>>>> >>>>>> I cc:ed this conversation to the bsd-port-dev@openjdk.java.net >>>>>> mailing list, but never got any kind of official response there. >>>>>> Since this list seems more active, I'm trying here instead. :) >>>>>> >>>>>> So, I'm offering two patches here, one that applies to the build >>>>>> system, is nice and clean, and possible to integrate into JDK 9 >>>>>> mainline, if my collegues are convinced that someone is backing >>>>>> up the BSD port. And there's a second patch, which fixes broken >>>>>> C/C++/Java code and results in a product that can at least run >>>>>> "javac HelloWorld", but this is not yet clean enough for >>>>>> integration anywere, at least not the JDK 9 mainline. (I don't >>>>>> know enough of the BSD internals to fix all problems, so there's >>>>>> some "#if 0" code here and there.) >>>>>> >>>>>> /Magnus >>>>>> >>>>>> _______________________________________________ >>>>>> freebsd-java@freebsd.org mailing list >>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>>>>> To unsubscribe, send any mail to >>>>>> "freebsd-java-unsubscribe@freebsd.org" >>>>> _______________________________________________ >>>>> freebsd-java@freebsd.org mailing >>>>> list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>>>> >>>>> To unsubscribe, send any mail to >>>>> "freebsd-java-unsubscribe@freebsd.org >>>>> " >>>> _______________________________________________ >>>> freebsd-java@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-java >>>> To unsubscribe, send any mail to >>>> "freebsd-java-unsubscribe@freebsd.org" >> >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-java@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > >