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 remote-tracking branch 'upstream/master' into dragonwell #785

Merged
merged 182 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
c86ba43
8312972: Bump update version for OpenJDK: jdk-11.0.22
GoeLin Aug 30, 2023
b984b0a
8293107: GHA: Bump to Ubuntu 22.04
shipilev Aug 30, 2023
b77c161
8315135: Memory leak in the native implementation of Pack200.Unpacker…
simonis Aug 30, 2023
d76e6ea
8237858: PlainSocketImpl.socketAccept() handles EINTR incorrectly
Aug 30, 2023
121c997
8312535: MidiSystem.getSoundbank() throws unexpected SecurityException
mrserb Aug 31, 2023
f5eb11f
8294941: GHA: Cut down cross-compilation sysroots
shipilev Aug 31, 2023
373be43
8294956: GHA: qemu-debootstrap is deprecated, use the regular one
shipilev Aug 31, 2023
4cd3ad9
8299330: Minor improvements in MSYS2 Workflow handling
shipilev Aug 31, 2023
caa05ac
8294281: Allow warnings to be disabled on a per-file basis
mrserb Aug 31, 2023
7ce9271
8314262: GHA: Cut down cross-compilation sysroots deeper
shipilev Sep 1, 2023
1bbbad1
8315480: [11u] Harmonize GHA cross-compilation block with mainline
shipilev Sep 1, 2023
dc47d1f
8292407: Improve Weak CAS VarHandle/Unsafe tests resilience under spu…
RealFYang Sep 1, 2023
72018a1
8313576: GCC 7 reports compiler warning in bundled freetype 2.13.0
mrserb Sep 1, 2023
5327f67
8313707: GHA: Bootstrap sysroots with --variant=minbase
shipilev Sep 4, 2023
3eb7a82
8314730: GHA: Drop libfreetype6-dev transitional package in favor of …
shipilev Sep 5, 2023
765f6af
8313626: C2 crash due to unexpected exception control flow
shipilev Sep 5, 2023
50074a0
8312489: Increase jdk.jar.maxSignatureFileSize default which is too l…
gnu-andrew Sep 5, 2023
423e969
Merge
RealCLanger Sep 7, 2023
bcce7af
8306372: Open source AWT CardLayout and Checkbox tests
Sep 7, 2023
0fd1ce3
8233847: (sctp) Flx link-local IPv6 scope handling and test cleanup.
RealCLanger Sep 11, 2023
0713dbb
8292713: Unsafe.allocateInstance should be intrinsified without UseUn…
RealFYang Sep 12, 2023
0d9a364
8306135: Clean up and open source some AWT tests
Sep 13, 2023
470789a
8311813: C1: Uninitialized PhiResolver::_loop field
chadrako Sep 13, 2023
3dd8761
8306575: Clean up and open source four Dialog related tests
Sep 13, 2023
269224c
Merge
GoeLin Sep 14, 2023
5c7ec0d
8315862: [11u] Backport 8227337: javax/management/remote/mandatory/co…
RealCLanger Sep 14, 2023
22dd2d3
8207166: jdk/jshell/JdiHangingLaunchExecutionControlTest.java - launc…
RealCLanger Sep 14, 2023
94c048f
8314094: java/lang/ProcessHandle/InfoTest.java fails on Windows when …
RealCLanger Sep 14, 2023
de3589c
8205467: javax/management/remote/mandatory/connection/MultiThreadDead…
RealCLanger Sep 14, 2023
6fe8172
8315020: The macro definition for LoongArch64 zero build is not accur…
theaoqi Sep 15, 2023
723c0c0
8195589: T6587786.java failed after JDK-8189997
Sep 18, 2023
d52e9ed
8316380: [11u] Backport 8170089: nsk/jdi/EventSet/resume/resume008: E…
RealCLanger Sep 20, 2023
d003824
Merge
GoeLin Sep 20, 2023
70862e0
8315863: [GHA] Update checkout action to use v4
shipilev Sep 20, 2023
ce1602d
8265586: [windows] last button is not shown in AWT Frame with BorderL…
GoeLin Sep 22, 2023
cd3c64f
8306430: Open source some AWT tests related to TextComponent and Toolkit
Sep 22, 2023
72d97e0
8307079: Update test java/awt/Choice/DragOffNoSelect.java
Sep 22, 2023
cdc33dc
8313815: The exception messages printed by jcmd ManagementAgent.start…
Sep 22, 2023
b2a6484
8316178: Better diagnostic header for CodeBlobs
shipilev Sep 22, 2023
2513c89
8288325: [windows] Actual and Preferred Size of AWT Non-resizable fra…
GoeLin Sep 27, 2023
e7b2077
8316206: Test StretchedFontTest.java fails for Baekmuk font
GoeLin Sep 27, 2023
bcac47f
8313657: com.sun.jndi.ldap.Connection.cleanup does not close connecti…
Sep 27, 2023
c2ac5e2
8301065: Handle control characters in java_lang_String::print
Sep 27, 2023
f530f34
8313792: Verify 4th party information in src/jdk.internal.le/share/le…
Sep 28, 2023
ffef098
8290067: Show stack dimensions in UL logging when attaching threads
GoeLin Sep 28, 2023
166adaa
8315770: serviceability/sa/TestJmapCoreMetaspace.java should run with…
roy-soumadipta Sep 28, 2023
0beae37
8280004: DCmdArgument<jlong>::parse_value() should handle NULL input
GoeLin Sep 29, 2023
cf722df
8267860: Off-by-one bug when searching arrays in AlpnGreaseTest
amosshi Sep 29, 2023
a4b3027
8271519: java/awt/event/SequencedEvent/MultipleContextsFunctionalTest…
amosshi Sep 29, 2023
51a80dd
8293466: libjsig should ignore non-modifying sigaction calls
GoeLin Oct 3, 2023
ac0bc1b
8306883: Thread stacksize is reported with wrong units in os::create_…
GoeLin Oct 3, 2023
fb7e6e3
8315766: Parallelize gc/stress/TestStressIHOPMultiThread.java test
roy-soumadipta Oct 4, 2023
96e3db7
8315937: Enable parallelism in vmTestbase/nsk/stress/numeric tests
roy-soumadipta Oct 4, 2023
059f73c
8242330: Arrays should be cloned in several JAAS Callback classes
Oct 5, 2023
682bcf2
8316514: Better diagnostic header for VtableStub
shipilev Oct 5, 2023
0aba9b7
8316710: Exclude java/awt/font/Rotate/RotatedTextTest.java
RealCLanger Oct 6, 2023
df5ff37
8315683: Parallelize java/util/concurrent/tck/JSR166TestCase.java
roy-soumadipta Oct 9, 2023
c4faab6
8308592: Framework for CA interoperability testing
RealCLanger Oct 11, 2023
b017f76
8210168: JCK test .vm.classfmt.ins.code__002.code__00201m1.code__0020…
Oct 11, 2023
a75f34f
8232933: Javac inferred type does not conform to equality constraint
Oct 11, 2023
8336e3e
8312573: Failure during CompileOnly parsing leads to ShouldNotReachHere
Oct 11, 2023
2a39b98
8197825: [Test] Intermittent timeout with javax/swing JColorChooser Test
amosshi Oct 11, 2023
6e34daa
8282404: DrawStringWithInfiniteXform.java failed with "RuntimeExcepti…
amosshi Oct 11, 2023
75b7c79
8300405: Screen capture for test JFileChooserSetLocationTest.java, fa…
amosshi Oct 11, 2023
4780287
8252713: jtreg time out of CtrlASCII.java seems to hang the Xserver.
amosshi Oct 11, 2023
efc3f4a
8041447: Test javax/swing/dnd/7171812/bug7171812.java fails with java…
amosshi Oct 11, 2023
84bc252
8289547: Update javax/swing/Popup/TaskbarPositionTest.java
amosshi Oct 11, 2023
363855d
8233000: Mark vmTestbase/vm/mlvm/meth/stress/compiler/deoptimize test…
amosshi Oct 12, 2023
94d3648
8303607: SunMSCAPI provider leaks memory and keys
Oct 12, 2023
c780db7
8259266: com/sun/jdi/JdbOptions.java failed with "RuntimeException: '…
Oct 15, 2023
855efc4
8311285: report some fontconfig related environment variables in hs_e…
MBaesken Oct 17, 2023
3ba3e88
8310549: avoid potential leaks in KeystoreImpl.m related to JNU_CHECK…
MBaesken Oct 17, 2023
7be6fc2
8296275: Write a test to verify setAccelerator method of JMenuItem
amosshi Oct 17, 2023
9752bed
8300272: Improve readability of the test JarWithOneNonDisabledDigestAlg
amosshi Oct 17, 2023
701f3e2
8301570: Test runtime/jni/nativeStack/ needs to detach the native th…
amosshi Oct 17, 2023
5247b72
8300259: Add test coverage for processing of pending block files in s…
amosshi Oct 17, 2023
fbc8bed
8302525: Write a test to check various components send Events while m…
amosshi Oct 17, 2023
92a47bc
8315062: [GHA] get-bootjdk action should return the abolute path
shipilev Oct 17, 2023
281a51f
Merge
GoeLin Oct 18, 2023
21536b0
8278456: Define jtreg jdk_desktop test group time-based sub-tasks for…
amosshi Oct 19, 2023
0b60ec7
8297640: Increase buffer size for buf (insert_features_names) in Abst…
Oct 19, 2023
d439c4a
8297296: java/awt/Mouse/EnterExitEvents/DragWindowTest.java fails wit…
amosshi Oct 19, 2023
abeacbf
8299255: Unexpected round errors in FreetypeFontScaler
Oct 19, 2023
639afbe
8255548: Missing coverage for javax.xml.crypto.dom.DOMCryptoContext
amosshi Oct 19, 2023
fb8676a
8223788: [macos] JSpinner buttons in JColorChooser dialog may capture…
Oct 24, 2023
c124213
8153090: TAB key cannot change input focus after the radio button in …
Oct 24, 2023
129e856
8266249: javax/swing/JPopupMenu/7156657/bug7156657.java fails on macOS
GoeLin Oct 25, 2023
2835c6a
8254711: Add java.security.Provider.getService JFR Event
GoeLin Oct 25, 2023
ce38b3e
8273804: Platform.isTieredSupported should handle the no-compiler case
tabjy Oct 25, 2023
a28f66b
8288415: java/awt/PopupMenu/PopupMenuLocation.java is unstable in Mac…
GoeLin Oct 25, 2023
c922821
8301167: Update VerifySignedJar to actually exercise and test verific…
amosshi Oct 25, 2023
f6a05cf
8307165: java/awt/dnd/NoFormatsDropTest/NoFormatsDropTest.java timed out
GoeLin Oct 25, 2023
365dacc
8309095: Remove UTF-8 character from TaskbarPositionTest.java
GoeLin Oct 25, 2023
a6ee5aa
8240235: jdk.test.lib.util.JarUtils updates jar files incorrectly
tabjy Oct 25, 2023
a4080b9
8217329: JTREG: Clean up, remove unused imports in gc folder
GoeLin Oct 26, 2023
35000fb
8213898: CDS dumping of springboot asserts in G1ArchiveAllocator::all…
sunny868 Oct 27, 2023
9be4d3f
8289917: Metadata for regionsRefilled of G1EvacuationStatistics event…
schmelter-sap Oct 28, 2023
b9936cd
8221396: Clean up serviceability/sa/TestUniverse.java
toshiogata Oct 30, 2023
cf13e82
8313691: use close after failing os::fdopen in vmError and ciEnv
MBaesken Oct 30, 2023
dd1994e
8231931: [TESTBUG] serviceability/sa/TestUniverse.java looks for wron…
toshiogata Oct 30, 2023
53acd95
8251177: [macosx] The text "big" is truncated in JTabbedPane
GoeLin Oct 30, 2023
9f74d26
8286707: JFR: Don't commit JFR internal jdk.JavaMonitorWait events
GoeLin Oct 30, 2023
46ce8cb
8306765: Some client related jtreg problem list entries are malformed
GoeLin Oct 30, 2023
910e2c4
8308910: Allow executeAndLog to accept running process
GoeLin Oct 30, 2023
2fbb4b9
8318705: [macos] ProblemList java/rmi/registry/multipleRegistries/Mul…
GoeLin Oct 30, 2023
32e63eb
8312065: Socket.connect does not timeout when profiling
yanglong1010 Oct 31, 2023
de9ae1e
8293811: Provide a reason for PassFailJFrame.forceFail
Nov 1, 2023
d0045da
8220083: Remove hard-coded 127.0.0.1 loopback address in JDK networki…
GoeLin Nov 6, 2023
4ebccd6
8223145: Replace wildcard address with loopback or local host in test…
GoeLin Nov 6, 2023
ef475f7
8224204: Replace wildcard address with loopback or local host in test…
GoeLin Nov 6, 2023
569ecf4
8226825: Replace wildcard address with loopback or local host in test…
GoeLin Nov 6, 2023
c73323b
8240604: Rewrite sun/management/jmxremote/bootstrap/CustomLauncherTes…
GoeLin Nov 6, 2023
3377127
8183374: Refactor java/lang/Runtime shell tests to java
GoeLin Nov 6, 2023
d90b9ac
8285612: Remove jtreg tag manual=yesno for java/awt/print/PrinterJob/…
GoeLin Nov 6, 2023
92c5062
8289238: Refactoring changes to PassFailJFrame Test Framework
GoeLin Nov 6, 2023
f993ef5
8284331: Add sanity check for signal handler modification warning.
Nov 6, 2023
18d616d
8306280: Open source several choice AWT tests
Nov 6, 2023
9abfdde
8314063: The socket is not closed in Connection::createSocket when th…
Nov 6, 2023
feb051f
8316906: Clarify TLABWasteTargetPercent flag
Nov 6, 2023
f6bdbe8
8317967: Enhance test/jdk/javax/net/ssl/TLSCommon/SSLEngineTestCase.j…
Nov 6, 2023
1f67ffb
8318669: Target OS detection in 'test-prebuilt' makefile target is in…
fthevenet Nov 6, 2023
80d3bb4
8289745: JfrStructCopyFailed uses heap words instead of bytes for obj…
schmelter-sap Nov 6, 2023
b64a1ac
8293166: jdk/jfr/jvm/TestDumpOnCrash.java fails on Linux ppc64le and …
schmelter-sap Nov 6, 2023
48f1f39
8230435: Replace wildcard address with loopback or local host in test…
GoeLin Nov 7, 2023
2f3fc25
8232135: Add diagnostic output to test java/util/ProcessBuilder/Basic…
GoeLin Nov 7, 2023
ff19eeb
8285687: Remove jtreg tag manual=yesno for java/awt/print/PrinterJob/…
GoeLin Nov 7, 2023
2aca53f
8026393: jarsigner never shows a warning in badKeyUsage case
GoeLin Nov 7, 2023
5754eb1
8290469: Add new positioning options to PassFailJFrame test framework
GoeLin Nov 7, 2023
68807aa
8314242: Update applications/scimark/Scimark.java to accept VM flags
GoeLin Nov 7, 2023
662f3bd
8317920: JDWP-agent sends broken exception event with onthrow option
parttimenerd Nov 7, 2023
75daf18
8315214: Do not run sun/tools/jhsdb tests concurrently
MBaesken Nov 7, 2023
3592b70
8317373: Add Telia Root CA v2
jerboaa Nov 7, 2023
0bc8b22
8230858: Replace wildcard address with loopback or local host in test…
GoeLin Nov 8, 2023
799a7c8
8292683: Remove BadKeyUsageTest.java from Problem List
GoeLin Nov 8, 2023
b773f56
6445283: ProgressMonitorInputStream not large file aware (>2GB)
GoeLin Nov 8, 2023
34cc089
8298905: Test "java/awt/print/PrinterJob/ImagePrinting/PrintARGBImage…
GoeLin Nov 8, 2023
416c48e
8310265: (process) jspawnhelper should not use argv[0]
luhenry Nov 8, 2023
c54521b
8314263: Signed jars triggering Logger finder recursion and StackOver…
Nov 9, 2023
2bbab16
8185531: [TESTBUG] Improve test configuration for shared strings
Nov 9, 2023
8f7589f
8211045: [Testbug] Fix for 8144279 didn't define a test case!
Nov 9, 2023
623fd8e
8212997: [TESTBUG] Remove defmeth tests for class file versions 50 an…
Nov 9, 2023
6038e04
8289584: (fs) Print size values in java/nio/file/FileStore/Basic.java…
Nov 9, 2023
a2ef248
6381945: (cal) Japanese calendar unit test system should avoid multip…
Nov 9, 2023
2b9d54a
8306134: Open source some AWT tests relating to Button and a few othe…
Nov 9, 2023
27bfce0
8210265: Crash in HSpaceCounters::update_used()
Nov 10, 2023
5d14b13
8275333: Print count in "Too many recored phases?" assert
Nov 13, 2023
4aa3196
8258914: javax/net/ssl/DTLS/RespondToRetransmit.java timed out
Nov 13, 2023
1b6ff86
8260035: Deproblemlist few problemlisted test
GoeLin Nov 13, 2023
5a7b227
8168408: Test java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWin…
Nov 13, 2023
046b213
8268916: Tests for AffirmTrust roots
Nov 17, 2023
45e3cbf
8294427: Check boxes and radio buttons have rendering issues on Windo…
Nov 20, 2023
10ddd51
8275329: ZGC: vmTestbase/gc/gctests/SoftReference/soft004/soft004.jav…
Nov 20, 2023
7814102
8244508: JFR: FlightRecorderOptions reset date format
pushkarnk Nov 20, 2023
f2488a3
8317374: Add Let's Encrypt ISRG Root X2
jerboaa Nov 21, 2023
fac5955
8238740: java/net/httpclient/whitebox/FlowTestDriver.java should not …
Nov 22, 2023
250d7a8
8214694: cleanup rawtypes warnings in open jndi tests
Nov 22, 2023
fca62cf
8289077: Add manual tests to open
Nov 23, 2023
a72d0b2
8240754: Instrument FlowTest.java to provide more debug traces.
Nov 23, 2023
2420592
8312126: NullPointerException in CertStore.getCRLs after 8297955
gnu-andrew Nov 24, 2023
6321d3e
8316746: Top of lock-stack does not match the unlocked object
TheRealMDoerr Nov 27, 2023
1f4decf
8318759: Add four DigiCert root certificates
Nov 28, 2023
345122d
8067250: [mlvm] vm/mlvm/mixed/stress/regression/b6969574 fails and pe…
Nov 28, 2023
f9bedac
8218178: vmTestbase/vm/mlvm/mixed/stress/regression/b6969574/INDIFY_T…
Nov 28, 2023
bd7420a
8224035: Replace wildcard address with loopback or local host in test…
Nov 28, 2023
911c359
8249812: java/net/DatagramSocket/PortUnreachable.java still fails int…
Nov 28, 2023
a956ba6
8315692: Parallelize gc/stress/TestStressRSetCoarsening.java test
roy-soumadipta Nov 28, 2023
f65058e
8053479: (dc) DatagramChannel.read() throws exception instead of disc…
tabjy Nov 28, 2023
a3661a5
8231556: Wrong font ligatures used when 2 versions of same font used
Nov 28, 2023
40ee106
8282143: Objects.requireNonNull should be ForceInline
Nov 28, 2023
be01e6e
8263530: sun.awt.X11.ListHelper.removeAll() should use clear()
Nov 28, 2023
09b402a
8319187: Add three eMudhra emSign roots
Nov 30, 2023
abed94c
8302017: Allocate BadPaddingException only if it will be thrown
Dec 15, 2023
31a6a53
8320597: RSA signature verification fails on signed data that does no…
Dec 15, 2023
89e0f9b
8308204: Enhanced certificate processing
Jan 9, 2024
8fe2b29
8314284: Enhance Nashorn performance
martinuy Jan 9, 2024
6944c16
8314295: Enhance verification of verifier
martinuy Jan 9, 2024
4576161
8314468: Improve Compiler loops
Jan 9, 2024
4ec94b1
8316976: Improve signature handling
Jan 9, 2024
a9145c7
8317547: Enhance TLS connection support
Jan 9, 2024
e059fc7
8314307: Improve loop handling
rwestrel Jan 9, 2024
6739881
8323423: [11u] Remove designator DEFAULT_PROMOTED_VERSION_PRE=ea for …
RealCLanger Jan 9, 2024
8beb02a
Merge remote-tracking branch 'upstream/master' into dragonwell
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
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/actions/get-bootjdk/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022, 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 @@ -104,6 +104,6 @@ runs:
- name: 'Export path to where BootJDK is installed'
id: path-name
run: |
# Export the path
echo 'path=bootjdk/jdk' >> $GITHUB_OUTPUT
# Export the absolute path
echo "path=`pwd`/bootjdk/jdk" >> $GITHUB_OUTPUT
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/get-jtreg/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ runs:
key: jtreg-${{ steps.version.outputs.value }}

