Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge tag 'jdk-21.0.2+13' into dragonwell_standard-21.0.2.0.2+13 #14

Merged
merged 164 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
ff5d969
8308204: Enhanced certificate processing
seanjmullan Jul 20, 2023
8b7afec
8286503: Enhance security classes
Jul 21, 2023
e636945
8311680: Update the release version after forking Oct CPU23_10
Jul 25, 2023
73d42ba
Merge
raviniitw2012 Jul 26, 2023
2f36f36
8311681: Update the Jan CPU24_01 release date in master branch after …
pashh Jul 26, 2023
11dbcf1
8309305: sun/security/ssl/SSLSocketImpl/BlockedAsyncClose.java fails …
Jul 30, 2023
50f35bd
Merge remote-tracking branch 'upstream/master'
raviniitw2012 Aug 1, 2023
412d02d
Merge remote-tracking branch 'upstream/master'
raviniitw2012 Aug 8, 2023
cb01f42
8312248: Enhanced archival support redux
calvinccheung Aug 8, 2023
fc9a6f0
8309966: Enhanced TLS connections
seanjmullan Aug 9, 2023
aad6786
Merge remote-tracking branch 'upstream/master'
raviniitw2012 Aug 22, 2023
79b8342
Merge remote-tracking branch 'upstream/master'
raviniitw2012 Aug 22, 2023
1cab474
8313756: [BACKOUT] 8308682: Enhance AES performance
chhagedorn Aug 23, 2023
1e16543
8314649: Enhanced archival support redux
calvinccheung Aug 23, 2023
c577a11
8313760: [REDO] Enhance AES performance
chhagedorn Aug 24, 2023
d35bbe7
Merge remote-tracking branch 'upstream/master'
raviniitw2012 Aug 31, 2023
7c83730
Merge remote-tracking branch 'upstream/master'
raviniitw2012 Sep 5, 2023
a19f2fd
Merge remote-tracking branch 'jdk21u/master'
raviniitw2012 Sep 5, 2023
b0ad09d
8315606: Open source few swing text/html tests
Sep 28, 2023
08980a0
8314295: Enhance verification of verifier
coleenp Sep 29, 2023
4d07893
8317331: Solaris build failed with "declaration can not follow a stat…
coleenp Oct 2, 2023
65ae942
8317439: Updating RE Configs for BUILD REQUEST 21.0.2+1
Oct 3, 2023
f0be683
Merge remote-tracking branch 'jdk21u/master'
raviniitw2012 Oct 5, 2023
f281d5a
8316976: Improve signature handling
Oct 13, 2023
a4e78f3
Merge remote-tracking branch 'jdk21u/master'
raviniitw2012 Oct 17, 2023
2621f68
8314468: Improve Compiler loops
TobiHartmann Oct 20, 2023
5c79703
8318137: Change milestone to fcs for all releases
pashh Oct 26, 2023
1f75ab2
8267509: Improve IllegalAccessException message to include the cause …
shipilev Nov 1, 2023
502d30b
8318540: make test cannot run .jasm tests directly
shipilev Nov 1, 2023
9405b0c
8318528: Rename TestUnstructuredLocking test
shipilev Nov 1, 2023
067cd17
8295555: Primitive wrapper caches could be `@Stable`
shipilev Nov 1, 2023
a811300
8314330: java/foreign tests should respect vm flags when start new pr…
shipilev Nov 1, 2023
69adcc6
8312126: NullPointerException in CertStore.getCRLs after 8297955
shipilev Nov 1, 2023
bbc5ad7
8301341: LinkedTransferQueue does not respect timeout for poll()
Nov 1, 2023
50e1a34
8315437: Enable parallelism in vmTestbase/nsk/monitoring/stress/class…
shipilev Nov 1, 2023
3e46e29
8315774: Enable parallelism in vmTestbase/gc/g1/unloading tests
shipilev Nov 1, 2023
ae5b92c
8315442: Enable parallelism in vmTestbase/nsk/monitoring/stress/threa…
shipilev Nov 1, 2023
c3c2b9f
8303737: C2: Load can bypass subtype check that enforces it's from th…
shipilev Nov 1, 2023
de57df4
8316414: C2: large byte array clone triggers "failed: malformed contr…
shipilev Nov 1, 2023
599b30d
8309778: java/nio/file/Files/CopyAndMove.java fails when using second…
GoeLin Nov 1, 2023
05deef8
8301457: Code in SendPortZero.java is uncommented even after JDK-8236…
GoeLin Nov 1, 2023
a96de29
8161536: sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java fails w…
GoeLin Nov 1, 2023
6e21766
8318953: RISC-V: Small refactoring for MacroAssembler::test_bit
zifeihan Nov 2, 2023
5c4039c
Merge remote-tracking branch 'jdk21u/master' into jdk21.0.2
raviniitw2012 Nov 2, 2023
bb8db71
8318089: Class space not marked as such with NMT when CDS is off
tstuefe Nov 2, 2023
bb7c86f
8318415: Adjust describing comment of os_getChildren after 8315026
MBaesken Nov 2, 2023
07a1490
8316411: compiler/compilercontrol/TestConflictInlineCommands.java fai…
MBaesken Nov 2, 2023
e371a3d
8318669: Target OS detection in 'test-prebuilt' makefile target is in…
fthevenet Nov 2, 2023
b743ba8
8318889: C2: add bailout after assert Bad graph detected in build_loo…
TobiHartmann Nov 3, 2023
3552d5a
8316659: assert(LockingMode != LM_LIGHTWEIGHT || flag == CCR0) failed…
TheRealMDoerr Nov 3, 2023
844c32a
8316142: Enable parallelism in vmTestbase/nsk/monitoring/stress/lowme…
shipilev Nov 3, 2023
892938d
8312434: SPECjvm2008/xml.transform with CDS fails with "can't seal pa…
calvinccheung Nov 3, 2023
e2b89c7
8316648: jrt-fs.jar classes not reproducible between standard and boo…
Nov 3, 2023
504f4a0
8286757: adlc tries to build with /pathmap but without /experimental:…
Nov 3, 2023
4a6c0d8
8314242: Update applications/scimark/Scimark.java to accept VM flags
GoeLin Nov 6, 2023
4bbea6d
8315415: OutputAnalyzer.shouldMatchByLine() fails in some cases
GoeLin Nov 6, 2023
4cf572e
8316304: (fs) Add support for BasicFileAttributes.creationTime() for …
jerboaa Nov 6, 2023
2bc004b
Merge remote-tracking branch 'jdk21u/master' into jdk21.0.2
raviniitw2012 Nov 7, 2023
337271f
8317920: JDWP-agent sends broken exception event with onthrow option
parttimenerd Nov 7, 2023
421bf8a
8316461: Fix: make test outputs TEST SUCCESS after unsuccessful exit
GoeLin Nov 8, 2023
7091631
8319525: RISC-V: Rename *_riscv64.ad files to *_riscv.ad under riscv/gc
RealFYang Nov 8, 2023
6bd2c5a
8318474: Fix memory reporter for thread_count
zer0chance Nov 8, 2023
31c759d
8315362: NMT: summary diff reports threads count incorrectly
zer0chance Nov 8, 2023
eb8267d
8316585: [REDO] runtime/InvocationTests spend a lot of time on depend…
shipilev Nov 8, 2023
50c34ca
8316645: RISC-V: Remove dependency on libatomic by adding cmpxchg 1b
shipilev Nov 8, 2023
fb355df
8309209: C2 failed "assert(_stack_guard_state == stack_guard_reserved…
shipilev Nov 8, 2023
b93d884
8318183: C2: VM may crash after hitting node limit
shipilev Nov 8, 2023
243142c
8314580: PhaseIdealLoop::transform_long_range_checks fails with asser…
shipilev Nov 8, 2023
6632c8a
8317374: Add Let's Encrypt ISRG Root X2
rhalade Nov 8, 2023
7f02e4a
8301846: Invalid TargetDataLine after screen lock when using JFileCho…
Renjithkannath Nov 8, 2023
0679922
8294535: Add screen capture functionality to PassFailJFrame
aivanov-jdk Nov 8, 2023
0e2a520
8318951: Additional negative value check in JPEG decoding
jayathirthrao Nov 9, 2023
9008889
8316679: C2 SuperWord: wrong result, load should not be moved before …
shipilev Nov 9, 2023
37888d2
8314191: C2 compilation fails with "bad AD file"
shipilev Nov 9, 2023
32987b7
8317510: Change Windows debug symbol files naming to avoid losing inf…
fthevenet Nov 9, 2023
10ccbeb
8314307: Improve loop handling
chhagedorn Nov 9, 2023
5cb041e
8317340: Windows builds are not reproducible if MS VS compiler instal…
Nov 9, 2023
54fbd4b
8308479: [s390x] Implement alternative fast-locking scheme
offamitkumar Nov 9, 2023
b174d5e
8317601: Windows build on WSL broken after JDK-8317340
Nov 9, 2023
e00c9bb
8225377: type annotations are not visible to javac plugins across com…
cushon Nov 10, 2023
525d220
8318736: com/sun/jdi/JdwpOnThrowTest.java failed with "transport erro…
parttimenerd Nov 10, 2023
c952079
8317507: C2 compilation fails with "Exceeded _node_regs array"
shipilev Nov 10, 2023
0049afb
8319828: runtime/NMT/VirtualAllocCommitMerge.java may fail if mixing …
tstuefe Nov 14, 2023
ccc2fd0
8319922: libCreationTimeHelper.so fails to link in JDK 21
tstuefe Nov 14, 2023
dad0e86
Merge remote-tracking branch 'jdk21u/master' into jdk21.0.2
raviniitw2012 Nov 14, 2023
be539fd
8318961: increase javacserver connection timeout values and max retry…
MBaesken Nov 14, 2023
daf76eb
8319339: Internal error on spurious markup in a hybrid snippet
pavelrappo Nov 14, 2023
3515f60
8310596: Utilize existing method frame::interpreter_frame_monitor_siz…
TheRealMDoerr Nov 14, 2023
bac4829
8312433: HttpClient request fails due to connection being considered …
jaikiran Nov 14, 2023
fb7d858
8316436: ContinuationWrapper uses unhandled nullptr oop
shipilev Nov 14, 2023
cd4ce01
8315920: C2: "control input must dominate current control" assert fai…
shipilev Nov 14, 2023
67f5d7b
8318525: Atomic gtest should run as TEST_VM to access VM capabilities
shipilev Nov 14, 2023
545b1fe
8316935: [s390x] Use consistent naming for lightweight locking in Mac…
offamitkumar Nov 14, 2023
81eaed2
8317603: Improve exception messages thrown by sun.nio.ch.Net native m…
MBaesken Nov 14, 2023
1ba77d9
8312174: missing JVMTI events from vthreads parked during JVMTI attach
Nov 14, 2023
8998f6f
8319104: GtestWrapper crashes with SIGILL in AsyncLogTest::test_async…
GoeLin Nov 15, 2023
dfca3b9
8319184: RISC-V: improve MD5 intrinsic
RealFYang Nov 15, 2023
015dab9
8316030: Update Libpng to 1.6.40
rajamah Nov 15, 2023
a25ea4c
8316719: C2 compilation still fails with "bad AD file"
shipilev Nov 16, 2023
fb9bd49
8317581: [s390x] Multiple test failure with LockingMode=2
offamitkumar Nov 16, 2023
71eec78
8319958: test/jdk/java/io/File/libGetXSpace.c does not compile on Win…
sxa Nov 16, 2023
245885b
8319436: Proxy.newProxyInstance throws NPE if loader is null and inte…
Nov 16, 2023
d603f8a
8312191: ColorConvertOp.filter for the default destination is too slow
mrserb Nov 16, 2023
cb352c2
8318759: Add four DigiCert root certificates
rhalade Nov 17, 2023
3c712ed
8315195: RISC-V: Update hwprobe query for new extensions
robehn Nov 17, 2023
99d260c
8313781: Add regression tests for large page logging and user-facing …
RealCLanger Nov 17, 2023
44b5b81
8313782: Add user-facing warning if THPs are enabled but cannot be used
RealCLanger Nov 17, 2023
ffa87b5
8318240: [AIX] Cleaners.java test failure
RealCLanger Nov 17, 2023
321ba68
8313643: Update HarfBuzz to 8.2.2
aivanov-jdk Nov 17, 2023
2545f55
8317039: Enable specifying the JDK used to run jtreg
Nov 17, 2023
6453e64
8294158: HTML formatting for PassFailJFrame instructions
aivanov-jdk Nov 20, 2023
8de7b61
8316003: Update FileChooserSymLinkTest.java to HTML instructions
aivanov-jdk Nov 20, 2023
3fcc7ea
8320053: GHA: Cross-compile gtest code
shipilev Nov 20, 2023
4558e49
8317834: java/lang/Thread/IsAlive.java timed out
shipilev Nov 20, 2023
3c124e3
8294156: Allow PassFailJFrame.Builder to create test UI
aivanov-jdk Nov 20, 2023
1d128dc
8316025: Use testUI() method of PassFailJFrame.Builder in FileChooser…
aivanov-jdk Nov 20, 2023
7588fce
8316746: Top of lock-stack does not match the unlocked object
TheRealMDoerr Nov 20, 2023
44bb402
8315554: C1: Replace "cmp reg, 0" with "test reg, reg" on x86
shipilev Nov 20, 2023
e79ebc7
8315545: C1: x86 cmove can use short branches
shipilev Nov 20, 2023
1603958
8316017: Refactor timeout handler in PassFailJFrame
aivanov-jdk Nov 20, 2023
a9f71e9
8319187: Add three eMudhra emSign roots
rhalade Nov 20, 2023
177d994
8306561: Possible out of bounds access in print_pointer_information
RealCLanger Nov 21, 2023
53fec1b
8318981: compiler/compilercontrol/TestConflictInlineCommands.java fai…
MBaesken Nov 21, 2023
c67abe1
Merge remote-tracking branch 'jdk21u/master' into jdk21.0.2
raviniitw2012 Nov 21, 2023
73d59d0
8318591: avoid leaks in loadlib_aix.cpp reload_table()
MBaesken Nov 21, 2023
cf187a1
8318955: Add ReleaseIntArrayElements in Java_sun_awt_X11_XlibWrapper_…
MBaesken Nov 21, 2023
689b90d
8318957: enhance agentlib:jdwp help output by info about allow option
MBaesken Nov 21, 2023
21a003a
8320209: VectorMaskGen clobbers rflags on x86_64
Nov 21, 2023
e7bd0ab
8319961: JvmtiEnvBase doesn't zero _ext_event_callbacks
Nov 21, 2023
0941f2c
8318562: Computational test more than 2x slower when AVX instructions…
Nov 21, 2023
d7a3ac7
8318587: refresh libraries cache on AIX in print_vm_info
MBaesken Nov 21, 2023
220b36c
8310239: Add missing cross modifying fence in nmethod entry barriers
fisk Nov 22, 2023
ecb199a
8313616: support loading library members on AIX in os::dll_load
MBaesken Nov 24, 2023
3df010f
8320280: RISC-V: Avoid passing t0 as temp register to MacroAssembler:…
zifeihan Nov 27, 2023
afc506e
8319700: [AArch64] C2 compilation fails with "Field too big for insn"
xmas92 Nov 27, 2023
f01df29
8315082: [REDO] Generational ZGC: Tests crash with assert(index == 0 …
shipilev Nov 27, 2023
b42280b
8318144: Match on enum constants with body compiles but fails with Ma…
lahodaj Nov 27, 2023
4022eac
8319532: jshell - Non-sealed declarations sometimes break a snippet e…
lahodaj Nov 27, 2023
1f7b17d
8315692: Parallelize gc/stress/TestStressRSetCoarsening.java test
roy-soumadipta Nov 27, 2023
1326d00
8316967: Correct the scope of vmtimer in UnregisteredClasses::load_class
shipilev Nov 27, 2023
4d5ceb4
8316581: Improve performance of Symbol::print_value_on()
shipilev Nov 27, 2023
e86ae80
8316415: Parallelize sun/security/rsa/SignedObjectChain.java subtests
shipilev Nov 27, 2023
f5045fc
8319195: Move most tier 1 vector API regression tests to tier 3
shipilev Nov 27, 2023
19ce3ec
8319120: Unbound ScopedValue.get() throws the wrong exception
shipilev Nov 27, 2023
cae6460
8318078: ADLC: pass ASSERT and PRODUCT flags
shipilev Nov 27, 2023
0f7bbe1
8318895: Deoptimization results in incorrect lightweight locking stack
rkennke Nov 27, 2023
593ef7c
8316401: sun/tools/jhsdb/JStackStressTest.java failed with "InternalE…
rkennke Nov 27, 2023
2e55190
8315936: Parallelize gc/stress/TestStressG1Humongous.java test
Nov 27, 2023
f3ff69a
8315684: Parallelize sun/security/util/math/TestIntegerModuloP.java
Nov 27, 2023
f8706d1
8320363: ppc64 TypeEntries::type_unknown logic looks wrong, missed op…
TheRealMDoerr Nov 27, 2023
ab7380e
8320601: ProblemList java/lang/invoke/lambda/LambdaFileEncodingSerial…
RealCLanger Nov 28, 2023
7c1c76d
8320001: javac crashes while adding type annotations to the return ty…
raviniitw2012 Nov 29, 2023
7592983
8320001: javac crashes while adding type annotations to the return ty…
Nov 29, 2023
ffa6fe5
Merge
robm-openjdk Nov 29, 2023
ba79073
8321067: Unlock experimental options in EATests.java
rkennke Nov 30, 2023
03c3ae1
Merge
robm-openjdk Nov 30, 2023
e831175
8317547: Enhance TLS connection support
Dec 6, 2023
60b6a66
8320597: RSA signature verification fails on signed data that does no…
wangweij Dec 14, 2023
53118a3
Merge
robm-openjdk Dec 14, 2023
18e97aa
8322883: [BACKOUT] 8225377: type annotations are not visible to javac…
Jan 3, 2024
f423faa
8322883: [BACKOUT] 8225377: type annotations are not visible to javac…
raviniitw2012 Jan 3, 2024
1c7197f
8322985: [BACKOUT] 8318562: Computational test more than 2x slower wh…
TobiHartmann Jan 5, 2024
375769c
Merge
Jan 16, 2024
fbfb315
Merge tag 'jdk-21.0.2+13' into dragonwell_standard-21.0.2.0.2+13
Accelerator1996 Jan 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .github/workflows/build-cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ jobs:
with:
platform: linux-x64

- name: 'Get GTest'
id: gtest
uses: ./.github/actions/get-gtest

# Upgrading apt to solve libc6 installation bugs, see JDK-8260460.
- name: 'Install toolchain and dependencies'
run: |
Expand Down Expand Up @@ -155,6 +159,7 @@ jobs:
--with-conf-name=linux-${{ matrix.target-cpu }}
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
--with-gtest=${{ steps.gtest.outputs.path }}
--with-zlib=system
--enable-debug
--disable-precompiled-headers
Expand Down
20 changes: 3 additions & 17 deletions make/CreateJmods.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -81,13 +81,11 @@ endif
ifneq ($(CMDS_DIR), )
DEPS += $(call FindFiles, $(CMDS_DIR))
ifeq ($(call isTargetOs, windows)+$(SHIP_DEBUG_SYMBOLS), true+public)
# For public debug symbols on Windows, we have to use stripped pdbs, rename them
# and filter out a few launcher pdbs where there's a lib that goes by the same name
# For public debug symbols on Windows, we have to use stripped pdbs and rename them
rename_stripped = $(patsubst %.stripped.pdb,%.pdb,$1)
CMDS_DIR_FILTERED := $(subst modules_cmds,modules_cmds_filtered, $(CMDS_DIR))
FILES_CMDS := $(filter-out %.pdb, $(call FindFiles, $(CMDS_DIR))) \
$(filter-out %jimage.stripped.pdb %jpackage.stripped.pdb %java.stripped.pdb, \
$(filter %.stripped.pdb, $(call FindFiles, $(CMDS_DIR))))
$(filter %.stripped.pdb, $(call FindFiles, $(CMDS_DIR)))
$(eval $(call SetupCopyFiles, COPY_FILTERED_CMDS, \
SRC := $(CMDS_DIR), \
DEST := $(CMDS_DIR_FILTERED), \
Expand All @@ -96,18 +94,6 @@ ifneq ($(CMDS_DIR), )
))
DEPS += $(COPY_FILTERED_CMDS)
JMOD_FLAGS += --cmds $(CMDS_DIR_FILTERED)
else ifeq ($(call isTargetOs, windows)+$(SHIP_DEBUG_SYMBOLS), true+full)
# For full debug symbols on Windows, we have to filter out a few launcher pdbs
# where there's a lib that goes by the same name
CMDS_DIR_FILTERED := $(subst modules_cmds,modules_cmds_filtered, $(CMDS_DIR))
$(eval $(call SetupCopyFiles, COPY_FILTERED_CMDS, \
SRC := $(CMDS_DIR), \
DEST := $(CMDS_DIR_FILTERED), \
FILES := $(filter-out %jimage.pdb %jpackage.pdb %java.pdb, \
$(call FindFiles, $(CMDS_DIR))), \
))
DEPS += $(COPY_FILTERED_CMDS)
JMOD_FLAGS += --cmds $(CMDS_DIR_FILTERED)
else
JMOD_FLAGS += --cmds $(CMDS_DIR)
endif
Expand Down
7 changes: 2 additions & 5 deletions make/Images.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ else
endif
endif

FILTERED_PDBS := %jimage.stripped.pdb %jpackage.stripped.pdb %java.stripped.pdb \
%jimage.pdb %jpackage.pdb %java.pdb %jimage.map %jpackage.map %java.map

# Param 1 - either JDK or JRE
SetupCopyDebuginfo = \
$(foreach m, $(ALL_$1_MODULES), \
Expand All @@ -283,8 +280,8 @@ SetupCopyDebuginfo = \
$(eval $(call SetupCopyFiles, COPY_$1_CMDS_DEBUGINFO_$m, \
SRC := $(SUPPORT_OUTPUTDIR)/modules_cmds/$m, \
DEST := $($1_IMAGE_DIR)/$(CMDS_TARGET_SUBDIR), \
FILES := $(filter-out $(FILTERED_PDBS), $(call FindDebuginfoFiles, \
$(SUPPORT_OUTPUTDIR)/modules_cmds/$m)), \
FILES := $(call FindDebuginfoFiles, \
$(SUPPORT_OUTPUTDIR)/modules_cmds/$m), \
)) \
$(eval $1_TARGETS += $$(COPY_$1_CMDS_DEBUGINFO_$m)) \
)
Expand Down
6 changes: 4 additions & 2 deletions make/JrtfsJar.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -46,8 +46,10 @@ JIMAGE_PKGS := \
jdk/internal/jrtfs \
#

# Compile jrt-fs.jar with the interim compiler, as it
# ends up in the image, this will ensure reproducible classes
$(eval $(call SetupJavaCompilation, BUILD_JRTFS, \
COMPILER := bootjdk, \
COMPILER := interim, \
DISABLED_WARNINGS := options, \
TARGET_RELEASE := $(TARGET_RELEASE_JDK8), \
SRC := $(TOPDIR)/src/java.base/share/classes, \
Expand Down
13 changes: 7 additions & 6 deletions make/RunTests.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ ExpandJtregPath = \
# with test id: dir/Test.java#selection -> Test.java#selection -> .java#selection -> #selection
# without: dir/Test.java -> Test.java -> .java -> <<empty string>>
TestID = \
$(subst .sh,,$(subst .html,,$(subst .java,,$(suffix $(notdir $1)))))
$(subst .jasm,,$(subst .sh,,$(subst .html,,$(subst .java,,$(suffix $(notdir $1))))))

# The test id starting with a hash (#testid) will be stripped by all
# evals in ParseJtregTestSelectionInner and will be reinserted by calling
Expand Down Expand Up @@ -861,11 +861,12 @@ define SetupRunJtregTestBody

$$(eval $$(call SetupRunJtregTestCustom, $1))

clean-workdir-$1:
clean-outputdirs-$1:
$$(RM) -r $$($1_TEST_SUPPORT_DIR)
$$(RM) -r $$($1_TEST_RESULTS_DIR)

$1_COMMAND_LINE := \
$$(JAVA) $$($1_JTREG_LAUNCHER_OPTIONS) \
$$(JTREG_JAVA) $$($1_JTREG_LAUNCHER_OPTIONS) \
-Dprogram=jtreg -jar $$(JT_HOME)/lib/jtreg.jar \
$$($1_JTREG_BASIC_OPTIONS) \
-testjdk:$$(JDK_UNDER_TEST) \
Expand Down Expand Up @@ -908,7 +909,7 @@ define SetupRunJtregTestBody
done
endif

run-test-$1: pre-run-test clean-workdir-$1
run-test-$1: pre-run-test clean-outputdirs-$1
$$(call LogWarn)
$$(call LogWarn, Running test '$$($1_TEST)')
$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR) \
Expand Down Expand Up @@ -945,9 +946,9 @@ define SetupRunJtregTestBody
$$(eval $1_TOTAL := 1) \
)

$1: run-test-$1 parse-test-$1 clean-workdir-$1
$1: run-test-$1 parse-test-$1 clean-outputdirs-$1

TARGETS += $1 run-test-$1 parse-test-$1 clean-workdir-$1
TARGETS += $1 run-test-$1 parse-test-$1 clean-outputdirs-$1
TEST_TARGETS += parse-test-$1

endef
Expand Down
9 changes: 9 additions & 0 deletions make/RunTestsPrebuilt.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ $(eval $(call SetupVariable,JT_HOME))
$(eval $(call SetupVariable,JDK_IMAGE_DIR,$(OUTPUTDIR)/images/jdk))
$(eval $(call SetupVariable,TEST_IMAGE_DIR,$(OUTPUTDIR)/images/test))
$(eval $(call SetupVariable,SYMBOLS_IMAGE_DIR,$(OUTPUTDIR)/images/symbols,NO_CHECK))
$(eval $(call SetupVariable,JTREG_JDK,$(BOOT_JDK)))

# Provide default values for tools that we need
$(eval $(call SetupVariable,MAKE,make,NO_CHECK))
Expand Down Expand Up @@ -157,6 +158,10 @@ ifeq ($(UNAME_OS), CYGWIN)
OPENJDK_TARGET_OS := windows
OPENJDK_TARGET_OS_TYPE := windows
OPENJDK_TARGET_OS_ENV := windows.cygwin
else ifeq ($(UNAME_OS), MINGW64)
OPENJDK_TARGET_OS := windows
OPENJDK_TARGET_OS_TYPE := windows
OPENJDK_TARGET_OS_ENV := windows.msys2
else
OPENJDK_TARGET_OS_TYPE:=unix
ifeq ($(UNAME_OS), Linux)
Expand All @@ -169,6 +174,9 @@ else
OPENJDK_TARGET_OS_ENV := $(OPENJDK_TARGET_OS)
endif

# Sanity check env detection
$(info Detected target OS, type and env: [$(OPENJDK_TARGET_OS)] [$(OPENJDK_TARGET_OS_TYPE)] [$(OPENJDK_TARGET_OS_ENV)])

# Assume little endian unless otherwise specified
OPENJDK_TARGET_CPU_ENDIAN := little

Expand Down Expand Up @@ -248,6 +256,7 @@ $(call CreateNewSpec, $(NEW_SPEC), \
TOPDIR := $(TOPDIR), \
OUTPUTDIR := $(OUTPUTDIR), \
BOOT_JDK := $(BOOT_JDK), \
JTREG_JDK := $(JTREG_JDK), \
JT_HOME := $(JT_HOME), \
JDK_IMAGE_DIR := $(JDK_IMAGE_DIR), \
JCOV_IMAGE_DIR := $(JCOV_IMAGE_DIR), \
Expand Down
2 changes: 2 additions & 0 deletions make/RunTestsPrebuiltSpec.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ JAR := $(FIXPATH) $(JAR_CMD)
JLINK := $(FIXPATH) $(JLINK_CMD)
JMOD := $(FIXPATH) $(JMOD_CMD)

JTREG_JAVA := $(FIXPATH) $(JTREG_JDK)/bin/java $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)

BUILD_JAVA := $(JDK_IMAGE_DIR)/bin/JAVA
################################################################################
# Some common tools. Assume most common name and no path.
Expand Down
6 changes: 3 additions & 3 deletions make/ZipSecurity.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ ifeq ($(call isTargetOs, windows), true)
$(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP, \
SRC := $(SUPPORT_OUTPUTDIR), \
INCLUDE_FILES := modules_libs/java.security.jgss/w2k_lsa_auth.dll \
modules_libs/java.security.jgss/w2k_lsa_auth.diz \
modules_libs/java.security.jgss/w2k_lsa_auth.map \
modules_libs/java.security.jgss/w2k_lsa_auth.pdb, \
modules_libs/java.security.jgss/w2k_lsa_auth.dll.diz \
modules_libs/java.security.jgss/w2k_lsa_auth.dll.map \
modules_libs/java.security.jgss/w2k_lsa_auth.dll.pdb, \
ZIP := $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)))

