Skip to content

Commit b3dfe85

Browse files
Merge tag 'jdk-23+15' into labsjdk/automation-3-21-2024-6445
Added tag jdk-23+15 for changeset 481473e
2 parents 258db69 + 481473e commit b3dfe85

File tree

504 files changed

+289261
-288871
lines changed

Some content is hidden

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

504 files changed

+289261
-288871
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,5 @@ NashornProfile.txt
1818
/src/utils/LogCompilation/target/
1919
/.project/
2020
/.settings/
21-
/.project
22-
/.classpath
23-
/.cproject
2421
/compile_commands.json
2522
/.cache

.jcheck/conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ version=0
1515
domain=openjdk.org
1616

1717
[checks "whitespace"]
18-
files=.*\.cpp|.*\.hpp|.*\.c|.*\.h|.*\.java|.*\.cc|.*\.hh|.*\.m|.*\.mm|.*\.md|.*\.properties|.*\.gmk|.*\.m4|.*\.ac|Makefile
18+
files=.*\.cpp|.*\.hpp|.*\.c|.*\.h|.*\.java|.*\.cc|.*\.hh|.*\.m|.*\.mm|.*\.S|.*\.md|.*\.properties|.*\.gmk|.*\.m4|.*\.ac|Makefile
1919
ignore-tabs=.*\.gmk|Makefile
2020

2121
[checks "merge"]

doc/ide.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ <h4 id="eclipse-cdt">Eclipse CDT</h4>
110110
<pre><code>make eclipse-mixed-env</code></pre>
111111
<p>Do note that this generates all features that come with both Java and
112112
C/C++ natures.</p>
113-
<p>By default, the Eclipse Workspace is located in the ide subdirectory
114-
in the build output. To share the JDK's source directory with the
115-
Eclipse Workspace, you can instead run:</p>
116-
<pre><code>make eclipse-shared-&lt;ENV&gt;-env</code></pre>
117113
<p>Eclipse support in the JDK is relatively new, so do keep in mind that
118114
not everything may work at the moment. As such, the resulting Workspace
119115
also has compilation database parsing support enabled, so you can pass
@@ -160,9 +156,6 @@ <h4 id="eclipse">Eclipse</h4>
160156
<p>If doing so results in an error, you can also import the JDK via
161157
<code>File -&gt; Import -&gt; Existing Projects into Workspace</code> as
162158
a last resort.</p>
163-
<p>Alternatively, if you want a Java Workspace inside the JDK's source
164-
directory, you can instead run:</p>
165-
<pre><code>make eclipse-shared-java-env</code></pre>
166159
<p>As mentioned above for Eclipse CDT, you can create a combined Java
167160
and C/C++ Workspace which can conveniently switch between Java and C/C++
168161
natures during development by running:</p>

doc/ide.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,6 @@ make eclipse-mixed-env
100100
Do note that this generates all features that come with both Java and C/C++
101101
natures.
102102

103-
By default, the Eclipse Workspace is located in the ide subdirectory in the
104-
build output. To share the JDK's source directory with the Eclipse Workspace,
105-
you can instead run:
106-
107-
```
108-
make eclipse-shared-<ENV>-env
109-
```
110-
111103
Eclipse support in the JDK is relatively new, so do keep in mind that not
112104
everything may work at the moment. As such, the resulting Workspace also
113105
has compilation database parsing support enabled, so you can pass Eclipse
@@ -176,13 +168,6 @@ If doing so results in an error, you can also import the JDK via
176168
`File -> Import -> Existing Projects into Workspace`
177169
as a last resort.
178170

179-
Alternatively, if you want a Java Workspace inside the JDK's source directory,
180-
you can instead run:
181-
182-
```
183-
make eclipse-shared-java-env
184-
```
185-
186171
As mentioned above for Eclipse CDT, you can create a combined Java and C/C++
187172
Workspace which can conveniently switch between Java and C/C++ natures during
188173
development by running:

make/Hsdis.gmk

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ REAL_HSDIS_NAME := hsdis-$(OPENJDK_TARGET_CPU_LEGACY_LIB)$(SHARED_LIBRARY_SUFFIX
3939
BUILT_HSDIS_LIB := $(HSDIS_OUTPUT_DIR)/$(REAL_HSDIS_NAME)
4040

4141
HSDIS_LINK_TYPE := C
42-
HSDIS_TOOLCHAIN_CFLAGS := $(CFLAGS_JDKLIB)
43-
HSDIS_TOOLCHAIN_LDFLAGS := $(LDFLAGS_JDKLIB)
4442

4543
ifeq ($(HSDIS_BACKEND), capstone)
4644
ifeq ($(call isTargetCpuArch, x86), true)
@@ -60,7 +58,6 @@ endif
6058
ifeq ($(HSDIS_BACKEND), llvm)
6159
# Use C++ instead of C
6260
HSDIS_LINK_TYPE := C++
63-
HSDIS_TOOLCHAIN_CFLAGS := $(CXXFLAGS_JDKLIB)
6461

6562
ifeq ($(call isTargetOs, linux), true)
6663
LLVM_OS := pc-linux-gnu
@@ -128,8 +125,9 @@ ifeq ($(HSDIS_BACKEND), binutils)
128125
CFLAGS_WARNINGS_ARE_ERRORS := -Werror
129126
SHARED_LIBRARY_FLAGS := -shared
130127

131-
HSDIS_TOOLCHAIN_CFLAGS :=
132-
HSDIS_TOOLCHAIN_LDFLAGS := -L$(MINGW_GCC_LIB_PATH) -L$(MINGW_SYSROOT_LIB_PATH)
128+
HSDIS_TOOLCHAIN_DEFAULT_CFLAGS := false
129+
HSDIS_TOOLCHAIN_DEFAULT_LDFLAGS := false
130+
HSDIS_LDFLAGS += -L$(MINGW_GCC_LIB_PATH) -L$(MINGW_SYSROOT_LIB_PATH)
133131
MINGW_DLLCRT := $(MINGW_SYSROOT_LIB_PATH)/dllcrt2.o
134132
HSDIS_TOOLCHAIN_LIBS := $(MINGW_DLLCRT) -lmingw32 -lgcc -lgcc_eh -lmoldname \
135133
-lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32
@@ -147,8 +145,12 @@ $(eval $(call SetupJdkLibrary, BUILD_HSDIS, \
147145
OBJECT_DIR := $(HSDIS_OUTPUT_DIR), \
148146
DISABLED_WARNINGS_gcc := undef format-nonliteral sign-compare, \
149147
DISABLED_WARNINGS_clang := undef format-nonliteral, \
150-
CFLAGS := $(HSDIS_TOOLCHAIN_CFLAGS) $(HSDIS_CFLAGS), \
151-
LDFLAGS := $(HSDIS_TOOLCHAIN_LDFLAGS) $(HSDIS_LDFLAGS) $(SHARED_LIBRARY_FLAGS), \
148+
DEFAULT_CFLAGS := $(HSDIS_TOOLCHAIN_DEFAULT_CFLAGS), \
149+
CFLAGS := $(HSDIS_CFLAGS), \
150+
CXXFLAGS := $(HSDIS_CFLAGS), \
151+
LD_SET_ORIGIN := false, \
152+
DEFAULT_LDFLAGS := $(HSDIS_TOOLCHAIN_DEFAULT_LDFLAGS), \
153+
LDFLAGS := $(HSDIS_LDFLAGS) $(SHARED_LIBRARY_FLAGS), \
152154
LIBS := $(HSDIS_LIBS) $(HSDIS_TOOLCHAIN_LIBS), \
153155
))
154156

make/Images.gmk

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2024, 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
@@ -144,6 +144,14 @@ define CreateCDSArchive
144144
$1_$2_CDS_ARCHIVE := lib/$1/classes$2.jsa
145145
endif
146146

147+
ifneq ($(COMPARE_BUILD), )
148+
DEBUG_CDS_ARCHIVE := true
149+
endif
150+
151+
ifeq ($(DEBUG_CDS_ARCHIVE), true)
152+
$1_$2_CDS_DUMP_FLAGS += -Xlog:cds+map*=trace:file=$$(JDK_IMAGE_DIR)/$$($1_$2_CDS_ARCHIVE).cdsmap:none:filesize=0
153+
endif
154+
147155
$$(eval $$(call SetupExecute, $1_$2_gen_cds_archive_jdk, \
148156
WARN := Creating CDS$$($1_$2_DUMP_TYPE) archive for jdk image for $1, \
149157
INFO := Using CDS flags for $1: $$($1_$2_CDS_DUMP_FLAGS), \

make/InitSupport.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,10 @@ else # $(HAS_SPEC)=true
442442
# Compare first and second build. Ignore any error code from compare.sh.
443443
$(ECHO) "Comparing between comparison rebuild (this/new) and baseline (other/old)"
444444
$(if $(COMPARE_BUILD_COMP_DIR), \
445-
+(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh -vv $(COMPARE_BUILD_COMP_OPTS) \
445+
+(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
446446
-2dirs $(COMPARE_BUILD_OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) \
447447
$(OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) $(COMPARE_BUILD_IGNORE_RESULT)), \
448-
+(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh -vv $(COMPARE_BUILD_COMP_OPTS) \
448+
+(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
449449
-o $(OUTPUTDIR) $(COMPARE_BUILD_IGNORE_RESULT)) \
450450
)
451451
endef

make/Main.gmk

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -268,42 +268,22 @@ $(eval $(call SetupTarget, hotspot-ide-project, \
268268

269269
$(eval $(call SetupTarget, eclipse-java-env, \
270270
MAKEFILE := ide/eclipse/CreateWorkspace, \
271-
ARGS := --always-make WORKSPACE=java SHARED=false, \
271+
ARGS := --always-make WORKSPACE=java, \
272272
))
273273

274274
$(eval $(call SetupTarget, eclipse-hotspot-env, \
275275
MAKEFILE := ide/eclipse/CreateWorkspace, \
276-
ARGS := --always-make WORKSPACE=hotspot SHARED=false, \
276+
ARGS := --always-make WORKSPACE=hotspot, \
277277
))
278278

279279
$(eval $(call SetupTarget, eclipse-native-env, \
280280
MAKEFILE := ide/eclipse/CreateWorkspace, \
281-
ARGS := --always-make WORKSPACE=native SHARED=false, \
281+
ARGS := --always-make WORKSPACE=native, \
282282
))
283283

284284
$(eval $(call SetupTarget, eclipse-mixed-env, \
285285
MAKEFILE := ide/eclipse/CreateWorkspace, \
286-
ARGS := --always-make SHARED=false, \
287-
))
288-
289-
$(eval $(call SetupTarget, eclipse-shared-java-env, \
290-
MAKEFILE := ide/eclipse/CreateWorkspace, \
291-
ARGS := --always-make WORKSPACE=java SHARED=true, \
292-
))
293-
294-
$(eval $(call SetupTarget, eclipse-shared-hotspot-env, \
295-
MAKEFILE := ide/eclipse/CreateWorkspace, \
296-
ARGS := --always-make WORKSPACE=hotspot SHARED=true, \
297-
))
298-
299-
$(eval $(call SetupTarget, eclipse-shared-native-env, \
300-
MAKEFILE := ide/eclipse/CreateWorkspace, \
301-
ARGS := --always-make WORKSPACE=native SHARED=true, \
302-
))
303-
304-
$(eval $(call SetupTarget, eclipse-shared-mixed-env, \
305-
MAKEFILE := ide/eclipse/CreateWorkspace, \
306-
ARGS := --always-make SHARED=true, \
286+
ARGS := --always-make, \
307287
))
308288

309289
ALL_TARGETS += $(HOTSPOT_VARIANT_TARGETS) $(HOTSPOT_VARIANT_GENSRC_TARGETS) \

make/autoconf/compare.sh.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2012, 2024, 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
@@ -45,11 +45,13 @@ export CP="@CP@"
4545
export CUT="@CUT@"
4646
export DIFF="@DIFF@"
4747
export DUMPBIN="@DUMPBIN@"
48+
export ECHO="@ECHO@"
4849
export EXPR="@EXPR@"
4950
export FILE="@FILE@"
5051
export FIND="@FIND@"
5152
export GREP="@GREP@"
5253
export GUNZIP="@GUNZIP@"
54+
export HEAD="@HEAD@"
5355
export LDD="@LDD@"
5456
export LN="@LN@"
5557
export MKDIR="@MKDIR@"

make/autoconf/flags-cflags.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
537537
538538
if test "x$TOOLCHAIN_TYPE" = xgcc; then
539539
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -fstack-protector"
540-
TOOLCHAIN_CFLAGS_JDK="-pipe -fstack-protector"
540+
TOOLCHAIN_CFLAGS_JDK="-fvisibility=hidden -pipe -fstack-protector"
541541
# reduce lib size on linux in link step, this needs also special compile flags
542542
# do this on s390x also for libjvm (where serviceability agent is not supported)
543543
if test "x$ENABLE_LINKTIME_GC" = xtrue; then
@@ -572,6 +572,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
572572
TOOLCHAIN_CFLAGS_JDK="-pipe"
573573
TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing" # technically NOT for CXX
574574
fi
575+
TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK -fvisibility=hidden"
575576
576577
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
577578
# The -utf-8 option sets source and execution character sets to UTF-8 to enable correct

0 commit comments

Comments
 (0)