Skip to content

Commit 4810e98

Browse files
committed
Merge remote-tracking branch 'upstream/master' into JDK-8252657
2 parents 640014d + 51e14f2 commit 4810e98

File tree

3,029 files changed

+94218
-46910
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,029 files changed

+94218
-46910
lines changed

.github/workflows/submit.yml

Lines changed: 189 additions & 486 deletions
Large diffs are not rendered by default.

doc/building.html

Lines changed: 22 additions & 38 deletions
Large diffs are not rendered by default.

doc/building.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ If you have multiple versions of Visual Studio installed, `configure` will by
382382
default pick the latest. You can request a specific version to be used by
383383
setting `--with-toolchain-version`, e.g. `--with-toolchain-version=2017`.
384384

385+
If you have Visual Studio installed but `configure` fails to detect it, it may
386+
be because of [spaces in path](#spaces-in-path).
387+
385388
### IBM XL C/C++
386389

387390
Please consult the AIX section of the [Supported Build Platforms](
@@ -653,7 +656,7 @@ features, use `bash configure --help=short` instead.)
653656
On Linux, BSD and AIX, it is possible to override where Java by default
654657
searches for runtime/JNI libraries. This can be useful in situations where
655658
there is a special shared directory for system JNI libraries. This setting
656-
can in turn be overriden at runtime by setting the `java.library.path` property.
659+
can in turn be overridden at runtime by setting the `java.library.path` property.
657660
658661
* `--with-jni-libpath=<path>` - Use the specified path as a default
659662
when searching for runtime libraries.
@@ -719,7 +722,7 @@ hard to use properly. Therefore, `configure` will print a warning if this is
719722
detected.
720723
721724
However, there are a few `configure` variables, known as *control variables*
722-
that are supposed to be overriden on the command line. These are variables that
725+
that are supposed to be overridden on the command line. These are variables that
723726
describe the location of tools needed by the build, like `MAKE` or `GREP`. If
724727
any such variable is specified, `configure` will use that value instead of
725728
trying to autodetect the tool. For instance, `bash configure
@@ -799,7 +802,7 @@ broken build. Unless you're well versed in the build system, this is hard to
799802
use properly. Therefore, `make` will print a warning if this is detected.
800803
801804
However, there are a few `make` variables, known as *control variables* that
802-
are supposed to be overriden on the command line. These make up the "make time"
805+
are supposed to be overridden on the command line. These make up the "make time"
803806
configuration, as opposed to the "configure time" configuration.
804807
805808
#### General Make Control Variables
@@ -1466,6 +1469,15 @@ This can be a sign of a Cygwin problem. See the information about solving
14661469
problems in the [Cygwin](#cygwin) section. Rebooting the computer might help
14671470
temporarily.
14681471
1472+
#### Spaces in Path
1473+
1474+
On Windows, when configuring, `fixpath.sh` may report that some directory
1475+
names have spaces. Usually, it assumes those directories have
1476+
[short paths](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil-8dot3name).
1477+
You can run `fsutil file setshortname` in `cmd` on certain directories, such as
1478+
`Microsoft Visual Studio` or `Windows Kits`, to assign arbitrary short paths so
1479+
`configure` can access them.
1480+
14691481
### Getting Help
14701482
14711483
If none of the suggestions in this document helps you, or if you find what you

doc/hotspot-style.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ <h3 id="additional-permitted-features">Additional Permitted Features</h3>
304304
<li><p>Dynamic initialization and destruction with concurrency (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2660.htm">n2660</a>)</p></li>
305305
<li><p><code>final</code> virtual specifiers for classes and virtual functions (<a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2928.htm">n2928</a>), (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3206.htm">n3206</a>), (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3272.htm">n3272</a>)</p></li>
306306
<li><p>Local and unnamed types as template parameters (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm">n2657</a>)</p></li>
307+
<li><p>Range-based <code>for</code> loops (<a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html">n2930</a>) (<a href="https://en.cppreference.com/w/cpp/language/range-for">range-for</a>)</p></li>
307308
</ul>
308309
<h3 id="excluded-features">Excluded Features</h3>
309310
<ul>

doc/hotspot-style.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,10 @@ part of the avoidance of the C++ Standard Library in HotSpot code.
750750
* Local and unnamed types as template parameters
751751
([n2657](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm))
752752

753+
* Range-based `for` loops
754+
([n2930](http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html))
755+
([range-for](https://en.cppreference.com/w/cpp/language/range-for))
756+
753757
### Excluded Features
754758

755759
* New string and character literals

make/CompileCommands.gmk

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -45,11 +45,6 @@ $(OUTPUTDIR)/compile_commands.json: $(wildcard $(MAKESUPPORT_OUTPUTDIR)/compile-
4545
$(RM) $@
4646
$(FIND) $(MAKESUPPORT_OUTPUTDIR)/compile-commands/ -name \*.json | \
4747
$(SORT) | $(XARGS) $(CAT) >> [email protected]
48-
$(if $(FIXPATH),$(FIXPATH) $(AWK) 'BEGIN { \
49-
tmpfile = substr(ARGV[2],2); \
50-
cmd = "$(CP) " "\047" tmpfile "\047" " [email protected]"; \
51-
system(cmd); \
52-
5348
$(SED) -e '1s/^/[\$(NEWLINE)/' -e '$(DOLLAR)s/,\s\{0,\}$(DOLLAR)/\$(NEWLINE)]/' [email protected] > $@
5449
5550

make/CompileInterimLangtools.gmk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -49,8 +49,8 @@ TARGETS += $(patsubst %, $(BUILDTOOLS_OUTPUTDIR)/gensrc/%/module-info.java, \
4949
$(INTERIM_LANGTOOLS_MODULES))
5050

5151
$(eval $(call SetupCopyFiles, COPY_PREVIEW_FEATURES, \
52-
FILES := $(TOPDIR)/src/java.base/share/classes/jdk/internal/PreviewFeature.java, \
53-
DEST := $(BUILDTOOLS_OUTPUTDIR)/gensrc/java.base.interim/jdk/internal/, \
52+
FILES := $(TOPDIR)/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java, \
53+
DEST := $(BUILDTOOLS_OUTPUTDIR)/gensrc/java.base.interim/jdk/internal/javac/, \
5454
))
5555

5656
TARGETS += $(COPY_PREVIEW_FEATURES)
@@ -74,15 +74,15 @@ define SetupInterimModule
7474
EXCLUDE_FILES := $(TOPDIR)/src/$1/share/classes/module-info.java \
7575
Standard.java, \
7676
EXTRA_FILES := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim/module-info.java, \
77-
COPY := .gif .png .xml .css .js .txt javax.tools.JavaCompilerTool, \
77+
COPY := .gif .png .xml .css .js .js.template .txt javax.tools.JavaCompilerTool, \
7878
BIN := $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules/$1.interim, \
7979
DISABLED_WARNINGS := module options, \
8080
JAVAC_FLAGS := \
8181
--module-path $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules \
8282
$$(INTERIM_LANGTOOLS_ADD_EXPORTS) \
8383
--patch-module java.base=$(BUILDTOOLS_OUTPUTDIR)/gensrc/java.base.interim \
84-
--add-exports java.base/jdk.internal=java.compiler.interim \
85-
--add-exports java.base/jdk.internal=jdk.compiler.interim, \
84+
--add-exports java.base/jdk.internal.javac=java.compiler.interim \
85+
--add-exports java.base/jdk.internal.javac=jdk.compiler.interim, \
8686
))
8787

8888
$1_DEPS_INTERIM := $$(addsuffix .interim, $$(filter \

0 commit comments

Comments
 (0)