RFR: 8303485: Replacing os.name for operating system customization [v2]
Roger Riggs
rriggs at openjdk.org
Fri Mar 10 21:21:56 UTC 2023
> Improvements to support OS specific customization for JDK internal use:
> - To select values and code; allowing elimination of unused code and values
> - Optionally evaluated by build processes, compilation, or archiving (i.e. CDS)
> - Simple API to replace adhoc comparisons with `os.name`
> - Clear and consistent use across build, runtime, and JDK modules
>
> The PR includes updates within java.base to use the new API.
Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
Move OperatingSystem from jdk.internal.misc to jdk.internal.util
Rename Mac -> MacOS; isMac() -> isMacOS()
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/12931/files
- new: https://git.openjdk.org/jdk/pull/12931/files/736ab3cc..342f30f2
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=12931&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=12931&range=00-01
Stats: 467 lines in 15 files changed: 210 ins; 235 del; 22 mod
Patch: https://git.openjdk.org/jdk/pull/12931.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12931/head:pull/12931
PR: https://git.openjdk.org/jdk/pull/12931
More information about the core-libs-dev
mailing list