RFR: 8258407: Split up CompileJavaModules.gmk into make/modules/$M/Java.gmk

2020-12-15 Thread Magnus Ihse Bursie
Right now `CompileJavaModules.gmk` contains two different part: one part with the functionality needed to compile a java module, and one part were all special requirements for all modules are listed. The second part should be removed from `CompileJavaModules.gmk`, and instead listed directly

Re: RFR: 8258407: Split up CompileJavaModules.gmk into make/modules/$M/Java.gmk [v2]

2020-12-15 Thread Magnus Ihse Bursie
> Right now `CompileJavaModules.gmk` contains two different part: one part with > the functionality needed to compile a java module, and one part were all > special requirements for all modules are listed. > > The second part should be removed from `CompileJavaModules.gmk`, and instead >

RFR: 8258411: Move module set configuration from Modules.gmk to conf dir

2020-12-15 Thread Magnus Ihse Bursie
The hard-coded list of modules in `make/common/Modules.gmk` has always been a wart in the build system. We pride ourself on using discovery instead of hard-coded list. In this case, it is not possible to do do auto-discovery, since the different module sets are configured, not determined. Thus

Re: RFR: 8258407: Split up CompileJavaModules.gmk into make/modules/$M/Java.gmk [v3]

2020-12-15 Thread Magnus Ihse Bursie
> Right now `CompileJavaModules.gmk` contains two different part: one part with > the functionality needed to compile a java module, and one part were all > special requirements for all modules are listed. > > The second part should be removed from `CompileJavaModules.gmk`, and instead >

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir

2020-12-15 Thread Magnus Ihse Bursie
On Tue, 15 Dec 2020 16:53:46 GMT, Alan Bateman wrote: >> The hard-coded list of modules in `make/common/Modules.gmk` has always been >> a wart in the build system. We pride ourself on using discovery instead of >> hard-coded list. In this case, it is not possible to do do auto-discovery, >>

RFR: 8258420: Move URL configuration from Docs.gmk to conf dir

2020-12-15 Thread Magnus Ihse Bursie
In `Docs.gmk` there are some hard-coded links to online URL documentation and bug reporting locations. These should not reside in the make file per se, but instead move to the `make/conf` directory. - Commit messages: - 8258420: Move URL configuration from Docs.gmk to conf dir

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir [v2]

2020-12-15 Thread Alan Bateman
On Tue, 15 Dec 2020 18:15:28 GMT, Magnus Ihse Bursie wrote: >> The hard-coded list of modules in `make/common/Modules.gmk` has always been >> a wart in the build system. We pride ourself on using discovery instead of >> hard-coded list. In this case, it is not possible to do do auto-discovery,

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir

2020-12-15 Thread Alan Bateman
On Tue, 15 Dec 2020 16:11:45 GMT, Magnus Ihse Bursie wrote: > The hard-coded list of modules in `make/common/Modules.gmk` has always been a > wart in the build system. We pride ourself on using discovery instead of > hard-coded list. In this case, it is not possible to do do auto-discovery, >

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir [v2]

2020-12-15 Thread Magnus Ihse Bursie
On Tue, 15 Dec 2020 20:27:36 GMT, Magnus Ihse Bursie wrote: >> This looks better but I think we need to find better names for the conf >> files. Prefixing them with "module-sets" looks really strange. >> JRE_TOOL_MODULES in module-sets-classloaders.conf might also need to be >> re-examined

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir [v2]

2020-12-15 Thread Mandy Chung
On Tue, 15 Dec 2020 20:32:05 GMT, Magnus Ihse Bursie wrote: >> I thought it was a consistent and clear naming scheme. :-) But I guess to >> each their own... >> >> Would `classloader-modules.conf`, `docs-modules.conf` and >> `build-modules.con` be better? Otherwise you'll need to come up with

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir [v2]

2020-12-15 Thread Magnus Ihse Bursie
On Tue, 15 Dec 2020 19:28:33 GMT, Alan Bateman wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Split up module-sets.conf > > This looks better but I think we need to find better names for the conf > files.

RFR: 8258426: Split up autoconf/version-numbers and move it to conf dir

2020-12-15 Thread Magnus Ihse Bursie
The file `make/autoconf/version-numbers` is plagued by a two-fold problem: first of all, it's a configuration file, not a part of autoconf, so it should reside in `make/conf` instead of `make/autoconf`. Secondly, contrary to the name, it does not only contain version numbers, but also the

Re: RFR: 8257620: Do not use objc_msgSend_stret to get macOS version

2020-12-15 Thread Magnus Ihse Bursie
On Wed, 2 Dec 2020 17:34:00 GMT, Anton Kozlov wrote: > Please review a small change that replaces use of objc_msgSend_stret in macOS > platform code with pure ObjC code. It's also a prerequisite for macOS/AArch64 > support, where objc_msgSend_stret is not available. Marked as reviewed by ihse

