From david.holmes at oracle.com Mon Jun 3 07:25:42 2019 From: david.holmes at oracle.com (David Holmes) Date: Mon, 3 Jun 2019 17:25:42 +1000 Subject: Fwd: [PATCH]: pd_print_cpu_info/bsd display minimal info In-Reply-To: References: Message-ID: <45518a58-0f1e-4458-92b9-23ef8bec9518@oracle.com> Forwarding to bsd-dev-port, but I don't think there is any active work being done on this port at the moment. David -------------- next part -------------- An embedded message was scrubbed... From: David CARLIER Subject: [PATCH]: pd_print_cpu_info/bsd display minimal info Date: Tue, 21 May 2019 09:32:32 +0000 Size: 5610 URL: From glewis at eyesbeyond.com Thu Jun 6 12:04:47 2019 From: glewis at eyesbeyond.com (Greg Lewis) Date: Thu, 6 Jun 2019 05:04:47 -0700 Subject: Fwd: [PATCH]: pd_print_cpu_info/bsd display minimal info In-Reply-To: <45518a58-0f1e-4458-92b9-23ef8bec9518@oracle.com> References: <45518a58-0f1e-4458-92b9-23ef8bec9518@oracle.com> Message-ID: <20190606120447.GA17624@misty.eyesbeyond.com> Thanks David, We are actively working on the port, but have moved the main development off of the mercurial repositories at openjdk.net and onto Github where we've forked form the AdoptOpenJDK repositories. We currently have working JDK 8, 11 and 12 ports there. The positives for us have been easier collaboration and higher levels of contribution. The negatives are that it is not possible to follow the current development tree this way and that if we ever merge the port in it will require some wrangling of contributor agreements for contributions. David submitted a pull request for these changes and we've merged them into the 11 and 12 ports. -- Greg On Mon, Jun 03, 2019 at 05:25:42PM +1000, David Holmes wrote: > Forwarding to bsd-dev-port, but I don't think there is any active work > being done on this port at the moment. > > David > Date: Tue, 21 May 2019 09:32:32 +0000 > From: David CARLIER > To: jdk-dev at openjdk.java.net > Subject: [PATCH]: pd_print_cpu_info/bsd display minimal info > > Hi, > > here a little patch proposal to improve slightly the BSD support. > > Thanks. > > Kind regards. > # HG changeset patch > # User David Carlier > # Date 1558430500 0 > # Tue May 21 09:21:40 2019 +0000 > # Node ID b7c0ab0c591133c52014b7473acbe8ec9daf73ef > # Parent 566fbca8a89093c5f15157115d70a265aaf28bee > hotspot/bsd: pd_print_cpu_info, display minmal information > > diff -r 566fbca8a890 -r b7c0ab0c5911 src/hotspot/os/bsd/os_bsd.cpp > --- a/src/hotspot/os/bsd/os_bsd.cpp Mon May 20 18:18:42 2019 -0700 > +++ b/src/hotspot/os/bsd/os_bsd.cpp Tue May 21 09:21:40 2019 +0000 > @@ -1568,6 +1568,13 @@ > > void os::pd_print_cpu_info(outputStream* st, char* buf, size_t buflen) { > // Nothing to do for now. > + char model[100]; > + size_t size = sizeof(model); > + int mib[] = { CTL_HW, HW_MODEL }; > + if (sysctl(mib, 2, model, &size, NULL, 0) == 0) { > + st->print("model name: %s", model); > + st->cr(); > + } > } > > void os::get_summary_cpu_info(char* buf, size_t buflen) {