Skip to content

Commit 27faa8b

Browse files
committed
Merge branch 'master' of https://github.com/openjdk/jdk into feature/af-location-accessors
2 parents 5334df0 + b9b62a0 commit 27faa8b

File tree

3,873 files changed

+44717
-31007
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,873 files changed

+44717
-31007
lines changed

.github/actions/get-gtest/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ runs:
4949
- name: 'Export path to where GTest is installed'
5050
id: path-name
5151
run: |
52-
# Export the path
53-
echo 'path=gtest' >> $GITHUB_OUTPUT
52+
# Export the absolute path
53+
echo "path=`pwd`/gtest" >> $GITHUB_OUTPUT
5454
shell: bash

.github/actions/get-jtreg/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ runs:
4949
- name: 'Export path to where JTReg is installed'
5050
id: path-name
5151
run: |
52-
# Export the path
53-
echo 'path=jtreg/installed' >> $GITHUB_OUTPUT
52+
# Export the absolute path
53+
echo "path=`pwd`/jtreg/installed" >> $GITHUB_OUTPUT
5454
shell: bash

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2012, 2025, 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
@@ -24,8 +24,9 @@
2424
#
2525

2626
###
27-
### This file is just a very small wrapper needed to run the real make/Init.gmk.
28-
### It also performs some sanity checks on make.
27+
### This file is just a very small wrapper which will include make/PreInit.gmk,
28+
### where the real work is done. This wrapper also performs some sanity checks
29+
### on make that must be done before we can include another file.
2930
###
3031

3132
# The shell code below will be executed on /usr/bin/make on Solaris, but not in GNU Make.
@@ -58,7 +59,7 @@ ifeq ($(filter /%, $(lastword $(MAKEFILE_LIST))),)
5859
else
5960
makefile_path := $(lastword $(MAKEFILE_LIST))
6061
endif
61-
topdir := $(strip $(patsubst %/, %, $(dir $(makefile_path))))
62+
TOPDIR := $(strip $(patsubst %/, %, $(dir $(makefile_path))))
6263

63-
# ... and then we can include the real makefile
64-
include $(topdir)/make/Init.gmk
64+
# ... and then we can include the real makefile to bootstrap the build
65+
include $(TOPDIR)/make/PreInit.gmk

bin/idea.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2009, 2025, Oracle and/or its affiliates. All rights reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
#
66
# This code is free software; you can redistribute it and/or modify it
@@ -99,7 +99,7 @@ if [ "$VERBOSE" = "true" ] ; then
9999
echo "idea template dir: $IDEA_TEMPLATE"
100100
fi
101101

102-
cd $TOP ; make -f "$IDEA_MAKE/idea.gmk" -I $MAKE_DIR/.. idea MAKEOVERRIDES= OUT=$IDEA_OUTPUT/env.cfg MODULES="$*" $CONF_ARG || exit 1
102+
cd $TOP ; make idea-gen-config ALLOW=IDEA_OUTPUT,MODULES IDEA_OUTPUT=$IDEA_OUTPUT MODULES="$*" $CONF_ARG || exit 1
103103
cd $SCRIPT_DIR
104104

105105
. $IDEA_OUTPUT/env.cfg

