Fwd: [PATCH]: pd_print_cpu_info/bsd display minimal info
Greg Lewis
glewis at eyesbeyond.com
Thu Jun 6 12:04:47 UTC 2019
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 <devnexen at gmail.com>
> 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 <dcarlier at afilias.info>
> # 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) {
More information about the bsd-port-dev
mailing list