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 to tag jdk-23+9 #1604

Merged
merged 159 commits into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
7a798d3
8324598: use mem_unit when working with sysinfo memory and swap relat…
MBaesken Jan 25, 2024
e709842
8324636: Serial: Remove Generation::block_is_obj
albertnetymk Jan 25, 2024
ffe3bb6
8324657: Intermittent OOME on exception message create
Jan 25, 2024
746a086
8306767: Concurrent repacking of extra data in MethodData is potentia…
eme64 Jan 25, 2024
12b89cd
8323717: Introduce test keyword for tests that need external dependen…
shipilev Jan 25, 2024
39b756a
8324492: Remove Atomic support for OopHandle
Jan 25, 2024
95310ea
8223696: java/net/httpclient/MaxStreams.java failed with didn't finis…
djelinski Jan 25, 2024
b5995a7
8302019: Clarify Elements.overrides
jddarcy Jan 25, 2024
bde8789
8324123: aarch64: fix prfm literal encoding in assembler
Jan 26, 2024
10066cd
8324571: JDK 23 L10n resource files update
Jan 26, 2024
33324a5
8324637: [aix] Implement support for reporting swap space in jdk.mana…
MBaesken Jan 26, 2024
781f368
8324347: Enable "maybe-uninitialized" warning for FreeType 2.13.1
mrserb Jan 26, 2024
c313d45
8324659: GHA: Generic jtreg errors are not reported
shipilev Jan 26, 2024
32ddcf5
8324301: Obsolete MaxGCMinorPauseMillis
albertnetymk Jan 26, 2024
885e9b7
8324722: Serial: Inline block_is_obj of subclasses of Generation
albertnetymk Jan 26, 2024
62b3293
8324241: Always record evol_method deps to avoid excessive method flu…
simonis Jan 26, 2024
a65a895
8315923: pretouch_memory by atomic-add-0 fragments huge pages unexpec…
limingliu-ampere Jan 26, 2024
91d8ea7
8323835: Updating ASM to 9.6 for JDK 23
Jan 26, 2024
6d18562
8324785: ProblemList two tests on linux due to JDK-8315923
Jan 26, 2024
ed3272c
8042981: Strip type annotations in Types' utility methods
jddarcy Jan 26, 2024
70f4a4e
8324786: validate-source fails after JDK-8042981
Jan 26, 2024
2e748c9
8175386: Clarify exception behavior of Types utility methods
jddarcy Jan 26, 2024
525c0cd
8324752: C2 Superword: remove SuperWordRTDepCheck
eme64 Jan 29, 2024
65d6bc1
8324765: C2 SuperWord: remove dead code: SuperWord::insert_extracts
eme64 Jan 29, 2024
8950d68
8324753: [AIX] adjust os_posix after JDK-8318696
MBaesken Jan 29, 2024
af9cd97
8324800: gcc windows build broken after 8322757
TheShermanTanker Jan 29, 2024
0d5f5e1
8322484: 22-b26 Regression in J2dBench-bimg_misc-G1 (and more) on Win…
Jan 29, 2024
422020c
8210858: AArch64: remove Math.log intrinsic
tobiasholenstein Jan 29, 2024
6ad78ca
8324775: C2 SuperWord: refactor visited sets
eme64 Jan 29, 2024
f0bae79
8324750: C2: rename Matcher methods using "superword" -> "autovectori…
eme64 Jan 29, 2024
69586e7
8322996: BoxLockNode creation fails with assert(reg < CHUNK_SIZE) fai…
Jan 29, 2024
b39b876
8324304: RISC-V: add hw probe flags
Jan 29, 2024
72ba817
8324236: compiler/ciReplay/TestInliningProtectionDomain.java failed w…
chhagedorn Jan 29, 2024
628348d
8324186: Use "dmb.ishst+dmb.ishld" for release barrier
kuaiwei Jan 29, 2024
7a300b6
8324213: C1: There is no need for Canonicalizer to handle IfOp
D-D-H Jan 29, 2024
3066d49
8317572: C2 SuperWord: refactor/improve TraceSuperWord, replace Vecto…
eme64 Jan 29, 2024
4df04f0
8324769: Serial: Remove unused TenuredGeneration::unsafe_max_alloc_nogc
albertnetymk Jan 29, 2024
fe0eec7
8324840: windows-x64-slowdebug does not build anymore after JDK-8317572
Jan 29, 2024
951b5f8
8324723: GHA: Upgrade some actions to avoid deprecated Node 16
shipilev Jan 29, 2024
a6bdee4
8324681: Replace NULL with nullptr in HotSpot jtreg test native code …
coleenp Jan 29, 2024
c1281e6
8324678: Replace NULL with nullptr in HotSpot gtests
coleenp Jan 29, 2024
d1e6763
8324733: [macos14] Problem list tests which fail due to macOS bug des…
Jan 29, 2024
fb07bbe
8324717: Remove HotSpotJVMCICompilerFactory
Jan 29, 2024
84deeb6
8324667: fold Parse::seems_stable_comparison()
caojoshua Jan 29, 2024
e999dfc
8323503: x86: Shorter movptr(reg, imm) for 32-bit unsigned immediates
shipilev Jan 29, 2024
64c3642
8242564: javadoc crashes:: class cast exception com.sun.tools.javac.c…
Jan 29, 2024
b6d364a
8324865: windows-x64-slowdebug still does not build after JDK-8324840
Jan 30, 2024
a1d65eb
8324125: Improve class initialization barrier in TemplateTable::_new …
zifeihan Jan 30, 2024
fd8adf3
8324856: Serial: Move Generation::is_in to DefNewGeneration
albertnetymk Jan 30, 2024
f0024f5
8324734: Relax too-strict assert(VM_Version::supports_evex()) in Asse…
rkennke Jan 30, 2024
f57c722
8324880: Rename get_stack_trace.h
Jan 30, 2024
d51aaf6
8323950: Null CLD while loading shared lambda proxy class with javaag…
calvinccheung Jan 30, 2024
11e28bd
8324794: C2 SuperWord: do not ignore reductions in SuperWord::unrolli…
eme64 Jan 30, 2024
8892d45
8324582: Replace -Djava.util.concurrent.ForkJoinPool.common.paralleli…
lmesnik Jan 30, 2024
c3c1d5b
8324998: Add test cases for String.regionMatches comparing Turkic dot…
Jan 30, 2024
7d1a488
8324861: Exceptions::wrap_dynamic_exception() doesn't have ResourceMark
lmesnik Jan 30, 2024
83b3c9b
8322649: Improve class initialization barrier in TemplateTable::_new …
offamitkumar Jan 31, 2024
577de17
8259550: The content of the print out displayed incomplete with the N…
Jan 31, 2024
f7121de
8322648: Improve class initialization barrier in TemplateTable::_new …
Jan 31, 2024
ec56c72
8323601: Improve LayoutPath.PathElement::toString
minborg Jan 31, 2024
b5c267f
8324632: Update Zlib Data Compression Library to Version 1.3.1
Jan 31, 2024
ec6c35c
8324970: Serial: Refactor signature of maintain_old_to_young_invariant
albertnetymk Jan 31, 2024
725314f
8324771: Obsolete RAMFraction related flags
albertnetymk Jan 31, 2024
6697160
8320712: Rewrite BadFactoryTest in pure Java
Jan 31, 2024
1733d2e
8303374: Implement JEP 455: Primitive Types in Patterns, instanceof, …
biboudis Jan 31, 2024
2cd1ba6
8324981: Shenandoah: Move commit and soft max heap changed methods in…
Jan 31, 2024
1f2922a
8320342: Use PassFailJFrame for TruncatedPopupMenuTest.java
rajamah Jan 31, 2024
62c9530
8324238: [macOS] java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSomet…
Jan 31, 2024
f292053
8323621: JDK build should exclude snippet class in java.lang.foreign
minborg Jan 31, 2024
0cc8e5b
8325042: remove unused JVMDITools test files
Jan 31, 2024
5b9b176
8324174: assert(m->is_entered(current)) failed: invariant
Jan 31, 2024
fe78c0f
8325022: Incorrect error message on client authentication
Feb 1, 2024
432756b
8325024: java/security/cert/CertPathValidator/OCSP/OCSPTimeout.java i…
Feb 1, 2024
a2229b1
8324838: test_nmt_locationprinting.cpp broken in the gcc windows build
TheShermanTanker Feb 1, 2024
a663248
8324668: JDWP process management needs more efficient file descriptor…
jaikiran Feb 1, 2024
1aba78f
8324937: GHA: Avoid multiple test suites per job
shipilev Feb 1, 2024
68206b5
8324585: JVM native memory leak in PCKS11-NSS security provider
djelinski Feb 1, 2024
d9331bf
8324845: management.properties text "interface name" is misleading
kevinjwalls Feb 1, 2024
cd11059
8325053: Serial: Move Generation::save_used_region to TenuredGeneration
albertnetymk Feb 1, 2024
6b84f9b
8325001: Typo in the javadocs for the Arena::ofShared method
minborg Feb 1, 2024
cab74b0
8324287: Record total and free swap space in JFR
MBaesken Feb 1, 2024
8e45182
8324834: Use _LARGE_FILES on AIX
magicus Feb 1, 2024
ac1cd31
8325096: Test java/security/cert/CertPathBuilder/akiExt/AKISerialNumb…
coffeys Feb 1, 2024
70e7cdc
8323670: A few client tests intermittently throw ConcurrentModificati…
Feb 1, 2024
6b09a79
8324974: JFR: EventCompilerPhase should be created as UNTIMED
D-D-H Feb 1, 2024
192349e
8324066: "clhsdb jstack" should not by default scan for j.u.c locks b…
plummercj Feb 1, 2024
b3ecd55
8324679: Replace NULL with nullptr in HotSpot .ad files
coleenp Feb 1, 2024
144a08e
8325078: Better escaping of single and double quotes in javac annotat…
jddarcy Feb 1, 2024
d3c3194
6285888: ChoiceFormat can support unescaped relational symbols in the…
Feb 1, 2024
783ae56
8311893: Interactive component with ARIA role 'tabpanel' does not hav…
psoujany Feb 2, 2024
91d8dac
8325137: com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java can …
Feb 2, 2024
6787c4c
8325055: Rename Injector.h
Feb 2, 2024
38c0197
8318105: [jmh] the test java.security.HSS failed with 2 active threads
Feb 2, 2024
1ae8513
8324858: [vectorapi] Bounds checking issues when accessing memory seg…
Feb 2, 2024
adc3604
8325148: Enable restricted javac warning in java.base
jddarcy Feb 2, 2024
f613e13
8313739: ZipOutputStream.close() should always close the wrapped stream
Feb 2, 2024
63cb1f8
8321396: Retire test/jdk/java/util/zip/NoExtensionSignature.java
Feb 2, 2024
7476e29
8323680: SA PointerFinder code can do a better job of leveraging exis…
plummercj Feb 2, 2024
a18b03b
8324635: (zipfs) Regression in Files.setPosixFilePermissions called o…
Feb 2, 2024
ed06846
8325037: x86: enable and fix hotspot/jtreg/compiler/vectorization/Tes…
Feb 4, 2024
692c9f8
8325201: (zipfs) Disable TestPosix.setPermissionsShouldConvertToUnix …
Feb 4, 2024
80642dd
8324817: Parallel GC does not pre-touch all heap pages when AlwaysPre…
Feb 5, 2024
8796f43
8315762: Update subtype check profile collection on s390x following 8…
offamitkumar Feb 5, 2024
85e3201
8325159: C2 SuperWord: measure time for CITime
eme64 Feb 5, 2024
af32262
8325049: stubGenerator_ppc.cpp should use alignas
TheShermanTanker Feb 5, 2024
df35462
8323502: javac crash with wrongly typed method block in Flow
biboudis Feb 5, 2024
0377f1a
8325133: Missing MEMFLAGS parameter in parts of os API
jdksjolen Feb 5, 2024
4da28b4
8291809: Convert compiler/c2/cr7200264/TestSSE2IntVect.java to IR ver…
Feb 5, 2024
cdf918b
8325134: Serial: Remove Generation::used_region
albertnetymk Feb 5, 2024
51671c0
8323809: Serial: Refactor card table verification
albertnetymk Feb 5, 2024
d395ac2
8321373: Build should use LC_ALL=C.UTF-8
magicus Feb 5, 2024
89e6a02
8325064: C2 SuperWord: refactor construct_bb
eme64 Feb 5, 2024
19e9220
8325169: Reduce String::indexOf overheads
cl4es Feb 5, 2024
55c1446
8321468: Remove StringUTF16::equals
cl4es Feb 5, 2024
1993652
8324983: race in CompileBroker::possibly_add_compiler_threads
Feb 5, 2024
c3adc61
8325199: (zipfs) jdk/nio/zipfs/TestPosix.java failed 6 sub-tests
Feb 5, 2024
51853f7
8324724: Add Stub routines for FP16 conversions on aarch64
Feb 5, 2024
7777eb5
8321931: memory_swap_current_in_bytes reports 0 as "unlimited"
Feb 5, 2024
209d87a
8324960: Unsafe.allocateMemory documentation incorrect regarding zero…
Feb 5, 2024
fd3042a
8318566: Heap walking functions should not use FilteredFieldStream
Feb 5, 2024
f31957e
8317636: Improve heap walking API tests to verify correctness of fiel…
Feb 5, 2024
ab3b941
8325270: ProblemList two compiler/intrinsics/float16 tests that fail …
Feb 5, 2024
f1f9398
8323699: MessageFormat.toPattern() generates non-equivalent MessageFo…
archiecobbs Feb 5, 2024
e0fd3f4
8325081: Move '_soft_ref_policy' to 'CollectedHeap'
LizBing Feb 6, 2024
729ae1d
8325266: Enable this-escape javac warning in jdk.javadoc
jddarcy Feb 6, 2024
9ee9f28
8325213: Flags introduced by configure script are not passed to ADLC …
TheRealMDoerr Feb 6, 2024
542b0b6
8324126: Error message for mistyping -XX:+Unlock...Options is not hel…
Feb 6, 2024
6d911f6
8317299: safepoint scalarization doesn't keep track of the depth of t…
dafedafe Feb 6, 2024
b02599d
8298046: Fix hidden but significant trailing whitespace in properties…
magicus Feb 6, 2024
4cd3187
8324874: AArch64: crypto pmull based CRC32/CRC32C intrinsics clobber …
Feb 6, 2024
b75c134
8325313: Header format error in TestIntrinsicBailOut after JDK-8317299
dafedafe Feb 6, 2024
f356970
8322535: Change default AArch64 SpinPause instruction
Feb 6, 2024
d1c8215
8325194: GHA: Add macOS M1 testing
gdams Feb 6, 2024
fd89b33
8316992: Potential null pointer from get_current_thread JVMCI helper …
Feb 6, 2024
51d7169
8320237: C2: late inlining of method handle invoke causes duplicate l…
tabjy Feb 6, 2024
50b17d9
8316704: Regex-free parsing of Formatter and FormatProcessor specifiers
wenshao Feb 6, 2024
b814c31
8321703: jdeps generates illegal dot file containing nodesep=0,500000
Feb 6, 2024
2d252ee
8325180: Rename jvmti_FollowRefObjects.h
Feb 6, 2024
96eb039
8324665: Loose matching of space separators in the lenient date/time …
naotoj Feb 6, 2024
4b1e367
8325152: Clarify specification of java.io.RandomAccessFile.setLength
Feb 6, 2024
0f5f3c9
8325254: CKA_TOKEN private and secret keys are not necessarily sensitive
martinuy Feb 6, 2024
1797efd
8322218: Better escaping of single and double quotes in annotation to…
jddarcy Feb 6, 2024
f2f6344
8325347: Rename native_thread.h
Feb 6, 2024
e0d98dd
8325257: jshell reports NoSuchFieldError with instanceof primitive type
biboudis Feb 7, 2024
3bffe22
8319463: ClassSignature should have superclass and superinterfaces as…
liach Feb 7, 2024
4abb10e
8317349: Randomize order of macro node expansion in C2
Feb 7, 2024
77ee7f0
8325221: Obsolete TLABStats
albertnetymk Feb 7, 2024
c3a632d
8325248: Serial: Remove Generation::space_iterate
albertnetymk Feb 7, 2024
1ecf74c
8325306: Rename static huge pages to explicit huge pages
tstuefe Feb 7, 2024
a9c6e87
8325416: Parallel: Refactor CheckForUnmarkedOops
albertnetymk Feb 7, 2024
a3a2b1f
8324881: ObjectSynchronizer::inflate(Thread* current...) is invoked f…
xmas92 Feb 7, 2024
18e24d0
8325109: Sort method modifiers in canonical order
magicus Feb 7, 2024
3a1f4d0
8325268: Add policy statement to langtools makefiles concerning warnings
jddarcy Feb 7, 2024
299a8ee
8325302: Files.move(REPLACE_EXISTING) throws NoSuchFileException on d…
Feb 7, 2024
fbd15b2
8325189: Enable this-escape javac warning in java.base
jddarcy Feb 7, 2024
be7cc1c
8323681: SA PointerFinder code should support G1
plummercj Feb 7, 2024
9cccf05
8325367: Rename nsk_list.h
Feb 8, 2024
1fb9e3d
8325304: Several classes in java.util.jar and java.util.zip don't spe…
jaikiran Feb 8, 2024
e7090d0
8325444: GHA: JDK-8325194 causes a regression
RealCLanger Feb 8, 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
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/actions/do-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ runs:
shell: bash