doc/hotspot-style.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ <h3 id="source-files">Source Files</h3>
217217
should be put in the .hpp file, and not in the .inline.hpp file. This
218218
rule exists to resolve problems with circular dependencies between
219219
.inline.hpp files.</p></li>
220-
<li><p>All .cpp files include precompiled.hpp as the first include
221-
line.</p></li>
222-
<li><p>precompiled.hpp is just a build time optimization, so don't rely
223-
on it to resolve include problems.</p></li>
220+
<li><p>Some build configurations use precompiled headers to speed up the
221+
build times. The precompiled headers are included in the precompiled.hpp
222+
file. Note that precompiled.hpp is just a build time optimization, so
223+
don't rely on it to resolve include problems.</p></li>
224224
<li><p>Keep the include lines alphabetically sorted.</p></li>
225225
<li><p>Put conditional inclusions (<code>#if ...</code>) at the end of
226226
the include list.</p></li>

doc/hotspot-style.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ the first include line. Declarations needed by other files should be put
150150
in the .hpp file, and not in the .inline.hpp file. This rule exists to
151151
resolve problems with circular dependencies between .inline.hpp files.
152152

153-
* All .cpp files include precompiled.hpp as the first include line.
154-
155-
* precompiled.hpp is just a build time optimization, so don't rely on
156-
it to resolve include problems.
153+
* Some build configurations use precompiled headers to speed up the
154+
build times. The precompiled headers are included in the precompiled.hpp
155+
file. Note that precompiled.hpp is just a build time optimization, so
156+
don't rely on it to resolve include problems.
157157

158158
* Keep the include lines alphabetically sorted.
159159

make/Bundles.gmk

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 2025, 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
@@ -23,10 +23,9 @@
2323
# questions.
2424
#
2525

26-
default: all
26+
include MakeFileStart.gmk
2727

28-
include $(SPEC)
29-
include MakeBase.gmk
28+
################################################################################
3029

3130
include CopyFiles.gmk
3231
include MakeIO.gmk
@@ -43,8 +42,6 @@ ifeq ($(call isBuildOs, windows), true)
4342
TAR_IGNORE_EXIT_VALUE := || test "$$$$?" = "1"
4443
endif
4544

46-
# Hook to include the corresponding custom file, if present.
47-
$(eval $(call IncludeCustomExtension, Bundles-pre.gmk))
4845
################################################################################
4946
# BUNDLE : Name of bundle to create
5047
# FILES : Files in BASE_DIRS to add to bundle
@@ -502,11 +499,6 @@ endif
502499

503500
################################################################################
504501

505-
# Hook to include the corresponding custom file, if present.
506-
$(eval $(call IncludeCustomExtension, Bundles.gmk))
507-
508-
################################################################################
509-
510502
product-bundles: $(PRODUCT_TARGETS)
511503
legacy-bundles: $(LEGACY_TARGETS)
512504
test-bundles: $(TEST_TARGETS)
@@ -517,6 +509,10 @@ static-libs-bundles: $(STATIC_LIBS_TARGETS)
517509
static-libs-graal-bundles: $(STATIC_LIBS_GRAAL_TARGETS)
518510
jcov-bundles: $(JCOV_TARGETS)
519511

520-
.PHONY: all default product-bundles test-bundles \
512+
.PHONY: product-bundles test-bundles \
521513
docs-jdk-bundles docs-javase-bundles docs-reference-bundles \
522514
static-libs-bundles static-libs-graal-bundles jcov-bundles
515+
516+
################################################################################
517+
518+
include MakeFileEnd.gmk

make/CompileCommands.gmk

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2018, 2025, 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
@@ -23,10 +23,9 @@
2323
# questions.
2424
#
2525

26-
default: all
26+
include MakeFileStart.gmk
2727

28-
include $(SPEC)
29-
include MakeBase.gmk
28+
################################################################################
3029

3130
# When FIXPATH is set, let it process the file to make sure all paths are usable
3231
# by system native tools. The FIXPATH tool assumes arguments preceded by an @
@@ -50,6 +49,6 @@ $(OUTPUTDIR)/compile_commands.json: $(wildcard $(MAKESUPPORT_OUTPUTDIR)/compile-
5049

5150
TARGETS += $(OUTPUTDIR)/compile_commands.json
5251

53-
all: $(TARGETS)
52+
################################################################################
5453

55-
.PHONY: all
54+
include MakeFileEnd.gmk

make/CompileDemos.gmk

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2025, 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
@@ -23,23 +23,17 @@
2323
# questions.
2424
#
2525

26+
include MakeFileStart.gmk
27+
2628
################################################################################
2729
# Build demos for the JDK into $(SUPPORT_OUTPUTDIR)/demos/image.
2830
################################################################################
2931

30-
default: all
31-
32-
include $(SPEC)
33-
include MakeBase.gmk
34-
3532
include CopyFiles.gmk
3633
include JavaCompilation.gmk
3734
include TextFileProcessing.gmk
3835
include ZipArchive.gmk
3936

40-
# Hook to include the corresponding custom file, if present.
41-
$(eval $(call IncludeCustomExtension, CompileDemos-pre.gmk))
42-
4337
# Prepare the find cache.
4438
DEMO_SRC_DIRS += $(TOPDIR)/src/demo
4539

@@ -132,12 +126,19 @@ define SetupBuildDemoBody
132126
JARMAIN := $$($1_MAIN_CLASS), \
133127
MANIFEST := $(DEMO_MANIFEST), \
134128
EXTRA_MANIFEST_ATTR := $$($1_EXTRA_MANIFEST_ATTR), \
135-
SRCZIP := $(SUPPORT_OUTPUTDIR)/demos/image/$$($1_DEMO_SUBDIR)/$1/src.zip, \
136129
EXCLUDE_FILES := $$($1_EXCLUDE_FILES), \
137130
DISABLED_WARNINGS := $$($1_DISABLED_WARNINGS), \
138131
))
139132

140133
$1 += $$(BUILD_DEMO_$1)
134+
135+
$$(eval $$(call SetupZipArchive, ZIP_SRC_DEMO_$1, \
136+
SRC := $$($1_MAIN_SRC) $$($1_EXTRA_SRC_DIR), \
137+
ZIP := $(SUPPORT_OUTPUTDIR)/demos/image/$$($1_DEMO_SUBDIR)/$1/src.zip, \
138+
EXCLUDE_FILES := $$($1_EXCLUDE_FILES), \
139+
))
140+
141+
$1 += $$(ZIP_SRC_DEMO_$1)
141142
endif
142143

143144
# Copy files. Sort is needed to remove duplicates.
@@ -257,11 +258,8 @@ ifneq ($(filter images, $(MAKECMDGOALS)), )
257258
IMAGES_TARGETS := $(COPY_TO_TEST_IMAGE)
258259
endif
259260

260-
################################################################################
261-
# Hook to include the corresponding custom file, if present.
262-
$(eval $(call IncludeCustomExtension, CompileDemos-post.gmk))
263-
264-
all: $(TARGETS)
265261
images: $(IMAGES_TARGETS)
266262

267-
.PHONY: all
263+
################################################################################
264+
265+
include MakeFileEnd.gmk

make/CompileInterimLangtools.gmk

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2025, 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
@@ -23,11 +23,9 @@
2323
# questions.
2424
#
2525

26-
# This must be the first rule
27-
default: all
26+
include MakeFileStart.gmk
2827

29-
include $(SPEC)
30-
include MakeBase.gmk
28+
################################################################################
3129

3230
include CopyFiles.gmk
3331
include JavaCompilation.gmk
@@ -148,5 +146,4 @@ TARGETS += $(BUILD_JAVAC_SERVER)
148146

149147
################################################################################
150148

151-
152-
all: $(TARGETS)
149+
include MakeFileEnd.gmk

0 commit comments

Comments
 (0)