Re: RFR: 8258426: Split up autoconf/version-numbers and move it to conf dir [v2]

2020-12-15 Thread Magnus Ihse Bursie
> The file `make/autoconf/version-numbers` is plagued by a two-fold problem: > first of all, it's a configuration file, not a part of autoconf, so it should > reside in `make/conf` instead of `make/autoconf`. > > Secondly, contrary to the name, it does not only contain version numbers, but >

Re: RFR: 8257733: Move module-specific data from make to respective module [v2]

2020-12-15 Thread Magnus Ihse Bursie
On Thu, 10 Dec 2020 23:07:52 GMT, Naoto Sato wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Move to share/data, and move jdwp.spec to java.se > > Reviewed changes to `characterdata`, `charsetmapping`,

Re: RFR: 8258420: Move URL configuration from Docs.gmk to conf dir

2020-12-15 Thread Magnus Ihse Bursie
On Tue, 15 Dec 2020 19:19:28 GMT, Alan Bateman wrote: >> In `Docs.gmk` there are some hard-coded links to online URL documentation >> and bug reporting locations. These should not reside in the make file per >> se, but instead move to the `make/conf` directory. > > This looks okay me to but I

Re: RFR: 8257733: Move module-specific data from make to respective module [v3]

2020-12-15 Thread Magnus Ihse Bursie
> A lot (but not all) of the data in make/data is tied to a specific module. > For instance, the publicsuffixlist is used by java.base, and fontconfig by > java.desktop. (A few directories, like mainmanifest, is *actually* used by > make for the whole build.) > > These data files should move

Re: RFR: 8257733: Move module-specific data from make to respective module [v4]

2020-12-15 Thread Magnus Ihse Bursie
> A lot (but not all) of the data in make/data is tied to a specific module. > For instance, the publicsuffixlist is used by java.base, and fontconfig by > java.desktop. (A few directories, like mainmanifest, is *actually* used by > make for the whole build.) > > These data files should move

RFR: 8258445: Move make/templates to make/data

2020-12-15 Thread Magnus Ihse Bursie
The `templates` directory in `make` is an odd bird. It actually contains data files that the license checker needs, so it should move to `make/data`. - Commit messages: - 8258445: Move make/templates to make/data Changes: https://git.openjdk.java.net/jdk/pull/1790/files Webrev:

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir [v3]

2020-12-15 Thread Magnus Ihse Bursie
> The hard-coded list of modules in `make/common/Modules.gmk` has always been a > wart in the build system. We pride ourself on using discovery instead of > hard-coded list. In this case, it is not possible to do do auto-discovery, > since the different module sets are configured, not

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir [v2]

