Skip to content

Commit 9c5d0f9

Browse files
committed
Merge
2 parents a010294 + 8555e0f commit 9c5d0f9

File tree

341 files changed

+9267
-6603
lines changed

Some content is hidden

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

341 files changed

+9267
-6603
lines changed

doc/building.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ <h2 id="native-compiler-toolchain-requirements">Native Compiler
548548
</tr>
549549
<tr class="odd">
550550
<td>Windows</td>
551-
<td>Microsoft Visual Studio 2022 update 17.1.0</td>
551+
<td>Microsoft Visual Studio 2022 version 17.6.5</td>
552552
</tr>
553553
</tbody>
554554
</table>

doc/building.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ possible to compile the JDK with both older and newer versions, but the closer
334334
you stay to this list, the more likely you are to compile successfully without
335335
issues.
336336

337-
| Operating system | Toolchain version |
338-
| ------------------ | ------------------------------------------ |
339-
| Linux | gcc 11.2.0 |
340-
| macOS | Apple Xcode 14.3.1 (using clang 14.0.3) |
341-
| Windows | Microsoft Visual Studio 2022 update 17.1.0 |
337+
| Operating system | Toolchain version |
338+
| ------------------ | ------------------------------------------- |
339+
| Linux | gcc 11.2.0 |
340+
| macOS | Apple Xcode 14.3.1 (using clang 14.0.3) |
341+
| Windows | Microsoft Visual Studio 2022 version 17.6.5 |
342342

343343
All compilers are expected to be able to compile to the C99 language standard,
344344
as some C99 features are used in the source code. Microsoft Visual Studio

doc/testing.html

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,22 @@ <h3 id="common-test-groups">Common Test Groups</h3>
207207
tier1.</p>
208208
<p>A brief description of the tiered test groups:</p>
209209
<ul>
210-
<li><p><code>tier1</code>: This is the lowest test tier. Multiple
211-
developers run these tests every day. Because of the widespread use, the
212-
tests in <code>tier1</code> are carefully selected and optimized to run
213-
fast, and to run in the most stable manner. The test failures in
214-
<code>tier1</code> are usually followed up on quickly, either with
215-
fixes, or adding relevant tests to problem list. GitHub Actions
216-
workflows, if enabled, run <code>tier1</code> tests.</p></li>
210+
<li><p><code>tier1</code>: This is the most fundamental test tier.
211+
Roughly speaking, a failure of a test in this tier has the potential to
212+
indicate a problem that would affect many Java programs. Tests in
213+
<code>tier1</code> include tests of HotSpot, core APIs in the
214+
<code>java.base</code> module, and the <code>javac</code> compiler.
215+
Multiple developers run these tests every day. Because of the widespread
216+
use, the tests in <code>tier1</code> are carefully selected and
217+
optimized to run fast, and to run in the most stable manner. As a
218+
guideline, nearly all individual tests in <code>tier1</code> are
219+
expected to run to completion in ten seconds or less when run on common
220+
configurations used for development. Long-running tests, even of core
221+
functionality, should occur in higher tiers or be covered in other kinds
222+
of testing. The test failures in <code>tier1</code> are usually followed
223+
up on quickly, either with fixes, or adding relevant tests to problem
224+
list. GitHub Actions workflows, if enabled, run <code>tier1</code>
225+
tests.</p></li>
217226
<li><p><code>tier2</code>: This test group covers even more ground.
218227
These contain, among other things, tests that either run for too long to
219228
be at <code>tier1</code>, or may require special configuration, or tests

doc/testing.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,21 @@ the first N tiers they can afford to run, but at least tier1.
135135

136136
A brief description of the tiered test groups:
137137

138-
- `tier1`: This is the lowest test tier. Multiple developers run these tests
139-
every day. Because of the widespread use, the tests in `tier1` are
140-
carefully selected and optimized to run fast, and to run in the most stable
141-
manner. The test failures in `tier1` are usually followed up on quickly,
142-
either with fixes, or adding relevant tests to problem list. GitHub Actions
143-
workflows, if enabled, run `tier1` tests.
138+
- `tier1`: This is the most fundamental test tier.
139+
Roughly speaking, a failure of a test in this tier has the potential
140+
to indicate a problem that would affect many Java programs. Tests in
141+
`tier1` include tests of HotSpot, core APIs in the `java.base`
142+
module, and the `javac` compiler. Multiple developers run these
143+
tests every day. Because of the widespread use, the tests in `tier1`
144+
are carefully selected and optimized to run fast, and to run in the
145+
most stable manner. As a guideline, nearly all individual tests in
146+
`tier1` are expected to run to completion in ten seconds or less
147+
when run on common configurations used for development. Long-running
148+
tests, even of core functionality, should occur in higher tiers or
149+
be covered in other kinds of testing. The test failures in `tier1`
150+
are usually followed up on quickly, either with fixes, or adding
151+
relevant tests to problem list. GitHub Actions workflows, if
152+
enabled, run `tier1` tests.
144153