- name: 'Checkout the JTReg source'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: openjdk/jtreg
ref: jtreg-${{ steps.version.outputs.value }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/get-msys2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ runs:
with:
install: 'autoconf tar unzip zip make'
path-type: minimal
location: msys2
location: ${{ runner.tool_cache }}/msys2

# We can't run bash until this is completed, so stick with pwsh
- name: 'Set MSYS2 path'
run: |
# Prepend msys2/msys64/usr/bin to the PATH
echo "$env:GITHUB_WORKSPACE/msys2/msys64/usr/bin" >> $env:GITHUB_PATH
echo "$env:RUNNER_TOOL_CACHE/msys2/msys64/usr/bin" >> $env:GITHUB_PATH
shell: pwsh
54 changes: 39 additions & 15 deletions .github/workflows/build-cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,22 @@ on:
workflow_call:
inputs:
gcc-major-version:
required: true
type: string
extra-conf-options:
required: false
type: string
configure-arguments:
required: false
type: string
make-arguments:
required: false
type: string
default: '10'

jobs:
build-cross-compile:
name: build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand All @@ -48,22 +56,30 @@ jobs:
- ppc64le
include:
- target-cpu: aarch64
debian-arch: arm64
gnu-arch: aarch64
debian-arch: arm64
debian-repository: https://httpredir.debian.org/debian/
debian-version: bullseye
- target-cpu: arm
debian-arch: armhf
gnu-arch: arm
debian-arch: armhf
debian-repository: https://httpredir.debian.org/debian/
debian-version: bullseye
gnu-abi: eabihf
- target-cpu: s390x
debian-arch: s390x
gnu-arch: s390x
debian-arch: s390x
debian-repository: https://httpredir.debian.org/debian/
debian-version: bullseye
- target-cpu: ppc64le
debian-arch: ppc64el
gnu-arch: powerpc64le
debian-arch: ppc64el
debian-repository: https://httpredir.debian.org/debian/
debian-version: bullseye

steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 'Get the BootJDK'
id: bootjdk
Expand Down Expand Up @@ -105,22 +121,26 @@ jobs:

- name: 'Create sysroot'
run: >
sudo qemu-debootstrap
sudo debootstrap
--arch=${{ matrix.debian-arch }}
--verbose
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype-dev,libpng-dev
--resolve-deps
buster
--variant=minbase
${{ matrix.debian-version }}
sysroot
https://httpredir.debian.org/debian/
${{ matrix.debian-repository }}
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'

- name: 'Prepare sysroot'
run: |
# Prepare sysroot and remove unused files to minimize cache
sudo chroot sysroot symlinks -cr .
sudo chown ${USER} -R sysroot
rm -rf sysroot/{dev,proc,run,sys}
rm -rf sysroot/{dev,proc,run,sys,var}
rm -rf sysroot/usr/{sbin,bin,share}
rm -rf sysroot/usr/lib/{apt,gcc,udev,systemd}
rm -rf sysroot/usr/libexec/gcc
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'

- name: 'Configure'
Expand All @@ -135,12 +155,16 @@ jobs:
--openjdk-target=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}
--with-sysroot=sysroot
--with-build-jdk=${{ steps.buildjdk.outputs.jdk-path }}
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-10
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-10
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-${{ inputs.gcc-major-version }}
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-${{ inputs.gcc-major-version }}
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
echo "Dumping config.log:" &&
cat config.log &&
exit 1)
- name: 'Build'
id: build
uses: ./.github/actions/do-build
with:
make-target: 'hotspot'
make-target: 'hotspot ${{ inputs.make-arguments }}'
platform: linux-${{ matrix.target-cpu }}
140 changes: 140 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
#
# Copyright (c) 2022, 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#