TARGETS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)
Expand Down
17 changes: 17 additions & 0 deletions make/autoconf/flags-cflags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
REPRODUCIBLE_CFLAGS=
]
)
AC_SUBST(REPRODUCIBLE_CFLAGS)
fi

# Prevent the __FILE__ macro from generating absolute paths into the built
Expand Down Expand Up @@ -849,6 +850,22 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
FILE_MACRO_CFLAGS=
]
)
if test "x$FILE_MACRO_CFLAGS" != x; then
# Add -pathmap for all VS system include paths using Windows
# full Long path name that is generated by the compiler
# Not enabled under WSL as there is no easy way to obtain the
# Windows full long paths, thus reproducible WSL builds will
# depend on building with the same VS toolchain install location.
if test "x$OPENJDK_BUILD_OS_ENV" != "xwindows.wsl1" && test "x$OPENJDK_BUILD_OS_ENV" != "xwindows.wsl2"; then
for ipath in ${$3SYSROOT_CFLAGS}; do
if test "x${ipath:0:2}" == "x-I"; then
ipath_path=${ipath#"-I"}
UTIL_FIXUP_WIN_LONG_PATH(ipath_path)
FILE_MACRO_CFLAGS="$FILE_MACRO_CFLAGS -pathmap:\"$ipath_path\"=vsi"
fi
done
fi
fi
fi

AC_MSG_CHECKING([how to prevent absolute paths in output])
Expand Down
37 changes: 36 additions & 1 deletion make/autoconf/lib-tests.m4
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,47 @@ AC_DEFUN_ONCE([LIB_TESTS_SETUP_JTREG],
UTIL_FIXUP_PATH(JT_HOME)
AC_SUBST(JT_HOME)

# Specify a JDK for running jtreg. Defaults to the BOOT_JDK.
AC_ARG_WITH(jtreg-jdk, [AS_HELP_STRING([--with-jdk],
[path to JDK for running jtreg @<:@BOOT_JDK@:>@])])

AC_MSG_CHECKING([for jtreg jdk])
if test "x${with_jtreg_jdk}" != x; then
if test "x${with_jtreg_jdk}" = xno; then
AC_MSG_RESULT([no, jtreg jdk not specified])
elif test "x${with_jtreg_jdk}" = xyes; then
AC_MSG_RESULT([not specified])
AC_MSG_ERROR([--with-jtreg-jdk needs a value])
else
JTREG_JDK="${with_jtreg_jdk}"
AC_MSG_RESULT([$JTREG_JDK])
UTIL_FIXUP_PATH(JTREG_JDK)
if test ! -f "$JTREG_JDK/bin/java"; then
AC_MSG_ERROR([Could not find jtreg java at $JTREG_JDK/bin/java])
fi
fi
else
JTREG_JDK="${BOOT_JDK}"
AC_MSG_RESULT([no, using BOOT_JDK])
fi

UTIL_FIXUP_PATH(JTREG_JDK)
AC_SUBST([JTREG_JDK])
# For use in the configure script
JTREG_JAVA="$FIXPATH $JTREG_JDK/bin/java"

# Verify jtreg version
if test "x$JT_HOME" != x; then
AC_MSG_CHECKING([jtreg jar existence])
if test ! -f "$JT_HOME/lib/jtreg.jar"; then
AC_MSG_ERROR([Could not find jtreg jar at $JT_HOME/lib/jtreg.jar])
fi

AC_MSG_CHECKING([jtreg version number])
# jtreg -version looks like this: "jtreg 6.1+1-19"
# Extract actual version part ("6.1" in this case)
jtreg_version_full=`$JAVA -jar $JT_HOME/lib/jtreg.jar -version | $HEAD -n 1 | $CUT -d ' ' -f 2`
jtreg_version_full=$($JTREG_JAVA -jar $JT_HOME/lib/jtreg.jar -version | $HEAD -n 1 | $CUT -d ' ' -f 2)

jtreg_version=${jtreg_version_full/%+*}
AC_MSG_RESULT([$jtreg_version])

Expand Down
6 changes: 0 additions & 6 deletions make/autoconf/libraries.m4
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,6 @@ AC_DEFUN([LIB_SETUP_JVM_LIBS],
BASIC_JVM_LIBS_$1="$BASIC_JVM_LIBS_$1 -latomic"
fi
fi

# Because RISC-V only has word-sized atomics, it requires libatomic where
# other common architectures do not, so link libatomic by default.
if test "x$OPENJDK_$1_OS" = xlinux && test "x$OPENJDK_$1_CPU" = xriscv64; then
BASIC_JVM_LIBS_$1="$BASIC_JVM_LIBS_$1 -latomic"
fi
])

################################################################################
Expand Down
4 changes: 4 additions & 0 deletions make/autoconf/spec.gmk.in
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
FILE_MACRO_CFLAGS := @FILE_MACRO_CFLAGS@
REPRODUCIBLE_CFLAGS := @REPRODUCIBLE_CFLAGS@
BRANCH_PROTECTION_CFLAGS := @BRANCH_PROTECTION_CFLAGS@

STATIC_LIBS_CFLAGS := @STATIC_LIBS_CFLAGS@
Expand Down Expand Up @@ -679,6 +680,9 @@ JAR = $(JAR_CMD)
JLINK = $(JLINK_CMD)
JMOD = $(JMOD_CMD)

JTREG_JDK := @JTREG_JDK@
JTREG_JAVA = @FIXPATH@ $(JTREG_JDK)/bin/java $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)

BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
BUILD_JAVAC=@FIXPATH@ $(BUILD_JDK)/bin/javac
Expand Down
18 changes: 18 additions & 0 deletions make/autoconf/util_paths.m4
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,24 @@ AC_DEFUN([UTIL_FIXUP_PATH],
fi
])

##############################################################################
# Fixup path to be a Windows full long path
# Note: Only supported with cygwin/msys2 (cygpath tool)
AC_DEFUN([UTIL_FIXUP_WIN_LONG_PATH],
[
# Only process if variable expands to non-empty
path="[$]$1"
if test "x$path" != x; then
if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
win_path=$($PATHTOOL -wl "$path")
if test "x$win_path" != "x$path"; then
$1="$win_path"
fi
fi
fi
])


###############################################################################
# Check if the given file is a unix-style or windows-style executable, that is,
# if it expects paths in unix-style or windows-style.
Expand Down
16 changes: 10 additions & 6 deletions make/common/NativeCompilation.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -1050,13 +1050,13 @@ define SetupNativeCompilationBody
ifneq ($$($1_TYPE), STATIC_LIBRARY)
# Generate debuginfo files.
ifeq ($(call isTargetOs, windows), true)
$1_EXTRA_LDFLAGS += -debug "-pdb:$$($1_SYMBOLS_DIR)/$$($1_NOSUFFIX).pdb" \
"-map:$$($1_SYMBOLS_DIR)/$$($1_NOSUFFIX).map"
$1_EXTRA_LDFLAGS += -debug "-pdb:$$($1_SYMBOLS_DIR)/$$($1_BASENAME).pdb" \
"-map:$$($1_SYMBOLS_DIR)/$$($1_BASENAME).map"
ifeq ($(SHIP_DEBUG_SYMBOLS), public)
$1_EXTRA_LDFLAGS += "-pdbstripped:$$($1_SYMBOLS_DIR)/$$($1_NOSUFFIX).stripped.pdb"
$1_EXTRA_LDFLAGS += "-pdbstripped:$$($1_SYMBOLS_DIR)/$$($1_BASENAME).stripped.pdb"
endif
$1_DEBUGINFO_FILES := $$($1_SYMBOLS_DIR)/$$($1_NOSUFFIX).pdb \
$$($1_SYMBOLS_DIR)/$$($1_NOSUFFIX).map
$1_DEBUGINFO_FILES := $$($1_SYMBOLS_DIR)/$$($1_BASENAME).pdb \
$$($1_SYMBOLS_DIR)/$$($1_BASENAME).map