145154
- `tier2`: This test group covers even more ground. These contain, among other
146155
things, tests that either run for too long to be at `tier1`, or may require

make/CreateJmods.gmk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,14 @@ else # not java.base
182182
endif
183183
endif
184184

185-
# Set main class of jdk.httpserver module
186-
ifeq ($(MODULE), jdk.httpserver)
187-
JMOD_FLAGS += --main-class sun.net.httpserver.simpleserver.Main
185+
################################################################################
186+
# Include module specific build settings
187+
188+
-include Jmod.gmk
189+
190+
# Set main class
191+
ifneq ($(JMOD_FLAGS_main_class), )
192+
JMOD_FLAGS += $(JMOD_FLAGS_main_class)
188193
endif
189194

190195
# Changes to the jmod tool itself should also trigger a rebuild of all jmods.

make/Main.gmk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,9 @@ JMOD_TARGETS := $(addsuffix -jmod, $(JMOD_MODULES))
405405

406406
define DeclareJmodRecipe
407407
$1-jmod:
408-
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CreateJmods.gmk \
409-
MODULE=$1)
408+
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) \
409+
$(patsubst %,-I%/modules/$1,$(PHASE_MAKEDIRS)) \
410+
-f CreateJmods.gmk MODULE=$1)
410411
endef
411412

412413
$(foreach m, $(JMOD_MODULES), $(eval $(call DeclareJmodRecipe,$m)))

make/autoconf/flags-cflags.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
562562
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
563563
# The -utf-8 option sets source and execution character sets to UTF-8 to enable correct
564564
# compilation of all source files regardless of the active code page on Windows.
565-
TOOLCHAIN_CFLAGS_JVM="-nologo -MD -Zc:preprocessor -Zc:strictStrings -Zc:inline -utf-8 -MP"
565+
TOOLCHAIN_CFLAGS_JVM="-nologo -MD -Zc:preprocessor -Zc:strictStrings -Zc:inline -permissive- -utf-8 -MP"
566566
TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:preprocessor -Zc:strictStrings -Zc:inline -utf-8 -Zc:wchar_t-"
567567
fi
568568

make/conf/jib-profiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ var getJibProfilesDependencies = function (input, common) {
10871087
var devkit_platform_revisions = {
10881088
linux_x64: "gcc11.2.0-OL6.4+1.0",
10891089
macosx: "Xcode14.3.1+1.0",
1090-
windows_x64: "VS2022-17.1.0+1.1",
1090+
windows_x64: "VS2022-17.6.5+1.0",
10911091
linux_aarch64: input.build_cpu == "x64" ? "gcc11.2.0-OL7.6+1.1" : "gcc11.2.0-OL7.6+1.0",
10921092
linux_arm: "gcc8.2.0-Fedora27+1.0",
10931093
linux_ppc64le: "gcc8.2.0-Fedora27+1.0",

make/jdk/src/classes/build/tools/taglet/SealedGraph.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private String relativeLink(TypeElement node) {
229229
var forwardNavigator = nodePackage.getQualifiedName().toString()
230230
.replace(".", "/");
231231

232-
return backNavigator + forwardNavigator + "/" + node.getSimpleName() + ".html";
232+
return backNavigator + forwardNavigator + "/" + packagelessCanonicalName(node) + ".html";
233233
}
234234

235235
public void addEdge(TypeElement node, TypeElement subNode) {
@@ -315,5 +315,14 @@ private static Optional<String> packageName(TypeElement element) {
315315
case MEMBER -> packageName((TypeElement) element.getEnclosingElement());
316316
};
317317
}
318+
319+
private static String packagelessCanonicalName(TypeElement element) {
320+
String result = element.getSimpleName().toString();
321+
while (element.getNestingKind() == NestingKind.MEMBER) {
322+
element = (TypeElement) element.getEnclosingElement();
323+
result = element.getSimpleName().toString() + '.' + result;
324+
}
325+
return result;
326+
}
318327
}
319328
}

make/modules/java.desktop/lib/Awt2dLibraries.gmk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,10 @@ else
493493
endif
494494

495495
# hb-ft.cc is not presently needed, and requires freetype 2.4.2 or later.
496-
LIBFONTMANAGER_EXCLUDE_FILES += libharfbuzz/hb-ft.cc
496+
# hb-subset and hb-style APIs are not needed, excluded to cut on compilation time.
497+
LIBFONTMANAGER_EXCLUDE_FILES += hb-ft.cc hb-subset-cff-common.cc \
498+
hb-subset-cff1.cc hb-subset-cff2.cc hb-subset-input.cc hb-subset-plan.cc \
499+
hb-subset.cc hb-subset-instancer-solver.cc gsubgpos-context.cc hb-style.cc
497500

498501
# list of disabled warnings and the compilers for which it was specifically added.
499502
# array-bounds -> GCC 12 on Alpine Linux

0 commit comments

Comments
 (0)