2020-12-15 Thread Mandy Chung
On Tue, 15 Dec 2020 22:47:16 GMT, Mandy Chung wrote: >> As for `JRE_TOOL_MODULES`, I understand what you mean but it is at least >> kind of a "sibling" to the others. After all, we use these sets of modules >> together to form the set of modules for the JRE: >> >> JRE_MODULES += $(filter

Re: RFR: 8258420: Move URL configuration from Docs.gmk to conf dir

2020-12-15 Thread Alan Bateman
On Tue, 15 Dec 2020 17:50:46 GMT, Magnus Ihse Bursie wrote: > In `Docs.gmk` there are some hard-coded links to online URL documentation and > bug reporting locations. These should not reside in the make file per se, but > instead move to the `make/conf` directory. This looks okay me to but I

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir [v2]

2020-12-15 Thread Magnus Ihse Bursie
> The hard-coded list of modules in `make/common/Modules.gmk` has always been a > wart in the build system. We pride ourself on using discovery instead of > hard-coded list. In this case, it is not possible to do do auto-discovery, > since the different module sets are configured, not

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir [v2]

2020-12-15 Thread Magnus Ihse Bursie
On Tue, 15 Dec 2020 23:50:54 GMT, Mandy Chung wrote: >> Do you see a way to get rid of `DOCS_MODULES` but determine this set at >> build time? IIRC it was added for expediency for >> [JDK-8172312](https://bugs.openjdk.java.net/browse/JDK-8172312). This is >> the set of Java SE + JDK

Re: RFR: 8247957: remove doclint support for HTML 4 [v2]

2020-12-15 Thread Yoshiki Sato
On Tue, 15 Dec 2020 09:20:44 GMT, Magnus Ihse Bursie wrote: >> Yoshiki Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8257204 and 8256313 >> 8257204: Remove usage of -Xhtmlversion option from javac >> 8256313:

RFR: 8258449: Move make/hotspot/symbols to make/data

2020-12-15 Thread Magnus Ihse Bursie
The "symbol" files in make/hotspot/symbols are a list of exported symbols from libjvm. As such, they are an essential data source for the build system, and they should reside in make/data, not mixed with the hotspot make source code. - Commit messages: - 8258449: Move

RFR: 8258447: Move make/hotspot/hotspot.script to make/scripts

2020-12-15 Thread Magnus Ihse Bursie
The hotspot launcher script is misplaced among the hotspot make files. It should move to make/scripts (and get a proper extension). - Commit messages: - 8258447: Move make/hotspot/hotspot.script to make/scripts Changes: https://git.openjdk.java.net/jdk/pull/1791/files Webrev:

Re: RFR: 8258411: Move module set configuration from Modules.gmk to conf dir [v2]

2020-12-15 Thread Mandy Chung
On Tue, 15 Dec 2020 22:58:47 GMT, Mandy Chung wrote: >> `JRE_TOOL_MODULES` started with more than one modules in JDK 9: >> >> JRE_TOOL_MODULES += \ >> jdk.jdwp.agent \ >> jdk.pack \ >> jdk.scripting.nashorn.shell \ >> # >> >> Since only `jdk.jdwp.agent` one module is left for

Re: RFR: 8258447: Move make/hotspot/hotspot.script to make/scripts

2020-12-15 Thread Magnus Ihse Bursie
On Tue, 15 Dec 2020 23:28:25 GMT, Magnus Ihse Bursie wrote: > The hotspot launcher script is misplaced among the hotspot make files. It > should move to make/scripts (and get a proper extension). Can someone from hotspot please confirm if this script is still needed/used? - PR:

Re: RFR: JDK-8185734: [Windows] Structured Exception Catcher missing around gtest execution

2020-12-15 Thread Magnus Ihse Bursie
On Sun, 13 Dec 2020 11:07:42 GMT, Thomas Stuefe wrote: > Hi, > > May I have reviews please for the following patch. > > At the moment, if a crash happens on Windows in gtests, the gtest SEH handler > may be invoked instead of our error handler, and we just see a > one-line-warning "SEH

Re: RFR: 8247957: remove doclint support for HTML 4 [v2]

2020-12-15 Thread Magnus Ihse Bursie
On Tue, 15 Dec 2020 07:26:15 GMT, Yoshiki Sato wrote: >> HTML4 is no longer supported in javadoc. >> >> doclint needs to drop HTML4 support as well. >> The changes consist of: >> * Removing jdk.javadoc.internal.doclint.HtmlVersion and its references. >> * Sorting out supported tags and

Re: RFR: JDK-8185734: [Windows] Structured Exception Catcher missing around gtest execution

2020-12-15 Thread Magnus Ihse Bursie
On Sun, 13 Dec 2020 11:07:42 GMT, Thomas Stuefe wrote: > Hi, > > May I have reviews please for the following patch. > > At the moment, if a crash happens on Windows in gtests, the gtest SEH handler > may be invoked instead of our error handler, and we just see a > one-line-warning "SEH

Re: [jdk16] RFR: JDK-8247994: Localize javadoc search

2020-12-15 Thread Magnus Ihse Bursie
On Sun, 13 Dec 2020 00:22:04 GMT, Jonathan Gibbons wrote: >> This is for JDK16, as a precursor to fixing JDK-8258002. >> >> While it is good to be using localized strings in the generated output, the >> significance for JDK-8258002 is that the strings are now obtained from a >> resource file,

Re: [jdk16] RFR: JDK-8247994: Localize javadoc search

2020-12-15 Thread Magnus Ihse Bursie
On Sun, 13 Dec 2020 00:19:59 GMT, Jonathan Gibbons wrote: > This is for JDK16, as a precursor to fixing JDK-8258002. > > While it is good to be using localized strings in the generated output, the > significance for JDK-8258002 is that the strings are now obtained from a > resource file, and

Re: RFR: JDK-8185734: [Windows] Structured Exception Catcher missing around gtest execution

2020-12-15 Thread Thomas Stuefe
On Tue, 15 Dec 2020 08:16:51 GMT, Magnus Ihse Bursie wrote: >> Hi, >> >> May I have reviews please for the following patch. >> >> At the moment, if a crash happens on Windows in gtests, the gtest SEH >> handler may be invoked instead of our error handler, and we just see a >>

Re: RFR: JDK-8185734: [Windows] Structured Exception Catcher missing around gtest execution

2020-12-15 Thread Thomas Stuefe
On Tue, 15 Dec 2020 08:20:54 GMT, Magnus Ihse Bursie wrote: > Build changes look good. > > I left a note on the hotspot code; feel free to ignore it if you want. :) > > I agree with your assessment that restoring gtest to the code base would make > life simpler. I'm not sure what needs to be

Integrated: JDK-8185734: [Windows] Structured Exception Catcher missing around gtest execution

2020-12-15 Thread Thomas Stuefe
On Sun, 13 Dec 2020 11:07:42 GMT, Thomas Stuefe wrote: > Hi, > > May I have reviews please for the following patch. > > At the moment, if a crash happens on Windows in gtests, the gtest SEH handler > may be invoked instead of our error handler, and we just see a > one-line-warning "SEH