else ifeq ($(call isTargetOs, linux), true)
$1_DEBUGINFO_FILES := $$($1_SYMBOLS_DIR)/$$($1_NOSUFFIX).debuginfo
Expand Down Expand Up @@ -1104,7 +1104,11 @@ define SetupNativeCompilationBody
$1 += $$($1_DEBUGINFO_FILES)

ifeq ($$($1_ZIP_EXTERNAL_DEBUG_SYMBOLS), true)
$1_DEBUGINFO_ZIP := $$($1_SYMBOLS_DIR)/$$($1_NOSUFFIX).diz
ifeq ($(call isTargetOs, windows), true)
$1_DEBUGINFO_ZIP := $$($1_SYMBOLS_DIR)/$$($1_BASENAME).diz
else
$1_DEBUGINFO_ZIP := $$($1_SYMBOLS_DIR)/$$($1_NOSUFFIX).diz
endif
$1 += $$($1_DEBUGINFO_ZIP)

# The dependency on TARGET is needed for debuginfo files
Expand Down
4 changes: 2 additions & 2 deletions make/conf/version-numbers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@

DEFAULT_VERSION_FEATURE=21
DEFAULT_VERSION_INTERIM=0
DEFAULT_VERSION_UPDATE=1
DEFAULT_VERSION_UPDATE=2
DEFAULT_VERSION_PATCH=0
DEFAULT_VERSION_EXTRA1=0
DEFAULT_VERSION_EXTRA2=0
DEFAULT_VERSION_EXTRA3=0
DEFAULT_VERSION_DATE=2023-10-17
DEFAULT_VERSION_DATE=2024-01-16
DEFAULT_VERSION_CLASSFILE_MAJOR=65 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
DEFAULT_VERSION_CLASSFILE_MINOR=0
DEFAULT_VERSION_DOCS_API_SINCE=11
Expand Down
Loading