- name: 'Upload build logs'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: failure-logs-${{ inputs.platform }}${{ inputs.debug-suffix }}
path: failure-logs
if: steps.check.outputs.failure == 'true'

# This is the best way I found to abort the job with an error message
- name: 'Notify about build failures'
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: core.setFailed('Build failed. See summary for details.')
if: steps.check.outputs.failure == 'true'
2 changes: 1 addition & 1 deletion .github/actions/get-bootjdk/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ runs:

- name: 'Check cache for BootJDK'
id: get-cached-bootjdk
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: bootjdk/jdk
key: boot-jdk-${{ inputs.platform }}-${{ steps.sha256.outputs.value }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/get-bundles/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ runs:
steps:
- name: 'Download bundles artifact'
id: download-bundles
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
path: bundles
continue-on-error: true

- name: 'Download bundles artifact (retry)'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
path: bundles
Expand Down
12 changes: 9 additions & 3 deletions .github/actions/get-jtreg/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2023, 2024, 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 @@ -41,7 +41,7 @@ runs:

- name: 'Check cache for JTReg'
id: get-cached-jtreg
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: jtreg/installed
key: jtreg-${{ steps.version.outputs.value }}
Expand All @@ -56,8 +56,14 @@ runs:

- name: 'Build JTReg'
run: |
# If runner architecture is x64 set JAVA_HOME_17_X64 otherwise set to JAVA_HOME_17_arm64
if [[ '${{ runner.arch }}' == 'X64' ]]; then
JDK="$JAVA_HOME_17_X64"
else
JDK="$JAVA_HOME_17_arm64"
fi
# Build JTReg and move files to the proper locations
bash make/build.sh --jdk "$JAVA_HOME_17_X64"
bash make/build.sh --jdk "$JDK"
mkdir ../installed
mv build/images/jtreg/* ../installed
working-directory: jtreg/src
Expand Down
3 changes: 1 addition & 2 deletions .github/actions/get-msys2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ runs:
using: composite
steps:
- name: 'Install MSYS2'
# use a specific release of msys2/setup-msys2 to prevent jtreg build failures on newer release
uses: msys2/setup-msys2@7efe20baefed56359985e327d329042cde2434ff
uses: msys2/[email protected]
with:
install: 'autoconf tar unzip zip make'
path-type: minimal
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/upload-bundles/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ runs:
shell: bash

- name: 'Upload bundles artifact'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
path: bundles
Expand Down
1 change: 1 addition & 0 deletions .github/scripts/gen-test-summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ error_count=$(echo $errors | wc -w || true)

if [[ "$failures" = "" && "$errors" = "" ]]; then
# We know something went wrong, but not what
echo 'failure=true' >> $GITHUB_OUTPUT
echo 'error-message=Unspecified test suite failure. Please see log for job for details.' >> $GITHUB_OUTPUT
exit 0
fi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:

- name: 'Check cache for sysroot'
id: get-cached-sysroot
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: sysroot
key: sysroot-${{ matrix.debian-arch }}-${{ hashFiles('./.github/workflows/build-cross-compile.yml') }}
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022, 2024, 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 @@ -31,6 +31,9 @@ on:
platform:
required: true
type: string
runs-on:
required: true
type: string
extra-conf-options:
required: false
type: string
Expand All @@ -55,7 +58,7 @@ on:
jobs:
build-macos:
name: build
runs-on: macos-13
runs-on: ${{ inputs.runs-on }}

strategy:
fail-fast: false
Expand All @@ -74,7 +77,7 @@ jobs:
id: bootjdk
uses: ./.github/actions/get-bootjdk
with:
platform: macos-x64
platform: ${{ inputs.platform }}

- name: 'Get JTReg'
id: jtreg
Expand All @@ -87,7 +90,7 @@ jobs:
- name: 'Install toolchain and dependencies'
run: |
# Run Homebrew installation and xcode-select
brew install make
brew install autoconf make
sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode-toolset-version }}.app/Contents/Developer
# This will make GNU make available as 'make' and not only as 'gmake'
echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022, 2024, 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 @@ -228,6 +228,7 @@ jobs:
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-x64
runs-on: 'macos-13'
xcode-toolset-version: '14.3.1'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
Expand All @@ -239,8 +240,8 @@ jobs:
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-aarch64
runs-on: 'macos-14'
xcode-toolset-version: '14.3.1'
extra-conf-options: '--openjdk-target=aarch64-apple-darwin'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.macos-aarch64 == 'true'
Expand Down Expand Up @@ -321,6 +322,16 @@ jobs:
bootjdk-platform: macos-x64
runs-on: macos-13

test-macos-aarch64:
name: macos-aarch64
needs:
- build-macos-aarch64
uses: ./.github/workflows/test.yml
with:
platform: macos-aarch64
bootjdk-platform: macos-aarch64
runs-on: macos-14

test-windows-x64:
name: windows-x64
needs:
Expand Down Expand Up @@ -357,7 +368,7 @@ jobs:
# Hack to get hold of the api environment variables that are only defined for actions
- name: 'Get API configuration'
id: api
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: 'return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }'

Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
- 'hs/tier1 compiler part 1'
- 'hs/tier1 compiler part 2'
- 'hs/tier1 compiler part 3'
- 'hs/tier1 compiler not-xcomp'
- 'hs/tier1 gc'
- 'hs/tier1 runtime'
- 'hs/tier1 serviceability'
Expand Down Expand Up @@ -90,13 +91,17 @@ jobs:
debug-suffix: -debug

- test-name: 'hs/tier1 compiler part 2'
test-suite: 'test/hotspot/jtreg/:tier1_compiler_2 test/hotspot/jtreg/:tier1_compiler_not_xcomp'
test-suite: 'test/hotspot/jtreg/:tier1_compiler_2'
debug-suffix: -debug

- test-name: 'hs/tier1 compiler part 3'
test-suite: 'test/hotspot/jtreg/:tier1_compiler_3'
debug-suffix: -debug

- test-name: 'hs/tier1 compiler not-xcomp'
test-suite: 'test/hotspot/jtreg/:tier1_compiler_not_xcomp'
debug-suffix: -debug

- test-name: 'hs/tier1 gc'
test-suite: 'test/hotspot/jtreg/:tier1_gc'
debug-suffix: -debug
Expand Down Expand Up @@ -206,15 +211,15 @@ jobs:
if: always()

- name: 'Upload test results'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: results
name: ${{ steps.package.outputs.artifact-name }}
if: always()

# This is the best way I found to abort the job with an error message
- name: 'Notify about test failures'
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: core.setFailed('${{ steps.run-tests.outputs.error-message }}')
if: steps.run-tests.outputs.failure == 'true'
18 changes: 17 additions & 1 deletion make/autoconf/basic.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2024, 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 @@ -123,6 +123,22 @@ AC_DEFUN_ONCE([BASIC_SETUP_BUILD_ENV],
]
)
AC_SUBST(BUILD_ENV)

if test "x$LOCALE" != x; then
# Check if we actually have C.UTF-8; if so, use it
if $LOCALE -a | $GREP -q -E "^C\.(utf8|UTF-8)$"; then
LOCALE_USED=C.UTF-8
else
AC_MSG_WARN([C.UTF-8 locale not found, using C locale])
LOCALE_USED=C
fi
else
AC_MSG_WARN([locale command not not found, using C locale])
LOCALE_USED=C
fi

export LC_ALL=$LOCALE_USED
AC_SUBST(LOCALE_USED)
])

###############################################################################
Expand Down
3 changes: 2 additions & 1 deletion make/autoconf/basic_tools.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2024, 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 @@ -54,6 +54,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS],
UTIL_REQUIRE_SPECIAL(SED, [AC_PROG_SED])

# Tools only needed on some platforms
UTIL_LOOKUP_PROGS(LOCALE, locale)
UTIL_LOOKUP_PROGS(PATHTOOL, cygpath wslpath)
UTIL_LOOKUP_PROGS(CMD, cmd.exe, $PATH:/cygdrive/c/windows/system32:/mnt/c/windows/system32:/c/windows/system32)
])
Expand Down
2 changes: 1 addition & 1 deletion make/autoconf/flags-cflags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
CFLAGS_OS_DEF_JVM="-D_ALLBSD_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE"
CFLAGS_OS_DEF_JDK="-D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
elif test "x$OPENJDK_TARGET_OS" = xaix; then
CFLAGS_OS_DEF_JVM="-DAIX"
CFLAGS_OS_DEF_JVM="-DAIX -D_LARGE_FILES"
elif test "x$OPENJDK_TARGET_OS" = xbsd; then
CFLAGS_OS_DEF_JDK="-D_ALLBSD_SOURCE"
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
Expand Down
6 changes: 3 additions & 3 deletions make/autoconf/spec.gmk.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2024, 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 @@ -56,8 +56,8 @@ COMMA := ,
# What make to use for main processing, after bootstrapping top-level Makefile.
MAKE := @MAKE@

# Make sure all shell commands are executed with the C locale
export LC_ALL := C
# Make sure all shell commands are executed with a proper locale
export LC_ALL := @LOCALE_USED@

# Make sure we override any local CLASSPATH variable
export CLASSPATH := @CLASSPATH@
Expand Down
6 changes: 5 additions & 1 deletion make/conf/github-actions.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2020, 2024, 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 @@ -36,6 +36,10 @@ MACOS_X64_BOOT_JDK_EXT=tar.gz
MACOS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_macos-x64_bin.tar.gz
MACOS_X64_BOOT_JDK_SHA256=af32e84c11009f72f783fdcdc9917efc277893988f097e198e2576875d1e88c1

MACOS_AARCH64_BOOT_JDK_EXT=tar.gz
MACOS_AARCH64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_macos-aarch64_bin.tar.gz
MACOS_AARCH64_BOOT_JDK_SHA256=f12e1e0a2dffc847951598f597c8ee60fb0913932f24b2b09c62cfd2f0f4dfb9

WINDOWS_X64_BOOT_JDK_EXT=zip
WINDOWS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_windows-x64_bin.zip
WINDOWS_X64_BOOT_JDK_SHA256=5434faaf029e66e7ce6e75770ca384de476750984a7d2881ef7686894c4b4944
2 changes: 1 addition & 1 deletion make/hotspot/gensrc/GensrcAdlc.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ifeq ($(call check-jvm-feature, compiler2), true)
endif

# Set the C++ standard
ADLC_CFLAGS += $(ADLC_LANGSTD_CXXFLAG)
ADLC_CFLAGS += $(ADLC_LANGSTD_CXXFLAGS)

# NOTE: The old build didn't set -DASSERT for windows but it doesn't seem to
# hurt.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2024, 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 @@ -35,6 +35,7 @@
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.net.InetAddress;
import java.nio.charset.StandardCharsets;
import java.nio.file.FileSystems;
import java.time.LocalDateTime;
import java.time.ZoneId;
Expand Down Expand Up @@ -132,6 +133,8 @@ public static void main(String ... args) throws Throwable {
String oldDate = String.format("%s%n",
DateFormat.getDateInstance(DateFormat.DEFAULT, Locale.ROOT)
.format(new Date()));
StandardCharsets.US_ASCII.encode("");
StandardCharsets.UTF_8.encode("");

// A selection of trivial and common reflection operations
var instance = HelloClasslist.class.getConstructor().newInstance();
Expand Down
Loading
Loading