name: 'Build (linux)'

on:
workflow_call:
inputs:
platform:
required: true
type: string
extra-conf-options:
required: false
type: string
make-target:
required: false
type: string
default: 'product-bundles test-bundles'
debug-levels:
required: false
type: string
default: '[ "debug", "release" ]'
gcc-major-version:
required: true
type: string
gcc-package-suffix:
required: false
type: string
default: ''
apt-architecture:
required: false
type: string
apt-extra-packages:
required: false
type: string
configure-arguments:
required: false
type: string
make-arguments:
required: false
type: string

jobs:
build-linux:
name: build
runs-on: ubuntu-22.04

strategy:
fail-fast: false
matrix:
debug-level: ${{ fromJSON(inputs.debug-levels) }}
include:
- debug-level: debug
flags: --with-debug-level=fastdebug
suffix: -debug

steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v4

- name: 'Get the BootJDK'
id: bootjdk
uses: ./.github/actions/get-bootjdk
with:
platform: linux-x64

- name: 'Get JTReg'
id: jtreg
uses: ./.github/actions/get-jtreg

- name: 'Set architecture'
id: arch
run: |
# Set a proper suffix for packages if using a different architecture
if [[ '${{ inputs.apt-architecture }}' != '' ]]; then
echo 'suffix=:${{ inputs.apt-architecture }}' >> $GITHUB_OUTPUT
fi
# Upgrading apt to solve libc6 installation bugs, see JDK-8260460.
- name: 'Install toolchain and dependencies'
run: |
# Install dependencies using apt-get
if [[ '${{ inputs.apt-architecture }}' != '' ]]; then
sudo dpkg --add-architecture ${{ inputs.apt-architecture }}
fi
sudo apt-get update
sudo apt-get install --only-upgrade apt
sudo apt-get install gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
- name: 'Configure'
run: >
bash configure
--with-conf-name=${{ inputs.platform }}
${{ matrix.flags }}
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
--with-jtreg=${{ steps.jtreg.outputs.path }}
--enable-jtreg-failure-handler
--with-zlib=system
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
echo "Dumping config.log:" &&
cat config.log &&
exit 1)
- name: 'Build'
id: build
uses: ./.github/actions/do-build
with:
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
platform: ${{ inputs.platform }}
debug-suffix: '${{ matrix.suffix }}'

- name: 'Upload bundles'
uses: ./.github/actions/upload-bundles
with:
platform: ${{ inputs.platform }}
debug-suffix: '${{ matrix.suffix }}'
Loading
Loading