Compare commits

...

1766 Commits

Author SHA1 Message Date
Vitaly Provodin
2d8c5d7ebe update exclude list on results of 21.0.3_b458.1 test runs 2024-05-27 06:39:55 +04:00
Maxim Kartashev
8afe214424 JBR-7201 Wayland: update copyright in files generated by wayland-scanner 2024-05-24 15:59:17 +04:00
Maxim Kartashev
17ef8fd65e JBR-7198 Wayland: jvm crashes under KDE
Do not copy the buffer if the drawing buffer has not been resized yet as
the size will not match that of the show buffer.
Also, properly guard against the size change by another thread while
copying.
2024-05-24 15:50:10 +04:00
Maxim Kartashev
3647144b39 Added proper copyright headers 2024-05-24 15:49:20 +04:00
Maxim Kartashev
1e3fb0289d JBR-7158 Wayland: scale with wp_viewport instead of buffer scale 2024-05-24 15:49:20 +04:00
Dmitrii Morskii
56bd776f20 JBR-7128 Use the correct WmSize event type for JFrame moved to another monitor
author: Sergei Tachenov
2024-05-23 13:20:01 +01:00
Viktor Klang
036ef4917f JBR-7182 backport 8332154: Memory leak in SynchronousQueue 2024-05-22 08:42:32 +04:00
Vitaly Provodin
2c287a5f36 update exclude list on results of 21.0.3_b453.2 test runs 2024-05-19 16:43:34 +04:00
Sergey Shelomentsev
d8c179cf77 JBR-7117 Set initial display mode after test execution 2024-05-17 16:00:47 +03:00
Maxim Kartashev
469130b7ec JBR-7151 Test PropertyPermissionOnEDT and others fail with ExceptionInInitializerError 2024-05-15 12:11:29 +04:00
Vitaly Provodin
535416746d update exclude list on results of 21.0.3_b450.1 test runs 2024-05-15 09:14:22 +04:00
Maxim Kartashev
9d011d23df JBR-7028 Implement FPS counter on Linux
Use -Dawt.window.counters to enable.
To output counters per second to stdout/stderr,
use -Dawt.window.counters=stdout or =stderr.

A counter by the name swing.RepaintManager.updateWindows
is always available for Swing applications, but it does not
accurately correspond to frames per second.

Toolkit-dependent counters provide much better accuracy.
On Wayland with memory buffers as the backend two are available:
java2d.native.frames - frames delivered to the Wayland server
java2d.native.framesDropped - fully formed frames that were not
delivered to the Wayland server
2024-05-14 20:35:07 +04:00
Maxim Kartashev
3399c59635 JBR-7047 Deadlock on git fetch on Wayland 2024-05-14 20:09:40 +04:00
Maxim Kartashev
4bd4fcabf8 JBR-6576 Wayland: exception when double-clicking dialog title bar 2024-05-14 20:08:06 +04:00
Nikita Tsarev
01df339ac6 JBR-7119: respect replacementRange in IME events on macOS 2024-05-10 23:30:56 +02:00
Dmitry Drobotov
6dfa6444b1 JBR-6808 Don't create AccessibleJTreeNode for the tree root if it's not visible
* This fixes an issue with AccessibleJTreeNode#getBounds, which adjusts the node's bounds according to the parent node. For nodes whose parent is the invisible root, getBounds was returning null, and it caused issues with assistive technology like macOS Accessibility Zoom.
* Additionally, NVDA will now report correct tree depth levels because the root node won't add to the levels count (JDK-8249806).

(cherry picked from commit f7c47bf3cf)
2024-05-10 18:02:35 +02:00
Vitaly Provodin
69866f39d9 update exclude list on results of 21.0.3_b446.1 test runs 2024-05-09 04:54:55 +04:00
Nikita Provotorov
13d8c351a2 JBR-6456 Sudden keyboard death on Linux using iBus.
Add a workaround for the iBus's bug which leads to the issue.

(cherry picked from commit b8e9dbf8c9)
2024-05-08 00:30:20 +02:00
Dmitrii Morskii
2324820a9b JBR-6376: implement detecting of OS theme on linux 2024-05-07 15:45:16 +02:00
Dmitrii Morskii
96b270b25f Revert "JBR-6372: implement detecting of OS theme on linux"
This reverts commit 51d67613bb.

Commit 51d676 has a wrong issue number in the commit message. To avoid confusion 51d676 commit reverted
2024-05-07 15:45:07 +02:00
Vitaly Provodin
d133624956 JBR-6620 restore displayMode to the state that was before running the test 2024-05-07 15:08:12 +03:00
Vitaly Provodin
9bd0b744be JBR-5989 Wayland: excluded failing tests came with 21.0.3 2024-05-04 02:11:17 +04:00
Vitaly Provodin
0d099c3d27 update exclude list on results of 21.0.3_b442.1 test runs 2024-05-04 02:11:17 +04:00
Maxim Kartashev
ebaf3f9293 JBR-5611 Window header is visible but body not on Linux Ubuntu with external display 2024-05-03 17:53:12 +04:00
Maxim Kartashev
a79bb6107a JBR-7058 Wayland: IDE hang on the popup appearance
Clean up the damage list when resizing a surface.
Additionally, clamp the damaged area before copying to its current
actual size in order to safeguard against invalid external input.
2024-05-02 15:39:37 +03:00
Nikita Gubarkov
0e564fd8b4 JBR-7046 Tolerate subpixelResolution=0 in Metal and OGL 2024-05-02 09:12:35 +02:00
tsarn
6f6aca3c5d JBR-7063: Make .getKeyChar() report chars in KEY_PRESSED/KEY_RELEASED events for compatibility [WLToolkit] (#371) 2024-04-26 10:01:10 +02:00
Nikita Gubarkov
73356a1bf3 JBR-7020 Reorder LCD glyph cache freeing and validation
1. As we started committing the command buffer on glyph cache flush, this invalidates the current encoder. We need to `MTLTR_ValidateGlyphCache` after the flush, not before.
2. There's no reason to maintain separate glyph cache invalidation logic for this singe case (which is a no-op in reality), so just free the cache instead.
2024-04-25 20:57:54 +02:00
tsarn
a4f765d3ec JBR-6848: Support extra mouse buttons for navigation [WLToolkit] 2024-04-24 12:23:42 +02:00
tsarn
176dccc958 JBR-6434: Fix pointer leave also resetting the keyboard modifiers [WLToolkit] (#370) 2024-04-24 12:23:20 +02:00
Vitaly Provodin
05ab1ba789 update exclude list on results of 21.0.3_b436.1 test runs 2024-04-24 04:42:56 +07:00
tsarn
fccbee551a JBR-7044: Reset clickCount on mouse moves [WLToolkit] 2024-04-23 11:41:28 +02:00
Nikita Tsarev
43d04546fb Disable flappy KeyCodesTest assertions, see JBR-6888 2024-04-22 19:39:00 +02:00
Vitaly Provodin
545e2a239c JBR-5989 Wayland: excluded failing tests came with 21.0.3 2024-04-22 13:49:35 +07:00
David Holmes
2ceda42bd1 update exclude list on results of 21.0.3_b436.1 test runs 2024-04-22 13:49:35 +07:00
Maxim Kartashev
473a775980 JBR-6247 Update JBR-specific tests after JDK-8314823 2024-04-20 07:23:13 +07:00
Christoph Langer
23c5a3c5c3 8329838: [21u] Remove designator DEFAULT_PROMOTED_VERSION_PRE=ea for release 21.0.3
Reviewed-by: goetz
2024-04-20 07:23:13 +07:00
Martin Balao
8964174495 8319851: Improve exception logging
Reviewed-by: mbaesken
Backport-of: 87dfeeb14fdd0fa1648a8bec91b5b713cc2c1b83
2024-04-20 07:23:13 +07:00
Martin Balao
e5d86804a3 8322122: Enhance generation of addresses
Backport-of: 1a4a46e102a2bc282fcbec571169867d715f4ade
2024-04-20 07:23:13 +07:00
Alexey Bakhtin
d1f5aaca0e 8318340: Improve RSA key implementations
Reviewed-by: mbalao
Backport-of: 62d9cec1d6b804a70381bfb8ac902b6bb649f8ae
2024-04-20 07:23:13 +07:00
Yuri Nesterenko
d9cc5fcdd4 8315708: Enhance HTTP/2 client usage
Reviewed-by: mbalao
Backport-of: 4bd9637dfe12d330afd7409c27c5778b28a24cf4
2024-04-20 07:23:13 +07:00
Goetz Lindenmaier
5874812b42 8327391: Add SipHash attribution file
Backport-of: fcf48ab3d3
2024-04-20 07:23:13 +07:00
Sergey Bylokhov
f162e1201b 8322750: Test "api/java_awt/interactive/SystemTrayTests.html" failed because A blue ball icon is added outside of the system tray
Backport-of: 5a988a5087
2024-04-20 07:23:13 +07:00
Christoph Langer
1d93f278ea 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations
Backport-of: 99c9ae127c
2024-04-20 07:23:13 +07:00
Matthias Baesken
c53ba04e8b 8325496: Make TrimNativeHeapInterval a product switch
Backport-of: d31fd78d96
2024-04-20 07:23:13 +07:00
Sergey Bylokhov
7ad185e82c 8321151: JDK-8294427 breaks Windows L&F on all older Windows versions
Backport-of: f695ca5884
2024-04-20 07:23:13 +07:00
Matthias Baesken
4c1a32337d 8325876: crashes in docker container tests on Linuxppc64le Power8 machines
Backport-of: ba8db1f6d7
2024-04-20 07:23:13 +07:00
Matthias Baesken
975098124f 8325470: [AIX] use fclose after fopen in read_psinfo
Backport-of: 4513da9496
2024-04-20 07:23:13 +07:00
Andrew Lu
b8a1ec948d 8320303: Allow PassFailJFrame to accept single window creator
Backport-of: 83ffc1ac94
2024-04-20 07:23:12 +07:00
Christoph Langer
4f90ef2772 8326000: Remove obsolete comments for class sun.security.ssl.SunJSSE
Backport-of: c2d9fa26ce
2024-04-20 07:23:12 +07:00
Matthias Baesken
da017d70e5 8314835: gtest wrappers should be marked as flagless
Backport-of: 1ea6463fbb
2024-04-20 07:23:12 +07:00
Martin Balao
6fe25eff11 8325254: CKA_TOKEN private and secret keys are not necessarily sensitive
Backport-of: 0f5f3c9b97
2024-04-20 07:23:12 +07:00
Pasam Soujanya
d24c6f2a88 8311893: Interactive component with ARIA role 'tabpanel' does not have a programmatically associated name
Reviewed-by: hannesw
Backport-of: 783ae56634
2024-04-20 07:23:12 +07:00
Aleksey Shipilev
f24e7c9cf0 8321408: Add Certainly roots R1 and E1
Backport-of: f3073db42a
2024-04-20 07:23:12 +07:00
Aleksey Shipilev
7bedee58cf 8325074: ZGC fails assert(index == 0 || is_power_of_2(index)) failed: Incorrect load shift: 11
Backport-of: 2705ed0a71
2024-04-20 07:23:12 +07:00
Andrew Lu
55f154881e 8315726: Open source several AWT applet tests
Backport-of: 1741d13b12
2024-04-20 07:23:12 +07:00
SendaoYan
70d2124c08 8323640: [TESTBUG]testMemoryFailCount in jdk/internal/platform/docker/TestDockerMemoryMetrics.java always fail because OOM killed
Backport-of: 791b427f44
2024-04-20 07:23:12 +07:00
Liang Mao
62309db677 8314629: Generational ZGC: Clearing All SoftReferences log line lacks GCId
Backport-of: 88dafe564f
2024-04-20 07:23:12 +07:00
Darragh Clarke
f33eadfeb2 8314164: java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java fails intermittently in timeout
Backport-of: fbaaac63d4
2024-04-20 07:23:12 +07:00
Ilya Gavrilin
49a28d4aa9 8322790: RISC-V: Tune costs for shuffles with no conversion
Backport-of: 2acb5bd992
2024-04-20 07:23:12 +07:00
Evgeny Astigeevich
e967eecb77 8324874: AArch64: crypto pmull based CRC32/CRC32C intrinsics clobber V8-V15 registers
Backport-of: 4cd318756d
2024-04-20 07:23:12 +07:00
Aleksey Shipilev
2f3ad42146 8318737: Fallback linker passes bad JNI handle
Backport-of: 3885dc5b9a
2024-04-20 07:23:12 +07:00
Joachim Kern
39f0d950cf 8320890: [AIX] Find a better way to mimic dl handle equality
Reviewed-by: mdoerr
Backport-of: b8ae4a8c09
2024-04-20 07:23:11 +07:00
Aleksey Shipilev
90b25ed639 8325672: C2: allocate PhaseIdealLoop::_loop_or_ctrl from C->comp_arena()
Backport-of: 74b90aa87e
2024-04-20 07:23:11 +07:00
Aleksey Shipilev
127b336e15 8315891: java/foreign/TestLinker.java failed with "error occurred while instantiating class TestLinker: null"
Backport-of: a62c48b87e
2024-04-20 07:23:11 +07:00
Amos Shi
49c5f45257 8315602: Open source swing security manager test
Backport-of: fd6442c079
2024-04-20 07:23:11 +07:00
Sergey Bylokhov
5e20db4693 8324347: Enable "maybe-uninitialized" warning for FreeType 2.13.1
Backport-of: 781f368d42
2024-04-20 07:23:11 +07:00
Sergey Bylokhov
7056ef5d9a 8318603: Parallelize sun/java2d/marlin/ClipShapeTest.java
Backport-of: 6c7029ffd4
2024-04-20 07:23:11 +07:00
Andrew John Hughes
45b5a5c521 8009550: PlatformPCSC should load versioned so
Backport-of: 328b381075
2024-04-20 07:23:11 +07:00
Aleksey Shipilev
70783f8246 8319314: NMT detail report slow or hangs for large number of mappings
Reviewed-by: phh
Backport-of: 9938b3f62b
2024-04-20 07:23:11 +07:00
Aleksey Shipilev
990fed1a2c 8323717: Introduce test keyword for tests that need external dependencies
Backport-of: 12b89cd2ee
2024-04-20 07:23:11 +07:00
Aleksey Shipilev
06a7d42da2 8324514: ClassLoaderData::print_on should print address of class loader
Backport-of: fb822e49f2
2024-04-20 07:23:11 +07:00
Aleksey Shipilev
3204f7413f 8324858: [vectorapi] Bounds checking issues when accessing memory segments
Reviewed-by: psandoz
Backport-of: 1ae851387f
2024-04-20 07:23:11 +07:00
Aleksey Shipilev
c0bb4c6bcc 8305962: update jcstress to 0.16
Backport-of: 292ee630ae
2024-04-20 07:23:11 +07:00
Aleksey Shipilev
780ff60a20 8323515: Create test alias "all" for all test roots
8324647: Invalid test group of lib-test after JDK-8323515

Backport-of: 8b9bf75880
2024-04-20 07:23:10 +07:00
George Adams
aeef2a3bcc 8325194: GHA: Add macOS M1 testing
8325444: GHA: JDK-8325194 causes a regression

Reviewed-by: shade
Backport-of: d1c82156ba
2024-04-20 07:23:10 +07:00
Matthias Baesken
6da55c6f97 8324753: [AIX] adjust os_posix after JDK-8318696
Backport-of: 8950d68ddb
2024-04-20 07:23:10 +07:00
Andrew Leonard
6e05b92961 8323671: DevKit build gcc libraries contain full paths to source location
Backport-of: dd0694b9cb
2024-04-20 07:23:10 +07:00
Andrew Leonard
4b2c301516 8323667: Library debug files contain non-reproducible full gcc include paths
Backport-of: 57fad67781
2024-04-20 07:23:10 +07:00
George Adams
f31ed60d2a 8318039: GHA: Bump macOS and Xcode versions
Backport-of: 605c976729
2024-04-20 07:23:10 +07:00
Dan Lutker
5365f15c57 8325150: (tz) Update Timezone Data to 2024a
Backport-of: 917838e0a5
2024-04-20 07:23:10 +07:00
Sergey Bylokhov
40073d3eb5 8309109: AArch64: [TESTBUG] compiler/intrinsics/sha/cli/TestUseSHA3IntrinsicsOptionOnSupportedCPU.java fails on Neoverse N2 and V1
Reviewed-by: aph
Backport-of: afdaa2a330
2024-04-20 07:23:10 +07:00
Matthias Baesken
4cff0fa12b 8324637: [aix] Implement support for reporting swap space in jdk.management
Backport-of: 33324a59cc
2024-04-20 07:23:10 +07:00
Matthias Baesken
601e9a220e 8324598: use mem_unit when working with sysinfo memory and swap related information
Backport-of: 7a798d3ceb
2024-04-20 07:23:10 +07:00
Matthias Baesken
14b5ad9319 8323964: runtime/Thread/ThreadCountLimit.java fails intermittently on AIX
Backport-of: 3696765b7d
2024-04-20 07:23:10 +07:00
Aleksey Shipilev
8136e1cfbd 8319777: Zero: Support 8-byte cmpxchg
8320582: Zero: Misplaced CX8 enablement flag

Reviewed-by: phh
Backport-of: 6b96bb640a
2024-04-20 07:23:10 +07:00
Aleksey Shipilev
c02e531a01 8316961: Fallback implementations for 64-bit Atomic::{add,xchg} on 32-bit platforms
Backport-of: ba7d08b819
2024-04-20 07:23:10 +07:00
Aleksey Shipilev
52d4ecc0ce 8325096: Test java/security/cert/CertPathBuilder/akiExt/AKISerialNumber.java is failing
Backport-of: ac1cd31949
2024-04-20 07:23:10 +07:00
Aleksey Shipilev
103518c7ce 8321410: Shenandoah: Remove ShenandoahSuspendibleWorkers flag
Backport-of: 2830dd2a7d
2024-04-20 07:23:09 +07:00
Aleksey Shipilev
57f6a1fd20 8322957: Generational ZGC: Relocation selection must join the STS
Reviewed-by: eosterlund, stefank
Backport-of: ba23025cd8
2024-04-20 07:23:09 +07:00
Matthias Baesken
212d4739d4 8313670: Simplify shared lib name handling code in some tests
Reviewed-by: mdoerr, lucy
Backport-of: 6dba2026d7
2024-04-20 07:23:09 +07:00
Goetz Lindenmaier
716df002bd 8309697: [TESTBUG] Remove "@requires vm.flagless" from jtreg vectorization tests
Reviewed-by: shade
Backport-of: a03954e6c5
2024-04-20 07:23:09 +07:00
Aleksey Shipilev
bd3d991648 8323637: Capture hotspot replay files in GHA
Backport-of: c84c0ab52d
2024-04-20 07:23:09 +07:00
Aleksey Shipilev
3c1b249b5a 8324937: GHA: Avoid multiple test suites per job
Backport-of: 1aba78f272
2024-04-20 07:23:09 +07:00
Aleksey Shipilev
ff10958c27 8320052: Zero: Use __atomic built-ins for atomic RMW operations
Backport-of: 020c9007f8
2024-04-20 07:23:09 +07:00
Joachim Kern
59b896f488 8319382: com/sun/jdi/JdwpAllowTest.java shows failures on AIX if prefixLen of mask is larger than 32 in IPv6 case
Backport-of: 22642ff0aa
2024-04-20 07:23:09 +07:00
Aleksey Shipilev
13a90975f4 8323101: C2: assert(n->in(0) == nullptr) failed: divisions with zero check should already have bailed out earlier in split-if
Backport-of: 7e0a4ed629
2024-04-20 07:23:09 +07:00
Amos Shi
fc728285b8 8315611: Open source swing text/html and tree test
Backport-of: ae08143d3d
2024-04-20 07:23:09 +07:00
Olga Mikhaltsova
0d5eec9b24 8318157: RISC-V: implement ensureMaterializedForStackWalk intrinsic
Backport-of: d6b4aa01a2
2024-04-20 07:23:09 +07:00
Aleksey Shipilev
07e8d4b1f1 8323154: C2: assert(cmp != nullptr && cmp->Opcode() == Op_Cmp(bt)) failed: no exit test
Backport-of: 6997bfc68d
2024-04-20 07:23:09 +07:00
Goetz Lindenmaier
2744698591 8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch
Backport-of: 87516e29dc
2024-04-20 07:23:09 +07:00
Goetz Lindenmaier
eec0934228 8313507: Remove pkcs11/Cipher/TestKATForGCM.java from ProblemList
Backport-of: e8471f6bbe
2024-04-20 07:23:08 +07:00
Amos Shi
1fde35f727 8315600: Open source few more headless Swing misc tests
Backport-of: b05198a4f3
2024-04-20 07:23:08 +07:00
Amos Shi
2b67f88014 8274122: java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11
Backport-of: 4a142c3b08
2024-04-20 07:23:08 +07:00
Gui Cao
44f4f95212 8324280: RISC-V: Incorrect implementation in VM_Version::parse_satp_mode
Backport-of: e7fdac9d5c
2024-04-20 07:23:08 +07:00
Aleksey Shipilev
e564debbc6 8324659: GHA: Generic jtreg errors are not reported
Backport-of: c313d451a5
2024-04-20 07:23:08 +07:00
Andrew Lu
2514db615b 8315761: Open source few swing JList and JMenuBar tests
Backport-of: bb6b3f2486
2024-04-20 07:23:08 +07:00
Anton Hägerstrand
c146334163 8322142: JFR: Periodic tasks aren't orphaned between recordings
Backport-of: 1551928502
2024-04-20 07:23:08 +07:00
Andrew Lu
29b7d6545e 8321480: ISO 4217 Amendment 176 Update
Backport-of: 8b24851b9d
2024-04-20 07:23:08 +07:00
Andrew Lu
8b45fe6448 8316947: Write a test to check textArea triggers MouseEntered/MouseExited events properly
Backport-of: 00ef9f9c32
2024-04-20 07:23:08 +07:00
William Kemper
0d9b6e5d3a 8317535: Shenandoah: Remove unused code
Reviewed-by: kdnilsen, ysr
Backport-of: e942f368c3
2024-04-20 07:23:08 +07:00
Liang Mao
3f8d817255 8322255: Generational ZGC: ZPageSizeMedium should be set before MaxTenuringThreshold
Backport-of: 0ad6c9e3d9
2024-04-20 07:23:08 +07:00
Goetz Lindenmaier
83f398b68b 8295343: sun/security/pkcs11 tests fail on Linux RHEL 8.6 and newer
Backport-of: 6ce0ebb858
2024-04-20 07:23:08 +07:00
Aleksey Shipilev
ae36dc7f9b 8321122: Shenandoah: Remove ShenandoahLoopOptsAfterExpansion flag
Backport-of: b02fc8681e
2024-04-20 07:23:08 +07:00
Aleksey Shipilev
16de6cba03 8321120: Shenandoah: Remove ShenandoahElasticTLAB flag
Backport-of: 93b9235f19
2024-04-20 07:23:08 +07:00
Aleksey Shipilev
4f75d6b988 8324050: Issue store-store barrier after re-materializing objects during deoptimization
Reviewed-by: kvn
Backport-of: 52523d33dd
2024-04-20 07:23:07 +07:00
Aleksey Shipilev
8064a51ca2 8321269: Require platforms to define DEFAULT_CACHE_LINE_SIZE
Backport-of: a56286f7ad
2024-04-20 07:23:07 +07:00
Aleksey Shipilev
7818f9df26 8318468: compiler/tiered/LevelTransitionTest.java fails with -XX:CompileThreshold=100 -XX:TieredStopAtLevel=1
Backport-of: 61d0db3838
2024-04-20 07:23:07 +07:00
Aleksey Shipilev
5a757ae67c 8323243: JNI invocation of an abstract instance method corrupts the stack
Backport-of: 71d9a83dec
2024-04-20 07:23:07 +07:00
Aleksey Shipilev
36fe1c1453 8322282: Incorrect LoaderConstraintTable::add_entry after JDK-8298468
Backport-of: bde650f21e
2024-04-20 07:23:07 +07:00
sunyaqi
0611c01aa2 8316319: Generational ZGC: The SoftMaxHeapSize might be wrong when CDS decreases the MaxHeapSize
Backport-of: fe862639e7
2024-04-20 07:23:07 +07:00
Matthias Baesken
4e0d474eb2 8318696: Do not use LFS64 symbols on Linux
Reviewed-by: lucy
Backport-of: f4d08ccf80
2024-04-20 07:23:07 +07:00
Goetz Lindenmaier
ddecdf5783 8319128: sun/security/pkcs11 tests fail on OL 7.9 aarch64
8319136: Skip pkcs11 tests on linux-aarch64

Backport-of: c2e77e2f17
2024-04-20 07:23:07 +07:00
Goetz Lindenmaier
aa6c164f6e 8319213: Compatibility.java reads both stdout and stderr of JdkUtils
Backport-of: 84f4f7477c
2024-04-20 07:23:07 +07:00
Goetz Lindenmaier
66e953a966 8312416: Tests in Locale should have more descriptive names
Backport-of: a9a3463afb
2024-04-20 07:23:07 +07:00
Olga Mikhaltsova
205d8bc807 8318158: RISC-V: implement roundD/roundF intrinsics
Backport-of: 19147f326c
2024-04-20 07:23:07 +07:00
Andrew Lu
bc7548c680 8169475: WheelModifier.java fails by timeout
Backport-of: 613d32c282
2024-04-20 07:23:07 +07:00
Goetz Lindenmaier
60e0cbdfc6 8077371: Binary files in JAXP test should be removed
Backport-of: 40106422bd
2024-04-20 07:23:06 +07:00
Aleksey Shipilev
2f142c059e 8318809: java/util/concurrent/ConcurrentLinkedQueue/WhiteBox.java shows intermittent failures on linux ppc64le and aarch64
Backport-of: 50d1839d54
2024-04-20 07:23:06 +07:00
Goetz Lindenmaier
03102d6643 8314283: Support for NSS tests on aarch64 platforms
Backport-of: 2a80160960
2024-04-20 07:23:06 +07:00
Johannes Bechberger
d764f632e1 8317771: [macos14] Expand/collapse a JTree using keyboard freezes the application in macOS 14 Sonoma
Reviewed-by: asemenov
Backport-of: ffa33d7b80
2024-04-20 07:23:06 +07:00
Liang Mao
ba55143c72 8322279: Generational ZGC: Use ZFragmentationLimit and ZYoungCompactionLimit as percentage instead of multiples
Reviewed-by: eosterlund
Backport-of: bf813be0f3
2024-04-20 07:23:06 +07:00
Goetz Lindenmaier
9fbb6c1339 8323008: filter out harmful -std* flags added by autoconf from CXX
Backport-of: 68c4286026
2024-04-20 07:23:06 +07:00
Richard Reingruber
bf785fe967 8310031: Parallel: Implement better work distribution for large object arrays in old gen
Backport-of: 4bfe226870
2024-04-20 07:23:06 +07:00
Goetz Lindenmaier
23c4f41d57 8318590: JButton ignores margin when painting HTML text
Backport-of: acaf2c8dcf
2024-04-20 07:23:06 +07:00
Goetz Lindenmaier
0e6029248d 8312136: Modify runtime/ErrorHandling/TestDwarf.java to split dwarf and decoder testing
Backport-of: e2e8e8e210
2024-04-20 07:23:06 +07:00
Goetz Lindenmaier
370ea5439e 8315241: (fs) Move toRealPath tests in java/nio/file/Path/Misc.java to separate JUnit 5 test
Backport-of: dd64a4a483
2024-04-20 07:23:06 +07:00
Goetz Lindenmaier
a9400019e7 8311663: Additional refactoring of Locale tests to JUnit
Backport-of: 71cac8ce47
2024-04-20 07:23:06 +07:00
Matthias Baesken
2596cee028 8322098: os::Linux::print_system_memory_info enhance the THP output with /sys/kernel/mm/transparent_hugepage/hpage_pmd_size
8323331: fix typo hpage_pdm_size

Reviewed-by: lucy
Backport-of: b31454e362
2024-04-20 07:23:06 +07:00
Chris Hegarty
0379ddd60d 8323659: LinkedTransferQueue add and put methods call overridable offer
Reviewed-by: shade
Backport-of: ee4d9aa4c1
2024-04-20 07:23:06 +07:00
Goetz Lindenmaier
586f29ee92 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose
Backport-of: f0b7eb519a
2024-04-20 07:23:05 +07:00
Goetz Lindenmaier
c3f91052dc 8317522: Test logic for BODY_CF in AbstractThrowingSubscribers.java is wrong
Backport-of: 4c5b66dcea
2024-04-20 07:23:05 +07:00
Goetz Lindenmaier
6bb383183a 8311986: Disable runtime/os/TestTracePageSizes.java for ShenandoahGC
Backport-of: 167d1c1835
2024-04-20 07:23:05 +07:00
Goetz Lindenmaier
efff28a9d8 8315721: CloseRace.java#id0 fails transiently on libgraal
Backport-of: 1be355734d
2024-04-20 07:23:05 +07:00
Goetz Lindenmaier
7b7717ca9d 8310923: Refactor Currency tests to use JUnit
Backport-of: e848d9471f
2024-04-20 07:23:05 +07:00
Goetz Lindenmaier
0c37ada897 8306922: IR verification fails because IR dump is chopped up
Backport-of: 9057b35033
2024-04-20 07:23:05 +07:00
William Kemper
302210b63f 8323428: Shenandoah: Unused memory in regions compacted during a full GC should be mangled
Backport-of: a7db4feceb
2024-04-20 07:23:05 +07:00
Sonia Zaldana Calles
d2895f079b 8318613: ChoiceFormat patterns are not well tested
Backport-of: 10427c023a
2024-04-20 07:23:05 +07:00
Sonia Zaldana Calles
beb9e47322 8316106: Open source few swing JInternalFrame and JMenuBar tests
Backport-of: 0775bf2f03
2024-04-20 07:23:05 +07:00
Sonia Zaldana Calles
e102758c15 8318154: Improve stability of WheelModifier.java test
Backport-of: 668d4b077f
2024-04-20 07:23:05 +07:00
Sonia Zaldana Calles
3ff76fd569 8319103: Popups that request focus are not shown on Linux with Wayland
Backport-of: f3ed27582e
2024-04-20 07:23:05 +07:00
William Kemper
56b0d8bdcc 8323086: Shenandoah: Heap could be corrupted by oom during evacuation
Backport-of: c4a83bd6f6
2024-04-20 07:23:05 +07:00
Aleksey Shipilev
a5ecda850e 8319372: C2 compilation fails with "Bad immediate dominator info"
Backport-of: 7766785098
2024-04-20 07:23:05 +07:00
Matthias Baesken
fef2ed8406 8317804: com/sun/jdi/JdwpAllowTest.java fails on Alpine 3.17 / 3.18
Backport-of: b530c0281b
2024-04-20 07:23:04 +07:00
Andrew Lu
7a2cf7b869 8315594: Open source few headless Swing misc tests
Backport-of: 806ef0897b
2024-04-20 07:23:04 +07:00
Aleksey Shipilev
571981a7ec 8321164: javac with annotation processor throws AssertionError: Filling jrt:/... during JarFileObject[/...]
Backport-of: 03c4595173
2024-04-20 07:23:04 +07:00
Goetz Lindenmaier
1b6879b584 8310631: test/jdk/sun/nio/cs/TestCharsetMapping.java is spuriously passing
Backport-of: e3201d1d13
2024-04-20 07:23:04 +07:00
Goetz Lindenmaier
1594f942a0 8318971: Better Error Handling for Jar Tool When Processing Non-existent Files
Backport-of: 8ae309ebac
2024-04-20 07:23:04 +07:00
Goetz Lindenmaier
f0030bba33 8319124: Update XML Security for Java to 3.0.3
Reviewed-by: mbaesken
Backport-of: 1c0bd81a10
2024-04-20 07:23:04 +07:00
Aleksey Shipilev
8e40700bf2 8320888: Shenandoah: Enable ShenandoahVerifyOptoBarriers in debug builds
Backport-of: c86431767e
2024-04-20 07:23:04 +07:00
Aleksey Shipilev
8d7359b260 8320877: Shenandoah: Remove ShenandoahUnloadClassesFrequency support
Backport-of: b65ccff357
2024-04-20 07:23:04 +07:00
Aleksey Shipilev
a6d0b3a5d3 8320907: Shenandoah: Remove ShenandoahSelfFixing flag
Backport-of: 43c7f6a673
2024-04-20 07:23:04 +07:00
Aleksey Shipilev
ba5d63c80e 8323065: Unneccesary CodeBlob lookup in CompiledIC::internal_set_ic_destination
Backport-of: eb9e754b3a
2024-04-20 07:23:04 +07:00
Aleksey Shipilev
96ce5df44a 8322512: StringBuffer.repeat does not work correctly after toString() was called
Backport-of: df22fb322e
2024-04-20 07:23:04 +07:00
Aleksey Shipilev
e8a23bc3b5 8321582: yield <primitive-type>.class not parsed correctly.
Backport-of: ce8399fd60
2024-04-20 07:23:04 +07:00
Christoph Langer
67286d2258 8320309: AIX: pthreads created by foreign test library don't work as expected
Backport-of: 8b47a14958
2024-04-20 07:23:03 +07:00
Goetz Lindenmaier
2478e2243f 8318490: Increase timeout for JDK tests that are close to the limit when run with libgraal
Backport-of: 6f263111a1
2024-04-20 07:23:03 +07:00
Goetz Lindenmaier
172de978d6 8310629: java/security/cert/CertPathValidator/OCSP/OCSPTimeout.java fails with RuntimeException Server not ready
Backport-of: b20dc1e9cd
2024-04-20 07:23:03 +07:00
Goetz Lindenmaier
083dec1ae4 8311992: Test java/lang/Thread/virtual/JfrEvents::testVirtualThreadPinned failed
Backport-of: 0d2196f8e5
2024-04-20 07:23:03 +07:00
Matthias Baesken
8af76ba6b4 8322783: prioritize /etc/os-release over /etc/SuSE-release in hs_err/info output
Backport-of: a8e4229852
2024-04-20 07:23:03 +07:00
Elif Aslan
b1391484af 8318607: Enable parallelism in vmTestbase/nsk/stress/jni tests
Backport-of: 43f31d7385
2024-04-20 07:23:03 +07:00
Elif Aslan
2235673006 8318608: Enable parallelism in vmTestbase/nsk/stress/threads tests
Backport-of: cee44a6255
2024-04-20 07:23:03 +07:00
Ichiroh Takiguchi
4123aa656b 6928542: Chinese characters in RTF are not decoded
Backport-of: a26f7c03c7
2024-04-20 07:23:03 +07:00
Dan Lutker
2e7680c71a 8322725: (tz) Update Timezone Data to 2023d
Backport-of: 2a9c3589d9
2024-04-20 07:23:03 +07:00
Aleksey Shipilev
4a3564f78d 8316132: CDSProtectionDomain::get_shared_protection_domain should check for exception
Backport-of: 11394828b3
2024-04-20 07:23:03 +07:00
Aleksey Shipilev
9650dffa15 8321619: Generational ZGC: ZColorStoreGoodOopClosure is only valid for young objects
Reviewed-by: eosterlund
Backport-of: be49dabd0d
2024-04-20 07:23:03 +07:00
Goetz Lindenmaier
b2bd275307 8210410: Refactor java.util.Currency:i18n shell tests to plain java tests
Backport-of: 2584bf87ae
2024-04-20 07:23:03 +07:00
Goetz Lindenmaier
d7390b9e3e 8296631: NSS tests failing on OL9 linux-aarch64 hosts
Reviewed-by: aph
Backport-of: 6e1aacdfba
2024-04-20 07:23:03 +07:00
William Kemper
8ae1b67fec 8323021: Shenandoah: Encountered reference count always attributed to first worker thread
Backport-of: f0e2e4311b
2024-04-20 07:23:02 +07:00
Aleksey Shipilev
a814b1aa78 8310844: [AArch64] C1 compilation fails because monitor offset in OSR buffer is too large for immediate
Reviewed-by: aph
Backport-of: ade21a965f
2024-04-20 07:23:02 +07:00
Aleksey Shipilev
c093f7bbd0 8318082: ConcurrentModificationException from IndexWriter
Reviewed-by: prappo, simonis
Backport-of: fc29a2e152
2024-04-20 07:23:02 +07:00
Aleksey Shipilev
edda7ce0d1 8319883: Zero: Use atomic built-ins for 64-bit accesses
Backport-of: 25f9af99be
2024-04-20 07:23:02 +07:00
Aleksey Shipilev
8eddcfac13 8320145: Compiler should accept final variable in Record Pattern
Backport-of: 4ba94ef69e
2024-04-20 07:23:02 +07:00
Oli Gillespie
f4431bd5ad 8321599: Data loss in AVX3 Base64 decoding
Backport-of: 13c11487f7
2024-04-20 07:23:02 +07:00
Goetz Lindenmaier
63968bca52 8316693: Simplify at-requires checkDockerSupport()
Backport-of: 16fd43c5eb
2024-04-20 07:23:02 +07:00
Goetz Lindenmaier
97b6e64098 8319879: Stress mode to randomize incremental inlining decision
Backport-of: 303757b3a0
2024-04-20 07:23:02 +07:00
Goetz Lindenmaier
ac105a9b12 8319938: TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array"
Backport-of: 4ef24e2596
2024-04-20 07:23:02 +07:00
Goetz Lindenmaier
df74973f6f 8316594: C2 SuperWord: wrong result with hand unrolled loops
Reviewed-by: roland, shade
Backport-of: 3630af26e6
2024-04-20 07:23:02 +07:00
Goetz Lindenmaier
2516132174 8311279: TestStressIGVNAndCCP.java failed with different IGVN traces for the same seed
Backport-of: edb2be10fb
2024-04-20 07:23:02 +07:00
Goetz Lindenmaier
e287f0c50d 8310238: [test bug] javax/swing/JTableHeader/6889007/bug6889007.java fails
Backport-of: 2cf5c2f4b6
2024-04-20 07:23:02 +07:00
Goetz Lindenmaier
186085fbc1 8319569: Several java/util tests should be updated to accept VM flags
Backport-of: 2bb4b9398d
2024-04-20 07:23:02 +07:00
Goetz Lindenmaier
6086ed2389 8315097: Rename createJavaProcessBuilder 8318964: Fix build failures caused by 8315097
Reviewed-by: mdoerr
Backport-of: d52a995f35
2024-04-20 07:23:01 +07:00
Gui Cao
8fcf0c5ccf 8322583: RISC-V: Enable fast class initialization checks
Backport-of: 5235cc987d
2024-04-20 07:23:01 +07:00
Jonathan Dowland
8890d6ecc1 8315731: Open source several Swing Text related tests
Backport-of: d475f61fd5
2024-04-20 07:23:01 +07:00
Aleksey Shipilev
06de307e05 8320921: GHA: Parallelize hotspot_compiler test jobs
Backport-of: 694136909c
2024-04-20 07:23:01 +07:00
Aleksey Shipilev
3dd5949031 8322321: Add man page doc for -XX:+VerifySharedSpaces
Backport-of: f7dc257a20
2024-04-20 07:23:01 +07:00
Aleksey Shipilev
bdf68e9a2a 8322159: ThisEscapeAnalyzer crashes for erroneous code
Backport-of: 7455b1b527
2024-04-20 07:23:01 +07:00
Aleksey Shipilev
1d1c4f09c4 8319548: Unexpected internal name for Filler array klass causes error in VisualVM
Backport-of: 05745e3f1d
2024-04-20 07:23:01 +07:00
Aleksey Shipilev
43e6d72f4f 8321974: Crash in ciKlass::is_subtype_of because TypeAryPtr::_klass is not initialized
Backport-of: c8ad7b7f84
2024-04-20 07:23:01 +07:00
Sergey Bylokhov
2fe34911b9 8315042: NPE in PKCS7.parseOldSignedData
Backport-of: 8c0d026d0f
2024-04-20 07:23:01 +07:00
Jonathan Dowland
4ca0af2c3e 8315986: [macos14] javax/swing/JMenuItem/4654927/bug4654927.java: component must be showing on the screen to determine its location
Backport-of: e7486e8cfc
2024-04-20 07:23:01 +07:00
Aleksey Shipilev
dcd554c8a8 8309203: C2: remove copy-by-value of GrowableArray for InterfaceSet
Backport-of: 21cda19d05
2024-04-20 07:23:01 +07:00
Sergey Bylokhov
e07b9edaa0 8301310: The SendRawSysexMessage test may cause a JVM crash
Backport-of: d725b73df0
2024-04-20 07:23:01 +07:00
Aleksey Shipilev
43d0442c08 8319137: release _object in ObjectMonitor dtor to avoid races
Reviewed-by: rkennke
Backport-of: c39d001c7a
2024-04-20 07:23:00 +07:00
Sergey Bylokhov
4c0a8cd859 8320937: support latest VS2022 MSC_VER in abstract_vm_version.cpp
Backport-of: eb44bafe77
2024-04-20 07:23:00 +07:00
Jan Kratochvil
5c3c8607b5 8314610: hotspot can't compile with the latest of gtest because of <iomanip>
Backport-of: febc34dd28
2024-04-20 07:23:00 +07:00
Christoph Langer
57a3fc6e70 8322772: Clean up code after JDK-8322417
Reviewed-by: mbaesken
Backport-of: 32d80e2caf
2024-04-20 07:23:00 +07:00
Sandhya Viswanathan
f3d66dcc62 8320206: Some intrinsics/stubs missing vzeroupper on x86_64
Backport-of: 9b372e28ce
2024-04-20 07:23:00 +07:00
Goetz Lindenmaier
8edb40cdb3 8311588: C2: RepeatCompilation compiler directive does not choose stress seed randomly
Backport-of: 06a1a15d01
2024-04-20 07:23:00 +07:00
Goetz Lindenmaier
d7f256b88b 8316661: CompilerThread leaks CodeBlob memory when dynamically stopping compiler thread in non-product
Backport-of: edcc559f09
2024-04-20 07:23:00 +07:00
Goetz Lindenmaier
9f39f1e03d 8316001: GC: Make TestArrayAllocatorMallocLimit use createTestJvm
Backport-of: 86dde5e02b
2024-04-20 07:23:00 +07:00
Goetz Lindenmaier
ad5ed23c16 8312428: PKCS11 tests fail with NSS 3.91
Backport-of: 1c598c2245
2024-04-20 07:23:00 +07:00
Goetz Lindenmaier
a434e64220 8313720: C2 SuperWord: wrong result with -XX:+UseVectorCmov -XX:+UseCMoveUnconditionally
Backport-of: d46f0fb318
2024-04-20 07:23:00 +07:00
Goetz Lindenmaier
c52d6f0b80 8310919: runtime/ErrorHandling/TestAbortVmOnException.java times out due to core dumps taking a long time on OSX
Backport-of: e5744b8120
2024-04-20 07:23:00 +07:00
Goetz Lindenmaier
02b9b58f0e 8304292: Memory leak related to ClassLoader::update_class_path_entry_list
Backport-of: 88b4e3b853
2024-04-20 07:23:00 +07:00
Goetz Lindenmaier
700f80ff32 8316309: AArch64: VMError::print_native_stack() crashes on Java native method frame
Backport-of: 2d38495b61
2024-04-20 07:23:00 +07:00
Goetz Lindenmaier
791b2d3b6e 8264899: C1: -XX:AbortVMOnException does not work if all methods in the call stack are compiled with C1 and there are no exception handlers
Backport-of: 826dcb5424
2024-04-20 07:23:00 +07:00
Goetz Lindenmaier
6c5f5b13f3 8315034: File.mkdirs() occasionally fails to create folders on Windows shared folder
Backport-of: 7ad700596f
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
d6a9216998 8317144: Exclude sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java on Linux ppc64le
Backport-of: bc5a39bb54
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
26068c1572 8318983: Fix comment typo in PKCS12Passwd.java
Backport-of: 949846986f
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
4d40c30a80 8316464: 3 sun/tools tests ignore VM flags
Backport-of: 993951b85e
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
15d50f8d2e 8316447: 8 sun/management/jmxremote tests ignore VM flags
Backport-of: 053f45695f
2024-04-20 07:22:59 +07:00
Aleksey Shipilev
67e0328fcb 8321542: C2: Missing ChaCha20 stub for x86_32 leads to crashes
Backport-of: 5718039a46
2024-04-20 07:22:59 +07:00
Sandhya Viswanathan
7a49498cdc 8321215: Incorrect x86 instruction encoding for VSIB addressing mode
Reviewed-by: shade
Backport-of: 027b5dbb6a
2024-04-20 07:22:59 +07:00
Martin Doerr
b2cfe51a05 8320830: [AIX] Dont mix os::dll_load() with direct dlclose() calls
Backport-of: 61653a1ff1
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
cc5fbc8d2b 8322418: Problem list gc/TestAllocHumongousFragment.java subtests for 8298781
Backport-of: 6de23bf36e
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
3af8cbde9e 8322417: Console read line with zero out should zero out when throwing exception
Backport-of: 2f917bff5c
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
ebffd876e8 8319456: jdk/jfr/event/gc/collection/TestGCCauseWith[Serial|Parallel].java : GC cause 'GCLocker Initiated GC' not in the valid causes
Backport-of: 7c7f8ea30d
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
42dcf943f3 8318689: jtreg is confused when folder name is the same as the test name
Backport-of: a9b31b587c
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
dde6b83c5b 8317358: G1: Make TestMaxNewSize use createTestJvm
Backport-of: 1a098356dd
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
5c80a9cb90 8316445: Mark com/sun/management/HotSpotDiagnosticMXBean/CheckOrigin.java as vm.flagless
Backport-of: ca5eee2fe3
2024-04-20 07:22:59 +07:00
Goetz Lindenmaier
02b517da3e 8314830: runtime/ErrorHandling/ tests ignore external VM flags
Reviewed-by: shade
Backport-of: b685ee00b2
2024-04-20 07:22:58 +07:00
Goetz Lindenmaier
5ff2c8fec4 8314320: Mark runtime/CommandLine/ tests as flagless
Backport-of: f481477144
2024-04-20 07:22:58 +07:00
Goetz Lindenmaier
bb058796fd 8310308: IR Framework: check for type and size of vector nodes
8314513: [IR Framework] Some internal IR Framework tests are failing after JDK-8310308 on PPC and Cascade Lake

Reviewed-by: mbaesken
Backport-of: a02d65efcc
2024-04-20 07:22:58 +07:00
Goetz Lindenmaier
65291fdb7a 8313854: Some tests in serviceability area fail on localized Windows platform
Backport-of: 49b29845f7
2024-04-20 07:22:58 +07:00
Gui Cao
4fb4bd3866 8321972: test runtime/Unsafe/InternalErrorTest.java timeout on linux-riscv64 platform
Backport-of: e8768ae08d
2024-04-20 07:22:58 +07:00
Liam Miller-Cushon
89ef9aa054 8322040: Missing array bounds check in ClassReader.parameter
Reviewed-by: sgehwolf
Backport-of: 20de541b13
2024-04-20 07:22:58 +07:00
Jaroslav Bachorik
b52ecf435d 8313816: Accessing jmethodID might lead to spurious crashes
Backport-of: cdd1a6e851
2024-04-20 07:22:58 +07:00
Goetz Lindenmaier
58b0c1f06d 8321409: Console read line with zero out should zero out underlying buffer in JLine (redux)
Backport-of: 4ed38f5ad5
2024-04-20 07:22:58 +07:00
Goetz Lindenmaier
116fd3f114 8261837: SIGSEGV in ciVirtualCallTypeData::translate_from
Backport-of: 1bb250c9e6
2024-04-20 07:22:58 +07:00
Goetz Lindenmaier
d6f78f61e4 8209595: MonitorVmStartTerminate.java timed out
Backport-of: a045258ae2
2024-04-20 07:22:58 +07:00
Goetz Lindenmaier
2c1530368e 8316462: sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.java ignores VM flags
Backport-of: d6679031e0
2024-04-20 07:22:58 +07:00
Goetz Lindenmaier
484634ca94 8317188: G1: Make TestG1ConcRefinementThreads use createTestJvm
Backport-of: a949824e98
2024-04-20 07:22:58 +07:00
Goetz Lindenmaier
a717959a7b 8317218: G1: Make TestG1HeapRegionSize use createTestJvm
Backport-of: 75b37e6d7e
2024-04-20 07:22:58 +07:00
Goetz Lindenmaier
b472d38d55 8317316: G1: Make TestG1PercentageOptions use createTestJvm
Backport-of: d8cd60588a
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
58b80bb143 8317317: G1: Make TestG1RemSetFlags use createTestJvm
Backport-of: 5bd10521eb
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
a7ced1b435 8317343: GC: Make TestHeapFreeRatio use createTestJvm
Backport-of: c64bd3d671
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
1540e5fbf4 8317347: Parallel: Make TestInitialTenuringThreshold use createTestJvm
Backport-of: 6ee6171e81
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
e68b1bf9d4 8317228: GC: Make TestXXXHeapSizeFlags use createTestJvm
Backport-of: 7ca0ae9415
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
37d2fcdf25 8316446: 4 sun/management/jdp tests ignore VM flags
Backport-of: 5b311f20df
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
f9c5dcf2de 8316562: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java times out after JDK-8314829
Backport-of: 54028e779b
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
5835eb3610 8314829: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java ignores vm flags
Backport-of: e0f8d16833
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
9c033cf099 8313638: Add test for dump of resolved references
Reviewed-by: matsaave
Backport-of: 83dca6296e
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
7195e7210a 8314831: NMT tests ignore vm flags
Backport-of: 9bf3dee242
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
9198443848 8315406: [REDO] serviceability/jdwp/AllModulesCommandTest.java ignores VM flags
Backport-of: 5cbff24608
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
7cbe899938 8314333: Update com/sun/jdi/ProcessAttachTest.java to use ProcessTools.createTestJvm(..)
Backport-of: 7342f5a033
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
b007db4839 8307408: Some jdk/sun/tools/jhsdb tests don't pass test JVM args to the debuggee JVM
Backport-of: 87b08b6e01
2024-04-20 07:22:57 +07:00
Goetz Lindenmaier
bfe6d49ed3 8312916: Remove remaining usages of -Xdebug from test/hotspot/jtreg
Backport-of: e9daf4a018
2024-04-20 07:22:56 +07:00
Goetz Lindenmaier
45c86073f5 8311581: Remove obsolete code and comments in TestLVT.java
Backport-of: 27de536b40
2024-04-20 07:22:56 +07:00
KIRIYAMA Takuya
a05e1c3c8b 8311081: KeytoolReaderP12Test.java fail on localized Windows platform
Backport-of: b4b2fecb42
2024-04-20 07:22:56 +07:00
Sonia Zaldana Calles
95a0b65158 8313229: DHEKeySizing.java should be modified to use TLS versions TLSv1, TLSv1.1, TLSv1.2
Backport-of: c698b45a7b
2024-04-20 07:22:56 +07:00
Matthias Baesken
3cd21b3a06 8317307: test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java fails with ConnectException: Connection timed out: no further information
Backport-of: b9b82631bf
2024-04-20 07:22:56 +07:00
Matthias Baesken
eb838a10c0 8320168: handle setsocktopt return values
Backport-of: db1d82347b
2024-04-20 07:22:56 +07:00
Frederic Thevenet
cd581380d5 8321374: Add a configure option to explicitly set CompanyName property in VersionInfo resource for Windows exe/dll
Backport-of: 05f950934e
2024-04-20 07:22:56 +07:00
Aleksey Shipilev
680d61a241 8314220: Configurable InlineCacheBuffer size
Backport-of: a40d8d97e8
2024-04-20 07:22:56 +07:00
Aleksey Shipilev
e75cb46e2c 8314578: Non-verifiable code is emitted when two guards declare pattern variables in colon-switch
Backport-of: 15588e08ed
2024-04-20 07:22:56 +07:00
Aleksey Shipilev
275748ba0c 8305971: NPE in JavacProcessingEnvironment for missing enum constructor body
Backport-of: 01ea1eff66
2024-04-20 07:22:56 +07:00
Aleksey Shipilev
7a042c7607 8319897: Move StackWatermark handling out of LockStack::contains
Backport-of: bbf52e0e4c
2024-04-20 07:22:56 +07:00
Aleksey Shipilev
ea5508dec9 8316229: Enhance class initialization logging
Backport-of: 84124794c2
2024-04-20 07:22:56 +07:00
Aleksey Shipilev
b01408afd5 8310807: java/nio/channels/DatagramChannel/Connect.java timed out
Backport-of: 570dffb104
2024-04-20 07:22:56 +07:00
Aleksey Shipilev
751bd1cc89 8309302: java/net/Socket/Timeouts.java fails with AssertionError on test temporal post condition
Backport-of: 87c79c0801
2024-04-20 07:22:55 +07:00
Aleksey Shipilev
74c3d2e527 8313621: test/jdk/jdk/internal/math/FloatingDecimal/TestFloatingDecimal should use RandomFactory
Backport-of: 864a876ebf
2024-04-20 07:22:55 +07:00
Aleksey Shipilev
6ab032e3f2 8263256: Test java/net/Inet6Address/serialize/Inet6AddressSerializationTest.java fails due to dynamic reconfigurations of network interface during test
Backport-of: 0048f1da4c
2024-04-20 07:22:55 +07:00
Aleksey Shipilev
d69d8f11f4 8317300: javac erroneously allows "final" in front of a record pattern
Backport-of: 5ca1beb30e
2024-04-20 07:22:55 +07:00
Aleksey Shipilev
67d7f6a5e4 8314990: Generational ZGC: Strong OopStorage stats reported as weak roots
Reviewed-by: stefank
Backport-of: dcd6e75671
2024-04-20 07:22:55 +07:00
Goetz Lindenmaier
5bced298f8 8319668: Fixup of jar filename typo in BadFactoryTest.sh
Backport-of: 63ad868e18
2024-04-20 07:22:55 +07:00
Goetz Lindenmaier
66faff439a 8320208: Update Public Suffix List to b5bf572
Backport-of: 2b4e99140a
2024-04-20 07:22:55 +07:00
Goetz Lindenmaier
55e56a1858 8316392: compiler/interpreter/TestVerifyStackAfterDeopt.java failed with SIGBUS in PcDescContainer::find_pc_desc_internal
Backport-of: 58af9aeeb0
2024-04-20 07:22:55 +07:00
Goetz Lindenmaier
10876ceb3f 8316028: Update FreeType to 2.13.2
Backport-of: 3b65b8797a
2024-04-20 07:22:55 +07:00
Goetz Lindenmaier
1bcce286e5 8316410: GC: Make TestCompressedClassFlags use createTestJvm
Backport-of: e649c56324
2024-04-20 07:22:55 +07:00
Goetz Lindenmaier
04cb0e3c0d 8316973: GC: Make TestDisableDefaultGC use createTestJvm
Backport-of: 5f4be8cea9
2024-04-20 07:22:55 +07:00
Goetz Lindenmaier
1d0db164ae 8317042: G1: Make TestG1ConcMarkStepDurationMillis use createTestJvm
Backport-of: 7e39e664cf
2024-04-20 07:22:55 +07:00
Goetz Lindenmaier
3da53bda15 8315988: Parallel: Make TestAggressiveHeap use createTestJvm
Backport-of: fbc766ee21
2024-04-20 07:22:54 +07:00
Goetz Lindenmaier
fb2d21624b 8314838: 3 compiler tests ignore vm flags
Backport-of: ab6a87e670
2024-04-20 07:22:54 +07:00
Goetz Lindenmaier
14ee317379 8314837: 5 compiled/codecache tests ignore VM flags
Backport-of: 2a11bc41ba
2024-04-20 07:22:54 +07:00
Matthias Baesken
ff16c880c7 8320383: refresh libraries cache on AIX in VMError::report
Backport-of: 26c3390421
2024-04-20 07:22:54 +07:00
Kimura Yukihiro
a63c51ee0d 8318410: jdk/java/lang/instrument/BootClassPath/BootClassPathTest.sh fails on Japanese Windows
Backport-of: d051f22284
2024-04-20 07:22:54 +07:00
Joachim Kern
07cd01e408 8319633: runtime/posixSig/TestPosixSig.java intermittent timeouts on UNIX
Reviewed-by: mbaesken, mdoerr
2024-04-20 07:22:54 +07:00
Goetz Lindenmaier
e92bb240ab 8321131: Console read line with zero out should zero out underlying buffer in JLine
Reviewed-by: mbaesken
Backport-of: bd04f91e91
2024-04-20 07:22:54 +07:00
Sonia Zaldana Calles
50bd42774a 8314612: TestUnorderedReduction.java fails with -XX:MaxVectorSize=32 and -XX:+AlignVector
Backport-of: f804f8652d
2024-04-20 07:22:54 +07:00
Matthias Baesken
62c6191623 8320300: Adjust hs_err output in malloc/mmap error cases
Backport-of: 60c8d9c045
2024-04-20 07:22:54 +07:00
Goetz Lindenmaier
f6a7500dd9 8320798: Console read line with zero out should zero out underlying buffer
Backport-of: d568562966
2024-04-20 07:22:54 +07:00
Goetz Lindenmaier
c0b984a673 8313082: Enable CreateCoredumpOnCrash for testing in makefiles
Backport-of: ba645da97b
2024-04-20 07:22:54 +07:00
Goetz Lindenmaier
39db75d4e0 8315680: java/lang/ref/ReachabilityFenceTest.java should run with -Xbatch
Backport-of: a290256bbf
2024-04-20 07:22:54 +07:00
Martin Doerr
e349e88837 8320807: [PPC64][ZGC] C1 generates wrong code for atomics
Backport-of: 3087e14cde
2024-04-20 07:22:53 +07:00
Matthias Baesken
cd38534e32 8320898: exclude compiler/vectorapi/reshape/TestVectorReinterpret.java on ppc64(le) platforms
Backport-of: 78b6c2b408
2024-04-20 07:22:53 +07:00
Severin Gehwolf
09bf2283fa 8321894: Bump update version for OpenJDK: 21.0.3
Reviewed-by: goetz
2024-04-20 07:22:53 +07:00
Maxim Kartashev
774ecfa0cb JBR-7010 Wayland: Swing window resizing is not smooth enough 2024-04-19 12:56:20 +03:00
Sergei Tachenov
776a2c7f35 JBR-6984 Fix BoxLayout/NPECheckRequests test
It was initially written and tested on Linux, but it turns out that
on other systems validate() can be called in between init() and start()
calls, which would break the test even though BoxLayout isn't broken.
2024-04-17 12:23:08 +04:00
Vitaly Provodin
cf5483609e update exclude list on results of 21.0.2_b430.2 test runs 2024-04-16 07:43:22 +07:00
Dmitrii Morskii
51d67613bb JBR-6372: implement detecting of OS theme on linux 2024-04-12 18:33:56 +02:00
Dmitrii Morskii
48dee1515d JBR-6171 removing deadlock related to calling getCurrentServerTime 2024-04-12 18:23:27 +02:00
Vitaly Provodin
37c68cafd6 introduce jbMuslProblemList.txt exclude list 2024-04-11 16:35:59 +07:00
Sergei Tachenov
35da2d269e JBR-6771 BoxLayout throws mysterious NPEs due to previous exceptions
The checkRequests method only does layout initialization
if it isn't initialized already. However, when an exception
is thrown during the initialization, the layout may end up
in a half-initialized state.

Fix this by using the field that is initialized the last to check
if the layout is initialized. If that field is null, it may mean
that the layout isn't initialized or that the last attempt
failed midway. Then we try again. This attempt can,
of course, break for the same reason as the previous one,
but in that case we'll at least get a stack trace pointing
to a real cause of the error and not some mysterious NPE
that seems to be impossible from the logic.

The bug is that if we add a component that throws an exception
in one of its methods called by BoxLayout, then the layout may
end up in a half-initialized state that would mistakenly be considered
fully initialized. Then it would try to access some fields
and throw NPE with a stack trace that tells exactly nothing
about what went wrong and where.

This test checks for the presence of this bug by adding a broken
component to a BoxLayout and then un-breaking this component
and checking that an exception is thrown even though the component
is no longer broken.
2024-04-10 18:03:46 +04:00
Maxim Kartashev
035ccf385d JBR-6769 Make it possible to get info whether IDE is running in a virtual env
Added system property intellij.os.virtualization with possible values
"none", "Xen", "KVM", "VMWare", "HyperV"
2024-04-10 14:39:58 +04:00
Vitaly Provodin
d3bdc5491b update exclude list on results of 21.0.2_b427.6 test runs 2024-04-10 16:37:02 +07:00
Nikita Gubarkov
5eac943de6 JBR-6927 Safe asynchronous destruction of Metal graphics config. 2024-04-09 14:40:44 +02:00
Maxim Kartashev
c7468389dd JBR-6926 Wayland: fonts are aliased/grainy on first start 2024-04-05 13:59:41 +03:00
Maxim Kartashev
3144ad1b33 JBR-6920 Wayland: some IDEA popups positioned incorrectly 2024-04-05 11:41:15 +03:00
Alexey Ushakov
93a43e2977 JBR-6911 IDE crashes (EXC_BAD_ACCESS) after disconnecting the secondary display if a markdown file is opened (macOS Sonoma 14.4.1)
Corrected invalid usage of dealloc method, fixed memory leaks.
2024-04-05 09:36:35 +02:00
Vitaly Provodin
c0f413d150 JBR-6915 add the option -w into mkimages scripts 2024-04-04 05:54:26 +07:00
Vitaly Provodin
cbab59fafd update exclude list on results of 21.0.2_b421.1 test runs 2024-04-04 05:52:16 +07:00
Maxim Kartashev
317ec132e6 JBR-6847 Improve locking performance on Windows
Use -XX:+UnlockExperimentalVMOptions -XX:-UseCriticalSection
to revert to the old behavior
2024-03-28 21:15:06 +04:00
bourgesl
ed2fd2e1a4 8323695: RenderPerf (2D) enhancements (23.12)
(backported from commit 8b30503387)

Reviewed-by: avu, prr
2024-03-28 16:38:36 +01:00
Maxim Kartashev
1c9cb2d81c JBR-6895 Wayland: cursor changes to resize at edges even when window is maximized 2024-03-27 14:53:46 +03:00
Vitaly Provodin
f26d1e523b update exclude list on results of 21.0.2_b417.1 test runs 2024-03-27 05:20:39 +07:00
Maxim Kartashev
75a7617dd3 JBR-6884 SIGSEGV in Java_sun_java2d_wl_WLSMSurfaceData_pixelsAt 2024-03-26 15:28:44 +03:00
Volker Simonis
a946a753c2 8324241: Always record evol_method deps to avoid excessive method flushing
JBR-6826 Include JDK-8324241 in the JBR17/21 builds

Reviewed-by: eastigeevich, phh, coleenp, dlong, shade
2024-03-22 11:02:37 +03:00
Vitaly Provodin
4c8b745e4d update exclude list on results of 21.0.2_b400.1 test runs 2024-03-22 04:04:59 +07:00
Dmitrii Morskii
036ca4d18a JBR-6541 Added ability to get supported features and stylistic sets for font 2024-03-21 19:52:12 +01:00
Nikita Gubarkov
aacc225090 JBR-6723 Deal with integer overflow in DrawGlyphList with enabled subpixelResolution 2024-03-21 16:56:51 +01:00
Nikita Provotorov
5433855472 JBR-3112 Linux: Last character issue with Korean.
Only for the new mode introduced in JBR-2460 (-Djb.awt.newXimClient.preferBelowTheSpot=true): cancel text composing on each mouse press, so that preedit text stops following the caret if it's moving in response to mouse clicks.

(cherry picked from commit 156e5d9b65)
2024-03-20 20:34:54 +01:00
Maxim Kartashev
d89b396383 JBR-6448 Wayland: IDEA window looks pixelated after monitors scale was changed 2024-03-19 16:51:45 +03:00
Maxim Kartashev
241fbd07ba JBR-6814 Wayland: support sun.java2d.uiScale property 2024-03-19 16:51:45 +03:00
Nikita Provotorov
fe208fb379 JBR-3112 Linux: Last character issue with Korean.
Ignores the IM text returned from XmbLookupString/XwcLookupString if the KeyPress event which XmbResetIC was called with was synthetic and the first after a call of XmbResetIC/XwcResetIC.

(cherry picked from commit 43a9a3a17a)
2024-03-18 19:13:18 +01:00
Dominik Matta
21906cd0a9 JBR-6763 Wayland: application crashes when popup closed
Certain Wayland compositors (wlroots) invalidate xdg_surface after window with popup loses focus. Subsequent attempts to
commit the popup window fail with protocol error "xdg_surface has never been configured".

Handle popup_done event by hiding the popup window. Also emit WINDOW_CLOSING event as otherwise focus remains on the popup parent.

Co-authored-by: Maxim Kartashёv <maxim@kartashev.spb.ru>
2024-03-18 10:23:51 +04:00
Vitaly Provodin
29f7cc3c2f update exclude list on results of 21.0.2_b393.7 test runs 2024-03-15 17:19:26 +07:00
Nikita Gubarkov
35daf572c5 JBR-6723 Block on Metal config destroy 2024-03-13 15:27:00 +01:00
Fredrik Bredberg
68b02406b9 8320317: ObjectMonitor NotRunnable is not really an optimization
Reviewed-by: eosterlund, dholmes, shade, dcubed

JBR-6819 Backport 8320317
2024-03-13 10:20:28 +04:00
Nikita Gubarkov
60987b690d JBR-6723 flush vertex cache and command buffer before freeing glyph cache. (#334) 2024-03-11 17:07:43 +01:00
Alexey Ushakov
0faef7d736 JBR-4883 macOS: SIGSEGV at MTLVertexCache_FlushGlyphVertexCache
Use separate glyph cache for each MTLContext instance. Refactored MTLGlyphCache
2024-03-11 17:07:43 +01:00
Dmitry Drobotov
f1b504a331 JBR-6593 Set unique name for the AccessibleAnnouncer thread
(cherry picked from commit d7d8d9b8e4)
2024-03-08 15:38:44 +01:00
Alexey Ushakov
5ed76cdb74 JBR-6787 WLToolkit/wsl: crash in WLComponentPeer.setCursor
Added check for unavailable cursor pData
2024-03-07 18:19:21 +01:00
Alexey Ushakov
1d07842f90 JBR-6789 jbr21/wayland: update build instructions
Updated build instructions
2024-03-07 18:18:49 +01:00
Vitaly Provodin
2097f754ff fixup! JBR-6785 wsl: update build scripts for linux target 2024-03-07 16:02:56 +01:00
Alexey Ushakov
b6945e5557 JBR-6785 wsl: update build scripts for linux target
Added explicit platform target
2024-03-07 16:02:56 +01:00
Maxim Kartashev
3058c046ad JBR-6783 MouseEvent/MenuDragMouseEventAbsoluteCoordsTest/MenuDragMouseEventAbsoluteCoordsTest.java: Found one Java-level deadlock 2024-03-06 16:40:40 +03:00
Vitaly Provodin
01d4fd6334 update exclude list on results of 21.0.2_b393.6 test runs 2024-03-06 15:40:13 +07:00
Maxim Kartashev
bede4b09b7 JBR-6742 Record resident set size in JVM fatal error log 2024-03-01 09:38:12 +04:00
Maxim Kartashev
412cd7027d JBR-6504 Wayland: optional Robot capability to peek at current window's pixels 2024-03-01 08:30:36 +03:00
Alexey Ushakov
f7fffba651 JBR-6522 macOS: SIGSEGV at [libawt_lwawt.dylib+0x8eaa8] MTLGC_DestroyMTLGraphicsConfig
Fix of MT access to shared data in MTLGraphicsConfigInfo
2024-02-29 17:03:32 +01:00
Maxim Kartashev
1463b89c0d JBR-5989 Wayland: added jdk_swing tests to jdk_wayland 2024-02-29 06:36:26 +03:00
Dmitry Drobotov
8cc4cd5cfd JBR-6593 Fix UI freezes with JAWS announcements
* Execute AccessibleAnnouncer.nativeAnnounce on a background thread on Windows to fix UI freezes. IntelliJ calls this method from EDT, but it doesn't need to run on EDT because on Windows it simply calls screen readers API without interacting with UI components. Additionally, when using a background thread, the JAWS SayString method, which previously could have been running for multiple seconds, is now executed immediately as expected, but the root cause of previous delays is unclear.
* In JawsAnnouncer, initialize COM library with the multithreaded model to allow executing it from different threads. Now COM is initialized and uninitialized on every call of the method as required by the [documentation](https://learn.microsoft.com/en-us/windows/win32/learnwin32/initializing-the-com-library): "Each thread that uses a COM interface must make a separate call to this function. For every successful call to CoInitializeEx, you must call CoUninitialize before the thread exits". IJawsApi COM object is still static and reused by different threads, which is allowed with a multithreaded concurrency model. It shouldn't cause issues because it has no state and only forwards calls to JAWS.
2024-02-27 18:29:33 +01:00
Vitaly Provodin
3a1387be19 update exclude list on results of 21.0.2_b381.6 test runs 2024-02-27 15:50:41 +07:00
Vladimir Dvorak
178de3522f JBR-6648 - Fix ObjectCollectedException in enhanced redefineClasses due to stale jvmtiTagMap entries 2024-02-27 09:02:51 +01:00
Maxim Kartashev
b4046e402a JBR-6737 Cannot switch projects from Window menu after minimizing them on Linux 2024-02-27 09:09:58 +04:00
Nikita Provotorov
c22c514383 JBR-3697: Letter-based command mode actions are not triggered when using Chinese input method.
Fixes different platform-specific issues with disabling/enabling input methods support via java.awt.Component#enableInputMethods(boolean):
* Windows: disabling used to require to deactivate and then activate back the app window to be performed completely ;
* macOS: disabling used to leave the input method window visible (however, it wasn't affecting the input) ;
* Linux: with fcitx5 IMF (may not be reproduced with iBus) disabling and then enabling back the input method support used to reset the used input source (keyboard layout) to a default one. It's done via disabling the current XIM when the input method support is disabled instead of disposing it .

(cherry picked from commit 2933ea89f0)

The patch also contains the fix for "JBR-6711: java/awt/LightweightDispatcher/LWDispatcherMemoryLeakTest.java: JButton JPanel not collected."

It unsets its references to tracked components thus not preventing GC from collecting them.

(cherry picked from commit e9aab98a6c)
2024-02-26 21:29:36 +01:00
Vladimir Dvorak
244044d19f JBR-6746 Fix linux build failing on: "error: 'this' pointer is null" 2024-02-26 21:00:34 +01:00
Dmitry Drobotov
9de3f9917b JBR-6325 Implement keyboard focus tracking for macOS Accessibility Zoom
* Call UAZoomChangeFocus function when the keyboard focus is changed or when an accessible selection event is fired. Zoom viewport fill follow the accessible frame of the newly focused component, and if it has a selected child, its frame will be passed as part that needs to be highlighted.
* Fix an exception in ComboBoxAccessibility.accessibilitySelectedChildren when its selection is nil. This happens when a combo box doesn't have a selected item, and it this case Zoom wouldn't be able to follow the combo box location.
* Move the native handler of CAccessibility.focusChanged method from the legacy JavaComponentAccessibility to the new CommonComponentAccessibility class. It calls a class method (like a static method in Java), so there is no difference in which specific class it's located, but it allows to write the new code in the appropriate class.

(cherry picked from commit 75b06421ff)
2024-02-26 20:18:51 +01:00
Dmitrii Morskii
9826950247 JBR-5500 Handled situation of processing WM_ENDSESSION in process of closing application 2024-02-26 11:18:14 +00:00
Vladimir Dvorak
a0b44f89b3 JBR-6674 Fix parallel oops iteration in dcevm redefinition
This patch addresses unsynchronized parallel access to ChangePointersObjectClosure._tmp_obj by creating a separate instance for each thread, enhancing thread safety. Additionally, it deems parallel DCEVM iteration in G1 as redundant and removes it.
2024-02-26 08:01:28 +01:00
Maxim Kartashev
f83a507492 JBR-5989 Wayland: added more tests to jdk_awt_wayland 2024-02-23 14:54:55 +03:00
Vitaly Provodin
b5996350a0 fixup! JBR-6246 add default CDS archives into jbrsdk distributions 2024-02-23 04:02:23 +07:00
Maxim Kartashev
8834d1d4b9 JBR-6519 Linux: SIGSEGV at [libwayland] wl_proxy_get_version
Guard against passing NULL to libwayland
2024-02-22 11:18:17 +03:00
Vitaly Provodin
ad7d2848de clean up Wayland exclude list 2024-02-22 05:29:15 +07:00
Maxim Kartashev
6f99b5f8b1 JBR-6736 libwakefield crashes weston 2024-02-21 18:01:28 +04:00
Maxim Kartashev
0402d11d47 JBR-6722 OutOfMemoryError: Failed to allocate Wayland surface buffer 2024-02-21 13:51:54 +03:00
Vitaly Provodin
9c4830bb43 update exclude list on results of 21.0.2_b375.1 test runs 2024-02-21 04:48:47 +07:00
Maxim Kartashev
ccb99344cd JBR-6246 Create CDS archives with jlink and do not overwrite them afterwards 2024-02-19 13:22:29 +03:00
Vladimir Dvorak
52ada6c6d4 JBR-6647 Disable check for final field access from method $$ha$clinit 2024-02-19 10:44:27 +01:00
Dmitry Drobotov
19784beb9b JBR-6472 Add default value in CAccessibility.isComboBoxEditable to avoid NPE
(cherry picked from commit 93937603b3)
2024-02-17 20:53:32 +01:00
Egor Ushakov
ff104658d6 JBR-1354 com/sun/tools/attach/PermissionTest.java: access denied ("java.util.PropertyPermission" "sun.tools.attach.tmp.only" "read")
(cherry picked from commit 3a09f6c1db)
2024-02-17 05:01:43 +07:00
Egor Ushakov
8af98d95ab JBR-1061 .attach_pid files in the working dir - flag to put .attach file in tmp dir only
(cherry picked from commit 4bd3f7835e)
2024-02-17 04:50:35 +07:00
Nikita Tsarev
0dde92980d JBR-6297: Don't check for NSInputManager wantsToHandleMouseEvents in mouseDown by default 2024-02-15 20:42:32 +01:00
Vitaly Provodin
940c5e0e1f JBR-6649 add synchronization for creating UI 2024-02-15 12:05:11 +07:00
Vitaly Provodin
e0c5898502 update exclude list on results of 21.0.2_b357.3 test runs 2024-02-15 12:05:10 +07:00
Nikita Provotorov
168e0270fe JBR-6707 Compilation errors in main branch.
Replace assert-s introduced in JBR-2460 with the project-special DASSERT-s.

The patch has been backported from the main branch for better code consistency between the branches.
2024-02-15 01:11:00 +01:00
Dmitrii Morskii
cec4ca3d38 JBR-6671 added option 'freetype.font.rendering' 2024-02-14 18:03:51 +01:00
Nikita Tsarev
70d60692f0 JBR-6704: Fix extra IME events when a ctrl shortcut causes window focus switch [macOS] 2024-02-14 13:37:00 +01:00
Alexey Ushakov
2aa3828f59 JBR-6522 macOS: SIGSEGV at [libawt_lwawt.dylib+0x8eaa8] MTLGC_DestroyMTLGraphicsConfig
Performing flush of pending rendering operation before destroying MTLGraphicsConfig
2024-02-14 13:30:46 +01:00
Nikita Gubarkov
b530b4f4cb JBR-4618 Force window size update after display reconfiguration
- Re-create all GraphicsDevices on displayChanged()
2024-02-13 16:23:58 +01:00
Maxim Kartashev
79d1b6ce2f JBR-6617 Wayland: java/awt/Frame/HugeFrame/HugeFrame.java crashes JVM 2024-02-12 13:17:03 +04:00
Maxim Kartashev
93dabf3971 JBR-6598 Wayland: window gets un-maximized after switching
When the size of the buffer changes, cancel the frame callback
and make sure that the next surface commit happens with the new buffer.
2024-02-12 12:05:52 +03:00
Maxim Kartashev
e5988f7c32 JBR-6469 Wayland: java/awt/image/ColorModel/DrawCustomColorModel.java throws UnsupportedOperationException 2024-02-12 08:54:25 +03:00
Maxim Kartashev
d501835140 JBR-6467 Wayland: java/awt/GraphicsConfiguration/NormalizingTransformTest/NormalizingTransformTest.java fails 2024-02-12 08:53:32 +03:00
Vladimir Dvorak
1d45d6fbc9 JBR-6643 - fix GitHub actions builds 2024-02-09 08:29:44 +01:00
Vladimir Dvorak
b2abfd5d97 JBR-6419 - fix macos-aarch64 build problem 2024-02-08 08:51:15 +01:00
Vitaly Provodin
1d9ff70cbe update exclude list on results of 21.0.2_b351.1 test runs 2024-02-07 06:53:12 +07:00
Vitaly Provodin
0d245769ea JBR-6404 synchronize drawing and the test checking 2024-02-07 06:53:12 +07:00
Nikita Gubarkov
73099de6f8 JBR-6651 Exclude keycap emoji from EmojiVariation test. 2024-02-05 15:27:21 +01:00
Maxim Kartashev
58c242f128 JBR-6468 Wayland: java/awt/datatransfer/MimeFormatsTest.java fails by timeout
Excluded the test from jdk_awt_wayland as it can't be made to work
under Wayland.
2024-02-05 15:20:28 +04:00
Vitaly Provodin
32128820c1 update exclude list on results of 21.0.2_b346.3 test runs 2024-02-03 05:27:50 +07:00
Vladimir Dvorak
d950326ef9 JBR-6419 - resolve win+macos jdk build issues 2024-01-31 19:53:36 +01:00
Dmitrii Morskii
a1b7633997 JBR-6604 supported case when fonts directory is missing 2024-01-31 19:06:07 +01:00
Dmitry Batrak
2a504dfd37 JBR-6449 Introduce FontMetricsAccessor into JBR API
mute calculation of metrics via full text layout if overrider is installed
2024-01-31 19:07:00 +02:00
Vladimir Dvorak
b128bb4b21 JBR-6419 - support for enhanced redefinition of java.lang.Object 2024-01-29 21:20:28 +01:00
Maxim Kartashev
8b014c3f35 JBR-4203 test/hotspot/jtreg/compiler/arguments: Option should be unknown (non-X86CPU)
Added the -XX:-IgnoreUnrecognizedVMOptions option to the test driver for
command line options, since it is often used to check that a certain
option is not supported.
2024-01-25 17:06:06 +04:00
Dmitry
19c6253d8f JBR-3793 Accept unrecognized options and make them available in Java
This patch:

- Change default behavior to ignore unrecognized options (+IgnoreUnrecognizedVMOptions)

- Store all ignored values to: "java.vm.unrecognized.options" as "+BogusOption01 +BogusOption02" (space separated), see testcase

- Explicitly set -IgnoreUnrecognizedVMOptions for couple of tests, that rely on default behavior
2024-01-25 13:40:44 +04:00
Maxim Kartashev
405c272588 8319662: ForkJoinPool trims worker threads too slowly
8319498: ForkJoinPool.invoke(ForkJoinTask) does not specify behavior when task throws checked exception

Reviewed-by: alanb
2024-01-25 11:14:52 +04:00
Maxim Kartashev
3a6456e1f4 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted"
Reviewed-by: alanb
2024-01-24 18:32:40 +04:00
Vitaly Provodin
283beedc05 fixup! update exclude list on results of 21.0.2_b341.4 test runs 2024-01-24 16:10:18 +07:00
Maxim Kartashev
512c96bbfb JBR-6547 WLToolkit: no app icon in GNOME
Allow to associate the application's window with .desktop file with icon
and other info with -Dawt.app.id=... (DBus application name similar to
WM_CLASS in X
2024-01-24 12:36:24 +04:00
Vitaly Provodin
ff28bfc856 update exclude list on results of 21.0.2_b341.4 test runs 2024-01-24 07:22:30 +07:00
Maxim Kartashev
d5a81ad9ea JBR-6559 Wayland: popups may stop working after a while
Cancel the frame callback when hiding a window.
2024-01-22 19:21:33 +04:00
Dmitry Batrak
f78a30a934 JBR-6579 jb/java/api/frontend/FontMetricsAccessorTest.java: Unexpected advance returned 2024-01-22 14:10:05 +02:00
Dmitry Batrak
793c5f4c06 JBR-6579 jb/java/api/frontend/FontMetricsAccessorTest.java: Unexpected advance returned 2024-01-22 14:10:05 +02:00
Dmitry Batrak
8bf6444304 JBR-6569 macOS: SIGILL at [libsystem_kernel] __kill in This decoder will only decode classes that adopt NSSecureCoding. Class 'AWTView' does not adopt it.
(cherry picked from commit 7af653070f)
(cherry picked from commit d24a9085796b1226d72154af8914d4f39960766a)
2024-01-22 10:29:40 +02:00
Dmitry Batrak
0871a2097a JBR-6449 Introduce FontMetricsAccessor into JBR API
fix test

(cherry picked from commit 5befaea6af)
(cherry picked from commit 7433ac2df11e77ad504c15fbda045d3beb3265fb)
2024-01-19 11:12:17 +02:00
Vitaly Provodin
d3d3111348 update exclude list on results of 21.0.2_b337 test runs 2024-01-19 06:28:25 +07:00
Tobias Hartmann
b81b6fae65 8322985: [BACKOUT] 8318562: Computational test more than 2x slower when AVX instructions are used
Backport-of: ed9f3243f0
2024-01-17 20:31:49 +07:00
Ravi Reddy
210d8cd65e 8322883: [BACKOUT] 8225377: type annotations are not visible to javac plugins across compilation boundaries
Reviewed-by: coffeys, robm
2024-01-17 20:31:49 +07:00
Weijun Wang
ff7394b5ab 8320597: RSA signature verification fails on signed data that does not encode params correctly
Backport-of: 11e4a925be
2024-01-17 20:31:48 +07:00
Prajwal Kumaraswamy
8eba4f387d 8317547: Enhance TLS connection support
Backport-of: c521825a5d986e5cb823615d60e51f954c0ff4dc
2024-01-17 20:31:48 +07:00
Roman Kennke
661276c44a 8321067: Unlock experimental options in EATests.java
Reviewed-by: shade
2024-01-17 20:31:48 +07:00
Ravi Reddy
10d2f52f3f 8320001: javac crashes while adding type annotations to the return type of a constructor
Backport-of: 5e24aaf4f7
2024-01-17 20:31:47 +07:00
Christoph Langer
25f70ebdac 8320601: ProblemList java/lang/invoke/lambda/LambdaFileEncodingSerialization.java on linux-all
Backport-of: f6e5559ae9
2024-01-17 20:31:47 +07:00
Martin Doerr
f56fc1eb28 8320363: ppc64 TypeEntries::type_unknown logic looks wrong, missed optimization opportunity
Backport-of: 6aa197667a
2024-01-17 20:31:47 +07:00
Ian Myers
6011ccf37d 8315684: Parallelize sun/security/util/math/TestIntegerModuloP.java
Backport-of: 0f77d250b6
2024-01-17 20:31:47 +07:00
Ian Myers
b7f5cd0a15 8315936: Parallelize gc/stress/TestStressG1Humongous.java test
Backport-of: 3f19df685c
2024-01-17 20:31:46 +07:00
Roman Kennke
06a7923a8d 8316401: sun/tools/jhsdb/JStackStressTest.java failed with "InternalError: We should have found a thread that owns the anonymous lock"
Backport-of: bd918f49d2
2024-01-17 20:31:46 +07:00
Roman Kennke
a8fc42cf6c 8318895: Deoptimization results in incorrect lightweight locking stack
Backport-of: ea1ffa3419
2024-01-17 20:31:46 +07:00
Aleksey Shipilev
f8996f7e12 8318078: ADLC: pass ASSERT and PRODUCT flags
Backport-of: 504b0bdaaa
2024-01-17 20:31:46 +07:00
Aleksey Shipilev
cfcd361a98 8319120: Unbound ScopedValue.get() throws the wrong exception
Backport-of: ee6f25b507
2024-01-17 20:31:45 +07:00
Aleksey Shipilev
c4d71d5db9 8319195: Move most tier 1 vector API regression tests to tier 3
Backport-of: 9dc40ba48e
2024-01-17 20:31:45 +07:00
Aleksey Shipilev
052b936fa4 8316415: Parallelize sun/security/rsa/SignedObjectChain.java subtests
Backport-of: 59847926b6
2024-01-17 20:31:45 +07:00
Aleksey Shipilev
f92d5acba2 8316581: Improve performance of Symbol::print_value_on()
Backport-of: 90bcdbd15f
2024-01-17 20:31:45 +07:00
Aleksey Shipilev
9e857e860d 8316967: Correct the scope of vmtimer in UnregisteredClasses::load_class
Backport-of: 83b6a1278f
2024-01-17 20:31:44 +07:00
Soumadipta Roy
961b8cd6e4 8315692: Parallelize gc/stress/TestStressRSetCoarsening.java test
Backport-of: a564d436c7
2024-01-17 20:31:44 +07:00
Jan Lahoda
024b299f1b 8319532: jshell - Non-sealed declarations sometimes break a snippet evaluation
Backport-of: 45e68ae207
2024-01-17 20:31:44 +07:00
Jan Lahoda
5d0486df0c 8318144: Match on enum constants with body compiles but fails with MatchException
Backport-of: 541ff7149f
2024-01-17 20:31:43 +07:00
Aleksey Shipilev
da6e27042f 8315082: [REDO] Generational ZGC: Tests crash with assert(index == 0 || is_power_of_2(index))
Backport-of: ceff47b462
2024-01-17 20:31:43 +07:00
Axel Boldt-Christmas
616215122e 8319700: [AArch64] C2 compilation fails with "Field too big for insn"
Backport-of: 3787ff8d1d
2024-01-17 20:31:43 +07:00
Gui Cao
db6d77286f 8320280: RISC-V: Avoid passing t0 as temp register to MacroAssembler::lightweight_lock/unlock
Backport-of: a6098e438d
2024-01-17 20:31:43 +07:00
Matthias Baesken
ae9bc810fe 8313616: support loading library members on AIX in os::dll_load
Reviewed-by: phh
Backport-of: 23fe2ece58
2024-01-17 20:31:42 +07:00
Erik Österlund
4cbdbd76e3 8310239: Add missing cross modifying fence in nmethod entry barriers
Backport-of: 4679e9aa00
2024-01-17 20:31:42 +07:00
Matthias Baesken
4a11ebcf53 8318587: refresh libraries cache on AIX in print_vm_info
Backport-of: cb383c05b2
2024-01-17 20:31:42 +07:00
Sandhya Viswanathan
bfb687d3a1 8318562: Computational test more than 2x slower when AVX instructions are used
Backport-of: 0881f2b0c4
2024-01-17 20:31:42 +07:00
Roman Marchenko
1644b1f94c 8319961: JvmtiEnvBase doesn't zero _ext_event_callbacks
Backport-of: 97ea5bf0ff
2024-01-17 20:31:41 +07:00
Sandhya Viswanathan
d86d172f37 8320209: VectorMaskGen clobbers rflags on x86_64
Backport-of: b05e69f789
2024-01-17 20:31:41 +07:00
Matthias Baesken
18c32c5757 8318957: enhance agentlib:jdwp help output by info about allow option
Backport-of: 53bb7cd415
2024-01-17 20:31:41 +07:00
Matthias Baesken
e7501eefe5 8318955: Add ReleaseIntArrayElements in Java_sun_awt_X11_XlibWrapper_SetBitmapShape XlbWrapper.c to early return
Backport-of: 81db1721d4
2024-01-17 20:31:41 +07:00
Matthias Baesken
1d52123510 8318591: avoid leaks in loadlib_aix.cpp reload_table()
Backport-of: 6d3cb459dc
2024-01-17 20:31:40 +07:00
Matthias Baesken
27c428335f 8318981: compiler/compilercontrol/TestConflictInlineCommands.java fails intermittent with 'disallowed by CompileCommand' missing from stdout/stderr
Backport-of: 88b9cdae8f
2024-01-17 20:31:40 +07:00
Christoph Langer
42b5a9fc9a 8306561: Possible out of bounds access in print_pointer_information
8319542: Fix boundaries of region to be tested with os::is_readable_range

Reviewed-by: mbaesken
Backport-of: d6ce62ebc0
2024-01-17 20:31:40 +07:00
Rajan Halade
333f6c3b5d 8319187: Add three eMudhra emSign roots
Backport-of: 0bda467f6e
2024-01-17 20:31:40 +07:00
Alexey Ivanov
1a89d6ceea 8316017: Refactor timeout handler in PassFailJFrame
Backport-of: 3abd772672
2024-01-17 20:31:39 +07:00
Aleksey Shipilev
7a8a68a665 8315545: C1: x86 cmove can use short branches
Backport-of: 6c821f5e1d
2024-01-17 20:31:39 +07:00
Aleksey Shipilev
70e800a278 8315554: C1: Replace "cmp reg, 0" with "test reg, reg" on x86
Backport-of: bd477810b1
2024-01-17 20:31:39 +07:00
Martin Doerr
e96bdac575 8316746: Top of lock-stack does not match the unlocked object
Backport-of: 7d8adfa855
2024-01-17 20:31:38 +07:00
Alexey Ivanov
81695d4d47 8316025: Use testUI() method of PassFailJFrame.Builder in FileChooserSymLinkTest.java
Backport-of: 7f47c51ace
2024-01-17 20:31:38 +07:00
Alexey Ivanov
0593574238 8294156: Allow PassFailJFrame.Builder to create test UI
Backport-of: 42b9ac8a07
2024-01-17 20:31:38 +07:00
Aleksey Shipilev
d3aaa4f656 8317834: java/lang/Thread/IsAlive.java timed out
Backport-of: 5522656af7
2024-01-17 20:31:38 +07:00
Aleksey Shipilev
3492e37ff4 8320053: GHA: Cross-compile gtest code
Backport-of: 77a6966114
2024-01-17 20:31:37 +07:00
Alexey Ivanov
459c4e7c63 8316003: Update FileChooserSymLinkTest.java to HTML instructions
Backport-of: c587211bf8
2024-01-17 20:31:37 +07:00
Alexey Ivanov
2e9206134f 8294158: HTML formatting for PassFailJFrame instructions
Backport-of: 14090ef603
2024-01-17 20:31:37 +07:00
Shivangi Gupta
0fc37fcdd7 8317039: Enable specifying the JDK used to run jtreg
8317807: JAVA_FLAGS removed from jtreg running in JDK-8317039

Reviewed-by: erikj
Backport-of: a250ae4d1b
2024-01-17 20:31:36 +07:00
Alexey Ivanov
65f81bb3ad 8313643: Update HarfBuzz to 8.2.2
8319268: Build failure with GCC8.3.1 after 8313643

Reviewed-by: prr, honkar
Backport-of: 2182c93689
2024-01-17 20:31:36 +07:00
Christoph Langer
1f69507f91 8318240: [AIX] Cleaners.java test failure
Backport-of: d4b761242d
2024-01-17 20:31:36 +07:00
Christoph Langer
f212871491 8313782: Add user-facing warning if THPs are enabled but cannot be used
Backport-of: dff99f7f3d
2024-01-17 20:31:35 +07:00
Christoph Langer
7d3b58b90f 8313781: Add regression tests for large page logging and user-facing error messages
Backport-of: abad0408e8
2024-01-17 20:31:35 +07:00
Robbin Ehn
5b72940547 8315195: RISC-V: Update hwprobe query for new extensions
Backport-of: 0d4cadb824
2024-01-17 20:31:35 +07:00
Rajan Halade
a9cc6da04e 8318759: Add four DigiCert root certificates
Backport-of: 0ea58048f9
2024-01-17 20:31:35 +07:00
Sergey Bylokhov
afff0fbd4b 8312191: ColorConvertOp.filter for the default destination is too slow
Backport-of: e5f05b5a96
2024-01-17 20:31:34 +07:00
Mandy Chung
316cfd37e8 8319436: Proxy.newProxyInstance throws NPE if loader is null and interface not visible from class loader
Backport-of: 8eb6f617b3
2024-01-17 20:31:34 +07:00
Stewart X Addison
7aa3212769 8319958: test/jdk/java/io/File/libGetXSpace.c does not compile on Windows 32-bit
Backport-of: 6a75c2406b
2024-01-17 20:31:34 +07:00
Amit Kumar
d12e1ffa65 8317581: [s390x] Multiple test failure with LockingMode=2
Backport-of: 839cb19ec2
2024-01-17 20:31:34 +07:00
Aleksey Shipilev
94d2c538dd 8316719: C2 compilation still fails with "bad AD file"
Backport-of: 1e687b4529
2024-01-17 20:31:33 +07:00
Rajat Mahajan
82fa7b0410 8316030: Update Libpng to 1.6.40
Backport-of: 158293d251
2024-01-17 20:31:33 +07:00
Fei Yang
e7329d5b87 8319184: RISC-V: improve MD5 intrinsic
Backport-of: fa331d7128
2024-01-17 20:31:33 +07:00
Goetz Lindenmaier
e071cdabf0 8319104: GtestWrapper crashes with SIGILL in AsyncLogTest::test_asynclog_raw on AIX opt
Reviewed-by: stuefe, jkern
Backport-of: 0b58bdec71
2024-01-17 20:31:33 +07:00
Man Cao
aad4880079 8312174: missing JVMTI events from vthreads parked during JVMTI attach
Backport-of: fda142ff6c
2024-01-17 20:31:32 +07:00
Matthias Baesken
b9ead6f141 8317603: Improve exception messages thrown by sun.nio.ch.Net native methods (win)
Backport-of: a9b41da9df
2024-01-17 20:31:32 +07:00
Amit Kumar
f373f20dbe 8316935: [s390x] Use consistent naming for lightweight locking in MacroAssembler
Backport-of: efb7e85ecf
2024-01-17 20:31:32 +07:00
Aleksey Shipilev
e721cc26f6 8318525: Atomic gtest should run as TEST_VM to access VM capabilities
Backport-of: 744f206fef
2024-01-17 20:31:31 +07:00
Aleksey Shipilev
d61a21786e 8315920: C2: "control input must dominate current control" assert failure
Backport-of: 4e1e579e8b
2024-01-17 20:31:31 +07:00
Aleksey Shipilev
25d06dc8a5 8316436: ContinuationWrapper uses unhandled nullptr oop
Backport-of: 292aad2c49
2024-01-17 20:31:31 +07:00
Jaikiran Pai
ab82d9c84f 8312433: HttpClient request fails due to connection being considered idle and closed
Backport-of: 486c7844f9
2024-01-17 20:31:30 +07:00
Martin Doerr
ef3492fce0 8310596: Utilize existing method frame::interpreter_frame_monitor_size_in_bytes()
Backport-of: 7fbad4cd5e
2024-01-17 20:31:30 +07:00
Pavel Rappo
157298c9f0 8319339: Internal error on spurious markup in a hybrid snippet
Reviewed-by: jjg
Backport-of: c9077b8b81
2024-01-17 20:31:30 +07:00
Matthias Baesken
92e8cfa583 8318961: increase javacserver connection timeout values and max retry attempts
Backport-of: b9983c7229
2024-01-17 20:31:30 +07:00
Thomas Stuefe
83d49e8d18 8319922: libCreationTimeHelper.so fails to link in JDK 21
Reviewed-by: sgehwolf
2024-01-17 20:31:29 +07:00
Thomas Stuefe
18dd1aa915 8319828: runtime/NMT/VirtualAllocCommitMerge.java may fail if mixing interpreted and compiled native invocations
Backport-of: 6b21ff61da
2024-01-17 20:31:29 +07:00
Aleksey Shipilev
725c15a627 8317507: C2 compilation fails with "Exceeded _node_regs array"
Backport-of: a5818972c1
2024-01-17 20:31:29 +07:00
Johannes Bechberger
edfc0afaee 8318736: com/sun/jdi/JdwpOnThrowTest.java failed with "transport error 202: bind failed: Address already in use"
Backport-of: 1a21c1a783
2024-01-17 20:31:29 +07:00
Liam Miller-Cushon
9afab6c7e8 8225377: type annotations are not visible to javac plugins across compilation boundaries
Backport-of: de6667cf11
2024-01-17 20:31:28 +07:00
Andrew Leonard
75abfa93e0 8317601: Windows build on WSL broken after JDK-8317340
Backport-of: bcc986b9d1
2024-01-17 20:31:28 +07:00
Amit Kumar
921ed065e2 8308479: [s390x] Implement alternative fast-locking scheme
Backport-of: 3fe6e0faca
2024-01-17 20:31:28 +07:00
Andrew Leonard
8c13ecedb2 8317340: Windows builds are not reproducible if MS VS compiler install path differs
Backport-of: 353d139682
2024-01-17 20:31:28 +07:00
Christian Hagedorn
696ac52df5 8314307: Improve loop handling
Reviewed-by: thartmann
Backport-of: afe46730e2405100ab2e016c8941264336aa807d
2024-01-17 20:31:27 +07:00
Frederic Thevenet
a98dabdf6c 8317510: Change Windows debug symbol files naming to avoid losing info when an executable and a library share the same name
Backport-of: d96f38b80c
2024-01-17 20:31:27 +07:00
Aleksey Shipilev
4f7257654f 8314191: C2 compilation fails with "bad AD file"
Backport-of: 969fcdb0de
2024-01-17 20:31:27 +07:00
Aleksey Shipilev
33ef6d8695 8316679: C2 SuperWord: wrong result, load should not be moved before store if not comparable
Reviewed-by: epeter, phh, thartmann
Backport-of: 48f1a925e5
2024-01-17 20:31:26 +07:00
Jayathirth D V
ab4df04dfb 8318951: Additional negative value check in JPEG decoding
Backport-of: 75ce02fe74
2024-01-17 20:31:26 +07:00
Alexey Ivanov
4161de1dbc 8294535: Add screen capture functionality to PassFailJFrame
Backport-of: dbb788f34d
2024-01-17 20:31:26 +07:00
Renjith Kannath Pariyangad
285ecf85d9 8301846: Invalid TargetDataLine after screen lock when using JFileChooser or COM library
Backport-of: 613a3cc689
2024-01-17 20:31:25 +07:00
Rajan Halade
22c01ed770 8317374: Add Let's Encrypt ISRG Root X2
Backport-of: e6f46a4326
2024-01-17 20:31:25 +07:00
Aleksey Shipilev
f176107ab9 8314580: PhaseIdealLoop::transform_long_range_checks fails with assert "was tested before"
Backport-of: 9def4538ab
2024-01-17 20:31:25 +07:00
Aleksey Shipilev
17d7fb4327 8318183: C2: VM may crash after hitting node limit
Backport-of: 31ef400f31
2024-01-17 20:31:25 +07:00
Aleksey Shipilev
04136e273b 8309209: C2 failed "assert(_stack_guard_state == stack_guard_reserved_disabled) failed: inconsistent state"
Reviewed-by: aph
Backport-of: 52ee570025
2024-01-17 20:31:24 +07:00
Aleksey Shipilev
389f36e373 8316645: RISC-V: Remove dependency on libatomic by adding cmpxchg 1b
8317335: Build on windows fails after 8316645

Reviewed-by: rehn
Backport-of: fb055e7e53
2024-01-17 20:31:24 +07:00
Aleksey Shipilev
94121b3a46 8316585: [REDO] runtime/InvocationTests spend a lot of time on dependency verification
Backport-of: 1e930db3c7
2024-01-17 20:31:24 +07:00
Evgeny Ignatenko
c295d9cd8f 8315362: NMT: summary diff reports threads count incorrectly
Reviewed-by: stuefe
Backport-of: 37aed6f46d
2024-01-17 20:31:24 +07:00
Evgeny Ignatenko
4cbb928253 8318474: Fix memory reporter for thread_count
Backport-of: 0baa9ecd76
2024-01-17 20:31:23 +07:00
Fei Yang
8bbe7e62b3 8319525: RISC-V: Rename *_riscv64.ad files to *_riscv.ad under riscv/gc
Backport-of: b2504a0f9c
2024-01-17 20:31:23 +07:00
Goetz Lindenmaier
2b4cceb479 8316461: Fix: make test outputs TEST SUCCESS after unsuccessful exit
Backport-of: e30e356442
2024-01-17 20:31:23 +07:00
Johannes Bechberger
5306cecc06 8317920: JDWP-agent sends broken exception event with onthrow option
Backport-of: 8f4ebd8921
2024-01-17 20:31:22 +07:00
Severin Gehwolf
c34812b166 8316304: (fs) Add support for BasicFileAttributes.creationTime() for Linux
Reviewed-by: phh
Backport-of: 0275efac88
2024-01-17 20:31:22 +07:00
Goetz Lindenmaier
0cf609d188 8315415: OutputAnalyzer.shouldMatchByLine() fails in some cases
Backport-of: 7b1e2bfe0f
2024-01-17 20:31:22 +07:00
Goetz Lindenmaier
4fa1f900a1 8314242: Update applications/scimark/Scimark.java to accept VM flags
Backport-of: 6bf4a33593
2024-01-17 20:31:22 +07:00
Andrew Leonard
d8ecce3b52 8286757: adlc tries to build with /pathmap but without /experimental:deterministic
Backport-of: 242eeaea47
2024-01-17 20:31:21 +07:00
Andrew Leonard
bd758e7284 8316648: jrt-fs.jar classes not reproducible between standard and bootcycle builds
Backport-of: 0f0c5b2d71
2024-01-17 20:31:21 +07:00
Calvin Cheung
17178ac505 8312434: SPECjvm2008/xml.transform with CDS fails with "can't seal package nu.xom"
Backport-of: 9f4a9fe488
2024-01-17 20:31:21 +07:00
Aleksey Shipilev
66d5254748 8316142: Enable parallelism in vmTestbase/nsk/monitoring/stress/lowmem tests
Backport-of: 4421951d8f
2024-01-17 20:31:20 +07:00
Martin Doerr
8f0c966914 8316659: assert(LockingMode != LM_LIGHTWEIGHT || flag == CCR0) failed: bad condition register
Backport-of: 6a4b665550
2024-01-17 20:31:20 +07:00
Tobias Hartmann
4f618c925e 8318889: C2: add bailout after assert Bad graph detected in build_loop_late
Backport-of: 83eb20651f
2024-01-17 20:31:20 +07:00
Frederic Thevenet
a64ae87dcc 8318669: Target OS detection in 'test-prebuilt' makefile target is incorrect when running on MSYS2
Backport-of: 202c0137b8
2024-01-17 20:31:20 +07:00
Matthias Baesken
51c12f79c7 8316411: compiler/compilercontrol/TestConflictInlineCommands.java fails intermittent with force inline by CompileCommand missing
Backport-of: e1870d360e
2024-01-17 20:31:19 +07:00
Matthias Baesken
738ae887e6 8318415: Adjust describing comment of os_getChildren after 8315026
Backport-of: 47bb1a1cef
2024-01-17 20:31:19 +07:00
Thomas Stuefe
d92d5d9b9d 8318089: Class space not marked as such with NMT when CDS is off
Backport-of: c0e154c876
2024-01-17 20:31:19 +07:00
Gui Cao
5a114d1b5b 8318953: RISC-V: Small refactoring for MacroAssembler::test_bit
Backport-of: 988e1dfe6e
2024-01-17 20:31:19 +07:00
Goetz Lindenmaier
5767001ef9 8161536: sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java fails with ProviderException
Backport-of: 939d7c5d84
2024-01-17 20:31:18 +07:00
Goetz Lindenmaier
93de115d67 8301457: Code in SendPortZero.java is uncommented even after JDK-8236852 was fixed
Backport-of: 298dda4c98
2024-01-17 20:31:18 +07:00
Goetz Lindenmaier
1ad89ec994 8309778: java/nio/file/Files/CopyAndMove.java fails when using second test directory
Backport-of: cfae6ef2f6
2024-01-17 20:31:18 +07:00
Aleksey Shipilev
6dd7bb019a 8316414: C2: large byte array clone triggers "failed: malformed control flow" assertion failure on linux-x86
Backport-of: 0a3a925ad8
2024-01-17 20:31:18 +07:00
Aleksey Shipilev
0fe4d1a02e 8303737: C2: Load can bypass subtype check that enforces it's from the right object type
Backport-of: 52983ed529
2024-01-17 20:31:17 +07:00
Aleksey Shipilev
45937e3fdf 8315442: Enable parallelism in vmTestbase/nsk/monitoring/stress/thread tests
Backport-of: 9013b03244
2024-01-17 20:31:16 +07:00
Aleksey Shipilev
ada8866e53 8315774: Enable parallelism in vmTestbase/gc/g1/unloading tests
Backport-of: 825e0ed2a1
2024-01-17 20:31:16 +07:00
Aleksey Shipilev
5a6e543cf0 8315437: Enable parallelism in vmTestbase/nsk/monitoring/stress/classload tests
Backport-of: dd214d0f95
2024-01-17 20:31:16 +07:00
Rob McKenna
96cdbd5850 8301341: LinkedTransferQueue does not respect timeout for poll()
8300663: java/util/concurrent/SynchronousQueue/Fairness.java failed with "Error: fair=true i=0 j=1"
8267502: JDK-8246677 caused 16x performance regression in SynchronousQueue

Reviewed-by: alanb
Backport-of: 8d1ab57065
2024-01-17 20:31:16 +07:00
Aleksey Shipilev
5ddc631521 8312126: NullPointerException in CertStore.getCRLs after 8297955
Backport-of: 3c743cfea0
2024-01-17 20:31:15 +07:00
Aleksey Shipilev
975ee0b997 8314330: java/foreign tests should respect vm flags when start new processes
Backport-of: 7b28d3608a
2024-01-17 20:31:15 +07:00
Aleksey Shipilev
feaad1ec26 8295555: Primitive wrapper caches could be @Stable
Backport-of: f7de726bd3
2024-01-17 20:31:15 +07:00
Aleksey Shipilev
a2e5f00e9f 8318528: Rename TestUnstructuredLocking test
Backport-of: 3f446c5156
2024-01-17 20:31:15 +07:00
Aleksey Shipilev
b4e578da29 8318540: make test cannot run .jasm tests directly
Backport-of: bd02cfd96f
2024-01-17 20:31:14 +07:00
Aleksey Shipilev
40dd000216 8267509: Improve IllegalAccessException message to include the cause of the exception
Backport-of: 36314a90c1
2024-01-17 20:31:14 +07:00
Goetz Lindenmaier
382c027f3b 8318705: [macos] ProblemList java/rmi/registry/multipleRegistries/MultipleRegistries.java
Backport-of: 37c40a11a7
2024-01-17 20:31:14 +07:00
Sergey Bylokhov
dd7d7ea2f6 8315971: ProblemList containers/docker/TestMemoryAwareness.java on linux-all
Backport-of: eb37c7e361
2024-01-17 20:31:13 +07:00
pavel_kharskii
07058afc2f 8318137: Change milestone to fcs for all releases
Reviewed-by: coffeys, mvs, rreddy
2024-01-17 20:31:13 +07:00
Hannes Greule
322546b97b 8317692: jcmd GC.heap_dump performance regression after JDK-8292818
Backport-of: 8f5f44070a
2024-01-17 20:31:13 +07:00
Manukumar V S
4c44c4a6b3 8317751: ProblemList ConsumeForModalDialogTest.java, MenuItemActivatedTest.java & MouseModifiersUnitTest_Standard.java for windows
8317964: java/awt/Mouse/MouseModifiersUnitTest/MouseModifiersUnitTest_Standard.java fails on macosx-all after JDK-8317751

Reviewed-by: aivanov, dmarkov
Backport-of: f40ea5109e
2024-01-17 20:31:13 +07:00
Matthias Baesken
74c1583844 8317959: Check return values of malloc in native java.base coding
Backport-of: ff0b397e13
2024-01-17 20:31:12 +07:00
Matthias Baesken
9698262126 8038244: (fs) Check return value of malloc in Java_sun_nio_fs_AixNativeDispatcher_getmntctl()
Backport-of: 6d6c9008d5
2024-01-17 20:31:12 +07:00
Christoph Langer
2dfba52ee4 8310512: Cleanup indentation in jfc files
Backport-of: 3be50da636
2024-01-17 20:31:12 +07:00
Christoph Langer
eae9556217 8315706: com/sun/tools/attach/warnings/DynamicLoadWarningTest.java real fix for failure on AIX
Backport-of: 21c2dac159
2024-01-17 20:31:12 +07:00
Sergey Bylokhov
10fa52a22d 8316060: test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java may fail if heap is huge
Backport-of: bd52bbfa27
2024-01-17 20:31:11 +07:00
Rajan Halade
c5a78f220c 8317373: Add Telia Root CA v2
Backport-of: d3ebb4a155
2024-01-17 20:31:11 +07:00
Laurent Bourgès
837178c21b 8316741: BasicStroke.createStrokedShape miter-limits failing on small shapes
Backport-of: a876beb63d
2024-01-17 20:31:11 +07:00
Aleksey Shipilev
baa3e01efd 8312592: New parentheses warnings after HarfBuzz 7.2.0 update
Backport-of: ea067fc3d2
2024-01-17 20:31:10 +07:00
Aleksey Shipilev
515c9d3820 8316778: test hprof lib: invalid array element type from JavaValueArray.elementSize
Backport-of: f7deaf4bef
2024-01-17 20:31:10 +07:00
Aleksey Shipilev
cc3ac70fbb 8315088: C2: assert(wq.size() - before == EMPTY_LOOP_SIZE) failed: expect the EMPTY_LOOP_SIZE nodes of this body if empty
Backport-of: fe4f90021f
2024-01-17 20:31:10 +07:00
Aleksey Shipilev
d42ceb6d14 8315869: UseHeavyMonitors not used
Reviewed-by: phh
Backport-of: 3301fb1e8a
2024-01-17 20:31:10 +07:00
Tobias Hartmann
d79b950b37 8314468: Improve Compiler loops
Reviewed-by: jwilhelm, epeter
Backport-of: 86e71472aefc26175cfc00d44f255f64893e477b
2024-01-17 20:31:09 +07:00
Matthias Baesken
24352fc713 8316894: make test TEST="jtreg:test/jdk/..." fails on AIX
Backport-of: 29348b3cf6
2024-01-17 20:31:09 +07:00
Thomas Stuefe
657092791a 8317987: C2 recompilations cause high memory footprint
Backport-of: c88b387881
2024-01-17 20:31:09 +07:00
Alexey Ivanov
fa4afa1d08 8314246: javax/swing/JToolBar/4529206/bug4529206.java fails intermittently on Linux
Backport-of: 808bb1f7bc
2024-01-17 20:31:09 +07:00
Aleksey Shipilev
41a080470d 8316880: AArch64: "stop: Header is not fast-locked" with -XX:-UseLSE since JDK-8315880
Reviewed-by: aph
Backport-of: b6a97c0780
2024-01-17 20:31:08 +07:00
Ludvig Janiuk
90089dd3e4 8317327: Remove JT_JAVA dead code in jib-profiles.js
Reviewed-by: ihse
2024-01-17 20:31:08 +07:00
Archie Cobbs
ad721336d6 8317818: Combinatorial explosion during 'this' escape analysis
Backport-of: 17535c34bc
2024-01-17 20:31:08 +07:00
Aleksey Shipilev
8f07717a0d 8316181: Move the fast locking implementation out of the .ad files
Backport-of: b48dbf6bfa
2024-01-17 20:31:07 +07:00
Aleksey Shipilev
fafbcf231f 8316396: Endless loop in C2 compilation triggered by AddNode::IdealIL
Reviewed-by: thartmann
Backport-of: b0d6c8472f
2024-01-17 20:31:07 +07:00
Aleksey Shipilev
3366f2cb2a 8316735: Print LockStack in hs_err files
Backport-of: 20ff603108
2024-01-17 20:31:07 +07:00
Rajan Halade
bd275d0bb7 8268916: Tests for AffirmTrust roots
Backport-of: 8c1bb2b280
2024-01-17 20:31:07 +07:00
Aleksey Shipilev
16831cb9de 8316958: Add test for unstructured locking
Backport-of: bcafec54a5
2024-01-17 20:31:06 +07:00
Aleksey Shipilev
05994467b8 8317262: LockStack::contains(oop) fails "assert(t->is_Java_thread()) failed: incorrect cast to JavaThread"
Backport-of: 4ea1b99c1a
2024-01-17 20:31:06 +07:00
Aleksey Shipilev
c36cede7f4 8295068: SSLEngine throws NPE parsing CertificateRequests
Backport-of: 5667afc362
2024-01-17 20:31:06 +07:00
Aleksey Shipilev
7171e21d5b 8309663: test fails "assert(check_alignment(result)) failed: address not aligned: 0x00000008baadbabe"
Backport-of: 83edffa608
2024-01-17 20:31:06 +07:00
Aleksey Shipilev
288accdd76 8316929: Shenandoah: Shenandoah degenerated GC and full GC need to cleanup old OopMapCache entries
Backport-of: e25121d1d9
2024-01-17 20:31:05 +07:00
Archie Cobbs
5e1defce38 8317336: Assertion error thrown during 'this' escape analysis
Backport-of: a8473b7079
2024-01-17 20:31:05 +07:00
Christoph Langer
343d49a4a1 8317803: Exclude java/net/Socket/asyncClose/Race.java on AIX
Backport-of: 1161e3da14
2024-01-17 20:31:05 +07:00
Christoph Langer
2288ef2372 8219652: [aix] Tests failing with JNI attach problems.
8317136: [AIX] Problem List runtime/jni/terminatedThread/TestTerminatedThread.java
8317790: Fix Bug entry for exclusion of runtime/jni/terminatedThread/TestTerminatedThread.java on AIX

Reviewed-by: mbaesken
Backport-of: 0b0f8b55a6
2024-01-17 20:31:04 +07:00
Christoph Langer
05575afcb4 8312078: [PPC] JcmdScale.java Failing on AIX
Backport-of: c1a3f143bf
2024-01-17 20:31:04 +07:00
Christoph Langer
7a6043978f 8317839: Exclude java/nio/channels/Channels/SocketChannelStreams.java on AIX
Backport-of: ca96fd3b07
2024-01-17 20:31:04 +07:00
Christoph Langer
6aaa8f6317 8311261: [AIX] TestAlwaysPreTouchStacks.java fails due to java.lang.RuntimeException: Did not find expected NMT output
Backport-of: d5c6b0d0bb
2024-01-17 20:31:04 +07:00
Rajan Halade
d670dfaa46 8317967: Enhance test/jdk/javax/net/ssl/TLSCommon/SSLEngineTestCase.java to handle default cases
Reviewed-by: mullan
Backport-of: 9728e21db1
2024-01-17 20:31:03 +07:00
Matthias Baesken
1db2f3f6ab 8312467: relax the builddir check in make/autoconf/basic.m4
Backport-of: 6e3cc131da
2024-01-17 20:31:03 +07:00
Thomas Stuefe
9edda54114 8317772: NMT: Make peak values available in release builds
Backport-of: 32ccf018eb
2024-01-17 20:31:03 +07:00
Aleksey Shipilev
d93d3ffb3b 8315062: [GHA] get-bootjdk action should return the abolute path
Backport-of: 99ea8bf2b9
2024-01-17 20:31:03 +07:00
Aleksey Shipilev
bb3ffeb6fa 8315960: test/jdk/java/io/File/TempDirDoesNotExist.java leaves test files behind
Reviewed-by: bpb
Backport-of: 373cdf257d
2024-01-17 20:31:02 +07:00
Aleksey Shipilev
a8cebab762 8317294: Classloading throws exceptions over already pending exceptions
Backport-of: d4c904d819
2024-01-17 20:31:02 +07:00
Daniel Fuchs
6d3817401f 8317736: Stream::handleReset locks twice
Backport-of: 508fa71753
2024-01-17 20:31:02 +07:00
Joachim Kern
961b6cd349 8315026: ProcessHandle implementation listing processes on AIX should use getprocs64
Backport-of: 4d9042043e
2024-01-17 20:31:02 +07:00
Prajwal Kumaraswamy
8fb85525ab 8316976: Improve signature handling
Backport-of: ed1269b7410759e8fa0d97d85328f20d11ae8d9a
2024-01-17 20:31:01 +07:00
Christoph Langer
b536370c18 8317705: ProblemList sun/tools/jstat/jstatLineCountsX.sh on linux-ppc64le and aix due to JDK-8248691
Backport-of: ad6dce376d
2024-01-17 20:31:01 +07:00
Christoph Langer
79761e4a71 8317711: Exclude gtest/GTestWrapper.java on AIX
Backport-of: ef41aa02b8
2024-01-17 20:31:01 +07:00
Christoph Langer
2c0a95a51f 8317706: Exclude java/awt/Graphics2D/DrawString/RotTransText.java on linux
Backport-of: fcff222f92
2024-01-17 20:31:01 +07:00
Ludvig Janiuk
a584dec284 8316906: Clarify TLABWasteTargetPercent flag
Backport-of: 77fac0f4c6
2024-01-17 20:31:00 +07:00
Aleksey Shipilev
e4b9ec73c6 8316418: containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC
Backport-of: 7352bb9105
2024-01-17 20:31:00 +07:00
Goetz Lindenmaier
7e9b407cd1 8309974: some JVMCI tests fail when VM options include -XX:+EnableJVMCI
Backport-of: 8b4af46be4
2024-01-17 20:31:00 +07:00
Goetz Lindenmaier
f89b59ed8f 8232839: JDI AfterThreadDeathTest.java failed due to "FAILED: Did not get expected IllegalThreadStateException on a StepRequest.enable()"
Backport-of: 84184f9473
2024-01-17 20:30:59 +07:00
Brian Burkhalter
eafcc264c1 8313368: (fc) FileChannel.size returns 0 on block special files
Backport-of: 4ba81f631f
2024-01-17 20:30:59 +07:00
Aleksey Shipilev
04185b9f87 8314120: Add tests for FileDescriptor.sync
Backport-of: 2e8a0ab272
2024-01-17 20:30:59 +07:00
Aleksey Shipilev
635786a69e 8316130: Incorrect control in LibraryCallKit::inline_native_notify_jvmti_funcs
Backport-of: 4b65483921
2024-01-17 20:30:59 +07:00
Aleksey Shipilev
94b8efda04 8316337: (bf) Concurrency issue in DirectByteBuffer.Deallocator
Backport-of: cf74b8c2a3
2024-01-17 20:30:58 +07:00
Aleksey Shipilev
60f1193954 8316179: Use consistent naming for lightweight locking in MacroAssembler
Backport-of: 639ba13c4b
2024-01-17 20:30:58 +07:00
Aleksey Shipilev
f48301bdba 8315942: Sort platform enums and definitions after JDK-8304913 follow-ups
Backport-of: 1941290b79
2024-01-17 20:30:58 +07:00
Matthias Baesken
099d9b1635 8314883: Java_java_util_prefs_FileSystemPreferences_lockFile0 write result errno in missing case
Backport-of: 97b94cb1cd
2024-01-17 20:30:57 +07:00
Matthias Baesken
262217e14b 8315499: build using devkit on Linux ppc64le RHEL puts path to devkit into libsplashscreen
Backport-of: ed2b4673de
2024-01-17 20:30:57 +07:00
Matthias Baesken
6a42d8d3eb 8312612: handle WideCharToMultiByte return values
Backport-of: d9559f9b24
2024-01-17 20:30:57 +07:00
Matthias Baesken
4953f49087 8316671: sun/security/ssl/SSLSocketImpl/SSLSocketCloseHang.java test fails intermittent with Read timed out
Backport-of: 1f7dfda705
2024-01-17 20:30:57 +07:00
Aleksey Shipilev
d49fb1f141 8313656: assert(!JvmtiExport::can_support_virtual_threads()) with -XX:-DoJVMTIVirtualThreadTransitions
Backport-of: b38bcae1ba
2024-01-17 20:30:57 +07:00
Zdenek Zambersky
065f1c80be 8316540: StoreReproducibilityTest fails on some locales
Backport-of: f7578e8048
2024-01-17 20:30:56 +07:00
Soumadipta Roy
a89d6ed2e5 8315683: Parallelize java/util/concurrent/tck/JSR166TestCase.java
Backport-of: 4415261688
2024-01-17 20:30:56 +07:00
Soumadipta Roy
8f565773ef 8315937: Enable parallelism in vmTestbase/nsk/stress/numeric tests
Backport-of: eb1f67b160
2024-01-17 20:30:56 +07:00
Soumadipta Roy
832b7162f7 8315766: Parallelize gc/stress/TestStressIHOPMultiThread.java test
Backport-of: edd454b502
2024-01-17 20:30:55 +07:00
Brian Burkhalter
6aa7c2e2f6 8316156: ByteArrayInputStream.transferTo causes MaxDirectMemorySize overflow
Backport-of: 5cacf212f0
2024-01-17 20:30:55 +07:00
Aleksey Shipilev
8c4ebd381d 8314551: More generic way to handshake GC threads with monitor deflation
Reviewed-by: rkennke
Backport-of: 31c4e03d5d
2024-01-17 20:30:55 +07:00
Christoph Langer
ac3614fd56 8316710: Exclude java/awt/font/Rotate/RotatedTextTest.java
Backport-of: ad6df41a9e
2024-01-17 20:30:55 +07:00
Aleksei Voitylov
17dd9524cd 8316879: RegionMatches1Tests fails if CompactStrings are disabled after JDK-8302163
Backport-of: cfcbfc6cae
2024-01-17 20:30:54 +07:00
Ilya Gavrilin
7cc20a9141 8313779: RISC-V: use andn / orn in the MD5 instrinsic
Backport-of: 4726960fcd
2024-01-17 20:30:54 +07:00
Aleksey Shipilev
ac8e6035aa 8316514: Better diagnostic header for VtableStub
Backport-of: 6c61bc1950
2024-01-17 20:30:54 +07:00
Ludovic Henry
b7f4a135f4 8316859: RISC-V: Disable detection of V through HWCAP
Backport-of: 311c7461c8
2024-01-17 20:30:54 +07:00
Robbin Ehn
6ff3f30826 8316566: RISC-V: Zero extended narrow oop passed to Atomic::cmpxchg
Backport-of: 2d154fcd0d
2024-01-17 20:30:53 +07:00
Goetz Lindenmaier
4a8ced14f3 8312440: assert(cast != nullptr) failed: must have added a cast to pin the node
Backport-of: 01e135c910
2024-01-17 20:30:53 +07:00
Goetz Lindenmaier
37fc05292c 8301247: JPackage app-image exe launches multiple exe's in JDK 17+
Backport-of: dcea9bf087
2024-01-17 20:30:53 +07:00
Goetz Lindenmaier
5d00ee3eb0 8315377: C2: assert(u->find_out_with(Op_AddP) == nullptr) failed: more than 2 chained AddP nodes?
Backport-of: ba1a46392f
2024-01-17 20:30:52 +07:00
Goetz Lindenmaier
58f20e3f78 8308103: Massive (up to ~30x) increase in C2 compilation time since JDK 17
Backport-of: c6ab9c2905
2024-01-17 20:30:52 +07:00
Goetz Lindenmaier
af16c4ab8f 8301489: C1: ShortLoopOptimizer might lift instructions before their inputs
Backport-of: 73d7aa1d2c
2024-01-17 20:30:52 +07:00
Vladimir Kempik
135b25c026 8317257: RISC-V: llvm build broken
Reviewed-by: fyang
Backport-of: bd7bb67d8f
2024-01-17 20:30:52 +07:00
Fei Yang
de3f9526c1 8316743: RISC-V: Change UseVectorizedMismatchIntrinsic option result to warning
Backport-of: 750da00129
2024-01-17 20:30:51 +07:00
Saravana Kumar Vijayasekaran
95d358c631 8317439: Updating RE Configs for BUILD REQUEST 21.0.2+1
Reviewed-by: robm
2024-01-17 20:30:51 +07:00
Coleen Phillimore
901f93f5c3 8317331: Solaris build failed with "declaration can not follow a statement (E_DECLARATION_IN_CODE)"
Backport-of: 852276d1f833d49802693f2a5a82ba6eb2722de6
2024-01-17 20:30:51 +07:00
Coleen Phillimore
c4d876876b 8314295: Enhance verification of verifier
Reviewed-by: dholmes, poonam, dlong
2024-01-17 20:30:51 +07:00
Gui Cao
6a7f65ca25 8316933: RISC-V: compiler/vectorapi/VectorCastShape128Test.java fails when using RVV
Backport-of: e39197ec62
2024-01-17 20:30:50 +07:00
Matthias Baesken
68b12a6b70 8316341: sun/security/pkcs11/PKCS11Test.java needs adjustment on Linux ppc64le Ubuntu 22
Backport-of: aa0ebeedb1
2024-01-17 20:30:50 +07:00
Manukumar V S
0ea8abdb20 8315606: Open source few swing text/html tests
Backport-of: 4127fbb9ed
2024-01-17 20:30:50 +07:00
Soumadipta Roy
77b781dd38 8315770: serviceability/sa/TestJmapCoreMetaspace.java should run with -XX:-VerifyDependencies
Backport-of: 877731d2a2
2024-01-17 20:30:49 +07:00
Man Cao
09ec05318a 8316468: os::write incorrectly handles partial write
Backport-of: 7ce5bd1590
2024-01-17 20:30:49 +07:00
Alexey Ivanov
fb095de54e 8316206: Test StretchedFontTest.java fails for Baekmuk font
Ignore broken fonts, i.e. the fonts for which
GlyphVector(TEXT).getVisualBounds().isEmpty() returns true

Backport-of: 00f585bd22
2024-01-17 20:30:49 +07:00
Matthias Baesken
752b671e6c 8313575: Refactor PKCS11Test tests
Backport-of: 7a08e6bdd6
2024-01-17 20:30:49 +07:00
Ludvig Janiuk
e20408eff3 8316199: Remove sun/tools/jstatd/TestJstatd* tests from problemlist for Windows.
Reviewed-by: coffeys, kevinw
Backport-of: 903b9e8dd9
2024-01-17 20:30:48 +07:00
Ludvig Janiuk
e71b59d7ab 8314476: TestJstatdPortAndServer.java failed with "java.rmi.NoSuchObjectException: no such object in table"
Reviewed-by: kevinw
Backport-of: 1d0250709a
2024-01-17 20:30:48 +07:00
Matthias Baesken
0f66010cfb 8313252: Java_sun_awt_windows_ThemeReader_paintBackground release resources in early returns
Backport-of: 3671d83c87
2024-01-17 20:30:48 +07:00
Matthias Baesken
85be5f6d67 8313164: src/java.desktop/windows/native/libawt/windows/awt_Robot.cpp GetRGBPixels adjust releasing of resources
Backport-of: b7545a69a2
2024-01-17 20:30:48 +07:00
Matthias Baesken
cee0e157c9 8315213: java/lang/ProcessHandle/TreeTest.java test enhance output of children
Backport-of: f3aeb024d9
2024-01-17 20:30:47 +07:00
Rajat Mahajan
f5d991027b 8294427: Check boxes and radio buttons have rendering issues on Windows in High DPI env
Backport-of: a63afa4aa6
2024-01-17 20:30:47 +07:00
Ilya Gavrilin
bba4c1fc3c 8313322: RISC-V: implement MD5 intrinsic
Backport-of: b093880acd
2024-01-17 20:30:47 +07:00
Aleksey Shipilev
0ca0d13821 8314045: ArithmeticException in GaloisCounterMode
Backport-of: f41c267f85
2024-01-17 20:30:47 +07:00
Aleksey Shipilev
9098c29c39 8316178: Better diagnostic header for CodeBlobs
Backport-of: d575968b4b
2024-01-17 20:30:46 +07:00
Rajan Halade
77c5d9958c 8308592: Framework for CA interoperability testing
Reviewed-by: mullan
Backport-of: da57d2a1eb
2024-01-17 20:30:46 +07:00
Aleksey Shipilev
e7f06a4413 8315578: PPC builds are broken after JDK-8304913
Backport-of: 9559e035d2
2024-01-17 20:30:46 +07:00
Aggelos Biboudis
4cdbfbeaff 8314632: Intra-case dominance check fails in the presence of a guard
Backport-of: 81f8c57e4a
2024-01-17 20:30:45 +07:00
Aggelos Biboudis
acc02b63c5 8314226: Series of colon-style fallthrough switch cases with guards compiled incorrectly
Backport-of: 3b0a6d2a68
2024-01-17 20:30:45 +07:00
Daniel Fuchs
fdf56a1704 8316031: SSLFlowDelegate should not log from synchronized block
Backport-of: dc5ca1d379
2024-01-17 20:30:45 +07:00
Christoph Langer
f45312b595 8316400: Exclude jdk/jfr/event/runtime/TestResidentSetSizeEvent.java on AIX
Backport-of: 2e2d49c76d
2024-01-17 20:30:45 +07:00
Christoph Langer
face1e4874 8316387: Exclude more failing multicast tests on AIX after JDK-8315651
8316399: Exclude java/net/MulticastSocket/Promiscuous.java on AIX

Reviewed-by: mbaesken
Backport-of: e62419823a
2024-01-17 20:30:44 +07:00
Christoph Langer
236d547320 8315651: Stop hiding AIX specific multicast socket errors via NetworkConfiguration (aix)
Backport-of: e22eb06a3b
2024-01-17 20:30:44 +07:00
Andreas Steiner
f91d47f8b3 8313244: NM flags handling in configure process
Backport-of: 12326770dc
2024-01-17 20:30:44 +07:00
Aleksey Shipilev
4e6c47a5a3 8315579: SPARC64 builds are broken after JDK-8304913
Backport-of: cfc148930b
2024-01-17 20:30:44 +07:00
Matthias Baesken
13857d3cd3 8313206: PKCS11 tests silently skip execution
Backport-of: 515add88ed
2024-01-17 20:30:43 +07:00
Chad Rakoczy
3fc92def68 8311813: C1: Uninitialized PhiResolver::_loop field
Backport-of: 489a32fe40
2024-01-17 20:30:43 +07:00
Matthias Baesken
7752965dfc 8315644: increase timeout of sun/security/tools/jarsigner/Warning.java
Backport-of: 8bbebbba8f
2024-01-17 20:30:43 +07:00
Matthias Baesken
a9f34f3850 8316123: ProblemList serviceability/dcmd/gc/RunFinalizationTest.java on AIX
Backport-of: 36552e7193
2024-01-17 20:30:43 +07:00
Elif Aslan
75c90691e3 8311514: Incorrect regex in TestMetaSpaceLog.java
Backport-of: 9084b6c9d5
2024-01-17 20:30:42 +07:00
Sean Coffey
939eae1fab 8316087: Test SignedLoggerFinderTest.java is still failing
Backport-of: ff240a9135
2024-01-17 20:30:42 +07:00
Sean Coffey
753785788b 8315696: SignedLoggerFinderTest.java test failed
Backport-of: e409d07ae8
2024-01-17 20:30:42 +07:00
Sean Coffey
88f129f26c 8314263: Signed jars triggering Logger finder recursion and StackOverflowError
Backport-of: 7daae1fb42
2024-01-17 20:30:41 +07:00
Aleksey Shipilev
9b5cda510c 8299614: Shenandoah: STW mark should keep nmethod/oops referenced from stack chunk alive
Backport-of: ece9bdfc83
2024-01-17 20:30:41 +07:00
Gui Cao
d062ffd38d 8315931: RISC-V: xxxMaxVectorTestsSmokeTest fails when using RVV
Backport-of: 4070829ae5
2024-01-17 20:30:41 +07:00
Rob McKenna
dca4cbcaec 8315702: jcmd Thread.dump_to_file slow with millions of virtual threads
Backport-of: 3c258ac907
2024-01-17 20:30:41 +07:00
Rob McKenna
c626930ca7 8314759: VirtualThread.parkNanos timeout adjustment when pinned should be replaced
Backport-of: d9fc6b6933
2024-01-17 20:30:40 +07:00
Rob McKenna
9d9042a047 8312166: (dc) DatagramChannel's socket adaptor does not release carrier thread when blocking in receive
Backport-of: 028068a655
2024-01-17 20:30:40 +07:00
Rob McKenna
f5753ba95e 8309545: Thread.interrupted from virtual thread needlessly resets interrupt status
Backport-of: 97df6cf55a
2024-01-17 20:30:40 +07:00
Aleksey Shipilev
633c0070f0 8316113: Infinite permission checking loop in java/net/spi/InetAddressResolverProvider/RuntimePermissionTest
Backport-of: 947dee7f2d
2024-01-17 20:30:40 +07:00
Matthias Baesken
9474939f15 8314121: test tools/jpackage/share/RuntimePackageTest.java#id0 fails on RHEL8
Backport-of: 8107eab3c0
2024-01-17 20:30:39 +07:00
Aleksey Shipilev
af543a91bd 8308452: Extend internal Architecture enum with byte order and address size
8310982: jdk/internal/util/ArchTest.java fails after JDK-8308452 failed with Method isARM()

Backport-of: d6dd0dc3e0
2024-01-17 20:30:39 +07:00
Matthias Baesken
cb2ee2b0ac 8315751: RandomTestBsi1999 fails often with timeouts on Linux ppc64le
Backport-of: 9887cd8adc
2024-01-17 20:30:39 +07:00
Joachim Kern
083534f827 8313873: java/nio/channels/DatagramChannel/SendReceiveMaxSize.java fails on AIX due to small default RCVBUF size and different IPv6 Header interpretation
Backport-of: 486fa08d4b
2024-01-17 20:30:38 +07:00
Jan Lahoda
38570fc4c4 8313792: Verify 4th party information in src/jdk.internal.le/share/legal/jline.md
Backport-of: 87a6acbeee
2024-01-17 20:30:38 +07:00
Christoph Langer
b6e2412226 8314094: java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges
Backport-of: 69c9ec92d0
2024-01-17 20:30:38 +07:00
William Kemper
3a8248a466 8314935: Shenandoah: Unable to throw OOME on back-to-back Full GCs
Backport-of: 716201c77d
2024-01-17 20:30:38 +07:00
Jan Lahoda
1834eb285b 8315735: VerifyError when switch statement used with synchronized block
Backport-of: 726c9c977d
2024-01-17 20:30:37 +07:00
Sidraya Jayagond
7641d0e7fe 8311630: [s390] Implementation of Foreign Function & Memory API (Preview)
Backport-of: ec1f7a8480
2024-01-17 20:30:37 +07:00
Matthias Baesken
44bceadabc 8311631: When multiple users run tools/jpackage/share/LicenseTest.java, Permission denied for writing /var/tmp/*.files
Reviewed-by: asemenyuk
Backport-of: fac9f88c52
2024-01-17 20:30:37 +07:00
Matthias Baesken
fcc0fb20e4 8311938: Add default cups include location for configure on AIX
Backport-of: c4b8574b94
2024-01-17 20:30:37 +07:00
Andreas Steiner
9955e14f83 8312466: /bin/nm usage in AIX makes needs -X64 flag
Backport-of: 44576a7cca
2024-01-17 20:30:36 +07:00
Matthias Baesken
d7b4ecaca2 8315214: Do not run sun/tools/jhsdb tests concurrently
Backport-of: 1e7e2bcf35
2024-01-17 20:30:36 +07:00
Rajat Mahajan
cf44290faa 8311585: Add JRadioButtonMenuItem to bug8031573.java
Backport-of: 4f90abaf17
2024-01-17 20:30:36 +07:00
Christian Stein
f3cd8f0ea2 8315863: [GHA] Update checkout action to use v4
Backport-of: b74805d383
2024-01-17 20:30:36 +07:00
Terry Chow
8abdd092e0 8308593: Add KEEPALIVE Extended Socket Options Support for Windows
Backport-of: f3ade388da
2024-01-17 20:30:35 +07:00
Aleksey Shipilev
726ec03261 8315549: CITime misreports code/total nmethod sizes
Reviewed-by: kvn
Backport-of: ab12c5d32f
2024-01-17 20:30:35 +07:00
Vladimir Kempik
747b5e486a 8315612: RISC-V: intrinsic for unsignedMultiplyHigh
Backport-of: 5d3fdc1750
2024-01-17 20:30:35 +07:00
Robbin Ehn
a5ec8ea70a 8315206: RISC-V: hwprobe query is_set return wrong value
Backport-of: 876a725af9
2024-01-17 20:30:35 +07:00
Jan Lahoda
34d982cc74 8315452: Erroneous AST missing modifiers for partial input
Reviewed-by: asotona, vromero
Backport-of: 84425a6290
2024-01-17 20:30:34 +07:00
Aleksey Shipilev
2046a7ef84 8314495: Update to use jtreg 7.3.1
Reviewed-by: phh
Backport-of: c50315de8f
2024-01-17 20:30:34 +07:00
Mandy Chung
774dfe48bc 8315383: jlink SystemModulesPlugin incorrectly parses the options
8311591: Add SystemModulesPlugin test case that splits module descriptors with new local variables defined by DedupSetBuilder

Reviewed-by: phh
Backport-of: ea5aa61c8c
2024-01-17 20:30:34 +07:00
Aleksey Shipilev
fe45b485a6 8313167: Update to use jtreg 7.3
Backport-of: 9c6eb67e85
2024-01-17 20:30:33 +07:00
Rob McKenna
1fd6998976 8315688: Update jdk21u fix version to 21.0.2
Reviewed-by: mdoerr, coffeys
2024-01-17 20:29:41 +07:00
Christian Hagedorn
76cda3c028 8313760: [REDO] Enhance AES performance
Co-authored-by: Andrew Haley <aph@openjdk.org>
Reviewed-by: adinn, sviswanathan, rhalade, kvn, dlong
Backport-of: 49ddb19972
2024-01-17 20:29:12 +07:00
Christian Hagedorn
6442e93489 8313756: [BACKOUT] 8308682: Enhance AES performance
Backport-of: 207bd00c51
2024-01-17 20:29:11 +07:00
Ramesh Bhagavatam Gangadhar
25d4eb8016 8309305: sun/security/ssl/SSLSocketImpl/BlockedAsyncClose.java fails with jtreg test timeout
Reviewed-by: ssahoo
Backport-of: 8042a50b99
2024-01-17 20:29:11 +07:00
pavel_kharskii
67af6b32d5 8311681: Update the Jan CPU24_01 release date in master branch after forking Oct CPU23_10
Reviewed-by: coffeys
2024-01-17 20:29:11 +07:00
Ravi Reddy
d6fe8dcc84 8311680: Update the release version after forking Oct CPU23_10
Reviewed-by: robm
2024-01-17 20:29:11 +07:00
Sean Mullan
07165405a7 8308204: Enhanced certificate processing
Reviewed-by: jnimeh
Backport-of: ef0ea85bf1398b73bd308ba2b395c917b449aa3b
2024-01-17 20:29:10 +07:00
Vitaly Provodin
25d6e5c49f update exclude list on results of 21.0.1_b334.1 test runs 2024-01-17 20:25:38 +07:00
Dmitry Batrak
3cadc16ca0 JBR-6449 Introduce FontMetricsAccessor into JBR API
JBRE-MR-368

(cherry picked from commit f0d5a907ac)
2024-01-16 14:03:14 +02:00
Nikita Gubarkov
53f674d581 JBR-5837 retrieve up-to-date default screen device in FullscreenWindowProps test.
Calling setDisplayMode() or setFullScreenWindow() may cause display reconfiguration.
2024-01-12 18:05:10 +01:00
Dmitrii Morskii
477e644815 JBR-3098 move repaintPeer event from AppKit thread to EDT on macos 2024-01-12 17:31:02 +01:00
bourgesl
e05cf112f0 JBR-6505: removed extra setNeedDisplay() in startRedrawIfNeeded() to restore JavaDraw performance (more frames rendered than real vsync FPS)
(cherry picked from commit be91bc02530ff56c9a706f3851c003d9c1722a80)
2024-01-12 15:50:24 +01:00
Nikita Gubarkov
2790cd8b0b JBR-6264 Improved coordinate conversion in XWayland mode 2024-01-12 15:23:14 +01:00
Vitaly Provodin
45ba91253c update exclude list on results of 21.0.1_b331.1 test runs 2024-01-12 10:49:12 +07:00
Alexander Lobas
2ab60edd40 Merge pull request #265 from alexander-lobas/jbr21
Update AWTWindow.m
2024-01-11 20:42:34 +03:00
Alexander Lobas
2da0b35360 Update AWTWindow.m
Fix typo mistake
2024-01-11 20:40:44 +03:00
Dmitry Batrak
6f0fc2cc8f JBR-2651 jb/java/awt/Focus/PopupIncomingFocusTest.java intermittently fails by java.util.concurrent.TimeoutException
further attempt to stabilize test

(cherry picked from commit 50933cd23e)
(cherry picked from commit 6d2017b6a3fe9161810f2d4a550454da989ead41)
2024-01-05 12:11:47 +02:00
Maxim Kartashev
d8f2bdb21f JBR-6452 Wayland: avoid copying entire surface buffers 2024-01-03 18:28:01 +04:00
Vitaly Provodin
f132a9597f update exclude list on results of 21.0.1_b327 test runs 2024-01-03 11:05:37 +07:00
Vitaly Provodin
4f77d022aa update exclude list on results of 21.0.1_b325.2 test runs 2024-01-03 04:52:48 +07:00
Maxim Kartashev
21062b021e JBR-6452 Wayland: measure and improve surface buffer management
Improved rendering performance by
* reducing memory copy and making it more efficient,
* tying the next frame display to the frame event from Wayland,
  which dramatically reduces load for very quick Swing apps,
* limiting the number of buffers to 2.
2023-12-28 17:13:47 +04:00
Vitaly Provodin
7c4782fcf0 update exclude list on results of 21.0.1_b321.2 test runs 2023-12-28 18:09:30 +07:00
Vitaly Provodin
afa522d0b1 JBR-6454 add synchronization at disposing windows 2023-12-27 20:12:05 +07:00
bourgesl
7084e04b3d fixup! JBR-6377: fixed MTLLayer.redrawCount = 1 to avoid extra redraws with multiple windows
(cherry picked from commit acca2a46cb)
2023-12-23 14:49:52 +01:00
Alexey Ushakov
e95b9136f2 fixup! JBR-5621 Test failures with -Dsun.java2d.metal.displaySync=false 2023-12-23 12:00:34 +01:00
bourgesl
15b700cf3f JBR-6241: RenderPerf 23.12: remove older RenderPerfTest in src
(cherry picked from commit 47750067a1)
2023-12-22 16:16:02 +01:00
bourgesl
5a4f931f73 JBR-6241: RenderPerf 23.11 improvements: support parallel rendering on several frames and screens, refined Robot executor to use rounded duration (to 120Hz) and interval between viewed frames, added new command-line arguments
(cherry picked from commit 93e1f77450)
2023-12-22 16:16:02 +01:00
bourgesl
7698957b81 JBR-6377: fixed MTLLayer.redrawCount = 1 to avoid extra redraws with multiple windows
(cherry picked from commit 82c930da5f)
2023-12-22 16:15:40 +01:00
Dmitrii Morskii
317be56a4c Revert "JBR-6346 update Inter font version"
This reverts commit 0c68438ee5.
2023-12-21 19:35:28 +00:00
Alexey Ushakov
227110f74f JBR-5621 Test failures with -Dsun.java2d.metal.displaySync=false
Created intermediate buffer in the MTLLayer
Implemented frame separation of window updates for AWT and Swing
Remove frame delays as they greatly affect throughput
Fixed test/jdk/sun/java2d/GdiRendering/ClipShapeRendering.java
Resolved crash on multi-GPU systems
2023-12-21 19:32:10 +01:00
Dmitrii Morskii
d8ecbedcc3 JBR-6372 Wayland:
-correctly positioning SplashScreen on multiple monitors;
-correctly correctly handles cases of SplashScreen with gif with transparent parts;
-refactoring;
2023-12-20 16:13:18 +01:00
Alexey Ushakov
469636eebf JBR-6445 Prepare RepaintManager code for displaySync=false
Refactored AWTAccessor code
2023-12-20 11:11:11 +01:00
Maxim Kartashev
998c4c5208 JBR-6340 Popups displayed shifted after moving IDE to another monitor via shortcut with auto-maximize enabled in Mutter
Windows no longer change their "native" size when moved between monitors
with different scale on Linux. Use -Dresize.with.scale=true to revert
that.
2023-12-20 12:57:25 +04:00
Dmitry Batrak
dd80438af6 JBR-6436 crash in jb/java/awt/Focus/FullScreenFocusStealing.java and jb/java/awt/Window/FullScreenTwoFrames.java
(cherry picked from commit 98b3ac5221)
(cherry picked from commit 9d631697bf19e036dede03bd350cdeca3b672814)
2023-12-19 14:43:53 +02:00
Alexey Ushakov
8b47697a52 JBR-6433 Rounded corners of popups disappear after a while
Removed opacity from CAMetalLayer for layers with rounded corners
2023-12-18 17:24:28 +01:00
Dmitry Batrak
895efb402b JBR-5961 Wayland: can't switch between projects using menu
fix activation not working on Ubuntu 23 (mutter 45.2), after a mouse button has been pressed in the originally active window
2023-12-15 20:34:45 +02:00
Dmitry Batrak
944744c8ee JBR-2651 jb/java/awt/Focus/PopupIncomingFocusTest.java intermittently fails by java.util.concurrent.TimeoutException 2023-12-15 15:17:33 +02:00
Vitaly Provodin
bbcca84a2d update exclude list on results of 21.0.1_b310.2 test runs 2023-12-15 07:26:53 +04:00
Dmitrii Morskii
0c68438ee5 JBR-6346 update Inter font version 2023-12-14 17:32:31 +01:00
Nikita Provotorov
0d488a6314 JBR-4687: Japanese IME input window hides what is being typed.
Uses CFS_EXCLUDE instead of CFS_CANDIDATEPOS in the ::ImmSetCandidateWindow() native API, which is more powerful and allows to take into account the issue's case.

(cherry picked from commit 0afe6c37bb)
2023-12-14 14:22:39 +01:00
Alexander Lobas
e527571582 Merge pull request #261 from alexander-lobas/jbr21
JBR-6418 New macOS full-screen controls appear shifted down sometimes
2023-12-12 16:41:15 +03:00
Alexander Lobas
6cc5f2baba JBR-6418 New macOS full-screen controls appear shifted down sometimes 2023-12-12 16:40:17 +03:00
Maxim Kartashev
597d19a912 JBR-6416 Wayland: IDEA maximize button out of sync sometimes 2023-12-12 11:17:54 +04:00
Nikita Tsarev
a42b012ef0 JBR-6215: Override XToolkit's default nonintuitive behavior when translating F13-F24 keys 2023-12-09 18:41:01 +01:00
Sergey Shelomentsev
4b58f89a9a JBR-6354 fix custom title bar tests to avoid failure in MacOS 14 fullscreen mode
- moved common logic to a separate part
- moved parts of tests to swing package
2023-12-07 21:00:48 +02:00
Maxim Kartashev
df3bd87bee JBR-6391 Wayland: memory indicator tooltip flickers 2023-12-07 19:20:00 +04:00
Maxim Kartashev
0eb8209ab1 JBR-6395 8321183: Incorrect warning from cds about the modules file
Reviewed-by: ccheung, iklam
2023-12-06 12:21:33 +04:00
Vitaly Provodin
9f4e6662e9 update exclude list on results of 21.0.1_b306.2 test runs 2023-12-06 11:35:04 +07:00
Nikita Provotorov
13efa95553 JBR-6381: A lot of messages "xInputMethodConnection == NULL" in stderr.
Disables on of the printfs that causes the issue.

(cherry picked from commit c57030a2ef)
2023-12-02 00:40:30 +01:00
Nikita Provotorov
b5cf148c6a Update README.md.
Updates information about required packages for Linux development.
2023-12-01 22:29:45 +01:00
Nikita Provotorov
d04a3e17d7 Update README.md.
Adds information about 2023.2 and 2023.3 releases.

(cherry picked from commit 6aebe7dd66)
2023-12-01 22:13:05 +01:00
Vitaly Provodin
c9a508432d update exclude list on results of 21.0.1_b303.1 test runs 2023-11-28 20:37:07 +07:00
Vitaly Provodin
2787f34824 JBR-3902 create jbr_all test group 2023-11-28 20:37:07 +07:00
Nikita Provotorov
77d9ec21cf JBR-6282: java/awt/TextArea/TextAreaEditing/TextAreaEditing.java intermittently fails due to deadlock.
Makes the test invoke any UI-operation on EDT only (since AWT doesn't guarantee thread-safety of UI operations, see more at https://mail.openjdk.org/pipermail/client-libs-dev/2023-November/016172.html).

(cherry picked from commit 8dbb889509)
2023-11-27 23:40:52 +01:00
Dmitrii Morskii
69b08c737c JBR-6213 Wayland: removed blurring on cursor on multiple monitors with different scales 2023-11-27 16:36:16 +01:00
Nikita Tsarev
603cbc244f JBR-6331: Fix some memory safety issues in macOS keyboards 2023-11-27 14:03:36 +01:00
Nikita Provotorov
3a897b7784 JBR-6125: macOS14 java/awt/Window/Grab/GrabTest.java Frame can't be focused.
Fixes a data race in the test.

(cherry picked from commit 281211d5a748e460cea4f5ab1e3889ed9588df0c)
(cherry picked from commit ca5562225a)
2023-11-24 21:03:37 +01:00
Dmitry Batrak
b669d658b3 JBR-5751 java/awt/Focus/RowToleranceTransitivityTest.java: Focus got stuck while traversing.
(cherry picked from commit fb22b86eaeb61eec34d205419151ba845cdd397c)
2023-11-24 18:00:06 +02:00
Maxim Kartashev
69e5dcd065 JBR-6276 Wayland: WLToolkit logs too much
Changed the logging level for such messages to FINE
2023-11-24 17:02:35 +04:00
Vitaly Provodin
be6842220b JBR-6246 add default CDS archives into jbrsdk distributions and remove the step normalizing timestamp 2023-11-24 18:42:44 +07:00
Vitaly Provodin
9bbc81006a fixup! JBR-4511 remove --disable options from configure mac-aarch64 builds & unify configure for x64 and aarch64 2023-11-24 18:42:17 +07:00
Vitaly Provodin
e413bc69d7 update exclude list on results of 21.0.1_b293.3 test runs 2023-11-23 07:06:59 +07:00
Dmitry Drobotov
983139bd89 JBR-4479 Add text caret tracking for macOS Accessibility Zoom
(cherry picked from commit 0dfbf34b37)
2023-11-21 13:44:45 +01:00
Dmitry Drobotov
556f48375a JBR-6194 Fix VoiceOver reading old JComboBox value after changing it
1. Remove `value == nil` check in ComboBoxAccessiblity.accessibilityValue to fix the issue with not updated value of combo box. With `value == nil` check, the value was not reassigned on every get request of `accessibilityValue`, but only on get `accessibilitySelectedChildren`. When changing focus by Tab, only get `accessibilityValue` is called, and because `value` is already not nil, an old value was returned.

2. Set combo box role to NSAccessibilityPopUpButtonRole if it's not editable. Setting role to popup button fixes the bug when combo box value was not updated when using VO cursor navigation. Native MacOS non-editable combo boxes and non-editable HTML <select> elements also have the "popup button" role instead of "combo box", so the role should become more clear. Popup button role additionally enables opening the combo box menu with VO+Space shortcut, and changes VO instructions to be more appropriate when combo box is focused.

3. Add test for VoiceOver-specific issues of JComboBox.

(cherry picked from commit 8982db51d7)
2023-11-21 13:44:43 +01:00
Maxim Kartashev
4a8b300f2b JBR-6316 Wayland: WLSMSurfaceData.getReplacement() throws UOE
Also fixed the keyboard repeat manager so that it does not prevent
application from shutting down.
Also improved fullscreen support.
2023-11-21 15:03:37 +04:00
Maxim Kartashev
4b7d649cd6 JBR-6321 Wayland: popup windows do not respect screen bounds 2023-11-20 17:06:17 +04:00
Maxim Kartashev
5fe3e85c91 JBR-6313 Wayland: pasting from clipboard doesn't always work
Also added a flush-to-server command following each Wayland request
2023-11-20 15:02:35 +04:00
Maxim Kartashev
dab4ca13d8 JBR-6291 runtime/cds/appcds/dynamicArchive/TestDynamicDumpAtOom.java: Attempting to acquire lock OOMEStacks_lock/safepoint out of order 2023-11-20 12:44:09 +04:00
Vitaly Provodin
1dfc0d359d update exclude list on results of 21.0.1_b293.1 test runs 2023-11-16 05:20:42 +07:00
Vitaly Provodin
354610e9c5 update exclude list on results of 21.0.1_b286.4 test runs 2023-11-15 09:41:39 +07:00
Alexey Ushakov
78be8d231c JBR-6281 Remove MTLEvent sync from Metal rendering code
Removed sync code
2023-11-14 17:14:37 +01:00
Nikita Gubarkov
6dd845c6a3 JBR-5274 recreate CGraphicsDevice if it was changed.
- AWT code heavily relies on reference comparison when updating graphics devices & configurations, so we need to actually re-create CGraphicsDevice if it was changed.

- Also do not rely on graphicsConfig.getDefaultTransform() when firing `graphicsContextScaleTransform` property change, as graphics devices are mutable and returned default transform may change over time, e.g. when device is invalidated.
2023-11-14 15:38:03 +01:00
Maxim Kartashev
3b06c8988f JBR-6193 Impossible to resize snapped IDE when native header is turned off
Drop the maximized state right before the resize operation for
undecorated windows.

Also fixes setExtendedState() to work when changing snapped window's state
(MAXIMIZED_HORIZ or MAXIMIZED_VERT) to NORMAL.
2023-11-13 12:27:57 +04:00
Maxim Kartashev
287e065beb JBR-6276 Wayland: WLToolkit logs too much 2023-11-13 12:25:39 +04:00
Nikita Provotorov
60d09c6597 fixup! JBR-5980: Pasting from clipboard not working reliably in Windows.
(also fixes JBR-6267: Image retreived from the Clipboard is not the same image that was set to the Clipboard)

- Sets the system property awt.windows.clipboard.cache.disabled to false by default ;
- Adds memory barriers around the native flag AwtClipboard::isOwner ;
- Allows back WM_ACTIVATEAPP messages to reach ::DefWindowProc .
2023-11-11 22:13:30 +01:00
Nikita Provotorov
845c60f3bb fixup! JBR-5980: Pasting from clipboard not working reliably in Windows.
Adds memory barriers around the native flag AwtClipboard::isGettingOwnership.
2023-11-11 22:13:29 +01:00
Dmitrii Morskii
5ae7a8673a fixup! JBR-5965 Wayland: implement SplashScreen 2023-11-11 13:59:16 +01:00
Vitaly Provodin
f49a25c680 update exclude list on results of 21.0.1_b280.6 test runs 2023-11-11 06:45:44 +07:00
Alexander Lobas
fb90b5c110 JBR-5546 Iterating open windows with cmd backtick on Mac forces minimized windows to un-minimize 2023-11-10 23:57:20 +01:00
Alexander Lobas
7bd15f1934 JBR-5478 IDEA window doesn't fit the screen properly on turning off/on an external monitor 2023-11-10 23:57:20 +01:00
Alexander Lobas
d2d0488bc3 JBR-5409 "No Print Service Found" Error when saving to PDF 2023-11-10 23:52:53 +01:00
Alexander Lobas
0147cba952 JBR-5384 New UI: window header is hard to resize on the top edge, top/right corner 2023-11-10 23:52:53 +01:00
Alexander Lobas
540d5a32c4 JBR-5174 Opening project as tabs in Mac OS (version2)
JBR-5023 Configure TabbingIdentifier during create native window
JBR-5256 IDEA window resizes to zero height when exit full-screen mode with new window controls enabled
JBR-5197 Window control buttons are not visible in full-screen mode in dark themes when IDE window is focused
JBR-5175 jb/java/awt/Window/FullScreenTwoFrames.java: -[AWTWindow resetWindowFullScreeControls]: unrecognized selector sent to instance 0x60000232d5f0
JBR-5499 Window control buttons bugfix
JBR-4462 BigSur: project tab does not gain focus when click it after focusing another app
2023-11-10 23:52:52 +01:00
Alexander Lobas
54f70cfc23 JBR-4834 JBR-5139 Rounded corners on Mac OS and Windows: support custom border color 2023-11-10 23:52:11 +01:00
Dmitrii Morskii
0b777f2360 fixup! JBR-5965 Wayland: implement SplashScreen 2023-11-10 20:04:00 +01:00
Nikita Tsarev
b9b029b357 JBR-5678: Refactor Wayland keyboard support 2023-11-10 14:34:37 +01:00
Nikita Provotorov
a151e238d3 JBR-2460: Wrong position of input window and no input preview with fcitx and ubuntu 13.04.
This patch makes the fix of JBR-1573 (which caused JBR-4394) disabled by default, because it's incompatible with the native below-the-spot mode (a.k.a. over-the-spot in the X11's terminology).

(cherry picked from commit 3fe2a97aa0)
2023-11-09 22:27:16 +01:00
Nikita Provotorov
1775a1cfcf JBR-2460: Wrong position of input window and no input preview with fcitx and ubuntu 13.04.
- introduces and integrates jbNewXimClient: a new implementation of XIC creation routine (it's mostly refactoring and generalizing of AWT's existed code). Enabled by default and can be disabled via a new system property -Djb.awt.newXimClient.enabled=false ;
- introduces support of the X11's native over-the-spot input method style (it's almost the same as AWT's below-the-spot mode, but the input method's windows are drawn externally, not by AWT). Enabled by default and can be disabled via a new system property -Djb.awt.newXimClient.enabled=false. Doesn't work if -Djb.awt.newXimClient.enabled=false is set ;
- introduces sun.awt.X11.XInputMethod.ClientComponentCaretPositionTracker class that tracks all kind of events for the current client component that can lead to the caret position changing ;
- makes the XInputMethod class to update the input window's position (whenever the ClientComponentCaretPositionTracker discovers that's necessary) by setting the X11's XNSpotLocation property .

Check out the branch nprovotorov/backups/JBR-2460_wrong-position-of-input-window-and-no-input-preview for more granular patches.

(cherry picked from commit 826f75ee48)
2023-11-09 22:27:15 +01:00
Maxim Kartashev
0413f857ab JBR-6220 javax/swing/GraphicsConfigNotifier/StalePreferredSize.java became failing by time out on Linux 2023-11-07 13:29:58 +04:00
Nikita Provotorov
ab86812e28 JBR-5980: Pasting from clipboard not working reliably in Windows.
- Disables caching of the data placed into the clipboard. The behavior is controlled by the system property "awt.windows.clipboard.cache.disabled" (=true by default) ;
- Whenever the app gets focus additionally checks if another app has modified the clipboard. The behavior is controlled by the system property "awt.windows.clipboard.extraOwnershipChecksEnabled" (=true by default) .

(cherry picked from commit 473c41003d)
2023-11-06 13:47:56 +01:00
Nikita Provotorov
dad3d32da9 JBR-5980: Pasting from clipboard not working reliably in Windows.
Marks the native flag AwtClipboard::isGettingOwnership as volatile to avoid inconsistencies of CPU caches.

(cherry picked from commit b967f5bc91)
2023-11-06 13:47:48 +01:00
Dmitrii Morskii
0ba8323f49 fixup! JBR-5965 Wayland: implement SplashScreen 2023-11-04 16:58:34 +01:00
Dmitrii Morskii
825eb901c2 JBR-5965 Wayland: implement SplashScreen 2023-11-03 14:57:46 +01:00
Vitaly Provodin
0b6e65188d update exclude list on results of 21.0.1_b277.3 test runs 2023-11-03 20:15:56 +07:00
Maxim Kartashev
8bc89f222d JBR-6253 Wayland: can't run in weston because of xdg_wm_base version 3 2023-11-01 13:06:24 +04:00
Maxim Kartashev
b82fc5f02a JBR-6212 Wayland: app does not terminate upon Wayland protocol error 2023-11-01 12:17:46 +04:00
Vladimir Kharitonov
e29b134c47 JBR-6239 sign frameworks in cef_server.app 2023-10-31 15:52:53 +01:00
Vitaly Provodin
faff43cb95 update exclude list on results of 21.0.1_b270.3 test runs 2023-10-26 16:15:45 +07:00
Vitaly Provodin
3b769c378d fixup! 8312248: Enhanced archival support redux 2023-10-26 05:39:56 +07:00
Vitaly Provodin
a73783b4c4 JBR-4154 fix extracting version info from sources 2023-10-25 09:46:40 +07:00
Vitaly Provodin
b19dd54b28 fixup! JBR-6181 add Linux executables with bundled FreeType 2023-10-25 09:46:40 +07:00
Vladimir Kozlov
c3efc147d2 8317121: vector_masked_load instruction is moved too early after JDK-8286941
Reviewed-by: shade, vlivanov
Backport-of: cfabcbf858
2023-10-25 09:45:24 +07:00
Calvin Cheung
25bc0259d4 8314649: Enhanced archival support redux
Reviewed-by: iklam
2023-10-25 09:45:24 +07:00
Sean Mullan
29aa2eeac8 8309966: Enhanced TLS connections
Backport-of: d25ee81f56d67f2c51ba8b8c59f470c6f88ae47f
2023-10-25 09:45:23 +07:00
Calvin Cheung
77d852d248 8312248: Enhanced archival support redux
Backport-of: c2100a627d578901dffbbe631e5a6c9b88ca2209
2023-10-25 09:45:23 +07:00
pavel_kharskii
cc15e44d8b 8311682: Change milestone to fcs for all releases
Reviewed-by: coffeys
2023-10-25 09:45:23 +07:00
Prasadrao Koppula
e15c1dd7f8 8286503: Enhance security classes
Reviewed-by: wetmore
Backport-of: 7f5e120a631ffda3e6d5efc03bae572b21877b69
2023-10-25 09:45:23 +07:00
Jan Lahoda
bd4a1c5826 8313323: javac -g on a java file which uses unnamed variable leads to ClassFormatError when launching that class
Backport-of: adfc1d6cd2
2023-10-25 09:45:23 +07:00
Jan Lahoda
aeb212950c 8315534: Incorrect warnings about implicit annotation processing
Backport-of: 94a74a0a45
2023-10-25 09:45:23 +07:00
Martin Doerr
912bdf3d8c 8299658: C1 compilation crashes in LinearScan::resolve_exception_edge
Backport-of: cf2d33ca2e
2023-10-25 09:45:23 +07:00
airsquared
2319e12b5e 8309032: jpackage does not work for module projects unless --module-path is specified
Backport-of: dfe764e3f8
2023-10-25 09:45:23 +07:00
Roman Marchenko
b8b4f00c9d 8314024: SIGSEGV in PhaseIdealLoop::build_loop_late_post_work due to bad immediate dominator info
Reviewed-by: thartmann
Backport-of: ed1ea5fe7c
2023-10-25 09:45:23 +07:00
Alexander Scherbatiy
5eed624d8a 8311033: [macos] PrinterJob does not take into account Sides attribute
Backport-of: a3d67231a7
2023-10-25 09:45:23 +07:00
Aleksey Shipilev
6a8fe5883c 8315051: jdk/jfr/jvm/TestGetEventWriter.java fails with non-JVMCI GCs
Backport-of: 145d8bc1a3
2023-10-25 09:45:23 +07:00
Tobias Hartmann
344f6a777c 8313626: C2 crash due to unexpected exception control flow
Backport-of: f8203cb272
2023-10-25 09:45:23 +07:00
Ao Qi
2efe90455c 8315020: The macro definition for LoongArch64 zero build is not accurate.
Backport-of: 725ec0ce1b
2023-10-25 09:45:23 +07:00
Thomas Stuefe
49ecaa8e75 8312585: Rename DisableTHPStackMitigation flag to THPStackMitigation
Backport-of: 226cdc696d
2023-10-25 09:45:22 +07:00
Aleksey Shipilev
231bec2701 8314656: GHA: No need for Debian ports keyring installation after JDK-8313701
Backport-of: 76b9011c9e
2023-10-25 09:45:22 +07:00
Sergey Bylokhov
209c6bee4c 8312535: MidiSystem.getSoundbank() throws unexpected SecurityException
Backport-of: 87298d2ade
2023-10-25 09:45:22 +07:00
Alexander Matveev
d0ccbbab87 8308042: [macos] Developer ID Application Certificate not picked up by jpackage if it contains UNICODE characters
Backport-of: 57a322da9b
2023-10-25 09:45:22 +07:00
Chris Plummer
2186cf7412 8314679: SA fails to properly attach to JVM after having just detached from a different JVM
Backport-of: 38a9edfb7e
2023-10-25 09:45:22 +07:00
nibjen
25360cbb98 8312489: Increase jdk.jar.maxSignatureFileSize default which is too low for JARs such as WhiteSource/Mend unified agent jar
Reviewed-by: hchao
Backport-of: e47a84f23d
2023-10-25 09:45:22 +07:00
Matthias Baesken
0487e52815 8313691: use close after failing os::fdopen in vmError and ciEnv
Backport-of: 96304f37f8
2023-10-25 09:45:22 +07:00
Aleksey Shipilev
9379b05ecc 8313262: C2: Sinking node may cause required cast to be dropped
Backport-of: 1cee3b9fd9
2023-10-25 09:45:22 +07:00
Oli Gillespie
7e2f8a4119 8313874: JNI NewWeakGlobalRef throws exception for null arg
Backport-of: 028b3ae1b1
2023-10-25 09:45:22 +07:00
Oli Gillespie
cfc4c050a3 8313678: SymbolTable can leak Symbols during cleanup
Backport-of: 4b2703ad39
2023-10-25 09:45:22 +07:00
Thomas Stuefe
e8db310385 8314139: TEST_BUG: runtime/os/THPsInThreadStackPreventionTest.java could fail on machine with large number of cores
Backport-of: 7332502883
2023-10-25 09:45:22 +07:00
Andrew John Hughes
41fee9e215 8284772: GHA: Use GCC Major Version Dependencies Only
Backport-of: 7e843c22e7
2023-10-25 09:45:22 +07:00
Sidraya Jayagond
64479d7ab2 8309889: [s390] Missing return statement after calling jump_to_native_invoker method in generate_method_handle_dispatch.
Backport-of: 514816ed7d
2023-10-25 09:45:22 +07:00
Tyler Steele
eacc032c49 8309475: Test java/foreign/TestByteBuffer.java fails: a problem with msync (aix)
Backport-of: 395fc78880
2023-10-25 09:45:22 +07:00
Weibing Xiao
7771b08985 8314063: The socket is not closed in Connection::createSocket when the handshake failed for LDAP connection
Backport-of: f2383b3cbd
2023-10-25 09:45:21 +07:00
Thomas Stuefe
df7196fbba 8312620: WSL Linux build crashes after JDK-8310233
Backport-of: 25058cd23a
2023-10-25 09:45:21 +07:00
Thomas Stuefe
2f7800d8b1 8312182: THPs cause huge RSS due to thread start timing issue
8310687: JDK-8303215 is incomplete

Backport-of: 84b325b844
2023-10-25 09:45:21 +07:00
Thomas Stuefe
92e7de91ee 8303815: Improve Metaspace test speed
Backport-of: de0e46c2f6
2023-10-25 09:45:21 +07:00
Thomas Stuefe
09253b6333 8312394: [linux] SIGSEGV if kernel was built without hugepage support
Backport-of: 94eb44b192
2023-10-25 09:45:21 +07:00
Rajan Halade
318822fc47 8314960: Add Certigna Root CA - 2
Backport-of: e9ba8d5a0e
2023-10-25 09:45:21 +07:00
Patricio Chilano Mateo
8f23b927ce 8314850: SharedRuntime::handle_wrong_method() gets called too often when resolving Continuation.enter
Backport-of: 8e4240c316
2023-10-25 09:45:21 +07:00
Ben Taylor
24e0f40a32 8313796: AsyncGetCallTrace crash on unreadable interpreter method pointer
Backport-of: 0e2c72d7a5
2023-10-25 09:45:21 +07:00
Sean Coffey
986a132b17 8311592: ECKeySizeParameterSpec causes too many exceptions on third party providers
Backport-of: e554fdee25
2023-10-25 09:45:21 +07:00
Aleksey Shipilev
f52407b18e 8313701: GHA: RISC-V should use the official repository for bootstrap
Backport-of: 538f9557b8
2023-10-25 09:45:21 +07:00
Valerie Peng
17fd96ecc7 8309214: sun/security/pkcs11/KeyStore/CertChainRemoval.java fails after 8301154
Backport-of: ba6cdbe2c2
2023-10-25 09:45:21 +07:00
Roger Riggs
6d53ad1f88 8313312: Add missing classpath exception copyright header
Reviewed-by: bpb
Backport-of: 53ca75b18e
2023-10-25 09:45:21 +07:00
Aleksey Shipilev
81788680f8 8314020: Print instruction blocks in byte units
Backport-of: a602624ef4
2023-10-25 09:45:21 +07:00
Aleksey Shipilev
eaddbc06c1 8314730: GHA: Drop libfreetype6-dev transitional package in favor of libfreetype-dev
Backport-of: 69d900d2ce
2023-10-25 09:45:21 +07:00
Aleksey Shipilev
e6655ac474 8313901: [TESTBUG] test/hotspot/jtreg/compiler/codecache/CodeCacheFullCountTest.java fails with java.lang.VirtualMachineError
Backport-of: d1de3d082e
2023-10-25 09:45:20 +07:00
Alexey Ivanov
ad80a8af22 8312555: Ideographic characters aren't stretched by AffineTransform.scale(2, 1)
Ignore bitmaps embedded into fonts for non-uniform scales

Backport-of: 62610203f1
2023-10-25 09:45:20 +07:00
Matthias Baesken
ff79afb687 8314517: some tests fail in case ipv6 is disabled on the machine
Backport-of: 703817d21f
2023-10-25 09:45:20 +07:00
Matthias Baesken
8caae04364 8313602: increase timeout for jdk/classfile/CorpusTest.java
Backport-of: bdac348c80
2023-10-25 09:45:20 +07:00
Tyler Steele
119fa1793f 8312180: (bf) MappedMemoryUtils passes incorrect arguments to msync (aix)
Backport-of: fdac6a6ac8
2023-10-25 09:45:20 +07:00
Aleksey Shipilev
581a2aad23 8314501: Shenandoah: sun/tools/jhsdb/heapconfig/JMapHeapConfigTest.java fails
Backport-of: 812f475bc4
2023-10-25 09:45:20 +07:00
Aleksey Shipilev
afca23514f 8314426: runtime/os/TestTrimNative.java is failing on slow machines
Backport-of: 20e94784c9
2023-10-25 09:45:20 +07:00
Aleksey Shipilev
dce35c74cc 8313752: InstanceKlassFlags::print_on doesn't print the flag names
Backport-of: 735b16a696
2023-10-25 09:45:20 +07:00
Thomas Stuefe
8aa7819a6e 8310233: Fix THP detection on Linux
Backport-of: 37ca9024ef
2023-10-25 09:45:20 +07:00
David Holmes
d595bd9fa2 8311981: Test gc/stringdedup/TestStringDeduplicationAgeThreshold.java#ZGenerational timed out
Backport-of: f142470dea
2023-10-25 09:45:20 +07:00
Gui Cao
faba31cfa1 8314618: RISC-V: -XX:MaxVectorSize does not work as expected
Backport-of: a66b5df14a
2023-10-25 09:45:20 +07:00
Feilong Jiang
8ccf32d585 8314117: RISC-V: Incorrect VMReg encoding in RISCV64Frame.java
Backport-of: 5c91622885
2023-10-25 09:45:20 +07:00
Valerie Peng
4f101342ca 8302017: Allocate BadPaddingException only if it will be thrown
Backport-of: c27c87786a
2023-10-25 09:45:20 +07:00
Alexander Matveev
b7792c1b7c 8313904: [macos] All signing tests which verifies unsigned app images are failing
Reviewed-by: asemenyuk
Backport-of: ec0cc6300a
2023-10-25 09:45:20 +07:00
Aggelos Biboudis
3f2a8eefe4 8314423: Multiple patterns without unnamed variables
8314216: Case enumConstant, pattern compilation fails

Backport-of: 4331193010
2023-10-25 09:45:19 +07:00
Ben Taylor
3109817e37 8313765: Invalid CEN header (invalid zip64 extra data field size)
Backport-of: 13f6450e2e
2023-10-25 09:45:19 +07:00
Aleksey Shipilev
572c6f273a 8309591: Socket.setOption(TCP_QUICKACK) uses wrong level
Backport-of: 56a73a6f0f
2023-10-25 09:45:19 +07:00
Aleksey Shipilev
27bc02722a 8314262: GHA: Cut down cross-compilation sysroots deeper
Backport-of: 38687f1a3e
2023-10-25 09:45:19 +07:00
Thomas Schatzl
ce2871c888 8314144: gc/g1/ihop/TestIHOPStatic.java fails due to extra concurrent mark with -Xcomp
Reviewed-by: ayang
Backport-of: 1925508425
2023-10-25 09:45:19 +07:00
Raffaello Giulietti
58c85dfe31 8312976: MatchResult produces StringIndexOutOfBoundsException for groups outside match
Reviewed-by: rriggs
Backport-of: 61c58fdd00
2023-10-25 09:45:19 +07:00
Mandy Chung
3fef4fe04c 8240567: MethodTooLargeException thrown while creating a jlink image
Reviewed-by: phh
Backport-of: ec7da91bd8
2023-10-25 09:45:19 +07:00
Weibing Xiao
d33282c39a 8313657: com.sun.jndi.ldap.Connection.cleanup does not close connections on SocketTimeoutErrors
Backport-of: e56d3bc2da
2023-10-25 09:45:19 +07:00
Abhishek Kumar
6fa2c70b07 8311160: [macOS, Accessibility] VoiceOver: No announcements on JRadioButtonMenuItem and JCheckBoxMenuItem
Reviewed-by: asemenov, kizune
Backport-of: c1f4595e64
2023-10-25 09:45:19 +07:00
Matthias Baesken
3452504ee4 8311511: Improve description of NativeLibrary JFR event
Backport-of: 848abd2831
2023-10-25 09:45:19 +07:00
Aleksey Shipilev
32aed8a740 8310106: sun.security.ssl.SSLHandshake.getHandshakeProducer() incorrectly checks handshakeConsumers
Backport-of: db133dbc02
2023-10-25 09:45:19 +07:00
Aleksey Shipilev
666f684622 8314118: Update JMH devkit to 1.37
Backport-of: 06aa3c5628
2023-10-25 09:45:19 +07:00
Aleksey Shipilev
082d242e53 8312127: FileDescriptor.sync should temporarily increase parallelism
Reviewed-by: alanb
Backport-of: fbe51e388d
2023-10-25 09:45:19 +07:00
Aleksey Shipilev
863d0d38a0 8312625: Test serviceability/dcmd/vm/TrimLibcHeapTest.java failed: RSS use increased
Reviewed-by: stuefe
Backport-of: 117f42dbe9
2023-10-25 09:45:19 +07:00
Aleksey Shipilev
8fb4cda937 8313307: java/util/Formatter/Padding.java fails on some Locales
Backport-of: 408987e1ca
2023-10-25 09:45:18 +07:00
Aleksey Shipilev
5b7e8bd59c 8308474: DSA does not reset SecureRandom when initSign is called again
Reviewed-by: valeriep
Backport-of: bed9161c81
2023-10-25 09:45:18 +07:00
Aleksey Shipilev
b94ed3592d 8313248: C2: setScopedValueCache intrinsic exposes nullptr pre-values to store barriers
Backport-of: e8a37b90db
2023-10-25 09:45:18 +07:00
Aleksey Shipilev
5ca9d6a458 8312525: New test runtime/os/TestTrimNative.java#trimNative is failing: did not see the expected RSS reduction
Reviewed-by: stuefe
Backport-of: ad34be1f32
2023-10-25 09:45:18 +07:00
Aleksey Shipilev
1f20ac5bd6 8293114: JVM should trim the native heap
Reviewed-by: stuefe
Backport-of: 9e4fc568a6
2023-10-25 09:45:18 +07:00
Ravi Reddy
2a592da963 8308047: java/util/concurrent/ScheduledThreadPoolExecutor/BasicCancelTest.java timed out and also had jcmd pipe errors
Backport-of: 8c9d091f19
2023-10-25 09:45:18 +07:00
Aleksey Shipilev
e8ca1144e4 8313676: Amend TestLoadIndexedMismatch test to target intrinsic directly
Backport-of: 4b192a8dc3
2023-10-25 09:45:18 +07:00
Aleksey Shipilev
310650a2da 8313402: C1: Incorrect LoadIndexed value numbering
Reviewed-by: thartmann
Backport-of: 46fbedb2be
2023-10-25 09:45:18 +07:00
Aleksey Shipilev
2029c48fee 8313707: GHA: Bootstrap sysroots with --variant=minbase
Backport-of: 29f1d8ef50
2023-10-25 09:45:18 +07:00
Sergey Bylokhov
0a0814106a 8313576: GCC 7 reports compiler warning in bundled freetype 2.13.0
Backport-of: 8248e351d0
2023-10-25 09:45:18 +07:00
Tobias Hartmann
a4dba8b9a1 8312909: C1 should not inline through interface calls with non-subtype receiver
Backport-of: ab1c212ac1
2023-10-25 09:45:18 +07:00
Tobias Hartmann
852cc0d462 8304954: SegmentedCodeCache fails when using large pages
Backport-of: cad6114e1c
2023-10-25 09:45:18 +07:00
Christoph Langer
22002b37cd 8311926: java/lang/ScopedValue/StressStackOverflow.java takes 9mins in tier1
Backport-of: 7304316a8c
2023-10-25 09:45:18 +07:00
Jan Lahoda
35a47c6833 8312619: Strange error message when switching over long
Backport-of: cc2a75e11c
2023-10-25 09:45:18 +07:00
Jan Lahoda
e4e6cd9f72 8312984: javac may crash on a record pattern with too few components
Backport-of: c386091734
2023-10-25 09:45:17 +07:00
Jiangli Zhou
07fdb725ad 8312401: SymbolTable::do_add_if_needed hangs when called in InstanceKlass::add_initialization_error path with requesting length exceeds max_symbol_length
Backport-of: 36f3bae556
2023-10-25 09:45:17 +07:00
Christoph Langer
feb04e1262 8310211: serviceability/jvmti/thread/GetStackTrace/getstacktr03/getstacktr03.java failing
Backport-of: 16134f4422
2023-10-25 09:45:17 +07:00
Christoph Langer
a9185c18aa 8308609: java/lang/ScopedValue/StressStackOverflow.java fails with "-XX:-VMContinuations"
8310586: ProblemList java/lang/ScopedValue/StressStackOverflow.java#default with virtual threads on linux-all

Reviewed-by: mbaesken, alanb
Backport-of: 44a8aa0691
2023-10-25 09:45:17 +07:00
Matthias Baesken
787cb82170 8311955: c++filt is now ibm-llvm-cxxfilt when using xlc17 / clang on AIX
Backport-of: 0328886450
2023-10-25 09:45:17 +07:00
Aleksey Shipilev
9c01ab932c 8313428: GHA: Bump GCC versions for July 2023 updates
Backport-of: ec2f38fd38
2023-10-25 09:45:17 +07:00
Aleksey Shipilev
4e8632a443 8312591: GCC 6 build failure after JDK-8280982
Backport-of: 9454b2bbe1
2023-10-25 09:45:17 +07:00
Vladimir Kempik
553f1a32d0 8310268: RISC-V: misaligned memory access in String.Compare intrinsic
Backport-of: d6245b6832
2023-10-25 09:45:17 +07:00
Aleksey Shipilev
8a15b90086 8307766: Linux: Provide the option to override the timer slack
Reviewed-by: stuefe
Backport-of: 7173c3009e
2023-10-25 09:45:17 +07:00
Tobias Hartmann
c897d45c33 8312573: Failure during CompileOnly parsing leads to ShouldNotReachHere
Reviewed-by: kvn, tholenstein
2023-10-25 09:45:17 +07:00
Matthias Baesken
072adeda9a 8312395: Improve assertions in growableArray
Backport-of: b772e67e29
2023-10-25 09:45:17 +07:00
Matthias Baesken
804501f741 8310321: make JDKOPT_CHECK_CODESIGN_PARAMS more verbose
Backport-of: 9eed049098
2023-10-25 09:45:17 +07:00
Matthias Baesken
11fce43f16 8311921: Inform about MaxExpectedDataSegmentSize in case of pthread_create failures on AIX
Backport-of: aa7367f1ec
2023-10-25 09:45:17 +07:00
Matthias Baesken
337e993f67 8311917: MAP_FAILED definition seems to be obsolete in src/java.desktop/unix/native/common/awt/fontpath.c
Backport-of: a38a421f62
2023-10-25 09:45:17 +07:00
Paul Hohensee
f5c9ee7113 8313081: MonitoringSupport_lock should be unconditionally initialized after 8304074
Backport-of: a9d21c61fb
2023-10-25 09:45:16 +07:00
Aleksey Shipilev
6c1bc9df2e 8309746: Reconfigure check should include make/conf/version-numbers.conf
Backport-of: 955fc2faba
2023-10-25 09:45:16 +07:00
Matthias Baesken
1243d1e435 8311026: Some G1 specific tests do not set -XX:+UseG1GC
Backport-of: a7d168b522
2023-10-25 09:45:16 +07:00
Matthias Baesken
f7e85e502e 8311285: report some fontconfig related environment variables in hs_err file
Backport-of: 0ef03f1228
2023-10-25 09:45:16 +07:00
Aleksey Shipilev
5551e8e51d 8311249: Remove unused MemAllocator::obj_memory_range
Backport-of: 711cddd899
2023-10-25 09:45:16 +07:00
Gui Cao
84aa3af790 8311923: TestIRMatching.java fails on RISC-V
Backport-of: e7adbdb1f1
2023-10-25 09:45:16 +07:00
Johny Jose
942297f61e 8308184: Launching java with large number of jars in classpath with java.protocol.handler.pkgs system property set can lead to StackOverflowError
Reviewed-by: jpai, coffeys
Backport-of: 268ec61d4f
2023-10-25 09:45:16 +07:00
Vladimir Kempik
3c9ff2c691 8311862: RISC-V: small improvements to shift immediate instructions
Backport-of: f3b96f6937
2023-10-25 09:45:16 +07:00
Feilong Jiang
6b1d4b44fc 8310873: Re-enable locked_create_entry symbol check in runtime/NMT/CheckForProperDetailStackTrace.java for RISC-V
Backport-of: 87e6fab2c4
2023-10-25 09:45:16 +07:00
Weibing Xiao
9f599104e8 8297856: Improve handling of Bidi characters
Backport-of: 244b89fc786894cb8cca742f91875ebb98b603ff
2023-10-25 09:45:16 +07:00
Weibing Xiao
2243b952cb 8296581: Better system proxy support
Reviewed-by: coffeys
Backport-of: 111811e64245ae720a0617b7de0c52c60bb2bac1
2023-10-25 09:45:16 +07:00
Vladimir Kempik
3f274e2f69 8309502: RISC-V: String.indexOf intrinsic may produce misaligned memory loads
Backport-of: 6b94289386
2023-10-25 09:45:16 +07:00
Rob McKenna
f69c0e622e 8310171: Bump version numbers for 21.0.1
Reviewed-by: iris, erikj
2023-10-25 09:45:16 +07:00
Alexey Ushakov
8d1f3a7a9e Revert "JBR-5965 Wayland: implement SplashScreen"
This reverts commit a6588d4b45.
2023-10-22 13:42:09 +02:00
Alexey Ushakov
1dbeb23fd4 Revert "fixup! JBR-5965 Wayland: implement SplashScreen"
This reverts commit a06582873c.
2023-10-22 13:41:20 +02:00
Dmitrii Morskii
a06582873c fixup! JBR-5965 Wayland: implement SplashScreen 2023-10-21 13:11:56 +02:00
Vitaly Provodin
1e2bb86176 fixup! JBR-6181 add Linux executables with bundled FreeType 2023-10-21 15:07:40 +07:00
Konstantin Bulenkov
fa5c69eeb9 JBR-6214 [fwp jbr21] IDEA-299292 Use Inter semibold instead of Inter bold
Replaced Inter bold with semi-bold fonts
2023-10-20 17:20:01 +02:00
Dmitrii Morskii
a6588d4b45 JBR-5965 Wayland: implement SplashScreen 2023-10-18 20:02:46 +02:00
Maxim Kartashev
5b97a03736 JBR-6209 Wayland: popup windows cannot be moved 2023-10-18 19:26:36 +04:00
Nikita Gubarkov
6d87c216f5 JBR-6208 Extended glyph cache for Metal 2023-10-17 21:25:50 +02:00
Maxim Kartashev
fe1a207eb5 JBR-5977 Wayland: make undecorated windows natively resizeable 2023-10-17 16:36:03 +04:00
Maxim Kartashev
fac167c65f JBR-6207 Wayland: many popup windows positioned incorrectly
When popup's parent is also its top-level window, use that instead of
null
2023-10-17 12:40:23 +04:00
Vitaly Provodin
0861698478 JBR-6181 add Linux executables with bundled FreeType 2023-10-13 06:53:18 +04:00
Alexey Ushakov
054df02388 JBR-4983 MacOS Ventura - External monitor lagging
Added extra redraw request
Enabled the fix by default only for M2 and spans displays property enabled (Displays have separate spaces OFF)
2023-10-10 13:56:26 +02:00
Maxim Kartashev
e4d4fa74d2 JBR-6142 Impossible to move/resize IDE window after restart if several projects were initially opened on secondary monitor
Announce to Mutter that we are "client-decorated" when a Frame is
undecorated by setting _GTK_FRAME_EXTENTS to all zeroes.
This prevents Mutter from applying certain harmful heuristics.
2023-10-10 15:31:47 +04:00
Maxim Kartashev
8d1d4351b9 JBR-6183 Wayland: clipboard-related exception in headless environment 2023-10-10 11:43:03 +04:00
Dmitrii Morskii
246e3a3de9 JBR-6135 removed dependence on process reading TTF in fixed size chunks 2023-10-09 15:01:15 +02:00
bourgesl
1b65d2d228 JBR-6119: RenderPerf enhancements:
new executor modes (buffer & volatile), robot calibration & more statistics and CLI arguments
added version + help information, added time unit

(cherry picked from commit 2afc66470aa3d3a77ab590b9e0eb4c799be432be)
2023-10-04 20:58:39 +02:00
Alexey Ushakov
474629f98a JBR-6132 Crash in [MTLLayer blitTexture] when MTL_DEBUG_LAYER enabled
Blit operation should not be performed on textures with MTLTextureUsageRenderTarget only, so changing framebufferOnly to NO
2023-10-04 16:12:47 +02:00
Nikita Gubarkov
76c483eec1 JBR-6144 Build JBR with Vulkan support
1. Update dockerfile to checkout Vulkan headers
2. Fix --with-vulkan-include configure option
2023-10-04 14:53:17 +02:00
Alexey Ushakov
7685c6b5f9 JBR-6158 Cannot build jbr21 with wayland toolkit on wsl2
Added --with-wayland-lib option to provide custom library path
2023-10-03 19:59:01 +02:00
Maxim Kartashev
6a1c5bd43a JBR-5857 Wayland: implement clipboard support 2023-10-02 19:38:31 +04:00
Dmitry Batrak
5e738482b1 JBR-6145 [Wayland toolkit] Popup windows aren't focusable
A partial solution. Cases not still covered:
* Alt+tab from the app and back should keep popup focused if it was focused initially
* Mouse clicks between popup and owner should transfer focus as expected
2023-09-29 20:14:01 +03:00
Vitaly Provodin
17556b0ea3 update exclude list on results of 21_b243.1 test runs 2023-09-29 15:47:08 +04:00
Vitaly Provodin
7dda83bf0b JBR-6130 add VK_TAB release action 2023-09-29 15:47:08 +04:00
Maxim Kartashev
ca1889e682 JBR-6138 Wayland: utilize gtk_shell1 protocol to mark dialogs as modal 2023-09-29 09:38:21 +04:00
Maxim Kartashev
258cf006bc JBR-6117 Wayland: JVM shutdown hang 2023-09-28 09:01:26 +04:00
Nikita Provotorov
a240282285 JBR-5984: IM's candidate window is placed under popup windows.
- Implements the optional method [NSTextInputClient windowLevel] to tell the macOS IM subsystem correct level of the window;
- Adds a regression test ImWindowIsPlacedUnderPopup5984.java.

(cherry picked from commit 5a91aae9c2)
2023-09-26 22:01:45 +02:00
Dmitrii Morskii
edfe753192 JBR-6044 handle absence of fontConfig library in setupRenderingFontHints 2023-09-25 12:51:03 +02:00
Dmitrii Morskii
7d8ca546f4 JBR-6041 started using correct type inside FcPatternGetValueFuncType 2023-09-25 12:50:59 +02:00
ghostflyby
b9d1c0e801 JBR-6124 Fix macOS services writing text back to textfield 2023-09-25 11:37:53 +02:00
Dmitry Batrak
d47223ddd9 JBR-5961 Wayland: can't switch between projects using menu
prevent using a pointer to destroyed surface
2023-09-25 09:33:15 +03:00
Vitaly Provodin
862b0d9195 update exclude list on results of 21_b240.22 test runs 2023-09-22 17:31:35 +07:00
Nikita Gubarkov
0457603fb6 JBR-6098 x64 docker images with glslc. 2023-09-21 10:21:40 +02:00
Sergey Shelomentsev
12c88c770d exclude FocusTraversalOrderTest 2023-09-20 21:34:29 +03:00
Sergey Shelomentsev
ac57aef98b JBR-6060 add focus traversal order test 2023-09-20 21:21:41 +03:00
Vitaly Provodin
40da69a5fb JBR-6070 update docker images for Alpine Linux 2023-09-16 08:35:57 +07:00
Vitaly Provodin
e4596e18e9 update exclude list on results of 21_b231.1 commit test runs 2023-09-16 08:35:57 +07:00
Dmitry Batrak
a24ed041aa JBR-5961 Wayland: can't switch between projects using menu
fix typo
2023-09-15 14:45:03 +03:00
Dmitry Batrak
d0bf4506c0 JBR-5961 Wayland: can't switch between projects using menu
support Window.toFront in Wayland toolkit
2023-09-15 12:44:26 +03:00
Maxim Kartashev
836f44fded JBR-6071 Alpine Linux compilation: error: implicit declaration of function 'pthread_getname_np' 2023-09-15 12:52:05 +04:00
Vitaly Provodin
f0bbcfc492 update exclude list on results of 21.231.1 test runs 2023-09-15 04:13:18 +07:00
Maxim Kartashev
e829d44cb9 JBR-5989 Wayland: jdk_awt_wayland test group 2023-09-13 08:26:46 +04:00
Maxim Kartashev
df095ab6db JBR-6025 Wayland: miscellaneous small improvements 2023-09-13 08:26:32 +04:00
Nikita Gubarkov
c301e17244 JBR-6016 doPrivileged for JBR API internal services.
(cherry picked from commit 19917e72086f091ef845959a29e7814ff6d88aa7)
2023-09-11 15:07:25 +02:00
Alexey Ushakov
f66a111d13 JBR-6045 WLToolkit(Vulkan): Add options to select physical device
Changed access to _name field, minor corrections in verbose print
2023-09-08 12:28:07 +02:00
Vitaly Provodin
6db1b3ec3c update exclude list on results of 21_b218.1 test runs 2023-09-08 17:06:59 +07:00
Alexey Ushakov
a19d03327a JBR-6045 WLToolkit(Vulkan): Add options to select physical device
Implemented -Dsun.java2d.vulkan=True and -Dsun.java2d.vulkan.deviceNumber=n VM options
2023-09-07 21:47:40 +02:00
Dmitrii Morskii
6d63ee0477 JBR-5502: optimize stringWidth & charsWidth methods of FontDesignMetrics 2023-09-07 17:23:55 +02:00
Dmitrii Morskii
60928807c8 JBR-6018 removed incorrect test testFeaturesZeroFrac 2023-09-07 14:51:20 +02:00
Maxim Kartashev
da11c5e526 JBR-6036 Wayland: Cannot invoke "java.awt.Component.getWidth()" because "popupParent" is null
Not all POPUP Window's have their parent set. And only those who do
shall be treated as popups in the Wayland's sense.
2023-09-06 19:23:07 +04:00
Nikita Tsarev
c56af99364 JBR-6028: Check before attempting to switch to a layout that might not exist in KeyCodesTest 2023-09-06 17:01:24 +02:00
Nikita Gubarkov
492fddd948 JBR-5973 Implement rendering of no-AA shapes with Vulkan pipeline
Get rid of maxTextureSize in Vulkan code. This concept was introduced to fix macOS-specific bugs and don't map well to Vulkan implementation, as this value is tied to specific device and texture format, so get rid of it for now and see whether we need it at all.

Refactored native surface data hierarchy. There was a C-style "inheritance" model with VKSDOps having an SurfaceDataOps as its first member and conversions back and forth between them. And then also privOps - pointer to the platform-specific part (WLVK). This was refactored into plain inheritance: SurfaceDataOps -> VKSurfaceData -> VKSwapchainSurfaceData -> WLVKSurfaceData

State management, synchronization & layout transition. Now using dynamic rendering and synchronization2 extensions.
Each device has a single timeline semaphore (basically 64-bit counter), monotonically increasing as device executes our commands, allowing us to track the state of the submitted batches and reuse resources which are no longer in use.

Split command recording into primary and secondary command buffers.
This allows us to record commands "in the past", before current render pass started, which gives possibility for some heavy optimizations:
1. When we suddenly need some texture in the middle of the render pass - no need to stop render pass in order to insert necessary synchronization - we can do it as if we knew it beforehand.
2. When we draw something and then clear the surface - just erase all commands inside current render pass we recorded earlier, so the actual drawing will never happen.

Shaders are compiled with glslc or glslangValidator and bytecode is inlined directly into libawt_wlawt

Memory management via VMA, vertex buffer pool, shader push constants.

Other refactoring.
2023-09-06 15:26:12 +02:00
Alexey Ushakov
f5a72877ba JBR-6032 WLToolkit: Uninitialized WLComponentPeer sends paint requests
Protected surfaceAssigned from MT access
2023-09-06 12:47:38 +02:00
Alexey Ushakov
081bc495a1 JBR-6032 WLToolkit: Uninitialized WLComponentPeer sends paint requests
Skip sending paint events for not configured peers
2023-09-05 21:51:27 +02:00
Maxim Kartashev
56ce6657e8 JBR-5968 Wayland: support PERPIXEL_TRANSLUCENT 2023-09-05 12:11:27 +04:00
Vitaly Provodin
c7eaed89c2 JBR-6008 Update JetBrains Mono fonts to v2.304 2023-09-05 06:03:50 +07:00
Maxim Kartashev
07b83bad84 JBR-6002 Linux: maximized window goes fullscreen after being moved between monitors 2023-09-01 10:00:31 +04:00
Maxim Kartashev
703e87cc3a JBR-5971 JBR API hash update
Updated the JBR API hash because of changes in comments
in the WindowMove API.
2023-08-30 11:52:39 +04:00
Dmitrii Morskii
dabd52c312 JBR-5844: fix case with non-scalable face 2023-08-29 14:36:46 +02:00
Dmitrii Morskii
574c6d97e9 JBR-5804: refactoring of freetypeScaler and moving fontconfig's logic in separate file 2023-08-29 14:36:02 +02:00
Maxim Kartashev
8ff96bc79f JBR-5971 Wayland: support WindowMove JBR API 2023-08-29 10:48:18 +04:00
Vitaly Provodin
f600c73328 update exclude list on results of 21_b205.2 test runs 2023-08-25 17:33:22 +07:00
Nikita Tsarev
94d6344b43 JBR-5963: Fix RobotKeyboard test and implement getLockingKeyState 2023-08-24 20:06:00 +02:00
Maxim Kartashev
3834f6c24e JBR-5962 Wayland: fix the main event loop to allow for secondary queues
Return READ_RESULT_FINISHED_NO_EVENTS from WLToolkit.readEvents() in
case of poll returning with no new data (i.e. via timeout).
2023-08-23 15:32:12 +04:00
Sergei Tachenov
a4e4430a5a JBR-5824 Ensure popup menus are on the correct screen
This is a very old bug, JDK-6415065.

What happens here is that when the position
of a popup menu is calculated, it can expand
above or below, depending on the position
of the parent menu, the item being expanded
and the size of the submenu and screen resolution.

If the menu decides to expand above,
the position calculation in JMenu.getPopupMenuOrigin
may yield a coordinate above the current screen.
Later, JPopupMenu.adjustPopupLocationToFitScreen
tries to fit the entire menu into the screen.
However, it has no idea which screen is correct,
as all it has is an (x, y) location. If that
location is invalid, it may correct it by
fitting it into the screen. However, if it is
valid, but located on an incorrect screen,
then the whole logic goes awry and the menu
is fitted into the wrong screen.

Fix by pre-adjusting the Y location to fit
into the correct screen in JMenu.getPopupMenuOrigin,
where the correct screen is still known.
The resulting location may still not be final,
as the menu's height needs to be taken into
account as well, but that's exactly what
JPopupMenu.adjustPopupLocationToFitScreen does.
Since the coordinate is on the correct screen now,
it fits the menu into the same screen, which
guarantees it'll be the correct one.
2023-08-22 12:19:23 +04:00
Dmitry Batrak
f85dae83df JBR-5953 If hieroglyph typing isn't finalised, focusing another component inserts the composed text there
(cherry picked from commit ff8fa489f8e1e16cb055cc56f1b441018c2f495c)
2023-08-21 13:39:53 +03:00
Vitaly Provodin
6b64fe9b77 update exclude list on results of 21_b202.1 test runs 2023-08-18 05:07:02 +07:00
Nikita Tsarev
85fb38c9a9 Regenerate wakefield-client-protocol using an older wayland-scanner to temporarily fix build problems 2023-08-17 15:56:48 +02:00
Dmitry Batrak
bcd4b38663 JBR-5946 Allow to disable painting of composed text in Swing text components using TextLayout.draw
(cherry picked from commit 81d531fb9f7496498fcab1f0e76554885941f16c)
2023-08-16 15:27:02 +03:00
Nikita Tsarev
77bccaf640 JBR-5676: Support emulating input events in Wakefield 2023-08-15 12:37:27 +02:00
Vitaly Provodin
27bb9662b2 update exclude list on results of 21_b199.2 test runs 2023-08-12 06:58:24 +07:00
Daniel D. Daugherty
cd18df6c66 8314062: ProblemList jdk/jfr/tool/TestView.java on macosx-x64
Reviewed-by: naoto
2023-08-12 06:47:32 +07:00
Stefan Karlsson
0795b7e7e1 8311179: Generational ZGC: gc/z/TestSmallHeap.java failed with OutOfMemoryError
Reviewed-by: aboldtch, tschatzl
Backport-of: 28fd7a1739
2023-08-12 06:47:32 +07:00
Jim Laskey
04e3cc31e8 8313809: String template fails with java.lang.StringIndexOutOfBoundsException if last fragment is UTF16
Reviewed-by: redestad
Backport-of: 6864441163
2023-08-12 06:47:32 +07:00
Jim Laskey
82f1a2ce4a 8312814: Compiler crash when template processor type is a captured wildcard
Reviewed-by: jjg, vromero
Backport-of: f14245b388
2023-08-12 06:47:31 +07:00
Tobias Hartmann
64c0d8c181 8313345: SuperWord fails due to CMove without matching Bool pack
Reviewed-by: chagedorn
Backport-of: d3b578f1c9
2023-08-12 06:47:31 +07:00
Jesper Wilhelmsson
33e83936c6 8312985: Remove EA from the JDK 21 version string with first RC promotion on August 10, 2023
Reviewed-by: mikael
2023-08-12 06:47:31 +07:00
Stefan Karlsson
c702e89c52 8313593: Generational ZGC: NMT assert when the heap fails to expand
Reviewed-by: eosterlund
Backport-of: 19e2c8c321
2023-08-12 06:47:31 +07:00
Nikita Tsarev
7159ccf83c JBR-5900: Fix deadlock when enabling the Wakefield extension 2023-08-10 12:47:58 +02:00
Nikita Tsarev
7971b98a99 JBR-5896: Fix WLToolkit being instantiated twice 2023-08-10 12:46:09 +02:00
Dmitrii Morskii
8907bf5479 JBR-5724: fixed serialization and backward compatibility of Font 2023-08-08 13:28:41 +02:00
Dmitry Batrak
c7cd32a03d JBR-5823 IDEA crashes when '-Dmain.thread.as.edt=true' vmoption is set and VoiceOver is enabled
done as part of JBR-4993 Support using 'main' thread as EDT on macOS

(cherry picked from commit 55598693c3)
(cherry picked from commit 2d8d56b5d61bd219b084fc50faea738f625be922)
2023-08-04 10:52:54 +03:00
Justin Lu
6b7bbe79cb 8312572: JDK 21 RDP2 L10n resource files update
Reviewed-by: naoto, iris
Backport-of: 9b55e9a706
2023-08-04 10:27:06 +07:00
Matthias Baesken
43b4cd00e2 8312574: jdk/jdk/jfr/jvm/TestChunkIntegrity.java fails with timeout
Reviewed-by: clanger
Backport-of: 34173ff0d1
2023-08-04 10:27:06 +07:00
Christoph Langer
2506bc3cca 8309088: security/infra/java/security/cert/CertPathValidator/certification/AmazonCA.java fails
Reviewed-by: mbaesken
Backport-of: 4c2e54fb05
2023-08-04 10:27:05 +07:00
Christoph Langer
12378c2123 8311822: AIX : test/jdk/java/foreign/TestLayouts.java fails because of different output - expected [[i4](struct)] but found [[I4](struct)]
Reviewed-by: mbaesken
Backport-of: d1cc278260
2023-08-04 10:27:05 +07:00
Christoph Langer
eb483848b6 8303549: [AIX] TestNativeStack.java is failing with exit value 1
Reviewed-by: mbaesken
Backport-of: 5ff42d1429
2023-08-04 10:27:05 +07:00
Jorn Vernee
7219fde797 8313023: Return value corrupted when using CCS + isTrivial (mainline)
Reviewed-by: thartmann, mcimadamore
Backport-of: 6fca289887
2023-08-04 10:27:04 +07:00
Christoph Langer
ea2647d428 8313256: Exclude failing multicast tests on AIX
Reviewed-by: mbaesken
Backport-of: 98a915a54c
2023-08-04 10:27:04 +07:00
Christoph Langer
46f0a568e1 8313404: Fix section label in test/jdk/ProblemList.txt
Reviewed-by: mbaesken
Backport-of: 94b50b714a
2023-08-04 10:27:04 +07:00
Justin Lu
b19d723ace 8039165: [Doc] MessageFormat null locale generates NullPointerException
Reviewed-by: naoto, iris
Backport-of: c6396dceb9
2023-08-04 10:27:04 +07:00
Roger Riggs
46270d5867 8310033: Clarify return value of Java Time compareTo methods
Reviewed-by: naoto
Backport-of: 8650026ff1
2023-08-04 10:27:04 +07:00
Christoph Langer
4e12f81c86 8313316: Disable runtime/ErrorHandling/MachCodeFramesInErrorFile.java on ppc64le
Reviewed-by: mbaesken
Backport-of: 807ca2d3a1
2023-08-04 10:27:03 +07:00
David Holmes
fba7b16b07 8300937: Update nroff pages in JDK 21 before RC
Reviewed-by: mchung, iris, egahlin
2023-08-04 10:27:03 +07:00
Dmitrii Morskii
81e97c5f8a JBR-5259: fixed Canvas mispositioning after dragging JFrame to a monitor with different scale 2023-07-31 16:18:04 +02:00
Sergey Bylokhov
e71048d298 8313260: JDK21: ProblemList java/lang/ScopedValue/StressStackOverflow.java on linux-x86
Reviewed-by: clanger
2023-07-31 12:16:48 +07:00
Tobias Hartmann
11ca5e8d6d 8313241: Temporarily disable "malformed control flow" assert to reduce noise
Reviewed-by: chagedorn, kvn, dcubed
2023-07-31 12:16:48 +07:00
Christoph Langer
52fd37a490 8313250: Exclude java/foreign/TestByteBuffer.java on AIX
Reviewed-by: rriggs
Backport-of: c05ba48b60
2023-07-31 12:16:48 +07:00
Markus Grönlund
84e548697f 8312293: SIGSEGV in jfr.internal.event.EventWriter.putUncheckedByte after JDK-8312086
Reviewed-by: egahlin
Backport-of: 59f66a3b83
2023-07-31 12:16:47 +07:00
Daniel D. Daugherty
f058b31cf8 8313208: ProblemList java/util/concurrent/tck/JSR166TestCase.java on select platforms
Reviewed-by: darcy
2023-07-31 12:16:47 +07:00
Daniel D. Daugherty
302f9d6e63 8313193: ProblemList java/util/concurrent/SynchronousQueue/Fairness.java on X64
Reviewed-by: rriggs
2023-07-31 12:16:47 +07:00
Serguei Spitsyn
c72add02ac 8300051: assert(JvmtiEnvBase::environments_might_exist()) failed: to enter event controller, JVM TI environments must exist
Reviewed-by: cjplummer
Backport-of: 783de32b6a
2023-07-31 12:16:47 +07:00
Daniel Jeliński
6517cc564e 8307185: pkcs11 native libraries make JNI calls into java code while holding GC lock
Reviewed-by: alanb
Backport-of: 354c6605e3
2023-07-31 12:16:46 +07:00
Vitaly Provodin
fd1cc0b6a5 update exclude list on results of 21_b195.1 test runs 2023-07-31 12:14:36 +07:00
Valerie Peng
4d790c2be4 8311902: Concurrency regression in the PBKDF2 key impl of SunJCE provider
Reviewed-by: mullan, ascarpino, xuelei
Backport-of: 28c4d196cf
2023-07-22 05:17:34 +07:00
Chris Plummer
23234a83b6 8310551: vmTestbase/nsk/jdb/interrupt/interrupt001/interrupt001.java timed out due to missing prompt
Reviewed-by: sspitsyn
Backport-of: c84866ac0d
2023-07-22 05:17:34 +07:00
Jan Lahoda
b1fac6f358 8311815: Incorrect exhaustivity computation
Reviewed-by: vromero
Backport-of: a4412166ec
2023-07-22 05:17:34 +07:00
Aggelos Biboudis
1d9dde2a3c 8312163: Crash in dominance check when compiling unnamed patterns
Reviewed-by: jlahoda
Backport-of: 1fc726a8b3
2023-07-22 05:17:33 +07:00
Christian Hagedorn
1ccadbd336 8308682: Enhance AES performance
Reviewed-by: rhalade, dlong, kvn
2023-07-22 05:17:33 +07:00
Jan Lahoda
87aa435e4d 8303376: Better launching of JDI
Reviewed-by: mschoene, rhalade, vromero
2023-07-22 05:17:33 +07:00
Calvin Cheung
3351ece9ac 8296565: Enhanced archival support
Reviewed-by: rhalade, iklam
2023-07-22 05:17:33 +07:00
Brian Burkhalter
076cfd1f77 8305312: Enhanced path handling
Reviewed-by: rhalade, alanb
2023-07-22 05:17:32 +07:00
Ioi Lam
40206536c7 8294323: Improve Shared Class Data
Co-authored-by: Calvin Cheung <ccheung@openjdk.org>
Reviewed-by: coleenp, rhalade
2023-07-22 05:17:32 +07:00
Hai-May Chao
0c743f785d 8300596: Enhance Jar Signature validation
Reviewed-by: mullan, rhalade, mschoene, weijun
2023-07-22 05:17:32 +07:00
Lance Andersen
bc11ed4114 8302483: Enhance ZIP performance
Reviewed-by: ahgross, alanb, rhalade, coffeys
2023-07-22 05:17:32 +07:00
Michael McMahon
c620b0ce4a 8302475: Enhance HTTP client file downloading
Reviewed-by: dfuchs, rhalade
2023-07-22 05:17:31 +07:00
Tobias Hartmann
864686aa78 8304460: Improve array usages
Reviewed-by: iveresov, rhalade, chagedorn
2023-07-22 05:17:31 +07:00
Tobias Hartmann
16bf733fc8 8304468: Better array usages
Reviewed-by: iveresov, rhalade, chagedorn
2023-07-22 05:17:31 +07:00
Jamil Nimeh
96854ead11 8300285: Enhance TLS data handling
Reviewed-by: ahgross, ascarpino, rhalade
2023-07-22 05:17:31 +07:00
Serguei Spitsyn
7ab527590a 8312189: ProblemList serviceability/jvmti/vthread/VThreadTLSTest/VThreadTLSTest.java#id1
Reviewed-by: amenkov
Backport-of: 3236ba0be4
2023-07-22 05:17:30 +07:00
Serguei Spitsyn
861b95bf9d 8311556: GetThreadLocalStorage not working for vthreads mounted during JVMTI attach
Reviewed-by: amenkov
Backport-of: 11a5115caf
2023-07-22 05:17:30 +07:00
Markus Grönlund
8023b5101c 8311040: JFR: RecordedThread::getOSThreadId() should return -1 if thread is virtual
Reviewed-by: egahlin
Backport-of: 9905f75822
2023-07-22 05:17:30 +07:00
Jan Lahoda
7f40dd0b44 8311038: Incorrect exhaustivity computation
Reviewed-by: vromero
Backport-of: bbb7ce5137
2023-07-22 05:17:30 +07:00
Mandy Chung
d551c2c7ee 8310814: Clarify the targetName parameter of Lookup::findClass
Reviewed-by: darcy
Backport-of: b4dce0d624
2023-07-22 05:17:29 +07:00
Joakim Nordström
0c4c702c27 8307526: [JFR] Better handling of tampered JFR repository
Reviewed-by: mgronlun
Backport-of: 66d2736521
2023-07-22 05:17:29 +07:00
Jan Lahoda
8182a51a93 8311825: Duplicate qualified enum constants not detected
Reviewed-by: vromero
Backport-of: d1fa1a8686
2023-07-22 05:17:29 +07:00
Jan Lahoda
f825086114 8312093: Incorrect javadoc comment text
Reviewed-by: jlaskey, iris
Backport-of: 1c9691b1f7
2023-07-22 05:17:29 +07:00
Jim Laskey
c9bd5f53fb 8312098: Update man page for javadoc
Reviewed-by: darcy
2023-07-22 05:17:28 +07:00
Aleksey Shipilev
8c6bdeee6d 8311647: Memory leak in Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ttyname_1r
Reviewed-by: rriggs
Backport-of: 43099a85b1
2023-07-22 05:17:28 +07:00
Markus Grönlund
139beb92aa 8303134: JFR: Missing stack trace during chunk rotation stress
Reviewed-by: egahlin
Backport-of: 7539cc092d
2023-07-22 05:17:28 +07:00
Vitaly Provodin
dfcb233c88 update exclude list on results of 21_b190.1 test runs 2023-07-22 05:16:24 +07:00
Maxim Kartashev
fc7e7f0725 JBR-5861 Wayland: minimum necessary stubs to run IDEA 2023-07-21 17:15:58 +04:00
Markus Grönlund
706e410826 8244289: fatal error: Possible safepoint reached by thread that does not allow it
Reviewed-by: egahlin
Backport-of: 61932f49a5
2023-07-14 19:40:06 +07:00
Alan Bateman
728fde56c3 8311867: StructuredTaskScope.shutdown does not interrupt newly started threads
Reviewed-by: jpai
Backport-of: 92a04e201e
2023-07-14 19:40:06 +07:00
Justin Lu
6519ab02b2 6960866: [Fmt-Ch] ChoiceFormat claims impossible and unimplemented functionality
Reviewed-by: naoto, lancea, iris
Backport-of: 6cb9ec32a6
2023-07-14 19:40:05 +07:00
Stuart Marks
7ccfa3ca9c 8306785: fix deficient spliterators for Sequenced Collections
Reviewed-by: rriggs
Backport-of: 743e8b8e0a
2023-07-14 19:40:05 +07:00
Erik Gahlin
bd472d7169 8294401: Update jfr man page to include recently added features
Reviewed-by: mgronlun
Backport-of: f60c1f9bc4
2023-07-14 19:40:05 +07:00
Markus Grönlund
1a7156370e 8311536: JFR TestNativeMemoryUsageEvents fails in huge pages configuration
Reviewed-by: egahlin
Backport-of: 6895debf66
2023-07-14 19:40:04 +07:00
Aleksey Shipilev
15e83af59e 8311645: Memory leak in jspawnhelper spawnChild after JDK-8307990
Reviewed-by: alanb
Backport-of: 401c3dea5d
2023-07-14 19:40:04 +07:00
Vladimir Petko
d2a9b2c5b9 8311092: Please disable runtime/jni/nativeStack/TestNativeStack.java on armhf
Reviewed-by: dholmes
Backport-of: 0916e6a603
2023-07-14 19:40:04 +07:00
Tobias Hartmann
4e5e35a1e3 8303279: C2: crash in SubTypeCheckNode::sub() at IGVN split if
Reviewed-by: chagedorn
Backport-of: caadad4fdc
2023-07-14 19:40:03 +07:00
Robbin Ehn
2b30ddf722 8310656: RISC-V: __builtin___clear_cache can fail silently.
Reviewed-by: luhenry, fyang
Backport-of: faf1b822d0
2023-07-14 19:40:03 +07:00
Stuart Marks
c8230b05b7 8308694: Clarify reversed() default methods' implementation requirements
Reviewed-by: naoto, bpb
Backport-of: f82c8184b2
2023-07-14 19:40:03 +07:00
Rajan Halade
93aa8f21cf 8156889: ListKeychainStore.sh fails in some virtualized environments
Reviewed-by: mullan
Backport-of: 119cc495fc
2023-07-14 19:40:03 +07:00
Rajan Halade
77262d47c4 8295894: Remove SECOM certificate that is expiring in September 2023
Reviewed-by: mullan
Backport-of: fd7fddb6ed
2023-07-14 19:40:02 +07:00
Patricio Chilano Mateo
4cb3d4858b 8309637: runtime/handshake/HandshakeTimeoutTest.java fails with "has not cleared handshake op" and SIGILL
Reviewed-by: coleenp
Backport-of: 57e7e82fa1
2023-07-14 19:40:02 +07:00
Alan Bateman
31ee3ceb12 8310892: ScopedValue throwing StructureViolationException should be clearer
Reviewed-by: darcy, iris, lancea
Backport-of: 623cfcd04b
2023-07-14 19:40:02 +07:00
Maurizio Cimadamore
0ecca996a0 8311593: Minor doc issue in MemorySegment::copy
Reviewed-by: jvernee
Backport-of: 6569b252b9
2023-07-14 19:40:02 +07:00
Alexey Ivanov
c1172de798 8311689: Wrong visible amount in Adjustable of ScrollPane
Reviewed-by: honkar, azvegint, prr
Backport-of: b3f34039fe
2023-07-14 19:40:01 +07:00
Patricio Chilano Mateo
bc8b3fb572 8302351: "assert(!JavaThread::current()->is_interp_only_mode() || !nm->method()->is_continuation_enter_intrinsic() || ContinuationEntry::is_interpreted_call(return_pc)) failed: interp_only_mode but not in enterSpecial interpreted entry" in fixup_callers_callsite
Reviewed-by: coleenp
Backport-of: 0c86c31bcc
2023-07-14 19:40:01 +07:00
Erik Gahlin
6be2cd7480 8311245: JFR: Remove t.printStackTrace() in PeriodicEvents
Reviewed-by: mgronlun
Backport-of: a1cfc96954
2023-07-14 19:40:01 +07:00
Hao Sun
9ff86192c4 8311548: AArch64: [ZGC] Many tests fail with "assert(allocates2(pc)) failed: not in CodeBuffer memory" on some CPUs
Reviewed-by: tschatzl
Backport-of: 4b1403d06b
2023-07-14 19:40:01 +07:00
Erik Joelsson
8081944830 8308585: AC_REQUIRE: `PLATFORM_EXTRACT_TARGET_AND_BUILD' was expanded before it was required
Reviewed-by: mikael
Backport-of: 554b4d7243
2023-07-14 19:40:00 +07:00
Zhengyu Gu
5dad107712 8309761: Leak class loader constraints
Reviewed-by: coleenp
Backport-of: 8e4e6b056c
2023-07-14 19:40:00 +07:00
Naoto Sato
31d1ffbf21 8311183: Remove unused mapping test files
Reviewed-by: lancea
Backport-of: d072c40ff1
2023-07-14 19:40:00 +07:00
Thomas Stuefe
8de2ce735a 8310265: (process) jspawnhelper should not use argv[0]
Reviewed-by: rriggs
Backport-of: 47d00a4cbe
2023-07-14 19:39:59 +07:00
Maxim Kartashev
8d90bd6d5d JBR-5815 javax/swing/AbstractButton/6711682/bug6711682.java: Row #2 checkbox is not selected
Fixed the test to use proper cell coordinates when clicking.
2023-07-13 11:54:22 +04:00
bourgesl
71e1ff1b1a fixup! JBR-5625: use sun.java2d.metal.colorMatching=true by default (current metal behaviour) 2023-07-12 21:10:29 +02:00
Vitaly Provodin
c024fc4ad9 update exclude list on results of 21_b185.5 test runs 2023-07-11 16:14:08 +07:00
Alexey Ushakov
7c0beaa530 JBR-5831 Compile failure after applying JDK-8309140 (ResourceHashtable failed ...)
Fixed compile issue
2023-07-10 20:12:22 +02:00
Alexey Ushakov
c423b9bc2e JBR-5645 Provide basic classes for Vulkan rendering pipeline
Fix compilation failure on macos
2023-07-10 14:10:05 +02:00
Tobias Hartmann
eb957de688 8295210: IR framework should not whitelist -XX:-UseTLAB
Reviewed-by: epeter
Backport-of: 31dcda5d67
2023-07-07 19:40:57 +07:00
Coleen Phillimore
1063d09924 8309140: ResourceHashtable failed "assert(~(_allocation_t[0] | allocation_mask) == (uintptr_t)this) failed: lost resource object"
Reviewed-by: iklam
Backport-of: b6c789faad
2023-07-07 19:40:49 +07:00
Tobias Hartmann
039c82b4f6 8310425: [JVMCI] compiler/runtime/TestConstantDynamic: lookupConstant returned an object of incorrect type: null
Reviewed-by: chagedorn
Backport-of: 15878360bf
2023-07-07 19:32:57 +07:00
Hannes Wallnöfer
c07097a888 8311264: JavaDoc index comparator is not transitive
Reviewed-by: prappo
Backport-of: 0741cd3289
2023-07-07 19:32:57 +07:00
Pavel Rappo
299f672e2a 8311122: Fix typos in java.base
Reviewed-by: iris
Backport-of: 7b3c2dc5f4
2023-07-07 19:32:57 +07:00
Tobias Hartmann
a3bcdeacfe 8311023: assert(false) failed: EA: missing memory path
Reviewed-by: chagedorn
Backport-of: 6ebb0e3bd4
2023-07-07 19:32:56 +07:00
Tobias Hartmann
ba6ffccf8b 8309531: Incorrect result with unwrapped iotaShuffle.
Reviewed-by: chagedorn
Backport-of: d6578bff1c
2023-07-07 19:32:56 +07:00
Serguei Spitsyn
cd7d0d50d8 8303086: SIGSEGV in JavaThread::is_interp_only_mode()
Reviewed-by: pchilanomate
Backport-of: 971c2efb69
2023-07-07 19:32:56 +07:00
Rajan Halade
98bf58e13d 8301379: Verify TLS_ECDH_* cipher suites cannot be negotiated
Reviewed-by: mullan
Backport-of: 9f64a64376
2023-07-07 19:32:55 +07:00
Axel Boldt-Christmas
2cedb9d3bb 8310743: assert(reserved_rgn != nullptr) failed: Add committed region, No reserved region found
Reviewed-by: ayang
Backport-of: f393975d1b
2023-07-07 19:32:55 +07:00
Matthias Baesken
b2bc6893ea 8310549: avoid potential leaks in KeystoreImpl.m related to JNU_CHECK_EXCEPTION early returns
Reviewed-by: clanger
Backport-of: 7da3f1999f
2023-07-07 19:32:55 +07:00
Mandy Chung
90974afeba 8254566: Clarify the spec of ClassLoader::getClassLoadingLock for non-parallel capable loader
Reviewed-by: iris
Backport-of: b9198f9931
2023-07-07 19:32:55 +07:00
Tobias Hartmann
0019cdf781 8310829: guarantee(!HAS_PENDING_EXCEPTION) failed in ExceptionTranslation::doit
Reviewed-by: chagedorn
Backport-of: f6bdccb45c
2023-07-07 19:32:54 +07:00
Matthias Baesken
e7e9c3492f 8310380: Handle problems in core-related tests on macOS when codesign tool does not work
Reviewed-by: cjplummer
Backport-of: 39c104df44
2023-07-07 19:32:54 +07:00
Chen Liang
26863d19fc 8309819: Clarify API note in Class::getName and MethodType::toMethodDescriptorString
Reviewed-by: mchung
Backport-of: 8c8e9d911d
2023-07-07 19:32:54 +07:00
Chen Liang
44fe0a12c6 8310838: Correct range notations in MethodTypeDesc specification
Reviewed-by: mchung
Backport-of: a197ee797b
2023-07-07 19:32:54 +07:00
Daniel D. Daugherty
ff0d766ef6 8311186: ProblemList javax/management/remote/mandatory/subjectDelegation/SubjectDelegation1Test.java on linux-aarch64
8311189: disable gc/z/TestHighUsage.java
8311190: ProblemList javax/management/remote/mandatory/connection/DeadLockTest.java with virtual threads on windows-x64
8311191: ProblemList javax/management/remote/mandatory/connection/ConnectionTest.java with virtual threads on windows-x64
8311193: ProblemList vmTestbase/nsk/jdb/interrupt/interrupt001/interrupt001.java on linux-all
8311195: ProblemList vmTestbase/nsk/jvmti/scenarios/capability/CM03/cm03t001/TestDescription.java with Xcomp on macosx-x64

Reviewed-by: lmesnik
Backport-of: 140b70fb29
2023-07-07 19:32:53 +07:00
Axel Boldt-Christmas
917c3597ed 8311046: ProblemList gc/z/TestHighUsage.java with Generational ZGC
Reviewed-by: stefank
Backport-of: 2a9e2f614f
2023-07-07 19:32:53 +07:00
Vitaly Provodin
59edee4716 update exclude list on results of 21_b173.1 test runs (follow up) 2023-07-07 19:32:02 +07:00
Vitaly Provodin
28edf9aa51 update exclude list on results of 21_b173.1 test runs (follow up) 2023-07-07 07:24:39 +07:00
Alexey Ushakov
dd761c3138 JBR-5645 Provide basic classes for Vulkan rendering pipeline
Implemented shared classes for cross-platform vulkan implementation and some support for wayland toolkit
2023-07-06 20:07:51 +02:00
Alexey Ushakov
79263e5875 JBR-5807 java/awt/Frame/FrameVisible/FrameContentAppearanceTest.java: Failed: OpenGL 26 image rendering failure(s)
Added synchronisation for rendering and appearance
2023-07-06 19:21:35 +02:00
Vitaly Provodin
4eaaf559e5 update exclude list on results of 21_b173.1 test runs 2023-07-05 05:53:19 +07:00
Maxim Kartashev
470c36bbd8 JBR-5661 Wayland: implement heavy-weight popup windows 2023-07-04 09:29:37 +04:00
bourgesl
5473bc5596 fixup! JBR-5625: use CGColorSpaceCopyName() available since macOS 10.6 in MTLLayer
(cherry picked from commit 4ec4f728f4461a0c173bb80cd3f3c9652f267f4f)
2023-07-01 12:34:42 +02:00
bourgesl
3027b5e95c JBR-5625: disable color-matching (colorspace = nil) in MTLLayer by default (see new system property 'sun.java2d.metal.colorMatching=true/false') + added new MetalLayerColorTest 2023-06-30 18:19:34 +02:00
Tobias Hartmann
2ee44fface 8309902: C2: assert(false) failed: Bad graph detected in build_loop_late after JDK-8305189
Reviewed-by: chagedorn
Backport-of: 26efff7586
2023-06-30 20:00:06 +07:00
Joe Darcy
b0eb2a22e2 8311115: Type in java.lang.reflect.AccessFlag.METHOD_PARAMETER
Reviewed-by: prappo
Backport-of: d97966266e
2023-06-30 20:00:06 +07:00
Tobias Hartmann
4956bcb3d4 8310299: C2: 8275201 broke constant folding of array store check in some cases
Reviewed-by: chagedorn
Backport-of: be64d3ac3c
2023-06-30 20:00:05 +07:00
Erik Gahlin
b632a89ba5 8311007: jdk/jfr/tool/TestView.java can't find event
Reviewed-by: mgronlun
Backport-of: e3f18af1df
2023-06-30 20:00:05 +07:00
Joe Darcy
0be7c6e827 8310061: Note if implicit annotation processing is being used
Reviewed-by: vromero
Backport-of: 3df36c4f10
2023-06-30 20:00:05 +07:00
Jorn Vernee
ea0b791f94 8310914: Remove 2 malformed java/foreign ProblemList entries
Reviewed-by: jpai
Backport-of: f07e396bda
2023-06-30 20:00:05 +07:00
Jorn Vernee
c35e073cd9 8310405: Linker.Option.firstVariadicArg should specify which index values are valid
Reviewed-by: mcimadamore
Backport-of: 7fffdb5e60
2023-06-30 20:00:04 +07:00
Tobias Hartmann
be708c5de0 8310130: C2: assert(false) failed: scalar_input is neither phi nor a matchin reduction
Reviewed-by: kvn
Backport-of: 526dba1a29
2023-06-30 20:00:04 +07:00
Rajan Halade
05af322e8a 8292704: sun/security/tools/jarsigner/compatibility/Compatibility.java use wrong key size for EC
Reviewed-by: valeriep, hchao
Backport-of: 130a9f1387
2023-06-30 20:00:04 +07:00
Archie Cobbs
4ade52291c 8305671: javac rejects semicolons in compilation units with no imports
Reviewed-by: vromero
Backport-of: a08352f621
2023-06-30 20:00:04 +07:00
Pavel Rappo
59ff7acff6 8311034: Fix typo in javac man page
Reviewed-by: rriggs
Backport-of: f17bfeec61
2023-06-30 20:00:03 +07:00
Kevin Walls
5c3fe85288 8303916: ThreadLists.java inconsistent results
Reviewed-by: sspitsyn
Backport-of: 8c9b85a990
2023-06-30 20:00:03 +07:00
Stefan Karlsson
c01213983c 8310194: Generational ZGC: Lock-order asserts in JVMTI IterateThroughHeap
Reviewed-by: ayang
Backport-of: 4e4e586dac
2023-06-30 20:00:03 +07:00
Tobias Hartmann
dc28c85058 8310459: [BACKOUT] 8304450: [vectorapi] Refactor VectorShuffle implementation
Reviewed-by: kvn
Backport-of: ff9a754109
2023-06-30 20:00:02 +07:00
Joe Darcy
5b7b91f80b 8310830: typo in the parameter name in @throws of ClassDesc::ofDescriptor
Reviewed-by: mchung
Backport-of: 4bce38c6d7
2023-06-30 20:00:02 +07:00
Jim Laskey
4da9ef9367 8310975: java.util.FormatItemModifier should not be protected
Reviewed-by: darcy
Backport-of: 315242b741
2023-06-30 20:00:02 +07:00
Naoto Sato
c31883d7ae 8310182: DateTimeFormatter date formats (ISO_LOCAL_DATE) separated with hyphen, not dash
Reviewed-by: rriggs
Backport-of: ec45bd64d5
2023-06-30 20:00:01 +07:00
Robbin Ehn
7ce6caddcc 8309258: RISC-V: Add riscv_hwprobe syscall
Reviewed-by: luhenry, fyang
Backport-of: 31b6fd775f
2023-06-30 20:00:01 +07:00
Mandy Chung
449333a596 8310242: Clarify the name parameter to Class::forName
8310922: java/lang/Class/forName/ForNameNames.java fails after being added by JDK-8310242

Reviewed-by: dholmes
Backport-of: 7db2f08756
2023-06-30 20:00:01 +07:00
Joe Darcy
938ce68fac 8310861: Improve location reporting for javac serial lint warnings
8310907: Add missing file

Reviewed-by: jlahoda
Backport-of: 289f218a32
2023-06-30 20:00:01 +07:00
Christian Stein
b135da3050 8309670: java -help output for --module-path / -p is incomplete
Reviewed-by: jjg
Backport-of: 4bf78162c5
2023-06-30 20:00:00 +07:00
Hannes Wallnöfer
2e9c2f2d2f 8309471: Limit key characters in static index pages
Reviewed-by: jjg
Backport-of: 21f6d83358
2023-06-30 20:00:00 +07:00
Jaikiran Pai
5072c3ddf8 8310868: Thread.interrupt() method's javadoc has an incorrect {@link}
Reviewed-by: alanb
Backport-of: 013367b483
2023-06-30 20:00:00 +07:00
Frederic Thevenet
4bf9d30bc1 8309959: JFR: Display N/A for missing data amount
Reviewed-by: egahlin
Backport-of: 9872a14192
2023-06-30 20:00:00 +07:00
Joe Darcy
509d789d2e 8310676: add note about unnamed module to Elements.getAllModuleElements
Reviewed-by: jjg
Backport-of: 69f3114c41
2023-06-30 19:59:59 +07:00
Jamil Nimeh
872410a552 8309740: Expand timeout windows for tests in JDK-8179502
Reviewed-by: xuelei, hchao
Backport-of: 5ca4cdd2ca
2023-06-30 19:59:59 +07:00
Daniel D. Daugherty
0304e5af2d 8310822: JDK21: ProblemList java/lang/ScopedValue/StressStackOverflow.java on generic-x64
Reviewed-by: iris, lmesnik
2023-06-30 19:59:59 +07:00
Alexander Zuev
a29a052655 8309733: [macOS, Accessibility] VoiceOver: Incorrect announcements of JRadioButton
Reviewed-by: prr
Backport-of: d1d2b55ce0
2023-06-30 19:59:58 +07:00
Sergey Bylokhov
eec4c76e76 8304885: Reuse stale data to improve DNS resolver resiliency
Reviewed-by: djelinski, michaelm
Backport-of: bdd81b3182
2023-06-30 19:57:41 +07:00
Vitaly Provodin
dc913b2ba1 update exclude list on results of 21_b173.1 test runs 2023-06-30 18:39:23 +07:00
Maxim Kartashev
725fe7afce JBR-5777 isWindowMoveSupported() doesn't work with non-default GraphicsEnvironment
Co-authored-by: Nikita Gubarkov <nikita.gubarkov@jetbrains.com>
2023-06-28 11:47:22 +04:00
Sergey Shelomentsev
4bf6cbc0ab fixup! JBR-5746 add mouse events logging 2023-06-27 23:18:08 +03:00
Dmitrii Morskii
c6ddc37179 fixup! JBR-1775: improved logic for choosing newer font between system and bundled ones 2023-06-26 18:00:30 +02:00
Dmitry Batrak
25f8116d68 JBR-5720 Wrong modifiers are reported for mouse middle and right buttons' release/clicked events
(cherry picked from commit 64dad2a50a)
2023-06-26 12:10:40 +03:00
Alexey Ushakov
4583bce7fb JBR-5151 Test failures caused by -Dsun.java2d.metal.displaySync=false
Removed display sync from window layer, provide layer content updates only when necessary
2023-06-23 18:49:40 +02:00
Alan Bateman
45badf7fdf 8309853: StructuredTaskScope.join description improvements
Reviewed-by: darcy
Backport-of: 3661cdee1b
(cherry picked from commit e86d765b22)
2023-06-23 17:27:48 +07:00
Erik Gahlin
3b2662040d 8309296: jdk/jfr/event/runtime/TestAgentEvent.java fails due to "missing" dynamic JavaAgent
Reviewed-by: mgronlun
Backport-of: 658c3374d8
(cherry picked from commit 2f1af3cff8)
2023-06-23 17:27:47 +07:00
Axel Boldt-Christmas
b84f104c8f 8310187: Improve Generational ZGC jtreg testing
Reviewed-by: eosterlund
Backport-of: a0595761ef
(cherry picked from commit 6317249b50)
2023-06-23 17:27:47 +07:00
Tobias Hartmann
6827cc7db7 8309498: [JVMCI] race in CallSiteTargetValue recording
Reviewed-by: chagedorn, dlong
Backport-of: bb966827ac
(cherry picked from commit 55aa4cb48a)
2023-06-23 17:27:47 +07:00
Tobias Hartmann
5731093e0a 8308855: ARM32: TestBooleanVector crashes after 8300257
Reviewed-by: chagedorn, dlong
Backport-of: 266f9838ee
(cherry picked from commit 5357bcd776)
2023-06-23 17:27:47 +07:00
Tobias Hartmann
1aeac500dc 8309266: C2: assert(final_con == (jlong)final_int) failed: final value should be integer
Reviewed-by: chagedorn, dlong
Backport-of: 4a9cc8a000
(cherry picked from commit 7621d988f9)
2023-06-23 17:27:46 +07:00
Tobias Hartmann
03e282b3fe 8310126: C1: Missing receiver null check in Reference::get intrinsic
Reviewed-by: chagedorn, dlong
Backport-of: 02aaab12e3
(cherry picked from commit 89ac41be57)
2023-06-23 17:27:46 +07:00
Jan Lahoda
5789ab8533 8302865: Illegal bytecode for break from if with instanceof pattern matching condition
Reviewed-by: vromero
Backport-of: a15db1a56c
(cherry picked from commit 789b2fc4f2)
2023-06-23 17:27:46 +07:00
Jan Lahoda
53d980bdd3 8310133: Effectivelly final condition not enforced in guards for binding variables from the same case
Reviewed-by: vromero
Backport-of: 01623f6a57
(cherry picked from commit ceadaece94)
2023-06-23 17:27:46 +07:00
Serguei Spitsyn
585cabc4db 8309612: [REDO] JDK-8307153 JVMTI GetThreadState on carrier should return STATE_WAITING
Reviewed-by: cjplummer
Backport-of: f91e9ba757
(cherry picked from commit f8a38eecc6)
2023-06-23 17:27:45 +07:00
Chris Plummer
f85ef6c00e 8308499: Test vmTestbase/nsk/jdi/MethodExitRequest/addClassExclusionFilter/filter001/TestDescription.java failed: VMDisconnectedException
Reviewed-by: kevinw, sspitsyn
Backport-of: 79ff72a776
(cherry picked from commit 722b512c40)
2023-06-23 17:27:45 +07:00
Darragh Clarke
ce3fdae3dc 8308336: Test java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java failed: java.net.BindException: Address already in use
Reviewed-by: dfuchs
Backport-of: a48bcf3671
(cherry picked from commit a4159ddaa2)
2023-06-23 17:27:45 +07:00
Jorn Vernee
7e94035ac4 8310053: VarHandle and slice handle derived from layout are lacking alignment check
Reviewed-by: mcimadamore
Backport-of: e022e87654
(cherry picked from commit 3985a4d534)
2023-06-23 17:27:44 +07:00
Matthias Baesken
9bdd685eb4 8310191: com/sun/tools/attach/warnings/DynamicLoadWarningTest.java second failure on AIX
Reviewed-by: alanb
Backport-of: 6a63badd8e
(cherry picked from commit 1fc60429a1)
2023-06-23 17:27:44 +07:00
Per Minborg
2851c2edac 8309937: Add @sealedGraph for some Panama FFM interfaces
Reviewed-by: mcimadamore
Backport-of: b412fc79c3
(cherry picked from commit ef0357f6cb)
2023-06-23 17:27:44 +07:00
Matthias Baesken
c33f76cf13 8309549: com/sun/tools/attach/warnings/DynamicLoadWarningTest.java fails on AIX
Reviewed-by: lucy, alanb
Backport-of: 4d66d97745
(cherry picked from commit 60cae33c46)
2023-06-23 17:27:44 +07:00
Alexey Ivanov
f4298d9a3a 8310054: ScrollPane insets are incorrect
Reviewed-by: honkar, prr
Backport-of: d6c2ee3448
(cherry picked from commit beb0d9579b)
2023-06-23 17:27:43 +07:00
Roger Riggs
9173dcad30 8310019: MIPS builds are broken after JDK-8304913
Reviewed-by: shade
Backport-of: 33c6ec9d4e
(cherry picked from commit e0cc40108a)
2023-06-23 17:27:43 +07:00
Glavo
01f0ecaaac 8310105: LoongArch64 builds are broken after JDK-8304913
Reviewed-by: shade
Backport-of: 137a5f7c2c
(cherry picked from commit 7e788939d3)
2023-06-23 17:27:43 +07:00
David Holmes
dea70ad99a 8309228: Clarify EXPERIMENTAL flags comment in hotspot/share/runtime/globals.hpp
Reviewed-by: shade
Backport-of: 96a7db7b3c
(cherry picked from commit fb6f5f1b82)
2023-06-23 17:27:43 +07:00
Jim Laskey
8bfeab18aa 8309957: Rename JDK-8309595 test to conform
Reviewed-by: prappo
Backport-of: 1d1ed0d8f7
(cherry picked from commit 7ca0f1460c)
2023-06-23 17:27:42 +07:00
Jim Laskey
c6fededaba 8309595: Allow javadoc to process unnamed classes
Reviewed-by: prappo
Backport-of: 0be39054a6
(cherry picked from commit bfffd8b608)
2023-06-23 17:27:42 +07:00
Jan Lahoda
4e9fb05ba8 8310314: Misplaced "unnamed classes are a preview feature and are disabled by default" error
Reviewed-by: jlaskey
Backport-of: 79069c5e74
(cherry picked from commit ede16cd19e)
2023-06-23 17:27:42 +07:00
Jaikiran Pai
a4e0bd5eb4 8310259: Pin msys2/setup-msys2 github action to a specific commit
8309934: Update GitHub Actions to use JDK 17 for building jtreg

Reviewed-by: cstein, clanger
Backport-of: 959a61fdd4
(cherry picked from commit 08965e646e)
2023-06-23 17:27:41 +07:00
Erik Gahlin
576518769f 8304835: jdk/jfr/event/oldobject/TestArrayInformation.java fails with "Could not find event with class ... as (leak) object"
Reviewed-by: mgronlun
Backport-of: 7d4b77ad9e
(cherry picked from commit e0d3706f9e)
2023-06-23 17:27:41 +07:00
Erik Österlund
e958446d7e 8310015: ZGC: Unbounded asynchronous unmapping can lead to running out of address space
Reviewed-by: stefank, aboldtch
Backport-of: 4229baf9b6
(cherry picked from commit 14c5091a9f)
2023-06-23 17:27:41 +07:00
Erik Gahlin
d04865c7f6 8309928: JFR: View issues
Reviewed-by: mgronlun
Backport-of: 84d010a24b
(cherry picked from commit 36e3fe914c)
2023-06-23 17:27:40 +07:00
Albert Mingkun Yang
d520d33e04 8309960: ParallelGC young collections very slow in DelayInducer
Reviewed-by: tschatzl
(cherry picked from commit 4d81b8998a)
2023-06-23 17:27:40 +07:00
Kim Barrett
84850c23d0 8308643: Incorrect value of 'used' jvmstat counter
Reviewed-by: tschatzl
Backport-of: 92167505b2
(cherry picked from commit ace56237d3)
2023-06-23 17:27:40 +07:00
Phil Race
ce5125a90f 8309756: Occasional crashes with pipewire screen capture on Wayland
Reviewed-by: azvegint
Backport-of: d3d0dbc363
(cherry picked from commit 3698a022ff)
2023-06-23 17:27:40 +07:00
Justin Lu
385c581b56 8309632: JDK 21 RDP1 L10n resource files update
Reviewed-by: naoto
Backport-of: 81bfd78901
(cherry picked from commit a1c1d97a4e)
2023-06-23 17:27:39 +07:00
Maxim Kartashev
cb9c3217e1 JBR-5722 vmTestbase/vm/gc/compact/Compact_TwoFields_InternedStrings: SIGSEGV at Symbol::as_klass_external_name(char*, int)
Do not use print_native_stack() when recording OOME stacks as it is
designed to be used only in the context of a fatal error reporting where
induced crashes are tolerated.
2023-06-23 12:59:41 +04:00
Dmitry Batrak
82383cef3c JBR-5684 Focus state is broken after closing of modal dialog in an inactive application
(cherry picked from commit f1feadc9e5)
2023-06-23 11:38:46 +03:00
Nikita Provotorov
f3580cb167 JBR-5762 Sometimes naturally generated MOUSE_DRAGGED events don't contain the pressed button's modifier.
Enforce keeping the pressed button in the modifiers for MOUSE_DRAGGED events. This is under a (default enabled) system property "awt.mac.enforceMouseModifiersForMouseDragged".

(cherry picked from commit fb12990a98)
2023-06-22 19:06:14 +03:00
Dmitrii Morskii
6c1d3527ef JBR-1775: improved logic for choosing newer font between system and bundled ones 2023-06-22 16:02:39 +02:00
Dmitrii Morskii
864dcab9d8 JBR-5548 fix BadSerializationTest 2023-06-22 15:55:12 +02:00
Vitaly Provodin
c66295a92f update exclude list on results of 21_b163.1 test runs 2023-06-22 16:38:37 +07:00
Vitaly Provodin
b2af077f9f update exclude list on results of 21_b156.4 test runs 2023-06-22 16:31:37 +07:00
Maxim Kartashev
ca4d3ddb25 JBR-5761 Make error printing more robust during early stages of VM initialization 2023-06-21 19:41:38 +04:00
Sergey Shelomentsev
5fd56485aa JBR-5746 wait for menu visibility of fail the test 2023-06-20 18:42:51 +03:00
Vitaly Provodin
528f36f7b7 fixup! JBR-5246 add OpenType's features support (follow up) 2023-06-17 06:38:04 +07:00
Vitaly Provodin
883a78fb2f fixup! JBR-5246 add OpenType's features support 2023-06-17 05:49:16 +07:00
Vitaly Provodin
2613211eed fixup! JBR-5480 Include more information in OOME crash reports 2023-06-17 05:33:13 +07:00
Nikita Tsarev
985ff0d80b JBR-5379: Ignore input events only on permament focus loss 2023-06-16 15:19:45 +02:00
Vitaly Provodin
d44783df44 fixup! update exclude list on results of 21_b156.4 test runs 2023-06-16 17:48:06 +07:00
Aggelos Biboudis
3090a44d42 8310128: Switch with unnamed patterns erroneously non-exhaustive
Reviewed-by: jlahoda
Backport-of: 32243ef47d
(cherry picked from commit aced11446e)
2023-06-16 17:21:06 +07:00
Roberto Castañeda Lozano
0802b1573b 8303513: C2: LoadKlassNode::make fails with 'expecting TypeKlassPtr'
Reviewed-by: thartmann
Backport-of: 83d92672d4
(cherry picked from commit 39e98e7bbf)
2023-06-16 17:21:06 +07:00
Martin Doerr
577b7a1383 8309613: [Windows] hs_err files sometimes miss information about the code containing the error
Reviewed-by: mbaesken
Backport-of: bd79db3930
(cherry picked from commit 07d20dc86a)
2023-06-16 17:21:05 +07:00
Aleksey Shipilev
155bca2d23 8309956: Shenandoah: Strengthen the mark word check in string dedup
Reviewed-by: rkennke
Backport-of: 57b8251241
(cherry picked from commit 0ac92753dd)
2023-06-16 17:21:05 +07:00
Chen Liang
acfdfe9169 8307508: IndirectVarHandle.isAccessModeSupported throws NPE
Reviewed-by: mchung
Backport-of: 75dcc4ef94
(cherry picked from commit 6711041f55)
2023-06-16 17:21:05 +07:00
Stuart Marks
4f67e453b9 8309882: LinkedHashMap adds an errant serializable field
Reviewed-by: rriggs
Backport-of: e138685648
(cherry picked from commit f7cd0aec92)
2023-06-16 17:21:04 +07:00
Raffaello Giulietti
7f45827674 8309955: Matcher uses @since {@inheritDoc}
Reviewed-by: bpb
Backport-of: bfef3c3e80
(cherry picked from commit e18993c006)
2023-06-16 17:21:04 +07:00
Mandy Chung
3100171558 8309303: jdk/internal/misc/VM/RuntimeArguments test ignores jdk/internal/vm/options
Reviewed-by: alanb
Backport-of: 679a6d8935
(cherry picked from commit 3363050f9e)
2023-06-16 17:21:04 +07:00
Markus Grönlund
6f792f56d2 8309862: Unsafe list operations in JfrStringPool
Reviewed-by: egahlin
Backport-of: 05f896a153
(cherry picked from commit ea4ab656b0)
2023-06-16 17:21:03 +07:00
Martin Doerr
84b4a719ba 8309462: [AIX] vmTestbase/nsk/jvmti/RunAgentThread/agentthr001/TestDescription.java crashing due to empty while loop
Reviewed-by: mbaesken
Backport-of: cf9e6353cc
(cherry picked from commit 08eff92b5e)
2023-06-16 17:21:03 +07:00
Jan Lahoda
ef2a69875a 8309467: Pattern dominance should be adjusted
Reviewed-by: vromero
Backport-of: 408cadb351
(cherry picked from commit 83ea293581)
2023-06-16 17:21:03 +07:00
Joe Darcy
a8c6a1c33f 8309870: Using -proc:full should be considered requesting explicit annotation processing
Reviewed-by: jjg
Backport-of: 3ce1240ca1
(cherry picked from commit b743405033)
2023-06-16 17:21:02 +07:00
Maurizio Cimadamore
705d70071f 8308645: Javadoc of FFM API needs to be refreshed
8309398: ValueLayout:: arrayElementVarHandle doesn't throws UnsupportedOperationException - if byteAlignment() > byteSize()
8308812: SequenceLayout::withElementCount(long elementCount) doesn't throw IllegalArgumentException - if elementCount < 0 for some cases

Reviewed-by: jvernee
(cherry picked from commit 20371fd918)
2023-06-16 17:21:02 +07:00
Chris Hegarty
b7eb3b0594 8309727: Assert privileges while reading the jdk.incubator.vector.VECTOR_ACCESS_OOB_CHECK system property
Reviewed-by: uschindler, rriggs
Backport-of: cee5724d09
(cherry picked from commit 73a9f486ae)
2023-06-16 17:21:02 +07:00
Matthias Baesken
7d17695ec3 8309703: AIX build fails after JDK-8280982
Reviewed-by: mdoerr
Backport-of: 3981297fd3
(cherry picked from commit 005006e7c4)
2023-06-16 17:21:01 +07:00
Daniel D. Daugherty
73622ef2c1 8309760: ProblemList serviceability/jvmti/vthread/FollowReferences/VThreadStackRefTest.java#default with ZGC
Reviewed-by: darcy
Backport-of: aace3dc28c
(cherry picked from commit 4bf6babda5)
2023-06-16 17:21:01 +07:00
Daniel D. Daugherty
552735c1c5 8309702: Exclude java/lang/ScopedValue/StressStackOverflow.java from JTREG_TEST_THREAD_FACTORY=Virtual runs
Reviewed-by: darcy
Backport-of: 307085618d
(cherry picked from commit 406ba341fe)
2023-06-16 17:21:01 +07:00
Vitaly Provodin
a2e0786c22 update exclude list on results of 21_b156.4 test runs 2023-06-15 10:21:29 +07:00
Vitaly Provodin
16d12c8519 update exclude list on results of 21_b150.1 test 2023-06-10 05:25:09 +07:00
Stefan Karlsson
8be1389399 8309675: Generational ZGC: compiler/gcbarriers/UnsafeIntrinsicsTest.java fails in nmt_commit
Reviewed-by: dcubed
Backport-of: c4e6542514
(cherry picked from commit 430ffe7ae6)
2023-06-09 16:09:23 +07:00
Stefan Karlsson
eaa7382eea 8306841: Generational ZGC: NMT reports Java heap size larger than max heap size
Reviewed-by: eosterlund, stuefe
(cherry picked from commit bb377b2673)
2023-06-09 16:09:22 +07:00
Chen Liang
73e8bb0fba 8304425: ClassHierarchyResolver from Reflection
Reviewed-by: asotona
(cherry picked from commit ac3ce2bf75)
2023-06-09 16:09:21 +07:00
Aggelos Biboudis
fc978710d3 8309235: Unnamed Variables (_) can't be used in JShell
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Reviewed-by: asotona
(cherry picked from commit 79a4ac791c)
2023-06-09 16:09:20 +07:00
Nagata-Haruhito
49881fbaf1 8306431: File.listRoots method description should be re-examined
Reviewed-by: bpb, alanb
(cherry picked from commit 9d64a9d220)
2023-06-09 16:09:19 +07:00
Serguei Spitsyn
aaba13d513 8309602: update JVMTI history table for jdk 21
Reviewed-by: alanb, iris
(cherry picked from commit 5af9d2a0ac)
2023-06-09 16:09:18 +07:00
David Holmes
fb3766b94c 8308764: Reporting errors from create_vm may crash
Reviewed-by: stuefe, coleenp, kbarrett
(cherry picked from commit 6646272a05)
2023-06-09 16:09:17 +07:00
Sergey Bylokhov
9a5f0e005d 8308152: PropertyDescriptor should work with overridden generic getter method
Reviewed-by: azvegint
(cherry picked from commit 73dd03cc5a)
2023-06-09 16:09:16 +07:00
Martin Balao
7ac0d737ea 8309569: sun/security/pkcs11/Signature/TestRSAKeyLength.java fails after JDK-8301553
Co-authored-by: Martin Balao <mbalao@openjdk.org>
Co-authored-by: Francisco Ferrari Bihurriet <fferrari@redhat.com>
Reviewed-by: valeriep
(cherry picked from commit 760cb04a2e)
2023-06-09 16:09:15 +07:00
Mandy Chung
1217047ff0 8309630: Clean up tests that reference deploy modules
Reviewed-by: bchristi
(cherry picked from commit e8a59843f2)
2023-06-09 16:09:14 +07:00
Raffaello Giulietti
a2a7a996d3 8309515: Stale cached data from Matcher.namedGroups() after Matcher.usePattern()
Reviewed-by: rriggs
(cherry picked from commit 90027ff204)
2023-06-09 16:09:13 +07:00
Alexey Ivanov
4d19663847 8297923: java.awt.ScrollPane broken after multiple scroll up/down
Reviewed-by: honkar, prr, serb
(cherry picked from commit ea41907396)
2023-06-09 16:09:12 +07:00
Yudi Zheng
bf5816390b 8309562: [JVMCI] Export symbols used by VirtualThread notifyJvmti intrinsics to JVMCI compilers.
Reviewed-by: dnsimon, kvn
(cherry picked from commit 99749c597b)
2023-06-09 16:09:12 +07:00
Eric Nothum
28ac4647f8 8309474: [IR Framework] Wrong @ForceCompile link in README
Reviewed-by: chagedorn, thartmann
(cherry picked from commit 92beb85510)
2023-06-09 16:09:11 +07:00
Daniel D. Daugherty
17ce7e4035 8256302: releasing oopStorage when deflating allows for faster deleting
Reviewed-by: dholmes, rehn, coleenp
(cherry picked from commit 6402004852)
2023-06-09 16:09:10 +07:00
Mandy Chung
0941211777 8309532: java/lang/Class/getDeclaredField/FieldSetAccessibleTest should filter modules that depend on JVMCI
Reviewed-by: alanb, dfuchs
(cherry picked from commit 02bce0b145)
2023-06-09 16:09:09 +07:00
Joe Darcy
bdc07abb13 8309574: Improve core reflection tests for JEP 445
Reviewed-by: mchung
(cherry picked from commit 4ffc8cc216)
2023-06-09 16:09:08 +07:00
Chris Plummer
b4dfcb4160 8309420: com/sun/jdi/StepTest.java fails with virtual thread wrapper
Reviewed-by: sspitsyn, amenkov
(cherry picked from commit e3f3ac0825)
2023-06-09 16:09:07 +07:00
Chris Plummer
bfe5ca05e6 8309510: com/sun/jdi/RedefineNestmateAttr/TestNestmateAttr.java no longer needs to override startUp() method
Reviewed-by: sspitsyn, amenkov
(cherry picked from commit c38abbfcaa)
2023-06-09 16:09:06 +07:00
Joe Darcy
d2285b5d5d 8309503: Improve javax.lang.model tests for JEP 445
Reviewed-by: jlahoda, jjg, jlaskey
(cherry picked from commit c24b0bada2)
2023-06-09 16:09:05 +07:00
Chris Plummer
31d20952c0 8309509: com/sun/jdi/RedefineNestmateAttr/TestNestmateAttr.java fails with virtual test thread factory
Reviewed-by: sspitsyn, amenkov
(cherry picked from commit a54f4d4ab9)
2023-06-09 16:09:04 +07:00
Daniel D. Daugherty
60584a8cf8 8309614: [BACKOUT] JDK-8307153 JVMTI GetThreadState on carrier should return STATE_WAITING
Reviewed-by: azvegint
(cherry picked from commit 33bb64f24f)
2023-06-09 16:09:03 +07:00
JoKern65
ce7e174e01 8308288: Fix xlc17 clang warnings and build errors in hotspot
Reviewed-by: goetz, mbaesken
(cherry picked from commit 5b147eb5e4)
2023-06-09 16:09:02 +07:00
JoKern65
7884a8a411 8309225: Fix xlc17 clang 15 warnings in security and servicability
Reviewed-by: goetz, mdoerr, clanger
(cherry picked from commit 89f5bacaf6)
2023-06-09 16:09:01 +07:00
JoKern65
e78673adbe 8309219: Fix xlc17 clang 15 warnings in java.base
Reviewed-by: goetz, mdoerr
(cherry picked from commit 6eddbe26dd)
2023-06-09 16:09:01 +07:00
Serguei Spitsyn
3a08166477 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING
Reviewed-by: amenkov, cjplummer
(cherry picked from commit 177e8327d6)
2023-06-09 16:09:00 +07:00
Aleksey Shipilev
d61653478d 8309543: Micro-optimize x86 assembler UseCondCardMark
Reviewed-by: kvn, mdoerr
(cherry picked from commit f0236edfba)
2023-06-09 16:08:59 +07:00
Alexander Zvegintsev
1a77364d8b 8280982: [Wayland] [XWayland] java.awt.Robot taking screenshots
Reviewed-by: prr, kizune, psadhukhan
(cherry picked from commit 9d7bf5329e)
2023-06-09 16:08:57 +07:00
Frederic Thevenet
af828a181b 8309550: jdk.jfr.internal.Utils::formatDataAmount method should gracefully handle amounts equal to Long.MIN_VALUE
Reviewed-by: stuefe, mgronlun
(cherry picked from commit a1ab377d99)
2023-06-09 16:08:56 +07:00
Jorn Vernee
8307442519 8308445: Linker should check that capture state segment is big enough
Reviewed-by: mcimadamore
(cherry picked from commit c49129f545)
2023-06-09 16:08:56 +07:00
Jorn Vernee
8fc758cbad 8308031: Linkers should reject unpromoted variadic parameters
Reviewed-by: mcimadamore
(cherry picked from commit fa791119f0)
2023-06-09 16:08:55 +07:00
Jim Laskey
5ae6f19643 8309594: Cleanup naming in JavacParser related to unnamed classes
Reviewed-by: jlahoda
(cherry picked from commit 16ebf47fe3)
2023-06-09 16:08:53 +07:00
Stefan Karlsson
646a548111 8307374: Add a JFR event for tracking RSS
Reviewed-by: stuefe, rcastanedalo
(cherry picked from commit 5722903d53)
2023-06-09 16:08:52 +07:00
Eric Nothum
1e4caafc2b 8302145: ddepth should be uint in PhaseIdealLoop::register_node()
Reviewed-by: chagedorn, thartmann
(cherry picked from commit 1de40f360f)
2023-06-09 16:08:51 +07:00
Jim Laskey
9ca08e4cbb 8309568: javac crashes attempting to -Xprint on a class file of an unnamed class
Reviewed-by: darcy, jlahoda
(cherry picked from commit a6726b66db)
2023-06-09 16:08:50 +07:00
Boris Ulasevich
8654d31807 8305959: x86: Improve itable_stub
Reviewed-by: phh, shade, aph
(cherry picked from commit 8cdd95e8a2)
2023-06-09 16:08:49 +07:00
Matthias Baesken
001aa3e47d 8309297: Adjust ShenandoahHeap print_heap_regions_on
Reviewed-by: ysr, mdoerr
(cherry picked from commit 9233dcc838)
2023-06-09 16:08:48 +07:00
Dhamoder Nalla
f352d1ab9c 8305763: Parsing a URI with an underscore goes through a silent exception, negatively impacting performance
Reviewed-by: dfuchs
(cherry picked from commit 749d480193)
2023-06-09 16:08:47 +07:00
Jaikiran Pai
c8d47bafae 8305906: HttpClient may use incorrect key when finding pooled HTTP/2 connection for IPv6 address
Reviewed-by: djelinski, dfuchs
(cherry picked from commit 3ccb3c0e09)
2023-06-09 16:08:46 +07:00
Serguei Spitsyn
dfc51517ef 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread
Reviewed-by: cjplummer, amenkov
(cherry picked from commit a25b7b8b55)
2023-06-09 16:08:45 +07:00
Daniel Jeliński
b0f3a1eb5b 8309527: Improve test proxy performance
Reviewed-by: dfuchs, jpai
(cherry picked from commit fadcd65018)
2023-06-09 16:08:44 +07:00
Christian Hagedorn
970d3642af 8309472: IGV: Add dump_igv(custom_name) for improved debugging
Reviewed-by: roland, thartmann
(cherry picked from commit 0ed4af76c0)
2023-06-09 16:08:43 +07:00
Alan Bateman
4b3e0b1253 8306647: Implementation of Structured Concurrency (Preview)
8306572: Implementation of Scoped Values (Preview)

Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Andrew Haley <aph@openjdk.org>
Reviewed-by: psandoz, dfuchs, mchung
(cherry picked from commit f1c7afcc3f)
2023-06-09 16:08:42 +07:00
Ichiroh Takiguchi
8d5283c417 8307953: [AIX] C locale's font setting was changed by JEP 400
Reviewed-by: naoto, prr
(cherry picked from commit a08c5cb3f1)
2023-06-09 16:08:41 +07:00
Daniel D. Daugherty
c7cca79547 8309570: ProblemList sun/security/pkcs11/Signature/TestRSAKeyLength.java
Reviewed-by: jjg, darcy
(cherry picked from commit 0ceb43227d)
2023-06-09 16:08:40 +07:00
Chris Plummer
e15438b957 8309396: com/sun/jdi/JdbMethodExitTest.java fails with virtual threads due to a bug in determining the main thread id
Reviewed-by: amenkov, sspitsyn
(cherry picked from commit 65bdbc7a8c)
2023-06-09 16:08:39 +07:00
Martin Balao
0059758c87 8301553: Support Password-Based Cryptography in SunPKCS11
Co-authored-by: Francisco Ferrari Bihurriet <fferrari@redhat.com>
Co-authored-by: Martin Balao <mbalao@openjdk.org>
Reviewed-by: valeriep
(cherry picked from commit 4a75fd462c)
2023-06-09 16:08:38 +07:00
Hannes Wallnöfer
7a78f0c9d8 8292157: Incorrect error: "block element not allowed within inline element <a>"
Reviewed-by: jjg
(cherry picked from commit 0a4f9ad637)
2023-06-09 16:08:37 +07:00
Chris Plummer
7b87fc6236 8309505: com/sun/jdi/MethodEntryExitEvents.java due to finding wrong main thread
Reviewed-by: amenkov, sspitsyn
(cherry picked from commit 16ab7bfe22)
2023-06-09 16:08:36 +07:00
Joe Darcy
8590b9609f 8295071: Spec Clarification : ClassFileFormatVersion: System property java.class.version | Java class format version number
Reviewed-by: iris, alanb, rriggs
(cherry picked from commit d82436e4e3)
2023-06-09 16:08:35 +07:00
Chris Plummer
7fc68c2928 8309506: com/sun/jdi/MultiBreakpointsTest.java fails with virtual test thread factory
Reviewed-by: amenkov, sspitsyn
(cherry picked from commit 571fbdc311)
2023-06-09 16:08:34 +07:00
Joe Darcy
1345b4da95 8309554: Update descriptions in SourceVersion
Reviewed-by: jlaskey, jjg, rriggs
(cherry picked from commit 7d1147ee5c)
2023-06-09 16:08:33 +07:00
Stuart Marks
51eed250b8 8307840: SequencedMap view method specification and implementation adjustments
Reviewed-by: darcy, alanb
(cherry picked from commit 9526190863)
2023-06-09 16:08:32 +07:00
Mandy Chung
bb03ece978 8301721: lookup.findSpecial fails on Object method call from interface
Reviewed-by: alanb
(cherry picked from commit 74dc50b7f0)
2023-06-09 16:08:31 +07:00
Doug Simon
fdd52dcc65 8309542: compiler/jvmci/TestEnableJVMCIProduct.java fails with "JVMCI compiler 'graal' specified by jvmci.Compiler not found"
Reviewed-by: kvn, never
(cherry picked from commit 0f0fda7abc)
2023-06-09 16:08:30 +07:00
Chen Liang
00e0ff56bf 8309413: Improve the performance of MethodTypeDesc::descriptorString
8304932: MethodTypeDescImpl can be mutated by argument passed to MethodTypeDesc.of

Reviewed-by: mchung
(cherry picked from commit 38cef2adbd)
2023-06-09 16:08:29 +07:00
Tom Rodriguez
9eb805a955 8309501: Remove workaround in bin/idea.sh for non standard JVMCI file layout
Reviewed-by: dnsimon, erikj

(cherry picked from commit 7edd0540e0)
2023-06-09 16:07:32 +07:00
Brian Burkhalter
bf01aee27c 8309216: Cast from jchar* to char* in test java/io/GetXSpace.java
Reviewed-by: rriggs, naoto
(cherry picked from commit 9188142698)
2023-06-09 15:48:53 +07:00
Brian Burkhalter
bc05047270 8307887: (fs) Files.createSymbolicLink throws less specific exception when in developer mode and file already exists
Reviewed-by: alanb
(cherry picked from commit d709c25cbf)
2023-06-09 15:48:52 +07:00
Jim Laskey
cb27e98475 8309534: @JEP(number=430, title="String Templates") should use default status
Reviewed-by: alanb
(cherry picked from commit ca6f07f9ab)
2023-06-09 15:48:51 +07:00
Rudi Horn
e31b6113bc 8308748: JNU_GetStringPlatformChars may write to String's internal memory array
Reviewed-by: dholmes, rriggs, alanb
(cherry picked from commit 8f0839bc55)
2023-06-09 15:48:50 +07:00
Pavel Rappo
4efd0f3cf4 8304878: ConcurrentModificationException in javadoc tool
Reviewed-by: jjg
(cherry picked from commit 01455a07a7)
2023-06-09 15:48:49 +07:00
Gui Cao
6a7b7f2b35 8309419: RISC-V: Relax register constraint for AddReductionVF & AddReductionVD nodes
Reviewed-by: fyang, luhenry, yzhu
(cherry picked from commit 7d25bf7722)
2023-06-09 15:48:48 +07:00
Dingli Zhang
1fdd194889 8309418: RISC-V: Make use of vl1r.v & vfabs.v pseudo-instructions where appropriate
Reviewed-by: fyang, luhenry, gcao
(cherry picked from commit 5146a58249)
2023-06-09 15:48:47 +07:00
Maxim Kartashev
0f31f6da89 8308875: java/awt/Toolkit/GetScreenInsetsCustomGC/GetScreenInsetsCustomGC.java failed with 'Cannot invoke "sun.awt.X11GraphicsDevice.getInsets()" because "device" is null'
Reviewed-by: avu, prr
(cherry picked from commit 41bf2ad159)
2023-06-09 15:48:46 +07:00
quadhier
11aab9e6d7 8309346: Extend hs_err logging for all VM operations deriving from VM_GC_Operation
Reviewed-by: tschatzl, stefank
(cherry picked from commit a7a0913005)
2023-06-09 15:48:45 +07:00
Matthias Baesken
d422f0b9d3 8309340: Provide sctpHandleSocketErrorWithMessage
Reviewed-by: clanger
(cherry picked from commit 3b85f84f02)
2023-06-09 15:48:44 +07:00
Alan Bateman
72c9cb13ee 8309406: Change jdk.trackAllThreads to default to true
Reviewed-by: rpressler, mchung, cjplummer
(cherry picked from commit 2e9eff5641)
2023-06-09 15:48:43 +07:00
Stuart Marks
ab21d919fd 8308167: SequencedMap::firstEntry throws NPE when first entry has null key or value
Reviewed-by: bchristi
(cherry picked from commit 6d155a47f1)
2023-06-09 15:48:42 +07:00
Serguei Spitsyn
3dfe49cc40 8304438: jcmd JVMTI.agent_load should obey EnableDynamicAgentLoading
Reviewed-by: cjplummer, alanb, amenkov
(cherry picked from commit 4b1534989b)
2023-06-09 15:48:41 +07:00
Doug Simon
58770321c4 8309136: [JVMCI] add -XX:+UseGraalJIT flag
Reviewed-by: dholmes, kvn
(cherry picked from commit b3c9d6785e)
2023-06-09 15:48:40 +07:00
Jim Laskey
977d4f91c1 8306112: Implementation of JEP 445: Unnamed Classes and Instance Main Methods (Preview)
8308613: javax.lang.model updates for JEP 445 (preview)
8308913: Update core reflection for JEP 445 (preview)

Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Co-authored-by: Joe Darcy <darcy@openjdk.org>
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Jim Laskey <jlaskey@openjdk.org>
Co-authored-by: Adam Sotona <asotona@openjdk.org>
Reviewed-by: mcimadamore, vromero, darcy
(cherry picked from commit 98b53c06cf)
2023-06-09 15:48:39 +07:00
Calvin Cheung
f506bf05bd 8309170: CDS archive heap is always relocated for larger heap
Reviewed-by: stuefe, iklam
(cherry picked from commit e970ddbc60)
2023-06-09 15:48:38 +07:00
Adam Sotona
8d5c2d2f5d 8308842: Consolidate exceptions thrown from Class-File API
Reviewed-by: briangoetz
(cherry picked from commit 4b8922f576)
2023-06-09 15:48:37 +07:00
Joe Darcy
390b5f1381 8309416: Misstatement in semantics of methods in javax.lang.model.ElementFilter
Reviewed-by: prappo
(cherry picked from commit 2b38343e4d)
2023-06-09 15:48:36 +07:00
Alexander Zvegintsev
4fa45eb884 8280994: [XWayland] Drag and Drop does not work in java -> wayland app direction
Reviewed-by: prr, psadhukhan
(cherry picked from commit 73352b68c4)
2023-06-09 15:48:35 +07:00
Antonios Printezis
146554306d 8308726: RISC-V: avoid unnecessary slli in the vectorized arraycopy stubs for bytes
Reviewed-by: fyang, luhenry
(cherry picked from commit 5cd8af7622)
2023-06-09 15:48:34 +07:00
Antonios Printezis
44026a6630 8308969: make test-prebuilt doesn't return the correct exit code
Reviewed-by: erikj
(cherry picked from commit 80232b7e75)
2023-06-09 15:48:33 +07:00
changpeng1997
854531785f 8309129: AArch64: guarantee(T != T2S) failed: "incorrect arrangement" after JDK-8307795
Reviewed-by: thartmann, xgong, eastigeevich
(cherry picked from commit 6d511f1376)
2023-06-09 15:48:32 +07:00
Jan Lahoda
87fbbb8c87 8291966: SwitchBootstrap.typeSwitch could be faster
Reviewed-by: asotona
(cherry picked from commit 9be5769a68)
2023-06-09 15:48:31 +07:00
Hannes Wallnöfer
d0078e8b61 8306578: Report error if no label given in @see and {@link} when no default is available
Reviewed-by: jjg
(cherry picked from commit db0857ddd8)
2023-06-09 15:48:30 +07:00
Prasanta Sadhukhan
3ffa1f0667 8296920: Regression Test DialogOrient.java fails on MacOS
Reviewed-by: honkar, dnguyen, achung, jdv
(cherry picked from commit 8c9d21e519)
2023-06-09 15:48:29 +07:00
Christoph Langer
3e0ad99cdf 8303465: KeyStore of type KeychainStore, provider Apple does not show all trusted certificates
Reviewed-by: mbaesken, weijun
(cherry picked from commit ac41c03003)
2023-06-09 15:48:29 +07:00
David Leopoldseder
d21848f653 8309104: [JVMCI] compiler/unsafe/UnsafeGetStableArrayElement test asserts wrong values with Graal
Reviewed-by: dnsimon, thartmann
(cherry picked from commit 11fb5b2209)
2023-06-09 15:48:28 +07:00
Vladimir Kempik
32d52e41fd 8309405: RISC-V: is_deopt may produce unaligned memory read
Reviewed-by: fyang, luhenry
(cherry picked from commit a02d8001fa)
2023-06-09 15:48:27 +07:00
Roberto Castañeda Lozano
b0bb7c39b3 8302673: [SuperWord] MaxReduction and MinReduction should vectorize for int
Co-authored-by: Jatin Bhateja <jbhateja@openjdk.org>
Reviewed-by: epeter, kvn
(cherry picked from commit 3fa776d66a)
2023-06-09 15:48:26 +07:00
Emanuel Peter
382b9dd374 8309268: C2: "assert(in_bb(n)) failed: must be" after JDK-8306302
Reviewed-by: rcastanedalo, kvn, thartmann
(cherry picked from commit 22a9a86be0)
2023-06-09 15:48:25 +07:00
Jan Lahoda
cf2316d47f 8305225: A service broken error despite annotation processor generating it if directives listed
Reviewed-by: asotona
(cherry picked from commit b6c9232b8b)
2023-06-09 15:48:24 +07:00
Jan Lahoda
e96bf21262 8309336: Incorrect switch in enum not reported properly
Reviewed-by: vromero
(cherry picked from commit 05fb6c6648)
2023-06-09 15:48:23 +07:00
Gui Cao
7fca1a198a 8309332: RISC-V: Improve PrintOptoAssembly output of vector nodes
Reviewed-by: yzhu, fyang
(cherry picked from commit 08c91c2212)
2023-06-09 15:48:22 +07:00
Chris Plummer
3a41c7cddd 8309334: ProcessTools.main() does not properly set thread names when using the virtual thread wrapper
Reviewed-by: amenkov, lmesnik, sspitsyn, alanb
(cherry picked from commit ecb17532dc)
2023-06-09 15:48:21 +07:00
Jaikiran Pai
9664b866e2 8309409: Update HttpInputStreamTest and BodyProcessorInputStreamTest to use hg.openjdk.org
Reviewed-by: dfuchs
(cherry picked from commit ac1597bcc7)
2023-06-09 15:48:20 +07:00
Chris Plummer
716ad3a93b 8309391: Remove non-failing tests from test/jdk/ProblemList-Virtual.txt
Reviewed-by: dcubed, lmesnik
(cherry picked from commit fdb5893bf0)
2023-06-09 15:48:19 +07:00
Guoxiong Li
1e252c1e57 8309265: Serial: Remove the code related to GC overheap limit
Reviewed-by: ayang, tschatzl
(cherry picked from commit 6edd786bf6)
2023-06-09 15:48:18 +07:00
Dingli Zhang
95ee9cafa5 8309254: Implement fast-path for ASCII-compatible CharsetEncoders on RISC-V
Reviewed-by: luhenry, yzhu, fyang, fjiang
(cherry picked from commit 61bb014a86)
2023-06-09 15:48:17 +07:00
Alex Menkov
8c7c91a6fa 8308978: regression with a deadlock involving FollowReferences
Reviewed-by: sspitsyn, lmesnik
(cherry picked from commit 62c935d4fa)
2023-06-09 15:48:16 +07:00
Joe Wang
2ae3bbee63 8303530: Redefine JAXP Configuration File
Reviewed-by: naoto, lancea, alanb, smarks
(cherry picked from commit aff9cea054)
2023-06-09 15:48:15 +07:00
Chris Plummer
21ad939f7b 8309329: com/sun/jdi/DeferredStepTest.java fails with virtual threads due to not waiting for threads to exit
Reviewed-by: sspitsyn, lmesnik, amenkov
(cherry picked from commit 1bb037bdc6)
2023-06-09 15:48:14 +07:00
Mandy Chung
6713afaa28 8309241: ClassForNameLeak fails intermittently as the class loader hasn't been unloaded
Reviewed-by: dnsimon, bchristi
(cherry picked from commit a23bbea959)
2023-06-09 15:48:13 +07:00
Daniel Fuchs
0e61326a75 8309200: java/net/httpclient/ExecutorShutdown fails intermittently, if connection closed during upgrade
Reviewed-by: jpai, djelinski
(cherry picked from commit 931913fbb2)
2023-06-09 15:48:12 +07:00
Andrew Haley
389dc61519 8296411: AArch64: Accelerated Poly1305 intrinsics
Reviewed-by: redestad, adinn
(cherry picked from commit dc21e8aa83)
2023-06-09 15:48:11 +07:00
Poonam Bajaj
d5381fc93e 8303215: Make thread stacks not use huge pages
Reviewed-by: stuefe, dholmes
(cherry picked from commit 59d9d9fcb9)
2023-06-09 15:48:08 +07:00
Albert Mingkun Yang
40e00d8a46 8309286: G1: Remove unused G1HeapRegionAttr::is_valid_gen
Reviewed-by: tschatzl
(cherry picked from commit cb1e5e3f0f)
2023-06-09 15:48:06 +07:00
Stefan Karlsson
cc21938e01 8309210: Extend VM Operations hs_err logging
Reviewed-by: dholmes, stuefe, eosterlund, sjohanss
(cherry picked from commit e8268d9163)
2023-06-09 15:48:05 +07:00
Christian Hagedorn
2f3d643ce9 8308892: Bad graph detected in build_loop_late after JDK-8305635
Reviewed-by: rcastanedalo, roland, thartmann
(cherry picked from commit 7dbdad50a6)
2023-06-09 15:48:04 +07:00
Severin Gehwolf
9153f78d16 8308090: Add container tests for on-the-fly resource quota updates
Reviewed-by: dholmes, mseledtsov
(cherry picked from commit dc8bc6c98c)
2023-06-09 15:48:03 +07:00
Jan Kratochvil
3119ba47fd 8309287: Add fontconfig requirement to building.md for Debian
Reviewed-by: erikj
(cherry picked from commit 73e7af9e28)
2023-06-09 15:48:01 +07:00
Sibabrata Sahoo
c2d74a9e26 8308711: Develop additional Tests for KEM implementation
Reviewed-by: weijun
(cherry picked from commit aeb53e67f9)
2023-06-09 15:48:00 +07:00
JoKern65
43797eed21 8309224: Fix xlc17 clang 15 warnings in java.desktop
Reviewed-by: prr, goetz

(cherry picked from commit dcd9590fed)
2023-06-09 15:44:31 +07:00
Erik Österlund
1514affc90 8308752: Generational ZGC: Avoid final marking through stack chunks
Reviewed-by: stefank, aboldtch
(cherry picked from commit 8f1ce78907)
2023-06-09 15:31:46 +07:00
Axel Boldt-Christmas
92039362c6 8308387: CLD created and unloading list sharing _next node pointer leads to concurrent YC missing CLD roots
Reviewed-by: stefank, coleenp, dholmes, eosterlund
(cherry picked from commit 7b0a33600e)
2023-06-09 15:31:45 +07:00
Roberto Castañeda Lozano
06ad013a7c 8309295: C2: MaxNode::signed_min() returns nullptr for int operands
Reviewed-by: thartmann
(cherry picked from commit 60f3b87d96)
2023-06-09 15:31:44 +07:00
Aggelos Biboudis
afb7b0644b 8309093: Underscore with brackets
Reviewed-by: jlahoda
(cherry picked from commit 8007599756)
2023-06-09 15:31:43 +07:00
Alan Bateman
6b9258f66f 8307478: Implementation of Prepare to Restrict The Dynamic Loading of Agents
Reviewed-by: sspitsyn, cjplummer
(cherry picked from commit 5bd2af26e6)
2023-06-09 15:31:42 +07:00
Tejesh R
7c1cd7cdde 8307105: JFileChooser InvalidPathException when selecting some system folders on Windows
Reviewed-by: aivanov, abhiscxk, dnguyen
(cherry picked from commit 325940b091)
2023-06-09 15:31:41 +07:00
Matias Saavedra Silva
2472c1fc8e 8308891: TestCDSVMCrash.java needs @requires vm.cds
Reviewed-by: dcubed
(cherry picked from commit 101bf2290d)
2023-06-09 15:31:40 +07:00
Doug Simon
4d170d845e 8308954: [JVMCI] code installation increments decompile_count for call_site_target_value failures
Reviewed-by: never
(cherry picked from commit 2bb1972483)
2023-06-09 15:31:39 +07:00
Martin Doerr
d2217a7566 8308469: [PPC64] Implement alternative fast-locking scheme
Reviewed-by: rrich, lucy
(cherry picked from commit 0ab09630c6)
2023-06-09 15:31:38 +07:00
Zdenek Zambersky
5d03f413cb 8309138: Fix container tests for jdks with symlinked conf dir
Reviewed-by: sgehwolf
(cherry picked from commit ec55539534)
2023-06-09 15:31:37 +07:00
Chris Plummer
6d0ebf2abc 8309146: extend JDI StackFrame.setValue() and JDWP StackFrame.setValues minimal support for virtual threads
Reviewed-by: sspitsyn, alanb
(cherry picked from commit e8271649e0)
2023-06-09 15:31:37 +07:00
Chen Liang
51dc034412 8302822: Method/Field/Constructor/RecordComponent::getGenericInfo() is not thread safe
Reviewed-by: stsypanov, redestad
(cherry picked from commit be36096a19)
2023-06-09 15:31:35 +07:00
Chris Plummer
be55ae01dc 8308232: nsk/jdb tests don't pass -verbose flag to the debuggee
Reviewed-by: sspitsyn, lmesnik
(cherry picked from commit c6f20db945)
2023-06-09 15:31:34 +07:00
Mark Powers
e2ddcd8f0e 8307794: Test for HSS/LMS Signature Verification
Reviewed-by: mullan
(cherry picked from commit d987176412)
2023-06-09 15:31:33 +07:00
Ferenc Rakoczi
3916d25e0d 8298127: HSS/LMS Signature Verification
Reviewed-by: weijun, mullan
(cherry picked from commit 050425b141)
2023-06-09 15:31:32 +07:00
Adam Sotona
716c092251 8308856: jdk.internal.classfile.impl.EntryMap::nextPowerOfTwo math problem
Reviewed-by: jlahoda
(cherry picked from commit a6109bf1ea)
2023-06-09 15:31:32 +07:00
Jan Lahoda
d979d0dbc9 8308943: jdk.internal.le build fails on AIX
Reviewed-by: asotona
(cherry picked from commit 6adc242cf3)
2023-06-09 15:31:30 +07:00
Volker Simonis
6b1ad5666d 8307990: jspawnhelper must close its writing side of a pipe before reading from it
Reviewed-by: stuefe, rriggs
(cherry picked from commit 39f6d807db)
2023-06-09 15:31:29 +07:00
Aleksey Shipilev
35332fdf98 8308803: Improve java/util/UUID/UUIDTest.java
Reviewed-by: jpai, rriggs
(cherry picked from commit 4460429d7a)
2023-06-09 15:31:29 +07:00
Christian Hagedorn
a369ad132d 8307683: Loop Predication should not hoist range checks with trap on success projection by negating their condition
Reviewed-by: thartmann, roland
(cherry picked from commit dfd3da3f52)
2023-06-09 15:31:28 +07:00
Thomas Schatzl
5416fd0860 8308766: TLAB initialization may cause div by zero
Reviewed-by: shade, ayang
(cherry picked from commit 96ed1392d1)
2023-06-09 15:31:27 +07:00
Yanhong Zhu
b6b598bf96 8303417: RISC-V: Merge vector instructs with similar match rules
Reviewed-by: fyang, rehn, dzhang
(cherry picked from commit 6c7225f819)
2023-06-09 15:31:26 +07:00
Hao Sun
6f9c4e6159 8308503: AArch64: SIGILL when running with -XX:UseBranchProtection=pac-ret on hardware without PAC feature
Reviewed-by: aph, ngasson, dlong
(cherry picked from commit a46b5acc15)
2023-06-09 15:31:25 +07:00
Sandhya Viswanathan
d46d643a7a 8300865: C2: product reduction in ProdRed_Double is not vectorized
Reviewed-by: fgao, epeter, kvn
(cherry picked from commit f9ad7df4da)
2023-06-09 15:31:24 +07:00
Justin King
d5f89fea9f 8305320: DbgStrings and AsmRemarks are leaking
Reviewed-by: coleenp, fparain
(cherry picked from commit 8eda97dc8d)
2023-06-09 15:31:23 +07:00
Jonathan Gibbons
e0e58b0062 8309150: Need to escape " inside attribute values
Reviewed-by: prappo
(cherry picked from commit 09514745fc)
2023-06-09 15:31:22 +07:00
David Holmes
dc9d1d5014 8309171: Test vmTestbase/nsk/jvmti/scenarios/jni_interception/JI05/ji05t001/TestDescription.java fails after JDK-8308341
Reviewed-by: dcubed, gziemski
(cherry picked from commit 0119969816)
2023-06-09 15:31:21 +07:00
Dean Long
70624cf111 8308975: Fix signed integer overflow in compiler code, part 2
Reviewed-by: aph, coleenp, kvn
(cherry picked from commit f8a924a749)
2023-06-09 15:31:20 +07:00
Chris Plummer
b29ceb9e4f 8308819: add JDWP and JDI virtual thread support for ThreadReference.ForceEarlyReturn
Reviewed-by: sspitsyn, alanb
(cherry picked from commit 5531f6ba1b)
2023-06-09 15:31:19 +07:00
Daniel D. Daugherty
4640b9537d 8309236: ProblemList java/util/concurrent/locks/Lock/OOMEInAQS.java with ZGC and Generational ZGC again
Reviewed-by: bpb, azvegint
(cherry picked from commit e42a4b659a)
2023-06-09 15:31:18 +07:00
Brian Burkhalter
67b9d9b261 8308678: (fs) UnixPath::toRealPath needs additional permissions when running with SM (macOS)
Reviewed-by: lancea, alanb
(cherry picked from commit 8dbd384003)
2023-06-09 15:31:17 +07:00
Roger Riggs
8de7a796c7 8304914: Use OperatingSystem, Architecture, and Version in jpackage
Reviewed-by: asemenyuk
(cherry picked from commit c3cd481a9a)
2023-06-09 15:31:16 +07:00
Chris Plummer
d501322e41 8309159: Some minor comment and code cleanup in jdk/com/sun/jdi/PopFramesTest.java
Reviewed-by: sspitsyn, lmesnik
(cherry picked from commit eae1f59da9)
2023-06-09 15:31:15 +07:00
Daniel D. Daugherty
1868e69088 8309230: ProblemList jdk/incubator/vector/Float64VectorTests.java on aarch64
8309231: ProblemList vmTestbase/nsk/jvmti/scenarios/jni_interception/JI05/ji05t001/TestDescription.java

Reviewed-by: darcy
(cherry picked from commit 45473ef235)
2023-06-09 15:31:12 +07:00
Chen Liang
efd81cb6ba 8299505: findVirtual on array classes incorrectly restricts the receiver type
Reviewed-by: mchung
(cherry picked from commit 78aa5f3fc1)
2023-06-09 15:31:10 +07:00
Xue-Lei Andrew Fan
7bfc3ad6f7 8308022: update for deprecated sprintf for java.base
Reviewed-by: naoto
(cherry picked from commit 42ca6e6942)
2023-06-09 15:31:09 +07:00
Naoto Sato
9c12ec1bcb 8308316: Default decomposition mode in Collator
Reviewed-by: rriggs
(cherry picked from commit 1264902517)
2023-06-09 15:31:08 +07:00
Matthias Baesken
fffcd2f3ab 8308872: enhance logging and some exception in krb5/Config.java
Reviewed-by: weijun
(cherry picked from commit 70670b4af6)
2023-06-09 15:31:07 +07:00
Matias Saavedra Silva
a006a7d290 8308910: Allow executeAndLog to accept running process
Reviewed-by: ccheung, iklam
(cherry picked from commit 024d9b131d)
2023-06-09 15:31:06 +07:00
Emanuel Peter
7703b7df22 8308917: C2 SuperWord::output: assert before bailout with CountedLoopReserveKit
Reviewed-by: kvn, thartmann
(cherry picked from commit 25b9803056)
2023-06-09 15:31:05 +07:00
Yadong Wang
b7edca769a 8308765: RISC-V: Expand size of stub routines for zgc only
Reviewed-by: fjiang, fyang
(cherry picked from commit d66b6d8fd2)
2023-06-09 15:31:03 +07:00
Daniel Fuchs
d6c485a0c4 8309120: java/net/httpclient/AsyncShutdownNow.java fails intermittently
Reviewed-by: jpai
(cherry picked from commit 4aea7dab15)
2023-06-09 15:31:02 +07:00
Albert Mingkun Yang
e1fd31b718 8309111: Removing unused constructor of PerfLongCounter and PerfLongVariable
Reviewed-by: dholmes
(cherry picked from commit a990322429)
2023-06-09 15:31:01 +07:00
Aggelos Biboudis
d6876c3c1a 8309054: Parsing of erroneous patterns succeeds
Reviewed-by: jlahoda
(cherry picked from commit 4f3a95af2f)
2023-06-09 15:30:59 +07:00
Johan Sjölen
7fe7c61596 8309044: Replace NULL with nullptr, final sweep of hotspot code
Reviewed-by: stefank, dholmes, kvn, amitkumar
(cherry picked from commit 4f16161607)
2023-06-09 15:30:58 +07:00
Leo Korinth
cd98db8b1e 8309048: Remove malloc locker test case
Reviewed-by: dholmes, tschatzl, coleenp, lmesnik
(cherry picked from commit 88236263dc)
2023-06-09 15:30:56 +07:00
Kim Barrett
7685dde64d 8240774: [REDO] G1DirtyCardQueue destructor has useless flush
Reviewed-by: dholmes, ayang, tschatzl
(cherry picked from commit 927a9ed683)
2023-06-09 15:30:55 +07:00
Dingli Zhang
fd68ea8d69 8308997: RISC-V: Sign extend when comparing 32-bit value with zero instead of testing the sign bit
Co-authored-by: zifeihan <caogui@iscas.ac.cn>
Reviewed-by: fjiang, fyang
(cherry picked from commit 119994f3ce)
2023-06-09 15:30:53 +07:00
Leonid Mesnik
f60435a570 8308986: Disable svc tests failing with virtual thread factory
Reviewed-by: dholmes, dcubed, sspitsyn
(cherry picked from commit 327733c93d)
2023-06-09 15:30:52 +07:00
Alexey Ushakov
3ed5db8e59 JBR-5704 displaySyncOFF: javax/swing/JDialog/Transparency/TransparencyTest.java: JDialog transparency lost upon iconify/deiconify sequence
Corrected startRedraw method to call setNeedsDisplay in displaySync=false mode

(cherry picked from commit bd291402b1)
2023-06-08 12:43:48 +02:00
Nikita Gubarkov
31bec5b54b JBR-5637 Linux: force release grabs before doing _NET_WM_MOVERESIZE. 2023-06-06 22:06:16 +02:00
Sergey Shelomentsev
258e860c9c fixup! JBR-5670 restore original display mode 2023-06-06 21:55:52 +03:00
Sergey Shelomentsev
559499ef3d JBR-5701 update source and target java version in J2DBench build file 2023-06-06 15:54:06 +03:00
Sergey Shelomentsev
7bd0a4f9b8 JBR-2870 add resression test for JPopupMenu
- verify that the popup menu is usable if overlaps WM's dock panel of the bottom of screen
2023-06-06 11:42:43 +03:00
Nikita Tsarev
34f54e4e9e JBR-5630: vmoption to change dead key reporting behavior on macOS 2023-06-02 17:38:29 +02:00
Nikita Tsarev
d9e8213d6a JBR-5469: Fix NextAppWinKey behavior with certain keys 2023-06-02 17:38:23 +02:00
Nikita Tsarev
f45ba83159 JBR-5558: macOS keyboard rewrite 2 2023-06-02 17:38:17 +02:00
Maxim Kartashev
7d51b5d1c0 JBR-5666 Wayland: WLToolkit doesn't work with weston
Multiple Wayland buffers support.
2023-06-02 19:05:40 +04:00
Vladislav Rassokhin
473c0e7675 JBR-5600 Reduce noise in signing scripts output
(cherry picked from commit 4e2fa80e86)
2023-06-02 20:33:46 +07:00
Vladislav Rassokhin
c0fc88ae56 JBR-5600 Sign frameworks as whole, verify framework signature before full app sign
(cherry picked from commit ebb82ed952)
2023-06-02 20:33:45 +07:00
Vladislav Rassokhin
3c0fb6c09d tools/mac/scripts: minor improvements
* don't move into itself
* use `PKG_NAME` variable instead of `${APP_NAME}.pkg`
* cleanup sign.sh
* add `SCRIPT_VERBOSE` env variable to control `set -x`

(cherry picked from commit 45a9853b23)
2023-06-02 20:33:45 +07:00
Vladislav Rassokhin
6411043581 JBR-5600 Staple .pkg with signature
(cherry picked from commit e1dc322fd3)
2023-06-02 20:33:45 +07:00
Vladislav Rassokhin
5761732efc JBR-5600 Notarize macOS binaries using notarytool
(cherry picked from commit f0f1734d50)
2023-06-02 20:33:44 +07:00
Vladislav Rassokhin
ae867dd13d JBR-5600 Sign macOS binaries using jet-sign
(cherry picked from commit 9cbf4e489b)
2023-06-02 20:33:44 +07:00
David Holmes
8c4aed5120 8308341: JNI_GetCreatedJavaVMs returns a partially initialized JVM
Reviewed-by: jsjolen, gziemski
(cherry picked from commit 1e6770fb97)
2023-06-02 18:39:01 +07:00
Joe Darcy
e1fde81faa 8309134: Augment test/langtools/tools/javac/versions/Versions.java for JDK 21 language changes
Reviewed-by: jjg
(cherry picked from commit cb40db052c)
2023-06-02 18:39:01 +07:00
Mandy Chung
447d381f5d 8307944: ClassFileDumper should only load java.nio.file.Path if enabled
Reviewed-by: rriggs
(cherry picked from commit de7fd1c306)
2023-06-02 18:38:59 +07:00
Valerie Peng
bc28eab97d 8297885: misc sun/security/pkcs11 tests timed out
Reviewed-by: xuelei
(cherry picked from commit 7891de331a)
2023-06-02 18:38:59 +07:00
Roger Riggs
ce6acc93c2 8308960: Decouple internal Version and OperatingSystem classes
Reviewed-by: mchung
(cherry picked from commit 323d6ceda6)
2023-06-02 18:38:58 +07:00
Joe Darcy
e219466fe1 8308987: Update java.lang.Class to use javadoc snippets
Reviewed-by: alanb
(cherry picked from commit 1b8e6bf31c)
2023-06-02 18:38:58 +07:00
Daniel Fuchs
7fb6eff67d 8307648: java/net/httpclient/ExpectContinueTest.java timed out
Reviewed-by: djelinski
(cherry picked from commit 04b0e785f6)
2023-06-02 18:38:57 +07:00
Weijun Wang
f81bdb9fbf 8297878: KEM: Implementation
Reviewed-by: ascarpino, mullan
(cherry picked from commit 6b90b0519e)
2023-06-02 18:38:57 +07:00
Brian Burkhalter
a07e48d26e 8290499: new File(parent, "/") breaks normalization – creates File with slash at the end
Reviewed-by: rriggs
(cherry picked from commit 21af8bae38)
2023-06-02 18:38:56 +07:00
Jorn Vernee
82be64576d 8308992: New test TestHFA fails with zero
Reviewed-by: mcimadamore
(cherry picked from commit 804f198c73)
2023-06-02 18:38:56 +07:00
Jasmine Karthikeyan
53be7e77af 8051725: Improve expansion of Conv2B nodes in the middle-end
Reviewed-by: thartmann, qamai, sviswanathan
(cherry picked from commit fb0b1f0c23)
2023-06-02 18:38:55 +07:00
Paul Hohensee
cddee5368d 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM
Reviewed-by: dholmes, mchung
(cherry picked from commit 3eced01f9e)
2023-06-02 18:38:54 +07:00
Jie Fu
b608a35ff5 8309110: Build failure after JDK-8307795 due to warnings in micro-benchmark StoreMaskTrueCount.java
Reviewed-by: thartmann
(cherry picked from commit 15e028530a)
2023-06-02 18:38:54 +07:00
Antonios Printezis
6769e5140a 8308977: gtest:codestrings fails on riscv
Reviewed-by: fyang
(cherry picked from commit 4526282266)
2023-06-02 18:38:53 +07:00
changpeng1997
6aebb8deb0 8307795: AArch64: Optimize VectorMask.truecount() on Neon
Reviewed-by: aph, eliu
(cherry picked from commit f600d0369a)
2023-06-02 18:38:53 +07:00
Renjith
f077c476aa 8309095: Remove UTF-8 character from TaskbarPositionTest.java
Reviewed-by: aivanov
(cherry picked from commit 07f2070411)
2023-06-02 18:38:52 +07:00
Maurizio Cimadamore
e1a635436f 8309042: MemorySegment::reinterpret cleanup action is not called for all overloads
Reviewed-by: jvernee
(cherry picked from commit 2b186e246e)
2023-06-02 18:38:52 +07:00
Erik Österlund
227afcd6d9 8308881: Strong CLD oop handle roots are demoted to non-roots concurrently
Reviewed-by: stefank, coleenp
(cherry picked from commit 78aac241b8)
2023-06-02 18:38:51 +07:00
Emanuel Peter
0e6521ce9c 8302670: use-after-free related to PhaseIterGVN interaction with Unique_Node_List and Node_Stack
Co-authored-by: Justin King <jcking@openjdk.org>
Reviewed-by: thartmann, chagedorn, jcking
(cherry picked from commit 1f1f604071)
2023-06-02 18:38:51 +07:00
Tobias Hartmann
ffd88cefa8 8309077: Problemlist compiler/jvmci/TestUncaughtErrorInCompileMethod.java
Reviewed-by: chagedorn
(cherry picked from commit d35a550f6d)
2023-06-02 18:38:50 +07:00
Gui Cao
68d42b43d4 8308817: RISC-V: Support VectorTest node for Vector API
Co-authored-by: Dingli Zhang <dingli@iscas.ac.cn>
Reviewed-by: fjiang, fyang
(cherry picked from commit 457e1cb827)
2023-06-02 18:38:50 +07:00
Ioi Lam
96216a61b3 8308906: Make CIPrintCompilerName a diagnostic flag
Reviewed-by: kvn, stuefe
(cherry picked from commit 7508d9f9e0)
2023-06-02 18:38:49 +07:00
Prasanta Sadhukhan
1906a97381 8309060: Compilation Error in javax/swing/event/FocusEventCauseTest.java
Reviewed-by: abhiscxk, aivanov
(cherry picked from commit a4bae3a9e2)
2023-06-02 18:38:49 +07:00
Renjith
7496c13940 8289547: Update javax/swing/Popup/TaskbarPositionTest.java
Reviewed-by: aivanov, dmarkov, honkar
(cherry picked from commit d73fc70ea2)
2023-06-02 18:38:48 +07:00
Markus Grönlund
ff6d2f47da 8307488: Incorrect weight of the first ObjectAllocationSample JFR event
Reviewed-by: egahlin
(cherry picked from commit 7cf6eecdc8)
2023-06-02 18:38:47 +07:00
Doug Simon
df91c85273 8308930: [JVMCI] TestUncaughtErrorInCompileMethod times out
Reviewed-by: never
(cherry picked from commit a5d8d59469)
2023-06-02 18:38:47 +07:00
Prasanta Sadhukhan
f497bf3056 8306119: Many components respond to a mouse event by requesting focus without supplying the MOUSE_EVENT cause
Reviewed-by: jdv
(cherry picked from commit 70130d3b16)
2023-06-02 18:38:46 +07:00
Albert Mingkun Yang
a62ae67460 8308948: Remove unimplemented ThreadLocalAllocBuffer::reset
Reviewed-by: tschatzl
(cherry picked from commit 6360b49931)
2023-06-02 18:38:45 +07:00
Dingli Zhang
7c364e3436 8308915: RISC-V: Improve temporary vector register usage avoiding the use of v0
Reviewed-by: yzhu, fyang
(cherry picked from commit e21f865d84)
2023-06-02 18:38:45 +07:00
Christian Stein
43d4facc14 8306560: Add TOOLING.jsh load file
Reviewed-by: jlahoda
(cherry picked from commit 547a8b40b3)
2023-06-02 18:38:44 +07:00
Gerard Ziemski
4c0961db3e 8306428: RunThese30M.java crashed with assert(early->flag() == current->flag() || early->flag() == mtNone)
Reviewed-by: jsjolen, stuefe
(cherry picked from commit ca54f4e007)
2023-06-02 18:38:44 +07:00
Erik Gahlin
25d3c8e6c2 8308876: JFR: Deserialization of EventTypeInfo uses incorrect attribute names
Reviewed-by: mgronlun
(cherry picked from commit 5fdb22f911)
2023-06-02 18:38:43 +07:00
Serguei Spitsyn
dc514f00cd 8308814: extend SetLocalXXX minimal support for virtual threads
Reviewed-by: cjplummer
(cherry picked from commit bd113ee048)
2023-06-02 18:38:43 +07:00
Hannes Wallnöfer
a272dbdf55 8286470: Support searching for sections in class/package javadoc
Reviewed-by: jjg
(cherry picked from commit a92363461d)
2023-06-02 18:38:43 +07:00
Calvin Cheung
1d5e9ef6b5 8308594: Use atomic bitset function for PackageEntry::_defined_by_cds_in_class_path
Reviewed-by: coleenp, lfoltan
(cherry picked from commit 55d297fdda)
2023-06-02 18:38:42 +07:00
Xue-Lei Andrew Fan
694d482fa3 8308801: update for deprecated sprintf for libnet in java.base
Reviewed-by: djelinski, rriggs
(cherry picked from commit c72b547425)
2023-06-02 18:38:42 +07:00
Erik Gahlin
7372da0fe2 8308935: jdk.management.jfr.RecordingInfo.toString() lacks test coverage
Reviewed-by: mgronlun
(cherry picked from commit 77c5adb09e)
2023-06-02 18:38:41 +07:00
Ashutosh Mehra
dc4ef0f0e8 8308657: ReplayInline is not availabe in production build
Reviewed-by: kvn, roland, thartmann
(cherry picked from commit ce5251aff7)
2023-06-02 18:38:41 +07:00
Stefan Karlsson
0f27f4b246 8308589: gc/cslocker/TestCSLocker.java timed out
Reviewed-by: eosterlund
(cherry picked from commit cc0976bf7f)
2023-06-02 18:38:40 +07:00
Kevin Walls
66520b30af 8299665: /proc/self/stat parsing in libmanagement broken by execname with spaces
Reviewed-by: sspitsyn, amenkov
(cherry picked from commit 17ef8a44a9)
2023-06-02 18:38:40 +07:00
Tejesh R
7b58f3c48b 8306812: Open source several AWT Miscellaneous tests
Reviewed-by: psadhukhan
(cherry picked from commit c494770ca0)
2023-06-02 18:38:39 +07:00
Erik Österlund
375c694d9b 8308009: Generational ZGC: OOM before clearing all SoftReferences
Reviewed-by: stefank, aboldtch
(cherry picked from commit d3b9b364da)
2023-06-02 18:38:39 +07:00
Roland Westrelin
213b6712f7 8305189: C2 failed "assert(_outcnt==1) failed: not unique"
Reviewed-by: chagedorn, thartmann
(cherry picked from commit bac02b6e9d)
2023-06-02 18:38:38 +07:00
Johan Sjölen
6b9daf666e 8299974: Replace NULL with nullptr in share/adlc/
Reviewed-by: dlong, kvn
(cherry picked from commit 62537d200f)
2023-06-02 18:38:38 +07:00
Doug Simon
61c1759200 8308931: Problemlist compiler/jvmci/TestUncaughtErrorInCompileMethod.java
Reviewed-by: thartmann
(cherry picked from commit f09345b3a4)
2023-06-02 18:38:37 +07:00
Stefan Karlsson
1046189abe 8308844: ProblemList gc/z/TestHighUsage.java with Generational ZGC on windows x64
Reviewed-by: aboldtch, tschatzl
(cherry picked from commit 7c072dbd9d)
2023-06-02 18:38:37 +07:00
Tejesh R
bbc192bc8f 8306137: Open source several AWT ScrollPane related tests
Reviewed-by: aivanov
(cherry picked from commit 4becb7bcb6)
2023-06-02 18:38:36 +07:00
Roland Westrelin
042814e6e7 8308583: SIGSEGV in GraphKit::gen_checkcast
Reviewed-by: thartmann, kvn, never
(cherry picked from commit 199b1bf500)
2023-06-02 18:38:36 +07:00
Sergey Shelomentsev
bd49544ff5 JBR-5670 restore initial display mode after test execution 2023-06-02 14:29:28 +03:00
Sergey Shelomentsev
e0f6c712cb JBR-4880 Fix DeadKeySystemAssertionDialog to avoid receiving key event out of the window 2023-06-02 14:29:24 +03:00
Maxim Kartashev
2626653c5d JBR-5658 Wayland: incorrect scaling of window content
The buffer scale is changed atomically with the size.
WLGraphicsConfig made immutable and is re-created when scaling changes.
WLGraphicsDevice is also re-created when its position changes.
2023-06-01 13:24:53 +04:00
Alexey Ushakov
faead95d98 JBR-5649 Flickering in multi-monitor configuration
Provided corrected initial value for currentDisplayID

(cherry picked from commit 9ba9286595)
2023-05-31 14:34:33 +02:00
Nikita Provotorov
55c8a871ec JBR-5668: The implementation of a11y announcing for macOS crashes with -Xcheck:jni.
- Create a global reference of the passed to EDT accessible object (the local reference) to use it in the AppKit thread ;
- Enable -Xcheck:jni in the tests ;
- Make the tests handle the problematic case .

(cherry picked from commit cba981df4b)
2023-05-30 17:53:16 +03:00
Sergey Shelomentsev
23f2a642dc JBR-5579 Update mouse location checks, set window always on top for ActionListenerTest 2023-05-29 18:40:16 +03:00
Sergey Shelomentsev
6092ee64de JBR-5551 update hit tests on custom title bar
- set windows always on top
- verify mouse location before clicking
2023-05-29 18:40:12 +03:00
Sergey Shelomentsev
c5cdfd13aa remove jb/java/awt/CustomTitleBar/MouseEventsOnClientArea.java 2023-05-29 17:18:31 +03:00
Sergey Shelomentsev
69fcc807ed JBR-5577 fix MouseEventsOnClientArea test
- add Swing/AWT specific Task runners
- split MouseEventsOnClientArea to separate AWT/Swing tests
- use CountDownLatch for tracking mouse events
2023-05-29 17:17:22 +03:00
Sergey Shelomentsev
c2d200da0b remove jb/java/awt/Window/ZOrderOnModalDialogActivation.java 2023-05-29 15:29:35 +03:00
Sergey Shelomentsev
120f6a977c JBR-4494 pass ui scale options for child process 2023-05-29 15:29:30 +03:00
Justin Lu
71d23799bc 8159023: Engineering notation of DecimalFormat does not work as documented
Reviewed-by: naoto
(cherry picked from commit 46c4da7fdd)
2023-05-26 19:27:21 +03:00
Daniel D. Daugherty
3eeec554d3 8308907: ProblemList java/awt/Toolkit/GetScreenInsetsCustomGC/GetScreenInsetsCustomGC.java on linux-x64
8308908: ProblemList javax/sound/sampled/Clip/ClipIsRunningAfterStop.java on linux-x64
8308909: ProblemList sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java on linux-x64

Reviewed-by: mikael
(cherry picked from commit ee321c70e5)
2023-05-26 19:27:21 +03:00
Calvin Cheung
e42a8cf256 8308073: ClassLoaderExt::append_boot_classpath should handle dynamic archive
Reviewed-by: iklam, matsaave
(cherry picked from commit dc7683a051)
2023-05-26 19:27:20 +03:00
Erik Gahlin
817a6d5c5e 8304375: jdk/jfr/api/consumer/filestream/TestOrdered.java failed with "Expected at least some events to be out of order! Reuse = false"
Reviewed-by: mgronlun
(cherry picked from commit 4870234552)
2023-05-26 19:27:20 +03:00
Ashutosh Mehra
b75a6280ea 8308672: Add version number in the replay file generated by DumpInline
Reviewed-by: kvn
(cherry picked from commit 7d2a7ce240)
2023-05-26 19:27:19 +03:00
Naoto Sato
fded148865 8308108: Support Unicode extension for collation settings
Reviewed-by: iris, rriggs, jlu, alanb
(cherry picked from commit 27ba8bd4ed)
2023-05-26 19:27:19 +03:00
Doug Simon
887d28aca1 8307125: compiler/jvmci/compilerToVM/MaterializeVirtualObjectTest.java hits assert(!Continuation::is_frame_in_continuation(thread(), fr())) failed: No support for deferred values in continuations
Reviewed-by: never
(cherry picked from commit 89b3c375ac)
2023-05-26 19:27:18 +03:00
Erik Gahlin
3a552cc9a2 8306703: JFR: Summary views
Reviewed-by: mgronlun
(cherry picked from commit 98acce13d5)
2023-05-26 19:27:18 +03:00
Maurizio Cimadamore
07352f7a9c 8300491: SymbolLookup::libraryLookup accepts strings with terminators
Reviewed-by: psandoz
(cherry picked from commit 534de6d8ae)
2023-05-26 19:27:17 +03:00
Tyler Steele
7a01257890 8286597: Implement PollerProvider on AIX
Reviewed-by: mdoerr, alanb, vtewari
(cherry picked from commit 48d21bd089)
2023-05-26 19:27:17 +03:00
Michael McMahon
58fcc3e546 8300038: Make new version of JNU_GetStringPlatformChars which checks for null characters
Reviewed-by: dfuchs, naoto

(cherry picked from commit e7edf8d145)
2023-05-26 19:27:02 +03:00
Erik Gahlin
8016e48d24 8308335: JFR: Remove @Experimental from Virtual Threads events
Reviewed-by: alanb, mgronlun
(cherry picked from commit 90e57fd5a9)
2023-05-26 19:20:53 +03:00
Albert Mingkun Yang
8c09a8d7b5 8308098: G1: Remove redundant checks in G1ObjectCountIsAliveClosure
Reviewed-by: tschatzl, iwalulya
(cherry picked from commit 7e2e05d836)
2023-05-26 19:20:52 +03:00
Coleen Phillimore
d89bb15be6 8308655: Narrow types of ConstantPool and ConstMethod returns
Reviewed-by: fparain, matsaave
(cherry picked from commit 2599ada152)
2023-05-26 19:20:51 +03:00
Roberto Castañeda Lozano
4441fc361e 8308746: C2 IR test failures for TestFpMinMaxReductions.java with SSE2
Co-authored-by: Jatin Bhateja <jbhateja@openjdk.org>
Reviewed-by: chagedorn, thartmann
(cherry picked from commit 5a0a238f67)
2023-05-26 19:20:51 +03:00
Pavel Rappo
30d8a28973 8308735: Typos in parameter names
Reviewed-by: naoto, iris, bpb
(cherry picked from commit 38367d3c3a)
2023-05-26 19:20:49 +03:00
Christian Hagedorn
749ffd5c0e 8305635: Replace Parse Predicate IfNode with new ParsePredicateNode and route predicate queries through dedicated classes
Reviewed-by: thartmann, kvn
(cherry picked from commit 4f096eb7c9)
2023-05-26 19:20:48 +03:00
Sergey Bylokhov
eca25204b0 8307132: Cleanup the code of sun.java2d.cmm.lcms package
Reviewed-by: prr
(cherry picked from commit f27bc59f85)
2023-05-26 19:20:48 +03:00
Jaikiran Pai
16d485b39a 8308475: Make the thread dump files generated by jcmd Thread.dump_to_file jtreg failure handler action easily accessible
Reviewed-by: lmesnik
(cherry picked from commit 426ebf4fe9)
2023-05-26 19:20:47 +03:00
Axel Boldt-Christmas
796eb11233 8307958: Metaspace verification is slow causing extreme class unloading times
Reviewed-by: stuefe, coleenp
(cherry picked from commit 8d8153e98a)
2023-05-26 19:20:45 +03:00
Christian Stein
bcb1637ec5 8144891: ToolBox should use java.nio.file.Path internally, instead of java.io.File
Reviewed-by: jjg
(cherry picked from commit d87713440a)
2023-05-26 19:20:44 +03:00
Leo Korinth
05a8c43bd2 8308506: Reduce testing time by removing combinations tested
Reviewed-by: tschatzl, lmesnik
(cherry picked from commit aaa61899c9)
2023-05-26 19:20:43 +03:00
Aggelos Biboudis
54f4f334aa 8308727: Compiler should accept final unnamed variables in try-with-resources
Reviewed-by: jlahoda
(cherry picked from commit 4500bb7a67)
2023-05-26 19:20:41 +03:00
Hannes Wallnöfer
5a6f831906 8305710: Line breaks in search tags cause invalid JSON in index file
Reviewed-by: jjg
(cherry picked from commit 3272e2597a)
2023-05-26 19:20:40 +03:00
Hannes Wallnöfer
68b6723341 8305958: Use links instead of buttons for auto-generated header links
Reviewed-by: jjg
(cherry picked from commit 3f4abff59c)
2023-05-26 19:20:40 +03:00
Adam Sotona
aa90bcc0f8 8308549: Classfile API should fail to generate over-sized Code attribute
Reviewed-by: mchung
(cherry picked from commit bfcae68ed1)
2023-05-26 19:20:39 +03:00
Vladimir Kempik
87dc6004e7 8308656: RISC-V: vstring_compare doesnt manifest usage of all vector registers
Reviewed-by: yzhu, fyang
(cherry picked from commit 2a18e537d6)
2023-05-26 19:20:38 +03:00
Guoxiong Li
72fbf5db95 8288619: Unexpected parsing for @see
Reviewed-by: jjg
(cherry picked from commit a291f002cd)
2023-05-26 19:20:37 +03:00
Serguei Spitsyn
ac96444ba5 8308400: add ForceEarlyReturn support for virtual threads
Reviewed-by: alanb, lmesnik
(cherry picked from commit 89b99143ac)
2023-05-26 19:20:36 +03:00
Chen Liang
a6dd1f22e4 8307652: sealed class hierarchy graph doesn't distinguish non-sealed classes
Reviewed-by: pminborg, jjg
(cherry picked from commit 1451ac1770)
2023-05-26 19:20:35 +03:00
Alex Menkov
e3c8db0437 8299414: JVMTI FollowReferences should support references from VirtualThread stack
Reviewed-by: sspitsyn, kevinw
(cherry picked from commit 207fbcb083)
2023-05-26 19:20:35 +03:00
Jim Laskey
3ff2db0179 8308040: Evaluate new public types in non-public classes
Reviewed-by: rriggs, darcy
(cherry picked from commit b44fa365ca)
2023-05-26 19:20:34 +03:00
Tom Rodriguez
71a4a029d4 8308291: compiler/jvmci/meta/ProfilingInfoTest.java fails with -XX:TieredStopAtLevel=1
Reviewed-by: kvn, chagedorn
(cherry picked from commit ac89e3045b)
2023-05-26 19:20:34 +03:00
Coleen Phillimore
daef083984 8297887: Update Siphash
Reviewed-by: lfoltan
(cherry picked from commit bacf652311)
2023-05-26 19:20:33 +03:00
Chris Plummer
5b8d406a04 8308237: add JDWP and JDI virtual thread support for ThreadReference.PopFrames
8308481: JDI TestScaffold does not support passing app arguments to the debuggee
8305632: Test com/sun/jdi/PopAndInvokeTest.java fails with OpaqueFrameException

Reviewed-by: alanb, sspitsyn, lmesnik
(cherry picked from commit 89f2d458a2)
2023-05-26 19:20:32 +03:00
Erik Gahlin
9921c84601 8307738: JFR: EventStream.openRepository() drops events
Reviewed-by: mgronlun
(cherry picked from commit d10467e27b)
2023-05-26 19:20:32 +03:00
Daniel Fuchs
928c2a5eb1 8308310: HttpClient: Avoid logging or locking from within synchronized blocks
Reviewed-by: jpai
(cherry picked from commit 736b90d54b)
2023-05-26 19:20:31 +03:00
Martin Doerr
7a59c80189 8308761: New test TestHFA needs adaptation for JDK-8308276
Reviewed-by: mcimadamore, mbaesken
(cherry picked from commit 7764f46e9e)
2023-05-26 19:20:30 +03:00
Vitaly Provodin
d35559a45a fixup! IDEA-141456 Multimonitor HIDPI support for Linux 2023-05-26 19:19:55 +03:00
Maxim Kartashev
ef548335c4 8305578: X11GraphicsDevice.pGetBounds() is slow in remote X11 sessions
Reviewed-by: avu, serb

(cherry picked from commit d7245f70e7)
2023-05-26 19:19:05 +03:00
Maxim Kartashev
cd781631a8 Revert "JBR-3688 PyCharm incredibly slow with fakexrandr"
This reverts commit 0aef3419
2023-05-26 19:11:50 +03:00
Vitaly Provodin
85f65db694 Revert "JBR-3813 Regression after fix for JBR-3688"
This reverts commit bc957c83b7.
2023-05-26 19:10:01 +03:00
Vitaly Provodin
a3045012ed Revert "JBR-3916 Deadlock in pGetBounds() on Linux"
This reverts commit 603509c6c4.
2023-05-26 19:09:49 +03:00
Viktor Klang
5de91a382c 8298066: java/util/concurrent/locks/Lock/OOMEInAQS.java timed out
Reviewed-by: alanb
(cherry picked from commit 544978cb76)
2023-05-26 19:07:22 +03:00
Thomas Schatzl
d64497e9a6 8171221: Remove -XX:+CheckMemoryInitialization
Reviewed-by: ayang, shade
(cherry picked from commit 65c8dbe693)
2023-05-26 19:07:22 +03:00
Xiaolin Zheng
d97eb806e1 8308091: Remove unused iRegIHeapbase() matching operand
Reviewed-by: fyang, thartmann
(cherry picked from commit 2d4d850813)
2023-05-26 19:07:21 +03:00
Emanuel Peter
3e8bcf5bae 8308758: Problemlist compiler/c2/irTests/TestVectorConditionalMove.java
Reviewed-by: chagedorn
(cherry picked from commit b7a84b0fd7)
2023-05-26 19:07:20 +03:00
Martin Doerr
8ba055c53b 8303040: linux PPC64le: Implementation of Foreign Function & Memory API (Preview)
Reviewed-by: jvernee, rrich
(cherry picked from commit 20f15352a3)
2023-05-26 19:07:19 +03:00
Tobias Holenstein
cc25f90747 8302736: Major performance regression in Math.log on aarch64
Reviewed-by: thartmann, dlong, aph
(cherry picked from commit 466ec300fc)
2023-05-26 19:07:18 +03:00
Doug Simon
b0c8a2522f 8308151: [JVMCI] capture JVMCI exceptions in hs-err
Reviewed-by: never
(cherry picked from commit 05c095cf39)
2023-05-26 19:07:18 +03:00
Emanuel Peter
b6432122b3 8306302: C2 Superword fix: use VectorMaskCmp and VectorBlend instead of CMoveVF/D
Reviewed-by: fgao, jbhateja
(cherry picked from commit beb75e651f)
2023-05-26 19:07:17 +03:00
Jamil Nimeh
f15bdf80a1 8179502: Enhance OCSP, CRL and Certificate Fetch Timeouts
Reviewed-by: mullan
(cherry picked from commit 2836c34b64)
2023-05-26 19:07:16 +03:00
Chen Liang
0313218064 8306698: Add overloads to MethodTypeDesc::of
Reviewed-by: mchung
(cherry picked from commit 8ffa264cf0)
2023-05-26 19:07:15 +03:00
Valerie Peng
e1d80270e5 8301154: SunPKCS11 KeyStore deleteEntry results in dangling PrivateKey entries
Reviewed-by: weijun, hchao
(cherry picked from commit 6b27dad76e)
2023-05-26 19:07:15 +03:00
Daniel D. Daugherty
3dc13d4f76 8308716: ProblemList java/util/concurrent/ScheduledThreadPoolExecutor/BasicCancelTest.java with genzgc on windows-x64
8308718: ProblemList three mlvm/indy/func/jvmti tests on windows-x64 in Xcomp mode
8308720: ProblemList java/awt/event/SequencedEvent/MultipleContextsFunctionalTest.java on macosx-x64

Reviewed-by: azvegint, darcy
(cherry picked from commit ed0e956fc2)
2023-05-26 19:07:14 +03:00
Afshin Zafari
497683df17 8303942: os::write should write completely
Reviewed-by: coleenp, iklam, dholmes, mgronlun
(cherry picked from commit bddf48380e)
2023-05-26 19:07:13 +03:00
Quan Anh Mai
f7d1ab24b0 8306706: Support out-of-line code generation for MachNodes
Reviewed-by: thartmann, kvn
(cherry picked from commit ab241b3428)
2023-05-26 19:07:12 +03:00
Brian Burkhalter
d1301e4a06 8308016: Use snippets in java.io package
Reviewed-by: rriggs
(cherry picked from commit 710453c676)
2023-05-26 19:07:12 +03:00
Axel Boldt-Christmas
b40d6fe963 8308116: jdk.test.lib.compiler.InMemoryJavaCompiler.compile does not close files
Reviewed-by: lmesnik, stefank, jlahoda
(cherry picked from commit e9320f31dc)
2023-05-26 19:07:11 +03:00
changpeng1997
172745cbee 8307523: [vectorapi] Optimize MaskFromLongBenchmark.java
Reviewed-by: qamai, xgong, ngasson
(cherry picked from commit 97d3b2731e)
2023-05-26 19:07:10 +03:00
Jamil Nimeh
872a8f2c57 8305091: Change ChaCha20 cipher init behavior to match AES-GCM
Reviewed-by: djelinski, ascarpino
(cherry picked from commit bb0ff48aa9)
2023-05-26 19:07:09 +03:00
Jan Kratochvil
a19b282537 8308544: Fix compilation regression from JDK-8306983 on musl libc
Reviewed-by: bpb, stuefe
(cherry picked from commit c0c4d77192)
2023-05-26 19:07:07 +03:00
Daniel Fuchs
a80f5b32d3 8308565: HttpClient: Sanitize logging while stopping
Reviewed-by: jpai
(cherry picked from commit 9e196b3631)
2023-05-26 19:07:07 +03:00
Daniel Fuchs
6100f2ab46 8308545: java/net/httpclient/ShutdownNow.java fails with "stream 1 cancelled"
Reviewed-by: jpai
(cherry picked from commit 582ddeb2b2)
2023-05-26 19:07:06 +03:00
Jan Lahoda
a17ef3c75c 8307814: In the case of two methods with Record Patterns, the second one contains a line number from the first method
Reviewed-by: vromero, godin
(cherry picked from commit 1cfb265bef)
2023-05-26 19:07:06 +03:00
Per Minborg
f610888b50 8308281: Java snippets in the FFM API need to be updated
Reviewed-by: mcimadamore
(cherry picked from commit eb11508eff)
2023-05-26 19:07:06 +03:00
Emanuel Peter
bf1604fedf 8305073: Fix VerifyLoopOptimizations - step 2 - verify idom
Reviewed-by: chagedorn, thartmann, kvn
(cherry picked from commit 26227a6ff8)
2023-05-26 19:07:05 +03:00
Aggelos Biboudis
056d810845 8305582: Compiler crash when compiling record patterns with var
Reviewed-by: vromero, jlahoda
(cherry picked from commit 80d7de7074)
2023-05-26 19:07:05 +03:00
Axel Boldt-Christmas
0808e432e9 8308500: ZStatSubPhase::register_start should not call register_gc_phase_start if ZAbort::should_abort()
Reviewed-by: stefank, eosterlund
(cherry picked from commit e55961331e)
2023-05-26 19:07:04 +03:00
Emanuel Peter
eb8d934a73 8260943: C2 SuperWord: Remove dead vectorization optimization added by 8076284
Reviewed-by: kvn, thartmann
(cherry picked from commit bdd240283e)
2023-05-26 19:07:04 +03:00
Amit Kumar
6352e7439a 8308403: [s390x] separate remaining_cargs from z_abi_160
Reviewed-by: mdoerr, lucy
(cherry picked from commit 4f0f776187)
2023-05-26 19:07:03 +03:00
Emanuel Peter
c545837a06 8302652: [SuperWord] Reduction should happen after loop, when possible
Reviewed-by: kvn, pli, jbhateja, sviswanathan
(cherry picked from commit 06b0a5e038)
2023-05-26 19:07:03 +03:00
Matthias Baesken
64b7431be4 8308300: enhance exceptions in MappedMemoryUtils.c
Reviewed-by: alanb, clanger, bpb
(cherry picked from commit 69f508a2ac)
2023-05-26 19:07:01 +03:00
Adam Sotona
b5671ea52e 8308093: Disable language preview features use in JDK
Reviewed-by: liach, erikj, alanb, darcy
(cherry picked from commit c4408278d1)
2023-05-26 19:07:00 +03:00
Doug Simon
29ea3ef3eb 8306992: [JVMCI] mitigate more against JVMCI related OOME causing VM to exit
Reviewed-by: never
(cherry picked from commit 422128b70a)
2023-05-26 19:07:00 +03:00
Alan Bateman
bfa616e392 8308038: java/util/concurrent/ThreadPerTaskExecutor/ThreadPerTaskExecutorTest.java timed out
Reviewed-by: dfuchs, jpai
(cherry picked from commit fe8c689eee)
2023-05-26 19:06:59 +03:00
Alan Bateman
0cb7356888 8308235: ThreadContainer registry accumulates weak refs
Reviewed-by: jpai
(cherry picked from commit ada416e66c)
2023-05-26 19:06:59 +03:00
Ichiroh Takiguchi
c8344e2ee1 8308046: Move Solaris related charsets from java.base to jdk.charsets module
Reviewed-by: naoto
(cherry picked from commit 5d8ba938be)
2023-05-26 19:06:58 +03:00
Thomas Stuefe
82bf297c7d 8306507: [linux] Print number of memory mappings in error reports
Reviewed-by: adinn, sgehwolf
(cherry picked from commit 878162b362)
2023-05-26 19:06:58 +03:00
Johan Sjölen
cf0039ee07 8300086: Replace NULL with nullptr in share/c1/
Reviewed-by: thartmann, chagedorn
(cherry picked from commit 90d5041b6a)
2023-05-26 19:06:57 +03:00
Yi-Fan Tsai
cde240a2e1 8308465: Reduce memory accesses in AArch64 MD5 intrinsic
Reviewed-by: aph, phh
(cherry picked from commit 8474e693b4)
2023-05-26 19:06:57 +03:00
quadhier
7ef704d8d1 8302218: CHeapBitMap::free frees with incorrect size
Reviewed-by: aboldtch, iklam, tschatzl
(cherry picked from commit f99ad11dd1)
2023-05-26 19:06:57 +03:00
Joe Darcy
3dbf6f50c3 8308388: Update description of SourceVersion.RELEASE_21
Reviewed-by: iris
(cherry picked from commit d77a41033a)
2023-05-26 19:06:56 +03:00
Matias Saavedra Silva
512e4ae94b 8307190: Refactor ref_at methods in Constant Pool
Reviewed-by: coleenp, iklam
(cherry picked from commit 3f4cfbdd36)
2023-05-26 19:06:56 +03:00
Jiangli Zhou
19331d45c1 8308458: Windows build failure with disassembler.cpp(792): warning C4267: '=': conversion from 'size_t' to 'int'
Reviewed-by: jiefu
(cherry picked from commit 491bdeaa90)
2023-05-26 19:06:55 +03:00
Calvin Cheung
b97a6c9b4a 8308034: Some CDS tests need to use @requires vm.flagless
Reviewed-by: iklam
(cherry picked from commit b58980b73d)
2023-05-26 19:06:54 +03:00
George Adams
41c0897ad5 8307573: Implementation of JEP 449: Deprecate the Windows 32-bit x86 Port for Removal
Reviewed-by: erikj
(cherry picked from commit 29b8d3d9e7)
2023-05-26 19:06:53 +03:00
Maurizio Cimadamore
e86614a3a2 8308276: Change layout API to work with bytes, not bits
Reviewed-by: psandoz, pminborg
(cherry picked from commit 5fc9b5787d)
2023-05-26 19:06:52 +03:00
Maurizio Cimadamore
fec208a6b1 8287834: Add SymbolLookup::or method
Reviewed-by: psandoz
(cherry picked from commit 91aeb5de58)
2023-05-26 19:06:51 +03:00
Thomas Obermeier
d1228ae376 8307908: [ppc] Add failing RTM tests to ProblemList until 8307907 is fixed.
Reviewed-by: clanger, goetz
(cherry picked from commit 4f88437b7f)
2023-05-26 19:06:51 +03:00
Andrew Leonard
8694368a2a 8308407: libjvm library not reproducibly comparable between vendors
Co-authored-by: Simon Tooke <stooke@openjdk.org>
Reviewed-by: andrew, dholmes

(cherry picked from commit dc30e68651)
2023-05-26 19:06:11 +03:00
Matthew Donovan
069dc80037 8301381: Verify DTLS 1.0 cannot be negotiated
Reviewed-by: xuelei
(cherry picked from commit 18e2446420)
2023-05-26 19:05:16 +03:00
Prasanta Sadhukhan
a9e7af0243 8307311: Timeouts on one macOS 12.6.1 host of two Swing JTableHeader tests
Reviewed-by: dnguyen, azvegint
(cherry picked from commit b3cb82b859)
2023-05-26 19:05:16 +03:00
Alexander Zvegintsev
2d8a54a61e 8280993: [XWayland] Popup is not closed on click outside of area controlled by XWayland
Reviewed-by: prr
(cherry picked from commit 3d550f7485)
2023-05-26 19:05:16 +03:00
Darragh Clarke
5f957dec3e 7065228: To interpret case-insensitive string locale independently
Reviewed-by: dfuchs, naoto, djelinski, jpai, michaelm
(cherry picked from commit 05e99db466)
2023-05-26 19:05:15 +03:00
Jan Lahoda
ae64dbb4f2 8306983: Do not invoke external programs when switch terminal to raw mode on selected platforms
Co-authored-by: Adam Sotona <asotona@openjdk.org>
Reviewed-by: erikj, vromero, bpb
(cherry picked from commit a9705196ce)
2023-05-26 19:05:14 +03:00
Andrey Turbanov
92f5d6be02 8305785: Avoid redundant HashMap.containsKey call in java.util.regex
Reviewed-by: stsypanov, jpai
(cherry picked from commit 6b65e5754c)
2023-05-26 19:05:14 +03:00
Erik Österlund
0f3393da8e 8308181: Generational ZGC: Remove CLDG_lock from old gen root scanning
Reviewed-by: ayang, aboldtch
(cherry picked from commit 8011ba74a2)
2023-05-26 19:05:13 +03:00
Aggelos Biboudis
653e101c31 8302344: Compiler Implementation for Unnamed patterns and variables (Preview)
8307444: java.lang.AssertionError when using unnamed patterns
8307482: Compiler should accept var _ in nested patterns in switch case
8307007: Implementation for javax.lang.model for unnamed variables (Preview)
8308312: Compiler should fail when a local variable declaration does not include an Identifier and does not have an initializer
8308309: Compiler should accept mixed masked and unmasked variables in lambda parameters

Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Reviewed-by: vromero, darcy
(cherry picked from commit 8aa50288a1)
2023-05-26 19:05:12 +03:00
Leo Korinth
a9bdb0b7ce 8307804: Reorganize ArrayJuggle test cases
Reviewed-by: dholmes, lmesnik
(cherry picked from commit b588797900)
2023-05-26 19:05:11 +03:00
Serguei Spitsyn
eaacef32ac 8308000: add PopFrame support for virtual threads
Reviewed-by: lmesnik, alanb
(cherry picked from commit 928fcf9751)
2023-05-26 19:05:11 +03:00
Emanuel Peter
25e58cbfcf 8308084: C2 fix idom bug in PhaseIdealLoop::create_new_if_for_predicate
Reviewed-by: chagedorn, thartmann, kvn
(cherry picked from commit 41beb448d2)
2023-05-26 19:05:10 +03:00
Emanuel Peter
70dfc4f612 8307619: C2 failed: Not monotonic (AndI CastII LShiftI) in TestShiftCastAndNotification.java
Reviewed-by: chagedorn, thartmann
(cherry picked from commit b6a9f5c304)
2023-05-26 19:05:09 +03:00
Jan Lahoda
81d068fba0 8300543: Compiler Implementation for Pattern Matching for switch
8300545: Compiler Implementation for Record Patterns

Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Reviewed-by: vromero, mcimadamore
(cherry picked from commit eaa80ad08c)
2023-05-26 19:05:08 +03:00
Ioi Lam
603dd11d81 8308342: Remove MetaspaceClosure::Ref::keep_after_pushing()
Reviewed-by: ccheung
(cherry picked from commit 5ccc962942)
2023-05-26 19:05:07 +03:00
Daniel D. Daugherty
e2adef86a0 8307783: runtime/reflect/ReflectOutOfMemoryError.java timed out
8308468: ProblemList containers/docker/TestMemoryAwareness.java on linux-x64
8308470: ProblemList javax/management/remote/mandatory/connection/BrokenConnectionTest.java on linux-all
8308471: ProblemList javax/management/remote/mandatory/loading/MissingClassTest.java on windows-x64 w/ loom
8308472: ProblemList javax/management/remote/mandatory/loading/RMIDownloadTest.java on windows-x64 w/ loom
8308473: ProblemList java/lang/instrument/NativeMethodPrefixAgent.java with loom

Reviewed-by: lmesnik
(cherry picked from commit a0f4a948bb)
2023-05-26 19:05:06 +03:00
Kevin Walls
0b6eca5c69 8304685: Fix whitespace parsing in libjdwp
Reviewed-by: cjplummer, amenkov, sspitsyn
(cherry picked from commit 939344b843)
2023-05-26 19:05:05 +03:00
Leonid Mesnik
1717ea49f0 8307962: Exclude gc/g1/TestSkipRebuildRemsetPhase.java fails with virtual test thread factory
Reviewed-by: sspitsyn
(cherry picked from commit 241455fcd1)
2023-05-26 19:05:05 +03:00
Justin Lu
144255ab1f 8308021: Update IANA Language Subtag Registry to Version 2023-05-11
Reviewed-by: lancea, naoto
(cherry picked from commit 34468e1c91)
2023-05-26 19:05:04 +03:00
Weijun Wang
aa4a00e69c 8305972: Update XML Security for Java to 3.0.2
Reviewed-by: mullan
(cherry picked from commit f0aebc8141)
2023-05-26 19:05:03 +03:00
Coleen Phillimore
a5213b8796 8308396: Fix offset_of conversion warnings in runtime code
Reviewed-by: amitkumar, jsjolen, fparain
(cherry picked from commit 265f40b4f7)
2023-05-26 19:05:02 +03:00
Brian Burkhalter
5a386f99da 8281149: (fs) java/nio/file/FileStore/Basic.java fails with java.lang.RuntimeException: values differ by more than 1GB
Reviewed-by: jpai, rriggs
(cherry picked from commit a5343fa605)
2023-05-26 19:05:01 +03:00
Maurizio Cimadamore
7e606a8d34 8308248: Revisit alignment of layout constants on 32-bit platforms
Reviewed-by: psandoz, pminborg
(cherry picked from commit 44218b1c9e)
2023-05-26 19:05:01 +03:00
Adam Sotona
395438c8c8 8308410: broken compilation of test\jdk\tools\launcher\exeJliLaunchTest.c
Reviewed-by: alanb
(cherry picked from commit 80ef5c228b)
2023-05-26 19:05:00 +03:00
Kick-it11
64fcdd888a 8306057: False arguments calling dispatch_base for aarch64
Reviewed-by: aph, fyang
(cherry picked from commit 326d778ccf)
2023-05-26 19:04:59 +03:00
Jie Fu
9afd832971 8308408: Build failure with -Werror=maybe-uninitialized in libjli/java.c with GCC8
Reviewed-by: alanb
(cherry picked from commit 690d3969b8)
2023-05-26 19:04:58 +03:00
Adam Sotona
25c19f9b3d 8303669: SelectVersion indexes past the end of the argv array
Reviewed-by: vromero
(cherry picked from commit fa14314853)
2023-05-26 19:04:58 +03:00
Raffaello Giulietti
9644542832 8132995: Matcher$ImmutableMatchResult should be optimized to reduce space usage
Reviewed-by: redestad, smarks
(cherry picked from commit 25868b95ee)
2023-05-26 19:04:57 +03:00
Aleksey Shipilev
949c2b8700 8308118: Avoid multiarray allocations in AESCrypt.makeSessionKey
Reviewed-by: xuelei
(cherry picked from commit 6765761075)
2023-05-26 19:04:56 +03:00
Dingli Zhang
36edb447b4 8307609: RISC-V: Added support for Extract, Compress, Expand and other nodes for Vector API
Co-authored-by: zifeihan <caogui@iscas.ac.cn>
Reviewed-by: fyang, fjiang
(cherry picked from commit 97ade57fb2)
2023-05-26 19:04:56 +03:00
Feilong Jiang
b8c24f8e88 8308277: RISC-V: Improve vectorization of Match.sqrt() on floats
Reviewed-by: fyang
(cherry picked from commit e520cdc882)
2023-05-26 19:04:55 +03:00
Maxim Kartashev
9631478eac JBR-5656 Builds of JDK 21 are reproducible by default 2023-05-26 11:15:26 +04:00
bourgesl
ed0651cbfd JBR-5651: Improved MTLVertexCache to merge consecutive full-tiles ie use 1 larger quad instead of many quads per row, full-tile is only using 1x1 pixel (full), applied to color, gradient & texture paints + fixed clang warnings
(cherry picked from commit ff9ecea896)
2023-05-24 11:22:54 +02:00
bourgesl
1ec3aa5ead JBR-5638: improved renderer performance for simple rectangular area (see BBoxAATileGenerator), added new statistics in Renderer
(cherry picked from commit 071d81d294)
2023-05-24 11:22:54 +02:00
Maxim Kartashev
fc1bdbb506 JBR-5657 Wayland: sometimes there's a deadlock at the start
Don't exit from toolkit initialization until all the necessary
information has been received from the Wayland server.
2023-05-20 18:49:37 +04:00
Maxim Kartashev
4edf0ca518 JBR-5655 java/awt/Toolkit/Wayland/WaylandToolkit.java: WLToolkit not found
WLToolkit made operational in headless mode
2023-05-20 11:40:29 +04:00
Vitaly Provodin
6fd5df6487 update exclude list on results of 21_b126.4 test runs 2023-05-19 18:27:27 +07:00
Leonid Mesnik
98a2ea3f16 8307865: Invalid is_in_any_VTMS_transition() check in post_dynamic_code_generated_while_holding_locks
Reviewed-by: sspitsyn, cjplummer
(cherry picked from commit 42948c04b9)
2023-05-19 18:27:26 +07:00
Chris Plummer
3f056f3a19 8308187: jdi/EventSet/resume/resume008 failed with "EventHandler> Unexpected event: ThreadStartEvent in thread resume008-thread0"
Reviewed-by: dcubed
(cherry picked from commit 4a6d6d5a59)
2023-05-19 18:27:26 +07:00
Weijun Wang
a668c42a78 8308010: X509Key and PKCS8Key allows garbage bytes at the end
Reviewed-by: mullan
(cherry picked from commit 148df533af)
2023-05-19 18:27:26 +07:00
Ashutosh Mehra
dc16767f05 8308192: Error in parsing replay file when staticfield is an array of single dimension
Reviewed-by: thartmann, kvn
(cherry picked from commit d3feedf511)
2023-05-19 18:27:26 +07:00
Alexander Zvegintsev
0c055f4dc6 8308370: Fix build failures related to the java.awt.Robot documentation
Reviewed-by: dcubed
(cherry picked from commit 02dc95e6b9)
2023-05-19 18:27:26 +07:00
Alexander Zvegintsev
6b87ca01b5 8307779: Relax the java.awt.Robot specification
Reviewed-by: mkartashev, prr
(cherry picked from commit 21aa057faf)
2023-05-19 18:27:26 +07:00
Joe Darcy
37cd365248 8308245: Add -proc:full to describe current default annotation processing policy
Reviewed-by: vromero
(cherry picked from commit 42ecc8a37f)
2023-05-19 18:27:26 +07:00
Calvin Cheung
c20e192b25 8279993: Assert that a shared class is not loaded more than once
Reviewed-by: iklam, stuefe
(cherry picked from commit bb24c36759)
2023-05-19 18:27:25 +07:00
Alisen Chung
aacb764042 8307083: Open source some drag and drop tests 3
Reviewed-by: prr, serb
(cherry picked from commit 1b154e4fd3)
2023-05-19 18:27:25 +07:00
Jasmine Karthikeyan
2262680d26 8305787: Wrong debugging information printed with TraceOptoOutput
Reviewed-by: thartmann, kvn
(cherry picked from commit cc5c9b5da2)
2023-05-19 18:27:25 +07:00
Thomas Stuefe
8d8702a623 8308350: Increase buffer size for jspawnhelper arguments
Reviewed-by: rriggs
(cherry picked from commit 808dc1b047)
2023-05-19 18:27:25 +07:00
Amit Kumar
621bcfced0 8308347: [s390x] build broken after JDK-8304913
Reviewed-by: stuefe, rriggs
(cherry picked from commit a58e0ca9d2)
2023-05-19 18:27:25 +07:00
bobpengxie
86f11f343b 8308283: Build failure with GCC12 & GCC13
Reviewed-by: erikj, jiefu
(cherry picked from commit bfc3ccd90d)
2023-05-19 18:27:25 +07:00
Jan Kratochvil
4cf585eb70 8308290: Add fontconfig requirement to building.md
Reviewed-by: erikj
(cherry picked from commit 57b8ed1398)
2023-05-19 18:27:24 +07:00
Chen Liang
3628f36eb6 8306457: Classfile API components implementations should not be exposed
Reviewed-by: asotona
(cherry picked from commit 3c9ec26370)
2023-05-19 18:27:24 +07:00
Adam Sotona
452e1fd380 8306842: Classfile API performance improvements
Reviewed-by: redestad
(cherry picked from commit f4f5542f8d)
2023-05-19 18:27:24 +07:00
Thomas Stuefe
bfd86a3fed 8308285: Assert on -Xshare:dump when running with -Xlog:cds=trace
Reviewed-by: ccheung, iklam
(cherry picked from commit 95da499ef2)
2023-05-19 18:27:24 +07:00
Ioi Lam
61cce239a6 8308236: Remove SystemDictionaryShared::clone_dumptime_tables()
Reviewed-by: vlivanov, ccheung
(cherry picked from commit 6f75dd8741)
2023-05-19 18:27:24 +07:00
Boris Ulasevich
c30206e95a 8308270: ARM32 build broken after JDK-8304913
Reviewed-by: stuefe, rriggs
(cherry picked from commit 83c096d6e2)
2023-05-19 18:27:24 +07:00
Jiangli Zhou
b608584fb0 8308110: Resolve multiple definition of 'JNI_OnLoad_jsound' linking error
Reviewed-by: alanb, rasbold
(cherry picked from commit 902585bec1)
2023-05-19 18:27:23 +07:00
Eric Caspole
134856e157 8307483: New micros for j.u.c.LockSupport
Co-authored-by: Sergey Kuksenko <skuksenko@openjdk.org>
Reviewed-by: shade, redestad
(cherry picked from commit 6073edf3cd)
2023-05-19 18:27:23 +07:00
Patricio Chilano Mateo
dd92009413 8307365: JvmtiStressModule hit SIGSEGV in JvmtiEventControllerPrivate::recompute_thread_enabled
Reviewed-by: sspitsyn, dcubed, lmesnik
(cherry picked from commit 24094482f0)
2023-05-19 18:27:23 +07:00
Alisen Chung
e2941849e7 8307299: Move more DnD tests to open
Reviewed-by: prr, serb
(cherry picked from commit 950c5df859)
2023-05-19 18:27:23 +07:00
Leonid Mesnik
c822dc3ba1 8308292: Problemlist vmTestbase/nsk/jvmti/AttachOnDemand/attach020/TestDescription.java
Reviewed-by: sspitsyn
(cherry picked from commit 8bedf2efd7)
2023-05-19 18:27:23 +07:00
Brian Burkhalter
41521b99c7 8307976: (fs) Files.createDirectories(dir) returns dir::toAbsolutePath instead of dir
Reviewed-by: alanb
(cherry picked from commit 6d4782bc73)
2023-05-19 18:27:23 +07:00
Joe Darcy
e246e0c1c3 8308239: Tighten up accessibility of nested classes in java.lang.invoke
Reviewed-by: alanb
(cherry picked from commit f57c78337e)
2023-05-19 18:27:22 +07:00
Martin Doerr
343bfc2727 8308246: PPC64le build broken after JDK-8304913
Reviewed-by: shade, mbaesken
(cherry picked from commit 64f6681cc7)
2023-05-19 18:27:22 +07:00
Adam Sotona
90780f5a48 8307326: Package jdk.internal.classfile.java.lang.constant become obsolete
Reviewed-by: erikj, liach
(cherry picked from commit 5763be7267)
2023-05-19 18:27:22 +07:00
JoKern65
dec40473d0 8306304: Fix xlc17 clang warnings in ppc and aix code
Reviewed-by: erikj, tsteele, mbaesken
(cherry picked from commit c7951cf674)
2023-05-19 18:27:22 +07:00
Erik Österlund
71c8d83019 8308043: Deadlock in TestCSLocker.java due to blocking GC while allocating
Reviewed-by: stefank, ayang, tschatzl
(cherry picked from commit 285c833ffa)
2023-05-19 18:27:22 +07:00
Jaikiran Pai
e3d9bbfd8d 8308185: Update Http2TestServerConnection to use SSLSocket.startHandshake()
Reviewed-by: djelinski
(cherry picked from commit 1a6f9810cd)
2023-05-19 18:27:22 +07:00
Aleksey Shipilev
25991e6163 8308088: Improve class check in CollectedHeap::is_oop
Reviewed-by: zgu, tschatzl, ayang, stuefe
(cherry picked from commit b300e73a4a)
2023-05-19 18:27:21 +07:00
Axel Boldt-Christmas
fbb35a42aa 8296469: Instrument VMError::report with reentrant iteration step for register and stack printing
Reviewed-by: eosterlund, stuefe

(cherry picked from commit e34ecc97e6)
2023-05-19 18:27:21 +07:00
Matthias Baesken
5ae3e58ae1 8308156: VerifyCACerts.java misses blank in error output
Reviewed-by: mullan, rhalade
(cherry picked from commit 5a92aae1d9)
2023-05-19 18:27:21 +07:00
Guoxiong Li
7c0bcfe51f 8307955: Prefer to PTRACE_GETREGSET instead of PTRACE_GETREGS in method 'ps_proc.c::process_get_lwp_regs'
Reviewed-by: cjplummer, kevinw
(cherry picked from commit 2f1c65486b)
2023-05-19 18:27:21 +07:00
Ashutosh Mehra
3defc7aed7 8306460: Clear JVM_ACC_QUEUED flag on methods when dumping dynamic CDS archive
Reviewed-by: coleenp, iklam
(cherry picked from commit d3e5065284)
2023-05-19 18:27:21 +07:00
Leonid Mesnik
7909ddd8e1 8308223: failure handler missed jcmd.vm.info command
Reviewed-by: stefank
(cherry picked from commit 563152f32d)
2023-05-19 18:27:21 +07:00
Erik Helin
579ea03965 8307458: Add periodic heap usage JFR events
Reviewed-by: stefank, aboldtch
(cherry picked from commit cb8b8cdd68)
2023-05-19 18:27:20 +07:00
Naoto Sato
6bc1cbe2be 8307547: Support variant collations
Reviewed-by: srl, jlu, alanb
(cherry picked from commit f9a785e855)
2023-05-19 18:27:20 +07:00
Justin Lu
c6167ce338 8300794: Use @snippet in java.util:i18n
Reviewed-by: naoto, lancea
(cherry picked from commit 4e92991809)
2023-05-19 18:27:20 +07:00
Chris Plummer
69f68bebe1 8306467: Fix nsk/jdb/kill/kill001 to work with new JVMTI StopThread support for virtual threads.
Reviewed-by: sspitsyn, amenkov
(cherry picked from commit 64d5157116)
2023-05-19 18:27:20 +07:00
Coleen Phillimore
1fbb56d122 8307533: Use atomic bitset functions for metadata flags
Reviewed-by: ccheung, kbarrett
(cherry picked from commit 488330d53b)
2023-05-19 18:27:20 +07:00
Stefan Karlsson
2315d604eb 8308097: Generational ZGC: Update constructor syntax
Reviewed-by: eosterlund, aboldtch
(cherry picked from commit 60ab1358da)
2023-05-19 18:27:20 +07:00
Stefan Karlsson
8dc4ccabac 8308092: Replace NULL with nullptr in gc/x
Reviewed-by: eosterlund, aboldtch, tschatzl, dholmes
(cherry picked from commit 599fa774b8)
2023-05-19 18:27:19 +07:00
Stefan Karlsson
376f6e619f 8299075: TestStringDeduplicationInterned.java fails because extra deduplication
Reviewed-by: kbarrett, tschatzl
(cherry picked from commit 682359cb48)
2023-05-19 18:27:19 +07:00
Johan Sjölen
b0ec881d16 8300081: Replace NULL with nullptr in share/asm/
Reviewed-by: coleenp
(cherry picked from commit 9d5bab11f0)
2023-05-19 18:27:19 +07:00
Amit Kumar
26a11ed22b 8278411: Implement UseHeavyMonitors consistently, s390 port
Reviewed-by: mdoerr, stuefe, lucy
(cherry picked from commit 41ee125a0f)
2023-05-19 18:27:19 +07:00
Stefan Karlsson
ee6d267603 8308188: ProblemList java/util/concurrent/locks/Lock/OOMEInAQS.java with ZGC on all platforms
Reviewed-by: dcubed
(cherry picked from commit 316bc79e0e)
2023-05-19 18:27:19 +07:00
Calvin Cheung
f1b191ceb1 8307315: Missing ResourceMark in CDS and JVMTI code
Reviewed-by: coleenp, iklam
(cherry picked from commit 8686a36b40)
2023-05-19 18:27:19 +07:00
Christoph Dreis
45d10ac8aa 8306860: Avoid unnecessary allocation in List.map() when list is empty
Reviewed-by: vromero
(cherry picked from commit 23cbb2d170)
2023-05-19 18:27:19 +07:00
Leonid Mesnik
379c09d0ba 8307369: Add execution of all svc tests in CI
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit be54b54fb3)
2023-05-19 18:27:18 +07:00
Christian Hagedorn
84f8b1ccc5 8305634: Renaming predicates, simple cleanups, and adding summary about current predicates
Reviewed-by: epeter, thartmann, roland
(cherry picked from commit 19c8c30d1c)
2023-05-19 18:27:18 +07:00
Daniel Fuchs
e3c0e7b9bf 8308024: HttpClient (HTTP/1.1) sends an extraneous empty chunk if the BodyPublisher supplies an empty buffer
Reviewed-by: djelinski, michaelm
(cherry picked from commit 72294c5402)
2023-05-19 18:27:18 +07:00
Doug Simon
3fbc2c1dc0 8308041: [JVMCI] WB_IsGCSupportedByJVMCICompiler must enter correct JVMCI env
Reviewed-by: thartmann
(cherry picked from commit c9b6bb5bd7)
2023-05-19 18:27:18 +07:00
Kevin Walls
96d13c0647 8306806: JMX agent with JDP enabled won't start when PerfData is disabled
Reviewed-by: dholmes, cjplummer
(cherry picked from commit 0790f704fd)
2023-05-19 18:27:18 +07:00
Serguei Spitsyn
3110867ca4 8307968: serviceability/jvmti/vthread/StopThreadTest/StopThreadTest.java timed out
Reviewed-by: cjplummer, lmesnik
(cherry picked from commit c2ef302468)
2023-05-19 18:27:18 +07:00
Jaikiran Pai
82988fbe46 8307403: java/util/zip/DeInflate.java timed out
Reviewed-by: simonis, lancea
(cherry picked from commit d22bcc813e)
2023-05-19 18:27:17 +07:00
Jayathirth D V
a608326e99 8306638: Open source some AWT tests related to datatransfer and Toolkit
Reviewed-by: prr, serb, dnguyen
(cherry picked from commit 2210e06788)
2023-05-19 18:27:17 +07:00
Ioi Lam
122882d78e 8307567: Avoid relocating global roots to metaspaceObjs in CDS dump
Reviewed-by: matsaave, ccheung
(cherry picked from commit 05b51c75b9)
2023-05-19 18:27:17 +07:00
Justin Lu
ebbdcbb37e 8306597: Improve string formatting in EquivMapsGenerator.java
Reviewed-by: naoto
(cherry picked from commit 316837226e)
2023-05-19 18:27:17 +07:00
Joe Darcy
de6ada7596 8308049: Refactor nested class declarations in FdLibm.java
Reviewed-by: smarks
(cherry picked from commit 7b0b9b570b)
2023-05-19 18:27:17 +07:00
Chris Plummer
2eb5f2d683 8306593: Fix nsk/jdi/stop/stop001 for virtual threads and remove from problem list
Reviewed-by: lmesnik, sspitsyn
(cherry picked from commit cc80ada739)
2023-05-19 18:27:17 +07:00
Yi-Fan Tsai
e4edaddf8b 8307555: Reduce memory reads in x86 MD5 intrinsic
Reviewed-by: simonis, phh
(cherry picked from commit 43c8c650af)
2023-05-19 18:27:16 +07:00
Roger Riggs
6dbcd811be 8304913: Use OperatingSystem, Architecture, and Version in jlink
Reviewed-by: jpai, alanb, mchung
(cherry picked from commit 01892f9c6e)
2023-05-19 18:27:16 +07:00
Roger Riggs
1176cade28 8299340: CreateProcessW lpCommandLine must be mutable
Reviewed-by: naoto
(cherry picked from commit 0f7b1c549f)
2023-05-19 18:27:16 +07:00
Ioi Lam
e6bb5af04a 8307959: Remove explicit type casts from SerializeClosure::do_xxx() calls
Reviewed-by: matsaave, ccheung
(cherry picked from commit 57e7a3fbea)
2023-05-19 18:27:16 +07:00
Stefan Karlsson
013e4fba33 8307997: gtest:ZIndexDistributorTest fails on PPC64
Reviewed-by: mdoerr
(cherry picked from commit 97b2ca3de7)
2023-05-19 18:27:16 +07:00
Aleksey Shipilev
691290ae33 8308086: GHA: x86_32 host configuration failing with unmet dependencies
Reviewed-by: stuefe
(cherry picked from commit ffab1ea9e7)
2023-05-19 18:27:16 +07:00
Tobias Hartmann
59616f27a1 8303512: Race condition when computing is_loaded property of TypePtr::InterfaceSet
Reviewed-by: roland, qamai, kvn
(cherry picked from commit ad348a8cec)
2023-05-19 18:27:16 +07:00
gaogao-mem
d0b4f64a08 8305819: LogConfigurationTest intermittently fails on AArch64
Reviewed-by: aph, dholmes, xliu
(cherry picked from commit 911cc7cb07)
2023-05-19 18:27:15 +07:00
Tobias Hartmann
fb6c77d2b8 8308072: [BACKOUT] update for deprecated sprintf for src/utils
Reviewed-by: iris
(cherry picked from commit 8d49ba9e8d)
2023-05-19 18:27:15 +07:00
Julian Waters
edd439a447 8307163: JLONG_FORMAT_SPECIFIER should be updated on Windows
Reviewed-by: stuefe
(cherry picked from commit 0ee196bef1)
2023-05-19 18:27:15 +07:00
Vladimir Kempik
265cec2ade 8291550: RISC-V: jdk uses misaligned memory access when AvoidUnalignedAccess enabled
Co-authored-by: Xiaolin Zheng <xlinzheng@openjdk.org>
Co-authored-by: Feilong Jiang <fjiang@openjdk.org>
Reviewed-by: fjiang, fyang
(cherry picked from commit 3709344166)
2023-05-19 18:27:15 +07:00
Kim Barrett
a8ea4958bf 8307926: Support byte-sized atomic bitset operations
Reviewed-by: aboldtch, coleenp
(cherry picked from commit 646747fd7c)
2023-05-19 18:27:15 +07:00
Daniel D. Daugherty
7a864c4d7f 8305670: Performance regression in LockSupport.unpark with lots of idle threads
Co-authored-by: Robbin Ehn <rehn@openjdk.org>
Reviewed-by: rehn, dholmes
(cherry picked from commit f030937a51)
2023-05-19 18:27:15 +07:00
Daniel D. Daugherty
5933fcc5c3 8307068: store a JavaThread* in the java.lang.Thread object after the JavaThread* is added to the main ThreadsList
Reviewed-by: dholmes, rehn, apangin
(cherry picked from commit ceca198ef2)
2023-05-19 18:27:14 +07:00
Daniel D. Daugherty
54576b581c 8307067: remove broken EnableThreadSMRExtraValidityChecks option
Reviewed-by: coleenp, dholmes, sspitsyn, rehn
(cherry picked from commit 5e26e64cbf)
2023-05-19 18:27:14 +07:00
Thomas Stuefe
db6227531f 8307935: Class space argument processing can be simplified
Reviewed-by: stefank, coleenp
(cherry picked from commit e54051ae9e)
2023-05-19 18:27:14 +07:00
Valerie Peng
dcc4dceba0 8155191: Specify that SecureRandom.nextBytes(byte[]) throws NullPointerException when byte array is null
Reviewed-by: mullan
(cherry picked from commit 46e3d24a6f)
2023-05-19 18:27:14 +07:00
Alisen Chung
16198adeee 8307297: Move some DnD tests to open
Reviewed-by: prr, serb
(cherry picked from commit 3bf3876185)
2023-05-19 18:27:14 +07:00
Chen Liang
a75ec1f616 8300204: Sealed-class hierarchy graph missing nodes
Reviewed-by: jjg
(cherry picked from commit d8afc7beeb)
2023-05-19 18:27:14 +07:00
Chris Plummer
092bd789b3 8307480: Improve SA "transported core" documentation for windows
Reviewed-by: sspitsyn, kevinw, poonam
(cherry picked from commit 38838b344a)
2023-05-19 18:27:14 +07:00
Jonathan Gibbons
2430a4e07b 8306607: Apply 80-column output to javac supported version output
Reviewed-by: darcy
(cherry picked from commit 9842ff4129)
2023-05-19 18:27:13 +07:00
Chris Plummer
64a41c0da8 8306471: Add virtual threads support to JDWP ThreadReference.Stop and JDI ThreadReference.stop()
Reviewed-by: sspitsyn, alanb
(cherry picked from commit d809823fe4)
2023-05-19 18:27:13 +07:00
Justin Lu
90d87aeb0f 6714245: [Col] Collator - Faster Comparison for identical strings.
Reviewed-by: rriggs, naoto
(cherry picked from commit 4441a2306f)
2023-05-19 18:27:13 +07:00
Sergey Chernyshev
c05328d452 8168469: Memory leak in JceSecurity
Reviewed-by: valeriep
(cherry picked from commit a284920b34)
2023-05-19 18:27:13 +07:00
Jonathan Gibbons
cf05e3bf3f 8308015: Syntax of "import static" is incorrect in com.sun.source.tree.ImportTree.java
Reviewed-by: jlaskey, darcy
(cherry picked from commit 7455bb23c1)
2023-05-19 18:27:13 +07:00
Maurizio Cimadamore
7a9bb8aac7 8307911: javadoc for MemorySegment::reinterpret has duplicate restricted method paragraph
Reviewed-by: jvernee
(cherry picked from commit 6ebea8973f)
2023-05-19 18:27:13 +07:00
Daniel Fuchs
36eb775c20 8307535: java.util.logging.Handlers should be more VirtualThread friendly
Reviewed-by: jpai
(cherry picked from commit 3c68c352fc)
2023-05-19 18:27:12 +07:00
Brian Burkhalter
147967a5d1 8307409: Refactor usage examples to use @snippet in the java.nio packages
Reviewed-by: alanb, rriggs
(cherry picked from commit 9fa8b9a4a6)
2023-05-19 18:27:12 +07:00
Thomas Schatzl
662662d1ef 8306541: Refactor collection set candidate handling to prepare for JDK-8140326
Reviewed-by: iwalulya, ayang
(cherry picked from commit e512a20679)
2023-05-19 18:27:12 +07:00
Xue-Lei Andrew Fan
34a31ac23a 8307855: update for deprecated sprintf for src/utils
Reviewed-by: thartmann
(cherry picked from commit 4b0f4213a5)
2023-05-19 18:27:12 +07:00
Afshin Zafari
24f5219624 8305081: Remove finalize() from test/hotspot/jtreg/compiler/runtime/Test8168712
Reviewed-by: coleenp, thartmann
(cherry picked from commit 39dc40fed4)
2023-05-19 18:27:12 +07:00
Albert Mingkun Yang
76bdc0719d 8307808: G1: Remove partial object-count report after gc
Reviewed-by: tschatzl, iwalulya
(cherry picked from commit f7bbbc6590)
2023-05-19 18:27:12 +07:00
Maurizio Cimadamore
709ed06a24 8307961: java/foreign/enablenativeaccess/TestEnableNativeAccess.java fails with ShouldNotReachHere
Reviewed-by: jvernee
(cherry picked from commit 13a3fce29e)
2023-05-19 18:27:12 +07:00
Kim Barrett
7adf53a730 8307806: Rename Atomic::fetch_and_add and friends
Reviewed-by: stefank, dholmes
(cherry picked from commit f09a0f5ca7)
2023-05-19 18:27:11 +07:00
Yasumasa Suenaga
069db40b53 8305770: os::Linux::available_memory() should refer MemAvailable in /proc/meminfo
Reviewed-by: stuefe, sgehwolf, rcastanedalo, dholmes
(cherry picked from commit b6bcbc0cbc)
2023-05-19 18:27:11 +07:00
Afshin Zafari
8c5bc4b49a 8305083: Remove finalize() from test/hotspot/jtreg/vmTestbase/nsk/share/ and /jpda that are used in serviceability/dcmd/framework tests
Reviewed-by: coleenp, dholmes
(cherry picked from commit e1e758a7b4)
2023-05-19 18:27:11 +07:00
Thomas Schatzl
85f40189c9 8307518: Remove G1 workaround in jstat about zero sized generation sizes
Reviewed-by: kbarrett, ayang
(cherry picked from commit 1ce1611ead)
2023-05-19 18:27:11 +07:00
Xiaolin Zheng
fb84ad2a5e 8306667: RISC-V: Fix storeImmN0 matching rule by using zr register
Reviewed-by: shade, gli, fyang
(cherry picked from commit e32de7efd6)
2023-05-19 18:27:11 +07:00
Matthias Baesken
1736f0e326 8307891: ProblemList gtest/NMTGtest.java subtests on aix
Reviewed-by: mdoerr, lucy
(cherry picked from commit f3bd031ccd)
2023-05-19 18:27:11 +07:00
JoKern65
4585113c85 8307520: set minimum supported CPU architecture to Power8 on AIX
Reviewed-by: mbaesken, erikj
(cherry picked from commit 5f1f9460d7)
2023-05-19 18:27:10 +07:00
Jie Fu
a5d77d92b2 8307969: [zgc] Missing includes in gc/z/zTracer.cpp
Reviewed-by: stefank
(cherry picked from commit ccb4dd6144)
2023-05-19 18:27:10 +07:00
Abhishek Kumar
f6f56793e4 8306996: Open source Swing MenuItem related tests
Reviewed-by: dnguyen, honkar, psadhukhan
(cherry picked from commit 73491fa452)
2023-05-19 18:27:10 +07:00
Ningsheng Jian
7b6f536d5b 8307572: AArch64: Vector registers are clobbered by some macroassemblers
Reviewed-by: aph, adinn
(cherry picked from commit 33d9a85730)
2023-05-19 18:27:10 +07:00
Daniel D. Daugherty
f8a6030118 8307966: ProblemList java/util/concurrent/locks/Lock/OOMEInAQS.java on linux-x64
Reviewed-by: naoto, lmesnik
(cherry picked from commit 9a7b4431ec)
2023-05-19 18:27:10 +07:00
Chris Plummer
e935ea772d 8307559: Add better checking in com/sun/jdi tests for debuggee exiting unexpectedly with an exception
Reviewed-by: kevinw, lmesnik
(cherry picked from commit 54c06d2d91)
2023-05-19 18:27:10 +07:00
Jie Fu
21ed164c32 8307945: Build of Client VM is broken after JDK-8307058
Reviewed-by: kvn
(cherry picked from commit ce5907727e)
2023-05-19 18:27:09 +07:00
Matias Saavedra Silva
d72f6cf369 8281715: Move "base CDS archive not loaded" tests to SharedArchiveFileOption.java
Reviewed-by: ccheung, iklam
(cherry picked from commit a667213ec5)
2023-05-19 18:27:09 +07:00
Joe Darcy
9c85f94c0c 8307954: Update string template regression tests to be robust on release updates
Reviewed-by: jlaskey
(cherry picked from commit 29b8242e07)
2023-05-19 18:27:09 +07:00
Guoxiong Li
bad88f29f8 8307653: Adjust delay time and gc log argument in TestAbortOnVMOperationTimeout
Reviewed-by: dholmes, dcubed
(cherry picked from commit 4f355c3525)
2023-05-19 18:27:09 +07:00
Xue-Lei Andrew Fan
47cde5c203 8307848: update for deprecated sprintf for jdk.attach
Reviewed-by: sspitsyn, cjplummer
(cherry picked from commit 15358636cf)
2023-05-19 18:27:09 +07:00
Xue-Lei Andrew Fan
04d35043f0 8307850: update for deprecated sprintf for jdk.jdi
Reviewed-by: cjplummer
(cherry picked from commit cbecf422df)
2023-05-19 18:27:09 +07:00
Dean Long
b7d2359913 8307139: Fix signed integer overflow in compiler code, part 1
Reviewed-by: thartmann, rcastanedalo, kvn
(cherry picked from commit 7fcb0fdcd4)
2023-05-19 18:27:08 +07:00
Robert Toyonaga
6e1bb82a57 8307298: JFR: Ensure jdk.jfr.internal.TypeLibrary is initialized only once
Reviewed-by: sgehwolf, egahlin
(cherry picked from commit 5d6cce0f85)
2023-05-19 18:27:08 +07:00
Serguei Spitsyn
75f4298063 8306034: add support of virtual threads to JVMTI StopThread
Reviewed-by: cjplummer
(cherry picked from commit 51b8f3cfb9)
2023-05-19 18:27:08 +07:00
Chris Plummer
ecbf0af211 8307885: com/sun/jdi/ConnectedVMs.java fails with "Invalid debuggee exitValue: 0"
Reviewed-by: kevinw, sspitsyn
(cherry picked from commit 489658dbd2)
2023-05-19 18:27:08 +07:00
Daniel Fuchs
3da61968f5 8307626: java/net/httpclient/FlowAdapter* tests should close the HttpClient instances
Reviewed-by: aefimov, jpai
(cherry picked from commit 9ad38cbeaf)
2023-05-19 18:27:08 +07:00
Fredrik Bredberg
29e20aed33 8297657: name demangling intermittently fails
Reviewed-by: stefank, coleenp
(cherry picked from commit 2bf7ac58b7)
2023-05-19 18:27:07 +07:00
Stefan Karlsson
2d468db9cf 8307058: Implementation of Generational ZGC
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Erik Österlund <eosterlund@openjdk.org>
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Co-authored-by: Per Liden <pliden@openjdk.org>
Co-authored-by: Stefan Johansson <sjohanss@openjdk.org>
Co-authored-by: Albert Mingkun Yang <ayang@openjdk.org>
Co-authored-by: Erik Helin <ehelin@openjdk.org>
Co-authored-by: Roberto Castañeda Lozano <rcastanedalo@openjdk.org>
Co-authored-by: Nils Eliasson <neliasso@openjdk.org>
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Co-authored-by: Leslie Zhai <lzhai@openjdk.org>
Co-authored-by: Fei Yang <fyang@openjdk.org>
Co-authored-by: Yadong Wang <yadongwang@openjdk.org>
Reviewed-by: eosterlund, aboldtch, rcastanedalo
(cherry picked from commit d20034b09c)
2023-05-19 18:27:07 +07:00
Yudi Zheng
c386ee37c9 8307813: [JVMCI] Export markWord::lock_mask_in_place to JVMCI compilers.
Reviewed-by: dnsimon, kvn, never
(cherry picked from commit 0cbfbc400a)
2023-05-19 18:27:07 +07:00
Maurizio Cimadamore
1f6ed7400a 8307610: Linker::nativeLinker should not be restricted (mainline)
Reviewed-by: jvernee
(cherry picked from commit ba9714d44c)
2023-05-19 18:27:07 +07:00
Thomas Stuefe
f4db47b017 8307869: Remove unnecessary log statements from arm32 fastlocking code
Reviewed-by: shade
(cherry picked from commit ecc1d85dbe)
2023-05-19 18:27:07 +07:00
JoKern65
8ff640e3ed 8307349: Support xlc17 clang toolchain on AIX
Reviewed-by: erikj, mbaesken
(cherry picked from commit 08fa269886)
2023-05-19 18:27:06 +07:00
Thomas Stuefe
64dc32ea41 8305416: runtime/Thread/TestAlwaysPreTouchStacks.java failed with "Did not find expected NMT output"
Reviewed-by: dholmes, gziemski
(cherry picked from commit 8ac7186331)
2023-05-19 18:27:06 +07:00
Thomas Stuefe
3e254f1c9e 8307810: Consistently use LockingMode instead of UseHeavyMonitors
Reviewed-by: dcubed, mdoerr, dholmes, amitkumar
(cherry picked from commit 984fbbbcab)
2023-05-19 18:27:06 +07:00
Feilong Jiang
abd60979ef 8307758: RISC-V: Improve bit test code introduced by JDK-8291555
Co-authored-by: Fei Yang <fyang@openjdk.org>
Reviewed-by: fyang
(cherry picked from commit 39f4e4d3c3)
2023-05-19 18:27:06 +07:00
David Holmes
cddf753428 8306965: osThread allocation failures should not abort the VM
Reviewed-by: lfoltan
(cherry picked from commit 3cb606ef5b)
2023-05-19 18:27:06 +07:00
Justin Lu
e5108cb4c0 8281103: Give example for Locale that is English and follows the ISO standards
Reviewed-by: rriggs, lancea, naoto
(cherry picked from commit 4795c395e9)
2023-05-19 18:27:06 +07:00
Jonathan Gibbons
4ac510fe46 8307563: make most fields final in JavacTrees
Reviewed-by: vromero
(cherry picked from commit 958d4a7505)
2023-05-19 18:27:05 +07:00
Jonathan Gibbons
3d54f031f2 8307377: Remove use of tagName from TagletWriterImpl.linkSeeReferenceOutput
Reviewed-by: hannesw
(cherry picked from commit f250ab2c2a)
2023-05-19 18:27:05 +07:00
Ashutosh Mehra
bcf29793c4 8307765: DynamicArchiveHeader contents are missing in CDS mapfile
Reviewed-by: iklam, ccheung
(cherry picked from commit cc9f7ad9ce)
2023-05-19 18:27:05 +07:00
Daniel D. Daugherty
8bc911f28c 8307860: [BACKOUT] JDK-8307194 Add make target for optionally building a complete set of all JDK and hotspot libjvm static libraries
Reviewed-by: erikj
(cherry picked from commit edc4adb77e)
2023-05-19 18:27:05 +07:00
Daniel D. Daugherty
2dfeb7b894 8307857: validate-source fails after JDK-8306758
Reviewed-by: rriggs, cjplummer
(cherry picked from commit df90df298e)
2023-05-19 18:27:05 +07:00
Chris Plummer
c6c8a86fb7 8306758: com/sun/jdi/ConnectedVMs.java fails with "Non-zero debuggee exitValue: 143"
Reviewed-by: amenkov, sspitsyn
(cherry picked from commit 268836482d)
2023-05-19 18:27:05 +07:00
Jiangli Zhou
f01f03421a 8307194: Add make target for optionally building a complete set of all JDK and hotspot libjvm static libraries
Reviewed-by: erikj, sgehwolf
(cherry picked from commit 1964954da9)
2023-05-19 18:27:04 +07:00
Kevin Walls
39a828fcf0 8307244: Remove redundant class RMIIIOPServerImpl
Reviewed-by: sspitsyn, dfuchs, alanb
(cherry picked from commit 9af1787ebe)
2023-05-19 18:27:04 +07:00
Viktor Klang
781496d2ec 8151531: Add notes to BaseStream.spliterator/iterator docs regarding them being escape hatches
Reviewed-by: psandoz
(cherry picked from commit 8a95020ab6)
2023-05-19 18:27:04 +07:00
Archie Cobbs
06d8d90ebb 8305748: Clarify reentrant behavior of close() in FileInputStream, FileOutputStream, and RandomAccessFile
Reviewed-by: alanb, bpb
(cherry picked from commit 0198afca3a)
2023-05-19 18:27:04 +07:00
Daniel D. Daugherty
2ce4be5c24 8307799: Newly added java/awt/dnd/MozillaDnDTest.java has invalid jtreg @requires clause
Reviewed-by: rriggs, azvegint
(cherry picked from commit 1bca05eace)
2023-05-19 18:27:04 +07:00
Johan Sjölen
13c9196187 8300245: Replace NULL with nullptr in share/jfr/
Reviewed-by: mgronlun, coleenp
(cherry picked from commit cc396895e5)
2023-05-19 18:27:04 +07:00
Coleen Phillimore
20fa1ff156 8306843: JVMTI tag map extremely slow after JDK-8292741
Reviewed-by: sspitsyn, iklam
(cherry picked from commit 4251b56214)
2023-05-19 18:27:03 +07:00
Afshin Zafari
d45b1dca8e 8305082: Remove finalize() from test/hotspot/jtreg/runtime/linkResolver/InterfaceObjectTest.java
Reviewed-by: coleenp, dholmes
(cherry picked from commit ab34cb98c8)
2023-05-19 18:27:03 +07:00
Johannes Bechberger
9c591e37b2 8307732: build-test-lib is broken
Reviewed-by: erikj, djelinski
(cherry picked from commit 0da48f19cb)
2023-05-19 18:27:03 +07:00
Jim Laskey
6496dc2db6 8285932: Implementation of JEP 430 String Templates (Preview)
Reviewed-by: mcimadamore, rriggs, darcy
(cherry picked from commit 4aa65cbeef)
2023-05-19 18:27:03 +07:00
Aleksei Efimov
e58fdb1ed9 8302845: Replace finalizer usage in JNDI DNS provider with Cleaner
Reviewed-by: alanb, dfuchs, djelinski
(cherry picked from commit da2c930262)
2023-05-19 18:27:03 +07:00
Oli Gillespie
ee0cf64ec2 8307348: Parallelize heap walk for ObjectCount(AfterGC) JFR event collection
Reviewed-by: shade, ayang, tschatzl
(cherry picked from commit 540c706bbc)
2023-05-19 18:27:03 +07:00
Fredrik Bredberg
b2047c390a 8306930: Incorrect assert in BitMap::count_one_bits
Reviewed-by: stefank, tschatzl, kbarrett
(cherry picked from commit d993432d44)
2023-05-19 18:27:02 +07:00
Tobias Hotz
bd4cb3ec6b 8307351: (CmpI/L(AndI/L reg1 reg2)) on x86 can be optimized
Reviewed-by: sviswanathan, qamai, thartmann
(cherry picked from commit 4b4c80bb31)
2023-05-19 18:27:02 +07:00
Feilong Jiang
4d61b26940 8307651: RISC-V: stringL_indexof_char instruction has wrong format string
Reviewed-by: fyang
(cherry picked from commit d3e6d04e3e)
2023-05-19 18:27:02 +07:00
Serguei Spitsyn
80b574815a 8307399: get rid of compatibility ThreadStart/ThreadEnd events for virtual threads
Reviewed-by: alanb, pchilanomate, cjplummer
(cherry picked from commit 2be1f10fec)
2023-05-19 18:27:02 +07:00
Alex Menkov
31c5283018 8306027: Clarify JVMTI heap functions spec about virtual thread stack.
Reviewed-by: alanb, sspitsyn
(cherry picked from commit f5a6b7f7c0)
2023-05-19 18:27:02 +07:00
Leonid Mesnik
65357d44da 8307370: Add tier1 testing with thread factory in CI
Reviewed-by: sspitsyn
(cherry picked from commit a1c3adb88d)
2023-05-19 18:27:02 +07:00
Roger Riggs
7acffbe68e 8307466: java.time.Instant calculation bug in until and between methods
Co-authored-by: Raffaello Giulietti <rgiulietti@openjdk.org>
Reviewed-by: scolebourne, naoto
(cherry picked from commit 356667f155)
2023-05-19 18:27:01 +07:00
Alisen Chung
c66d3c27f7 8306881: Update FreeType to 2.13.0
Reviewed-by: prr, dnguyen
(cherry picked from commit 723582c524)
2023-05-19 18:27:01 +07:00
Alisen Chung
43e5822132 8307128: Open source some drag and drop tests 4
Reviewed-by: prr
(cherry picked from commit 98294242a9)
2023-05-19 18:27:01 +07:00
Leonid Mesnik
82447d7e12 8307307: Improve ProcessTools.java to don't try to run Virtual wrapper for incompatible processes
Reviewed-by: alanb
(cherry picked from commit 7f05f6f7c7)
2023-05-19 18:27:01 +07:00
Thiago Henrique Hüpner
3dcdccbd44 8304148: Remapping a class with Invokedynamic constant loses static bootstrap arguments
Reviewed-by: asotona
(cherry picked from commit dde557e312)
2023-05-19 18:27:01 +07:00
Justin Lu
8647dd2a36 8159337: Introduce a method in Locale class to return the language tags as per RFC 5646 convention
Reviewed-by: naoto, rriggs
(cherry picked from commit 82bcee76ea)
2023-05-19 18:27:00 +07:00
Leonid Mesnik
fefb1ff415 8307486: ProcessTools.java should wait until vthread is completed before checking exceptions
Reviewed-by: dholmes, alanb
(cherry picked from commit 3aff5eacbd)
2023-05-19 18:27:00 +07:00
Xue-Lei Andrew Fan
0999c40aa6 8303830: update for deprecated sprintf for jdk.accessibility
Reviewed-by: kizune
(cherry picked from commit 44fa12e751)
2023-05-19 18:27:00 +07:00
Viktor Klang
8b896995de 8133773: clarify specification of Spliterator.tryAdvance
Reviewed-by: psandoz, tvaleev, rriggs
(cherry picked from commit fdbfc8a73b)
2023-05-19 18:27:00 +07:00
Matthew Donovan
ce0803e9ba 8306015: Update sun.security.ssl TLS tests to use SSLContextTemplate or SSLEngineTemplate
Reviewed-by: xuelei
(cherry picked from commit 5842fd5beb)
2023-05-19 18:27:00 +07:00
Axel Boldt-Christmas
f35cee62a3 8306738: Select num workers for safepoint ParallelCleanupTask
Reviewed-by: shade, coleenp, tschatzl
(cherry picked from commit 672bade522)
2023-05-19 18:27:00 +07:00
Adam Sotona
e889481596 8305990: Stripping debug info of ASM 9.5 fails
Reviewed-by: mcimadamore
(cherry picked from commit a05560d993)
2023-05-19 18:27:00 +07:00
Josef Eisl
2b8b6f87ba 8307588: [JVMCI] HotSpotConstantPool#lookupBootstrapMethodInvocation broken by JDK-8301995
Reviewed-by: dnsimon, never, kvn
(cherry picked from commit 040cb7b5a9)
2023-05-19 18:26:59 +07:00
Maurizio Cimadamore
5141c38d45 8307411: Test java/foreign/channels/TestAsyncSocketChannels.java failed: IllegalStateException: Already closed
Reviewed-by: jvernee
(cherry picked from commit f92d095e16)
2023-05-19 18:26:59 +07:00
Maurizio Cimadamore
be2dc1e946 8307629: FunctionDescriptor::toMethodType should allow sequence layouts (mainline)
Reviewed-by: jvernee
(cherry picked from commit 7a3bea1f6a)
2023-05-19 18:26:59 +07:00
Roland Westrelin
832e0936a4 8307131: C2: assert(false) failed: malformed control flow
Reviewed-by: kvn, chagedorn, thartmann
(cherry picked from commit d2b3eef0f2)
2023-05-19 18:26:59 +07:00
Chen Liang
3350208342 8304031: Classfile API cannot encode Primitive Class as Condy
Reviewed-by: asotona
(cherry picked from commit cd5d0ff5b2)
2023-05-19 18:26:59 +07:00
Sean Coffey
26135a9b02 8305950: Have -XshowSettings option display tzdata version
Reviewed-by: rriggs
(cherry picked from commit 07f55c5ea2)
2023-05-19 18:26:59 +07:00
Damon Nguyen
7805a97c32 8307130: Open source few Swing JMenu tests
Reviewed-by: prr
(cherry picked from commit d9052b9466)
2023-05-19 18:26:58 +07:00
Tom Rodriguez
b742c86e71 8299229: [JVMCI] add support for UseZGC
Reviewed-by: eosterlund, kvn
(cherry picked from commit 5e1fe43080)
2023-05-19 18:26:58 +07:00
Damon Nguyen
ea41491f42 8307165: java/awt/dnd/NoFormatsDropTest/NoFormatsDropTest.java timed out
Reviewed-by: prr
(cherry picked from commit 14df5c130e)
2023-05-19 18:26:58 +07:00
Roman Kennke
615e7b8e92 8291555: Implement alternative fast-locking scheme
Co-authored-by: Fei Yang <fyang@openjdk.org>
Co-authored-by: Thomas Stuefe <stuefe@openjdk.org>
Reviewed-by: dcubed, stuefe, shade, dholmes, dlong

(cherry picked from commit 7f6358a8b5)
2023-05-19 18:26:58 +07:00
Volker Simonis
cf51f63cd8 8306461: ObjectInputStream::readObject() should handle negative array sizes without throwing NegativeArraySizeExceptions
Co-authored-by: Yakov Shafranovich <yakovsh@amazon.com>
Reviewed-by: shade, rriggs
(cherry picked from commit 4116b109f0)
2023-05-19 18:26:58 +07:00
Raffaello Giulietti
294548cce6 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern
Reviewed-by: jpai, rriggs
(cherry picked from commit 93ee19f58a)
2023-05-19 18:26:58 +07:00
Conor Cleary
e3236a1c00 8293786: HttpClient will not send more than 64 kb of data from the 2nd request in http2
Reviewed-by: dfuchs, djelinski
(cherry picked from commit ad90fb6da3)
2023-05-19 18:26:57 +07:00
Fredrik Bredberg
a39de464c1 8303153: Native interpreter frame missing mirror
Reviewed-by: coleenp, fyang
(cherry picked from commit 5a259d875e)
2023-05-19 18:26:57 +07:00
Darragh Clarke
f0ed74f621 8054022: HttpURLConnection timeouts with Expect: 100-Continue and no chunking
Reviewed-by: djelinski, dfuchs
(cherry picked from commit 4b02956d42)
2023-05-19 18:26:57 +07:00
Tyler Steele
b7c1c12b8d 8304434: [AIX] Update minimum xlclang version
Reviewed-by: erikj, mbaesken
(cherry picked from commit 9f34e4f8d9)
2023-05-19 18:26:57 +07:00
Matthias Baesken
657148f37b 8307604: gcc12 based Alpine build broken build after JDK-8307301
Reviewed-by: lucy, mdoerr, erikj
(cherry picked from commit d2e0e534d7)
2023-05-19 18:26:57 +07:00
Zhengyu Gu
dc306be636 8307571: Remove unused SomeConstants in WatcherThread class
Reviewed-by: dholmes
(cherry picked from commit e91f0d3dba)
2023-05-19 18:26:57 +07:00
Dingli Zhang
e2263259d4 8306408: Fix the format of several tables in building.md
Reviewed-by: erikj
(cherry picked from commit 26755a9686)
2023-05-19 18:26:56 +07:00
Jie Fu
23a05bfac2 8307569: Build with gcc8 is broken after JDK-8307301
Reviewed-by: erikj
(cherry picked from commit 64c0962866)
2023-05-19 18:26:56 +07:00
Matthias Baesken
57fd03dabf 8307603: [AIX] Broken build after JDK-8307301
Reviewed-by: mdoerr
(cherry picked from commit bb3e44d8b6)
2023-05-19 18:26:56 +07:00
Arno Zeller
e29828d686 8307347: serviceability/sa/ClhsdbDumpclass.java could leave files owned by root on macOS
Reviewed-by: stuefe, cjplummer
(cherry picked from commit 5c7ede94ae)
2023-05-19 18:26:56 +07:00
Albert Mingkun Yang
b1614ffbb7 8307100: Remove ReferentBasedDiscovery reference discovery policy
Reviewed-by: kbarrett, dholmes, tschatzl
(cherry picked from commit 89b7d07597)
2023-05-19 18:26:56 +07:00
Hannes Wallnöfer
a5fbd144dd 8306285: Missing file in search test
Reviewed-by: jjg
(cherry picked from commit f6ea89795b)
2023-05-19 18:26:56 +07:00
Stefan Karlsson
c72505b97e 8307517: Add VMErrorCallback infrastructure to extend hs_err dumping
Reviewed-by: eosterlund, aboldtch, dholmes, stuefe

(cherry picked from commit 33245d6b38)
2023-05-19 18:26:56 +07:00
Stefan Karlsson
02c0d4bb6d 8293547: Add relaxed add_and_fetch for macos aarch64 atomics
Reviewed-by: dholmes, eosterlund
(cherry picked from commit 7a1cb64bc1)
2023-05-19 18:26:55 +07:00
Stefan Karlsson
e8f9e711ae 8307428: jstat tests doesn't tolerate dash in the O column
Reviewed-by: kevinw, cjplummer
(cherry picked from commit 68f385c1ca)
2023-05-19 18:26:55 +07:00
Amit Kumar
0ec1b84a52 8307423: [s390x] Represent Registers as values
Reviewed-by: mdoerr, lucy
(cherry picked from commit 8bbd264c6e)
2023-05-19 18:26:55 +07:00
Stefan Karlsson
e83b0f8775 8307521: Introduce check_oop infrastructure to check oops in the oop class
Reviewed-by: eosterlund, aboldtch, coleenp
(cherry picked from commit 959e62ca3e)
2023-05-19 18:26:55 +07:00
Emanuel Peter
d8b5086c60 8304720: SuperWord::schedule should rebuild C2-graph from SuperWord dependency-graph
Reviewed-by: kvn, fgao
(cherry picked from commit ad0e5a99ca)
2023-05-19 18:26:55 +07:00
Gui Cao
018b432012 8306966: RISC-V: Support vector cast node for Vector API
Co-authored-by: Dingli Zhang <dingli@iscas.ac.cn>
Reviewed-by: fyang, fjiang
(cherry picked from commit 495f2688d6)
2023-05-19 18:26:55 +07:00
changpeng1997
c98461d3c0 8301739: AArch64: Add optimized rules for vector compare with immediate for SVE
Reviewed-by: aph, eliu
(cherry picked from commit 0dca573ca5)
2023-05-19 18:26:54 +07:00
Alexander Zvegintsev
98f81dac77 8306941: Open source several datatransfer and dnd AWT tests
Reviewed-by: prr
(cherry picked from commit 3d3eaed913)
2023-05-19 18:26:54 +07:00
Feilong Jiang
84f6f7962c 8307446: RISC-V: Improve performance of floating point to integer conversion
Reviewed-by: fyang, vkempik, gli
(cherry picked from commit 1f57ce0a06)
2023-05-19 18:26:54 +07:00
Ioi Lam
56df1904c2 8307553: Remove dead code MetaspaceClosure::push_method_entry
Reviewed-by: coleenp, ccheung
(cherry picked from commit 4e4828eaff)
2023-05-19 18:26:54 +07:00
Alexander Zvegintsev
867d426cc6 8280031: Deprecate GTK2 for removal
Reviewed-by: prr
(cherry picked from commit 7d58978f62)
2023-05-19 18:26:54 +07:00
Weijun Wang
73261bc63f 8305846: Support compilation in Proc test utility
Reviewed-by: valeriep
(cherry picked from commit b5922c3b86)
2023-05-19 18:26:54 +07:00
Oli Gillespie
ed3e731e0b 8307425: Socket input stream read burns CPU cycles with back-to-back poll(0) calls
Reviewed-by: alanb
(cherry picked from commit 73ac710533)
2023-05-19 18:26:53 +07:00
Leonid Mesnik
7023baef82 8306326: [BACKOUT] 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate objects
Reviewed-by: sspitsyn, thartmann, kvn
(cherry picked from commit e2b1013f11)
2023-05-19 18:26:53 +07:00
Harshitha Onkar
a14554e4e3 8307381: Open Source JFrame, JIF related Swing Tests
Reviewed-by: dnguyen, kizune
(cherry picked from commit 4386d42d31)
2023-05-19 18:26:53 +07:00
Matias Saavedra Silva
c0d30b3981 8306583: Add JVM crash check in CDSTestUtils.executeAndLog
Reviewed-by: iklam, ccheung
(cherry picked from commit 27764e6035)
2023-05-19 18:26:53 +07:00
Rajat Mahajan
05175760d7 6176679: Application freezes when copying an animated gif image to the system clipboard
Reviewed-by: aivanov, dmarkov
(cherry picked from commit 6c71859ac2)
2023-05-19 18:26:53 +07:00
Calvin Cheung
10616cf6a5 8306712: CDS DeterministicDump.java test fails with -XX:+UseStringDeduplication
Reviewed-by: iklam, matsaave
(cherry picked from commit 65a54883b3)
2023-05-19 18:26:53 +07:00
Harshitha Onkar
fd44499547 8307301: Update HarfBuzz to 7.2.0
Reviewed-by: prr
(cherry picked from commit d8b230c384)
2023-05-19 18:26:52 +07:00
Damon Nguyen
fe2df03908 8306871: Open source more AWT Drag & Drop tests
Reviewed-by: prr
(cherry picked from commit b5a48277ab)
2023-05-19 18:26:52 +07:00
Maurizio Cimadamore
53cc70028e 8307375: Alignment check on layouts used as sequence element is not correct
Reviewed-by: jvernee
(cherry picked from commit 47422be2d1)
2023-05-19 18:26:52 +07:00
Roman Kennke
27b101baeb 8307395: Add missing STS to Shenandoah
Reviewed-by: shade
(cherry picked from commit 3968ab5db5)
2023-05-19 18:26:52 +07:00
Roman Kennke
e158cbd329 8307236: Rendezvous GC threads under STS for monitor deflation
Reviewed-by: eosterlund, shade
(cherry picked from commit 12d6ec66a6)
2023-05-19 18:26:52 +07:00
Matias Saavedra Silva
3baf56f829 8307306: Change some ConstantPool::name_ref_at calls to uncached_name_ref_at
Co-authored-by: Ioi Lam <iklam@openjdk.org>
Reviewed-by: coleenp, fparain
(cherry picked from commit 6fe959c62d)
2023-05-19 18:26:52 +07:00
Matthew Donovan
10b51569a1 8305169: java/security/cert/CertPathValidator/OCSP/GetAndPostTests.java -- test server didn't start in timely manner
Reviewed-by: ssahoo, jnimeh
(cherry picked from commit 3f6a3545a2)
2023-05-19 18:26:51 +07:00
Afshin Zafari
0fbe5ae376 8305084: Remove the removal warnings for finalize() from test/hotspot/jtreg/serviceability/dcmd/gc/FinalizerInfoTest.java and RunFinalizationTest.java
Reviewed-by: dholmes, cjplummer
(cherry picked from commit f143bf7c45)
2023-05-19 18:26:51 +07:00
Weibing Xiao
3c6757251c 8305714: Add an extra test for JDK-8292755
Reviewed-by: coffeys
(cherry picked from commit 746f8d1333)
2023-05-19 18:26:51 +07:00
Afshin Zafari
e4fa8e26be 8305080: Suppress the 'removal' warning for finalize() from test/hotspot/jtreg/compiler/jvmci/common/testcases that used in compiler/jvmci/compilerToVM/ tests
Reviewed-by: dnsimon, coleenp
(cherry picked from commit 1a1ce66dc9)
2023-05-19 18:26:51 +07:00
Adam Sotona
39dd2ab756 8250596: Update remaining manpage references from "OS X" to "macOS"
Reviewed-by: mullan, cjplummer, dholmes, sspitsyn
(cherry picked from commit 3b430b9f73)
2023-05-19 18:26:51 +07:00
Johan Sjölen
cce7e49451 8301493: Replace NULL with nullptr in cpu/aarch64
Reviewed-by: tschatzl, gziemski, dholmes
(cherry picked from commit 948f3b3c24)
2023-05-19 18:26:51 +07:00
Andrew Dinn
3911f60ab6 8307331: Correctly update line maps when class redefine rewrites bytecodes
Reviewed-by: sspitsyn
(cherry picked from commit f94f957734)
2023-05-19 18:26:50 +07:00
Thomas Schatzl
85359356fd 8307421: Fix comment in g1CollectionSetChooser.hpp after JDK-8306836
Reviewed-by: shade
(cherry picked from commit 302bc2fd7f)
2023-05-19 18:26:50 +07:00
Kim Barrett
b4dc0e324e 8307196: Dangling pointer warning for MetadataAllocationRequest
Reviewed-by: dholmes, eosterlund
(cherry picked from commit e19cf26d65)
2023-05-19 18:26:50 +07:00
William Kemper
f59066b595 8307378: Allow collectors to provide specific values for GC notifications' actions
Reviewed-by: kdnilsen, stefank
(cherry picked from commit 1b143ba787)
2023-05-19 18:26:50 +07:00
Leonid Mesnik
ea0ff7ede6 8307308: Add serviceability_ttf_virtual group to exclude jvmti tests developed for virtual threads
Reviewed-by: sspitsyn
(cherry picked from commit a44e8908a1)
2023-05-19 18:26:49 +07:00
Eric Liu
bc024a40ff 8304948: [vectorapi] C2 crashes when expanding VectorBox
Reviewed-by: thartmann, qamai
(cherry picked from commit 46df171d53)
2023-05-19 18:26:49 +07:00
ngubarkov
d95f8e7a79 JBR-5605 ignore empty client area when syncing bounds in XDecoratedPeer. 2023-05-18 22:40:11 +03:00
Maxim Kartashev
0b0ad45a66 JBR-5637 Linux: implement window position change with WM help
Introduced JBR.isWindowMoveSupported() and
JBR.getWindowMove().startMovingTogetherWithMouse()
2023-05-18 19:15:27 +04:00
Vitaly Provodin
b2fd90ab79 JBR-5627 add regression test AsyncProfilerRunnerTest 2023-05-18 05:50:34 +07:00
Maxim Kartashev
de8ed02350 JBR-5631 Refactor Dockerfile for x64 builds 2023-05-16 07:21:47 +07:00
Artem Bochkarev
a79cc2c72e JBR-5426 write JCEF version info inside release file 2023-05-16 05:24:36 +07:00
Vitaly Provodin
442df3d1f5 JBR-5286 make windows-aarch64 building script identical to the same script in jbr17 2023-05-16 05:24:36 +07:00
Vitaly Provodin
debf7e9f98 fixup! JBR-3639 add jbrsdk tarballs for dcevm, jcef builds 2023-05-16 05:24:35 +07:00
6446 changed files with 345512 additions and 144099 deletions

View File

@@ -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
@@ -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

View File

@@ -40,7 +40,7 @@ runs:
var: GTEST_VERSION
- name: 'Checkout GTest source'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: google/googletest
ref: 'v${{ steps.version.outputs.value }}'

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, 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
@@ -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 }}
@@ -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_11_X64"
bash make/build.sh --jdk "$JDK"
mkdir ../installed
mv build/images/jtreg/* ../installed
working-directory: jtreg/src

View File

@@ -30,7 +30,8 @@ runs:
using: composite
steps:
- name: 'Install MSYS2'
uses: msys2/setup-msys2@v2
# use a specific release of msys2/setup-msys2 to prevent jtreg build failures on newer release
uses: msys2/setup-msys2@7efe20baefed56359985e327d329042cde2434ff
with:
install: 'autoconf tar unzip zip make'
path-type: minimal

View File

@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2022, 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
@@ -44,8 +44,8 @@ for test in $failures $errors; do
base_path="$(echo "$test" | tr '#' '_')"
report_file="$report_dir/$base_path.jtr"
hs_err_files=$(ls $report_dir/$base_path/hs_err*.log 2> /dev/null || true)
replay_files=$(ls $report_dir/$base_path/replay*.log 2> /dev/null || true)
echo "#### <a id="$anchor">$test"
echo '<details><summary>View test results</summary>'
echo ''
echo '```'
@@ -73,6 +73,20 @@ for test in $failures $errors; do
echo ''
fi
if [[ "$replay_files" != "" ]]; then
echo '<details><summary>View HotSpot replay file</summary>'
echo ''
for replay in $replay_files; do
echo '```'
echo "$replay:"
echo ''
cat "$replay"
echo '```'
done
echo '</details>'
echo ''
fi
done >> $GITHUB_STEP_SUMMARY
# With many failures, the summary can easily exceed 1024 kB, the limit set by Github

View File

@@ -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

View File

@@ -31,12 +31,6 @@ on:
gcc-major-version:
required: true
type: string
apt-gcc-version:
required: true
type: string
apt-gcc-cross-version:
required: true
type: string
extra-conf-options:
required: false
type: string
@@ -86,13 +80,12 @@ jobs:
- target-cpu: riscv64
gnu-arch: riscv64
debian-arch: riscv64
debian-repository: https://deb.debian.org/debian-ports
debian-keyring: /usr/share/keyrings/debian-ports-archive-keyring.gpg
debian-repository: https://httpredir.debian.org/debian/
debian-version: sid
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Get the BootJDK'
id: bootjdk
@@ -107,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: |
@@ -114,12 +111,11 @@ jobs:
sudo apt-get update
sudo apt-get install --only-upgrade apt
sudo apt-get install \
gcc-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
g++-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev \
debian-ports-archive-keyring
gcc-${{ inputs.gcc-major-version }} \
g++-${{ inputs.gcc-major-version }} \
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}} \
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}} \
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
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: 'Check cache for sysroot'
@@ -138,9 +134,9 @@ jobs:
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
$(test -n "${{ matrix.debian-keyring }}" && echo "--keyring=${{ matrix.debian-keyring }}")
--variant=minbase
${{ matrix.debian-version }}
sysroot
${{ matrix.debian-repository }}
@@ -153,7 +149,8 @@ jobs:
sudo chown ${USER} -R sysroot
rm -rf sysroot/{dev,proc,run,sys,var}
rm -rf sysroot/usr/{sbin,bin,share}
rm -rf sysroot/usr/lib/{apt,udev,systemd}
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'
@@ -162,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

View File

@@ -49,9 +49,6 @@ on:
required: false
type: string
default: ''
apt-gcc-version:
required: true
type: string
apt-architecture:
required: false
type: string
@@ -81,7 +78,7 @@ jobs:
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Get the BootJDK'
id: bootjdk
@@ -114,7 +111,7 @@ jobs:
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 }}=${{ inputs.apt-gcc-version }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }}=${{ inputs.apt-gcc-version }} 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 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'

View File

@@ -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
@@ -31,6 +31,9 @@ on:
platform:
required: true
type: string
runs-on:
required: true
type: string
extra-conf-options:
required: false
type: string
@@ -55,7 +58,7 @@ on:
jobs:
build-macos:
name: build
runs-on: macos-11
runs-on: ${{ inputs.runs-on }}
strategy:
fail-fast: false
@@ -68,13 +71,13 @@ jobs:
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Get the BootJDK'
id: bootjdk
uses: ./.github/actions/get-bootjdk
with:
platform: macos-x64
platform: ${{ inputs.platform }}
- name: 'Get JTReg'
id: jtreg
@@ -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

View File

@@ -79,7 +79,7 @@ jobs:
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Get MSYS2'
uses: ./.github/actions/get-msys2

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, 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
@@ -127,7 +127,6 @@ jobs:
with:
platform: linux-x64
gcc-major-version: '10'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
# The linux-x64 jdk bundle is used as buildjdk for the cross-compile job
@@ -141,11 +140,10 @@ jobs:
platform: linux-x86
gcc-major-version: '10'
gcc-package-suffix: '-multilib'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
apt-architecture: 'i386'
# Some multilib libraries do not have proper inter-dependencies, so we have to
# install their dependencies manually.
apt-extra-packages: 'libfreetype6-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libc6-i386'
apt-extra-packages: 'libfreetype-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libc6-i386 libgcc-s1:i386 libstdc++6:i386'
extra-conf-options: '--with-target-bits=32'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -160,7 +158,6 @@ jobs:
make-target: 'hotspot'
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
extra-conf-options: '--disable-precompiled-headers'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -175,7 +172,6 @@ jobs:
make-target: 'hotspot'
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
extra-conf-options: '--with-jvm-variants=zero --disable-precompiled-headers'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -190,7 +186,6 @@ jobs:
make-target: 'hotspot'
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
extra-conf-options: '--with-jvm-variants=minimal --disable-precompiled-headers'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -206,7 +201,6 @@ jobs:
# Technically this is not the "debug" level, but we can't inject a new matrix state for just this job
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
extra-conf-options: '--with-debug-level=optimized --disable-precompiled-headers'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -220,8 +214,6 @@ jobs:
uses: ./.github/workflows/build-cross-compile.yml
with:
gcc-major-version: '10'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
apt-gcc-cross-version: '10.4.0-4ubuntu1~22.04cross1'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.linux-cross-compile == 'true'
@@ -232,7 +224,8 @@ jobs:
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-x64
xcode-toolset-version: '12.5.1'
runs-on: 'macos-13'
xcode-toolset-version: '14.3.1'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.macos-x64 == 'true'
@@ -243,8 +236,8 @@ jobs:
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-aarch64
xcode-toolset-version: '12.5.1'
extra-conf-options: '--openjdk-target=aarch64-apple-darwin'
runs-on: 'macos-14'
xcode-toolset-version: '14.3.1'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.macos-aarch64 == 'true'
@@ -287,7 +280,6 @@ jobs:
# build JDK, and we do not need the additional testing of the graphs.
extra-conf-options: '--disable-full-docs'
gcc-major-version: '10'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.docs == 'true'
@@ -324,7 +316,17 @@ jobs:
with:
platform: macos-x64
bootjdk-platform: macos-x64
runs-on: macos-11
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

View File

@@ -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
@@ -60,7 +60,10 @@ jobs:
- 'jdk/tier1 part 3'
- 'langtools/tier1'
- 'hs/tier1 common'
- 'hs/tier1 compiler'
- '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'
@@ -83,8 +86,20 @@ jobs:
test-suite: 'test/hotspot/jtreg/:tier1_common'
debug-suffix: -debug
- test-name: 'hs/tier1 compiler'
test-suite: 'test/hotspot/jtreg/:tier1_compiler'
- test-name: 'hs/tier1 compiler part 1'
test-suite: 'test/hotspot/jtreg/:tier1_compiler_1'
debug-suffix: -debug
- test-name: 'hs/tier1 compiler part 2'
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'
@@ -105,7 +120,7 @@ jobs:
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Get MSYS2'
uses: ./.github/actions/get-msys2
@@ -132,7 +147,7 @@ jobs:
run: |
# On macOS we need to install some dependencies for testing
brew install make
sudo xcode-select --switch /Applications/Xcode_11.7.app/Contents/Developer
sudo xcode-select --switch /Applications/Xcode_14.3.1.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
if: runner.os == 'macOS'

View File

@@ -1,7 +1,7 @@
[general]
project=jdk
project=jdk-updates
jbs=JDK
version=21
version=21.0.3
[checks]
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists

View File

@@ -21,11 +21,13 @@ can be found on the [releases page](https://github.com/JetBrains/JetBrainsRuntim
## Releases based on JDK 17
| IDE Version | Latest JBR | Date Released |
|-------------|--------------------------------------------------------------------------------------------------------|---------------|
| 2023.1 | [17.0.6-b829.5](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.6b829.5) | 01-Mar-2023 |
| 2022.3 | [17.0.6-b653.34](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.6b653.34) | 28-Feb-2023 |
| 2022.2 | [17.0.6-b469.82](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.6b469.82) | 06-Mar-2023 |
| IDE Version | Latest JBR | Date Released |
|-------------|---------------------------------------------------------------------------------------------------------|---------------|
| 2023.3 | [17.0.9b1087.7](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.9b1087.7) | 20-Nov-2023 |
| 2023.2 | [17.0.9b1000.46](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.9b1000.46) | 01-Nov-2023 |
| 2023.1 | [17.0.6-b829.5](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.6b829.5) | 01-Mar-2023 |
| 2022.3 | [17.0.6-b653.34](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.6b653.34) | 28-Feb-2023 |
| 2022.2 | [17.0.6-b469.82](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.6b469.82) | 06-Mar-2023 |
## Releases based on JDK 11
@@ -124,8 +126,9 @@ $ docker run -v `pwd`../../../../:/JetBrainsRuntime -it 942ea9900054
### Ubuntu Linux
Install the necessary tools, libraries, and headers with:
```
$ sudo apt-get install autoconf make build-essential libx11-dev libxext-dev libxrender-dev libxtst-dev \
libxt-dev libxrandr-dev libcups2-dev libfontconfig1-dev libasound2-dev
$ sudo apt-get install autoconf make build-essential libx11-dev libxext-dev libxrender-dev \
libxtst-dev libxt-dev libxrandr-dev libcups2-dev libfontconfig1-dev libasound2-dev libwayland-dev \
libxkbcommon-x11-0
```
Get Java 19 (for instance, [Azul Zulu Builds of OpenJDK 19](https://www.azul.com/downloads/?version=java-19-sts&os=linux&package=jdk)).

View File

@@ -80,6 +80,7 @@ id="toc-getting-jdk-binaries">Getting JDK binaries</a></li>
id="toc-external-library-requirements">External Library Requirements</a>
<ul>
<li><a href="#freetype" id="toc-freetype">FreeType</a></li>
<li><a href="#fontconfig" id="toc-fontconfig">Fontconfig</a></li>
<li><a href="#cups" id="toc-cups">CUPS</a></li>
<li><a href="#x11" id="toc-x11">X11</a></li>
<li><a href="#alsa" id="toc-alsa">ALSA</a></li>
@@ -323,6 +324,7 @@ GB of free disk space is required.</p>
<p>Even for 32-bit builds, it is recommended to use a 64-bit build
machine, and instead create a 32-bit target using
<code>--with-target-bits=32</code>.</p>
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release.</p>
<h3 id="building-on-aarch64">Building on aarch64</h3>
<p>At a minimum, a machine with 8 cores is advisable, as well as 8 GB of
RAM. (The more cores to use, the more memory you need.) At least 6 GB of
@@ -353,22 +355,22 @@ to date at the time of writing.</p>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Operating system</th>
<th style="text-align: left;">Vendor/version used</th>
<th>Operating system</th>
<th>Vendor/version used</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Linux</td>
<td style="text-align: left;">Oracle Enterprise Linux 6.4 / 7.6</td>
<td>Linux</td>
<td>Oracle Enterprise Linux 6.4 / 7.6</td>
</tr>
<tr class="even">
<td style="text-align: left;">macOS</td>
<td style="text-align: left;">Mac OS X 10.13 (High Sierra)</td>
<td>macOS</td>
<td>Mac OS X 10.13 (High Sierra)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Windows</td>
<td style="text-align: left;">Windows Server 2012 R2</td>
<td>Windows</td>
<td>Windows Server 2012 R2</td>
</tr>
</tbody>
</table>
@@ -399,6 +401,7 @@ to the build system, e.g. in arguments to <code>configure</code>. So,
use <code>--with-msvcr-dll=/cygdrive/c/msvcr100.dll</code> rather than
<code>--with-msvcr-dll=c:\msvcr100.dll</code>. For details on this
conversion, see the section on <a href="#fixpath">Fixpath</a>.</p>
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release.</p>
<h4 id="cygwin">Cygwin</h4>
<p>A functioning <a href="http://www.cygwin.com/">Cygwin</a> environment
is required for building the JDK on Windows. If you have a 64-bit OS, we
@@ -677,6 +680,19 @@ copy.</p>
<p>Use <code>--with-freetype-include=&lt;path&gt;</code> and
<code>--with-freetype-lib=&lt;path&gt;</code> if <code>configure</code>
does not automatically locate the platform FreeType files.</p>
<h3 id="fontconfig">Fontconfig</h3>
<p>Fontconfig from <a href="http://fontconfig.org">freedesktop.org
Fontconfig</a> is required on all platforms except Windows and
macOS.</p>
<ul>
<li>To install on an apt-based Linux, try running
<code>sudo apt-get install libfontconfig-dev</code>.</li>
<li>To install on an rpm-based Linux, try running
<code>sudo yum install fontconfig-devel</code>.</li>
</ul>
<p>Use <code>--with-fontconfig-include=&lt;path&gt;</code> and
<code>--with-fontconfig=&lt;path&gt;</code> if <code>configure</code>
does not automatically locate the platform Fontconfig files.</p>
<h3 id="cups">CUPS</h3>
<p>CUPS, <a href="http://www.cups.org">Common UNIX Printing System</a>
header files are required on all platforms, except Windows. Often these
@@ -1195,27 +1211,27 @@ following targets are known to work:</p>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Supported devkit targets</th>
<th>Supported devkit targets</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">x86_64-linux-gnu</td>
<td>x86_64-linux-gnu</td>
</tr>
<tr class="even">
<td style="text-align: left;">aarch64-linux-gnu</td>
<td>aarch64-linux-gnu</td>
</tr>
<tr class="odd">
<td style="text-align: left;">arm-linux-gnueabihf</td>
<td>arm-linux-gnueabihf</td>
</tr>
<tr class="even">
<td style="text-align: left;">ppc64-linux-gnu</td>
<td>ppc64-linux-gnu</td>
</tr>
<tr class="odd">
<td style="text-align: left;">ppc64le-linux-gnu</td>
<td>ppc64le-linux-gnu</td>
</tr>
<tr class="even">
<td style="text-align: left;">s390x-linux-gnu</td>
<td>s390x-linux-gnu</td>
</tr>
</tbody>
</table>
@@ -1417,112 +1433,119 @@ example <code>${sysroot}/usr/lib/${target}/</code></p></li>
<p>Architectures that are known to successfully cross-compile like this
are:</p>
<table>
<colgroup>
<col style="width: 13%" />
<col style="width: 13%" />
<col style="width: 15%" />
<col style="width: 27%" />
<col style="width: 29%" />
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">Target</th>
<th style="text-align: left;">Debian tree</th>
<th style="text-align: left;">Debian arch</th>
<th style="text-align: left;"><code>--openjdk-target=...</code></th>
<th>Target</th>
<th>Debian tree</th>
<th>Debian arch</th>
<th><code>--openjdk-target=...</code></th>
<th><code>--with-jvm-variants=...</code></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">x86</td>
<td style="text-align: left;">buster</td>
<td style="text-align: left;">i386</td>
<td style="text-align: left;">i386-linux-gnu</td>
<td>x86</td>
<td>buster</td>
<td>i386</td>
<td>i386-linux-gnu</td>
<td>(all)</td>
</tr>
<tr class="even">
<td style="text-align: left;">arm</td>
<td style="text-align: left;">buster</td>
<td style="text-align: left;">armhf</td>
<td style="text-align: left;">arm-linux-gnueabihf</td>
<td>arm</td>
<td>buster</td>
<td>armhf</td>
<td>arm-linux-gnueabihf</td>
<td>(all)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">aarch64</td>
<td style="text-align: left;">buster</td>
<td style="text-align: left;">arm64</td>
<td style="text-align: left;">aarch64-linux-gnu</td>
<td>aarch64</td>
<td>buster</td>
<td>arm64</td>
<td>aarch64-linux-gnu</td>
<td>(all)</td>
</tr>
<tr class="even">
<td style="text-align: left;">ppc64le</td>
<td style="text-align: left;">buster</td>
<td style="text-align: left;">ppc64el</td>
<td style="text-align: left;">powerpc64le-linux-gnu</td>
<td>ppc64le</td>
<td>buster</td>
<td>ppc64el</td>
<td>powerpc64le-linux-gnu</td>
<td>(all)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">s390x</td>
<td style="text-align: left;">buster</td>
<td style="text-align: left;">s390x</td>
<td style="text-align: left;">s390x-linux-gnu</td>
<td>s390x</td>
<td>buster</td>
<td>s390x</td>
<td>s390x-linux-gnu</td>
<td>(all)</td>
</tr>
<tr class="even">
<td style="text-align: left;">mipsle</td>
<td style="text-align: left;">buster</td>
<td style="text-align: left;">mipsel</td>
<td style="text-align: left;">mipsel-linux-gnu</td>
<td>mipsle</td>
<td>buster</td>
<td>mipsel</td>
<td>mipsel-linux-gnu</td>
<td>zero</td>
</tr>
<tr class="odd">
<td style="text-align: left;">mips64le</td>
<td style="text-align: left;">buster</td>
<td style="text-align: left;">mips64el</td>
<td style="text-align: left;">mips64el-linux-gnueabi64</td>
<td>mips64le</td>
<td>buster</td>
<td>mips64el</td>
<td>mips64el-linux-gnueabi64</td>
<td>zero</td>
</tr>
<tr class="even">
<td style="text-align: left;">armel</td>
<td style="text-align: left;">buster</td>
<td style="text-align: left;">arm</td>
<td style="text-align: left;">arm-linux-gnueabi</td>
<td>armel</td>
<td>buster</td>
<td>arm</td>
<td>arm-linux-gnueabi</td>
<td>zero</td>
</tr>
<tr class="odd">
<td style="text-align: left;">ppc</td>
<td style="text-align: left;">sid</td>
<td style="text-align: left;">powerpc</td>
<td style="text-align: left;">powerpc-linux-gnu</td>
<td>ppc</td>
<td>sid</td>
<td>powerpc</td>
<td>powerpc-linux-gnu</td>
<td>zero</td>
</tr>
<tr class="even">
<td style="text-align: left;">ppc64be</td>
<td style="text-align: left;">sid</td>
<td style="text-align: left;">ppc64</td>
<td style="text-align: left;">powerpc64-linux-gnu</td>
<td>ppc64be</td>
<td>sid</td>
<td>ppc64</td>
<td>powerpc64-linux-gnu</td>
<td>(all)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">m68k</td>
<td style="text-align: left;">sid</td>
<td style="text-align: left;">m68k</td>
<td style="text-align: left;">m68k-linux-gnu</td>
<td>m68k</td>
<td>sid</td>
<td>m68k</td>
<td>m68k-linux-gnu</td>
<td>zero</td>
</tr>
<tr class="even">
<td style="text-align: left;">alpha</td>
<td style="text-align: left;">sid</td>
<td style="text-align: left;">alpha</td>
<td style="text-align: left;">alpha-linux-gnu</td>
<td>alpha</td>
<td>sid</td>
<td>alpha</td>
<td>alpha-linux-gnu</td>
<td>zero</td>
</tr>
<tr class="odd">
<td style="text-align: left;">sh4</td>
<td style="text-align: left;">sid</td>
<td style="text-align: left;">sh4</td>
<td style="text-align: left;">sh4-linux-gnu</td>
<td>sh4</td>
<td>sid</td>
<td>sh4</td>
<td>sh4-linux-gnu</td>
<td>zero</td>
</tr>
<tr class="even">
<td style="text-align: left;">riscv64</td>
<td style="text-align: left;">sid</td>
<td style="text-align: left;">riscv64</td>
<td style="text-align: left;">riscv64-linux-gnu</td>
<td>riscv64</td>
<td>sid</td>
<td>riscv64</td>
<td>riscv64-linux-gnu</td>
<td>(all)</td>
</tr>
</tbody>

View File

@@ -126,6 +126,8 @@ space is required.
Even for 32-bit builds, it is recommended to use a 64-bit build machine, and
instead create a 32-bit target using `--with-target-bits=32`.
Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release.
### Building on aarch64
At a minimum, a machine with 8 cores is advisable, as well as 8 GB of RAM.
@@ -162,11 +164,11 @@ This table lists the OS versions used by Oracle when building the JDK. Such
information is always subject to change, but this table is up to date at the
time of writing.
Operating system Vendor/version used
----------------- -------------------------------------------------------
Linux Oracle Enterprise Linux 6.4 / 7.6
macOS Mac OS X 10.13 (High Sierra)
Windows Windows Server 2012 R2
| Operating system | Vendor/version used |
| ----------------- | ---------------------------------- |
| Linux | Oracle Enterprise Linux 6.4 / 7.6 |
| macOS | Mac OS X 10.13 (High Sierra) |
| Windows | Windows Server 2012 R2 |
The double version numbers for Linux are due to the hybrid model
used at Oracle, where header files and external libraries from an older version
@@ -199,6 +201,8 @@ rule also applies to input to the build system, e.g. in arguments to
`--with-msvcr-dll=c:\msvcr100.dll`. For details on this conversion, see the section
on [Fixpath](#fixpath).
Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release.
#### Cygwin
A functioning [Cygwin](http://www.cygwin.com/) environment is required for
@@ -471,6 +475,19 @@ rather than bundling the JDK's own copy.
Use `--with-freetype-include=<path>` and `--with-freetype-lib=<path>`
if `configure` does not automatically locate the platform FreeType files.
### Fontconfig
Fontconfig from [freedesktop.org Fontconfig](http://fontconfig.org) is required
on all platforms except Windows and macOS.
* To install on an apt-based Linux, try running `sudo apt-get install
libfontconfig-dev`.
* To install on an rpm-based Linux, try running `sudo yum install
fontconfig-devel`.
Use `--with-fontconfig-include=<path>` and `--with-fontconfig=<path>`
if `configure` does not automatically locate the platform Fontconfig files.
### CUPS
CUPS, [Common UNIX Printing System](http://www.cups.org) header files are
@@ -970,14 +987,14 @@ https://sourceware.org/autobook/autobook/autobook_17.html). If no
targets are given, a native toolchain for the current platform will be
created. Currently, at least the following targets are known to work:
Supported devkit targets
-------------------------
x86_64-linux-gnu
aarch64-linux-gnu
arm-linux-gnueabihf
ppc64-linux-gnu
ppc64le-linux-gnu
s390x-linux-gnu
| Supported devkit targets |
| ------------------------ |
| x86_64-linux-gnu |
| aarch64-linux-gnu |
| arm-linux-gnueabihf |
| ppc64-linux-gnu |
| ppc64le-linux-gnu |
| s390x-linux-gnu |
`BASE_OS` must be one of "OEL6" for Oracle Enterprise Linux 6 or
"Fedora" (if not specified "OEL6" will be the default). If the base OS
@@ -1204,22 +1221,22 @@ it might require a little nudge with:
Architectures that are known to successfully cross-compile like this are:
Target Debian tree Debian arch `--openjdk-target=...` `--with-jvm-variants=...`
------------ ------------ ------------- ------------------------ --------------
x86 buster i386 i386-linux-gnu (all)
arm buster armhf arm-linux-gnueabihf (all)
aarch64 buster arm64 aarch64-linux-gnu (all)
ppc64le buster ppc64el powerpc64le-linux-gnu (all)
s390x buster s390x s390x-linux-gnu (all)
mipsle buster mipsel mipsel-linux-gnu zero
mips64le buster mips64el mips64el-linux-gnueabi64 zero
armel buster arm arm-linux-gnueabi zero
ppc sid powerpc powerpc-linux-gnu zero
ppc64be sid ppc64 powerpc64-linux-gnu (all)
m68k sid m68k m68k-linux-gnu zero
alpha sid alpha alpha-linux-gnu zero
sh4 sid sh4 sh4-linux-gnu zero
riscv64 sid riscv64 riscv64-linux-gnu (all)
| Target | Debian tree | Debian arch | `--openjdk-target=...` | `--with-jvm-variants=...` |
| ------------ | ------------ | ------------- | ------------------------ | ------------------------- |
| x86 | buster | i386 | i386-linux-gnu | (all) |
| arm | buster | armhf | arm-linux-gnueabihf | (all) |
| aarch64 | buster | arm64 | aarch64-linux-gnu | (all) |
| ppc64le | buster | ppc64el | powerpc64le-linux-gnu | (all) |
| s390x | buster | s390x | s390x-linux-gnu | (all) |
| mipsle | buster | mipsel | mipsel-linux-gnu | zero |
| mips64le | buster | mips64el | mips64el-linux-gnueabi64 | zero |
| armel | buster | arm | arm-linux-gnueabi | zero |
| ppc | sid | powerpc | powerpc-linux-gnu | zero |
| ppc64be | sid | ppc64 | powerpc64-linux-gnu | (all) |
| m68k | sid | m68k | m68k-linux-gnu | zero |
| alpha | sid | alpha | alpha-linux-gnu | zero |
| sh4 | sid | sh4 | sh4-linux-gnu | zero |
| riscv64 | sid | riscv64 | riscv64-linux-gnu | (all) |
### Building for ARM/aarch64

View File

@@ -577,12 +577,15 @@ PKCS11 tests. Improper NSS version may lead to unexpected failures which
are hard to diagnose. For example,
sun/security/pkcs11/Secmod/AddTrustedCert.java may fail on Ubuntu 18.04
with the default NSS version in the system. To run these tests
correctly, the system property <code>test.nss.lib.paths</code> is
required on Ubuntu 18.04 to specify the alternative NSS lib
directories.</p>
correctly, the system property
<code>jdk.test.lib.artifacts.&lt;NAME&gt;</code> is required on Ubuntu
18.04 to specify the alternative NSS lib directory. The
<code>&lt;NAME&gt;</code> component should be replaced with the name
element of the appropriate <code>@Artifact</code> class. (See
<code>test/jdk/sun/security/pkcs11/PKCS11Test.java</code>)</p>
<p>For example:</p>
<pre><code>$ make test TEST=&quot;jtreg:sun/security/pkcs11/Secmod/AddTrustedCert.java&quot; \
JTREG=&quot;JAVA_OPTIONS=-Dtest.nss.lib.paths=/path/to/your/latest/NSS-libs&quot;</code></pre>
JTREG=&quot;JAVA_OPTIONS=-Djdk.test.lib.artifacts.nsslib-linux_aarch64=/path/to/NSS-libs&quot;</code></pre>
<p>For more notes about the PKCS11 tests, please refer to
test/jdk/sun/security/pkcs11/README.</p>
<h3 id="client-ui-tests">Client UI Tests</h3>

View File

@@ -600,14 +600,16 @@ It is highly recommended to use the latest NSS version when running PKCS11
tests. Improper NSS version may lead to unexpected failures which are hard to
diagnose. For example, sun/security/pkcs11/Secmod/AddTrustedCert.java may fail
on Ubuntu 18.04 with the default NSS version in the system. To run these tests
correctly, the system property `test.nss.lib.paths` is required on Ubuntu 18.04
to specify the alternative NSS lib directories.
correctly, the system property `jdk.test.lib.artifacts.<NAME>` is required on
Ubuntu 18.04 to specify the alternative NSS lib directory. The `<NAME>`
component should be replaced with the name element of the appropriate
`@Artifact` class. (See `test/jdk/sun/security/pkcs11/PKCS11Test.java`)
For example:
```
$ make test TEST="jtreg:sun/security/pkcs11/Secmod/AddTrustedCert.java" \
JTREG="JAVA_OPTIONS=-Dtest.nss.lib.paths=/path/to/your/latest/NSS-libs"
JTREG="JAVA_OPTIONS=-Djdk.test.lib.artifacts.nsslib-linux_aarch64=/path/to/NSS-libs"
```
For more notes about the PKCS11 tests, please refer to

12
jb/generate-wakefield.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
if [[ -z "$1" ]]; then
SCANNER=wayland-scanner
else
SCANNER="$1"
fi
set -ex
"$SCANNER" client-header src/java.desktop/share/native/libwakefield/protocol/wakefield.xml src/java.desktop/unix/native/libawt_wlawt/wakefield-client-protocol.h
"$SCANNER" private-code src/java.desktop/share/native/libwakefield/protocol/wakefield.xml src/java.desktop/unix/native/libawt_wlawt/wakefield-client-protocol.c

View File

@@ -1,13 +0,0 @@
# jetbrains/runtime:jbr15env
FROM centos:7
RUN yum -y install centos-release-scl
RUN yum -y install devtoolset-8
RUN yum -y install zip bzip2 unzip tar wget make autoconf automake libtool gcc gcc-c++ libstdc++-devel alsa-devel cups-devel xorg-x11-devel libjpeg62-devel giflib-devel freetype-devel file which libXtst-devel libXt-devel libXrender-devel alsa-lib-devel fontconfig-devel libXrandr-devel libXi-devel git
# Install Java 16
RUN wget https://cdn.azul.com/zulu/bin/zulu17.28.13-ca-jdk17.0.0-linux_x64.tar.gz \
-O - | tar xz -C /
RUN mv /zulu17.28.13-ca-jdk17.0.0-linux_x64 /jdk17.0.0
ENV PATH /opt/rh/devtoolset-8/root/usr/bin:$PATH
RUN mkdir .git
RUN git config user.email "teamcity@jetbrains.com"
RUN git config user.name "builduser"

View File

@@ -8,15 +8,36 @@
FROM arm64v8/alpine:3.12
# Install the necessary build tools
RUN apk --no-cache add --update bash grep tar zip bzip2 rsync fontconfig build-base \
git libx11-dev libxext-dev libxrandr-dev libxrender-dev libxt-dev \
libxtst-dev autoconf freetype-dev cups-dev alsa-lib-dev file \
fontconfig fontconfig-dev linux-headers
RUN apk --no-cache add --update \
alsa-lib-dev=1.2.2-r0 \
autoconf=2.69-r2 \
bash=5.0.17-r0 \
build-base=0.5-r2 \
bzip2=1.0.8-r1 \
cups-dev=2.3.3-r0 \
file=5.38-r0 \
fontconfig=2.13.1-r2 \
fontconfig-dev=2.13.1-r2 \
freetype-dev=2.10.4-r2 \
git=2.26.3-r1 \
grep=3.4-r0 \
libx11-dev=1.6.12-r1 \
libxext-dev=1.3.4-r0 \
libxrandr-dev=1.5.2-r0 \
libxrender-dev=0.9.10-r3 \
libxt-dev=1.2.0-r0 \
libxtst-dev=1.2.3-r3 \
linux-headers=5.4.5-r1 \
rsync=3.1.3-r3 \
tar=1.32-r2 \
wayland-dev=1.18.0-r4 \
zip=3.0-r8
# Set up boot JDK for building
COPY boot_jdk_musl_aarch64.tar.gz /jdk17/
RUN cd /jdk17 && tar --strip-components=1 -xzf boot_jdk_musl_aarch64.tar.gz && rm /jdk17/boot_jdk_musl_aarch64.tar.gz
ENV BOOT_JDK=/jdk17
COPY boot_jdk_musl_aarch64.tar.gz /jdk20/
RUN cd /jdk20 && tar --strip-components=1 -xzf boot_jdk_musl_aarch64.tar.gz && rm /jdk20/boot_jdk_musl_aarch64.tar.gz
ENV BOOT_JDK=/jdk20
RUN git config --global user.email "teamcity@jetbrains.com" && \
git config --global user.name "builduser"

View File

@@ -8,15 +8,35 @@
FROM alpine:3.14
# Install the necessary build tools
RUN apk --no-cache add --update bash grep tar zip bzip2 rsync fontconfig build-base \
git libx11-dev libxext-dev libxrandr-dev libxrender-dev libxt-dev \
libxtst-dev autoconf freetype-dev cups-dev alsa-lib-dev file \
fontconfig fontconfig-dev linux-headers
RUN apk --no-cache add --update \
alsa-lib-dev=1.2.5-r2 \
autoconf=2.71-r0 \
bash=5.1.16-r0 \
build-base=0.5-r3 \
bzip2=1.0.8-r1 \
cups-dev=2.3.3-r3 \
file=5.40-r1 \
fontconfig=2.13.1-r4 \
fontconfig-dev=2.13.1-r4 \
freetype-dev=2.10.4-r3 \
git=2.32.7-r0 \
grep=3.7-r0 \
libx11-dev=1.7.3.1-r0 \
libxext-dev=1.3.4-r0 \
libxrandr-dev=1.5.2-r1 \
libxrender-dev=0.9.10-r3 \
libxt-dev=1.2.1-r0 \
libxtst-dev=1.2.3-r3 \
linux-headers=5.10.41-r0 \
rsync=3.2.5-r0 \
tar=1.34-r1 \
wayland-dev=1.19.0-r0 \
zip=3.0-r9
# Set up boot JDK for building
COPY boot_jdk_musl_amd64.tar.gz /jdk17/
RUN cd /jdk17 && tar --strip-components=1 -xzf boot_jdk_musl_amd64.tar.gz && rm /jdk17/boot_jdk_musl_amd64.tar.gz
ENV BOOT_JDK=/jdk17
COPY boot_jdk_musl_amd64.tar.gz /jdk20/
RUN cd /jdk20 && tar --strip-components=1 -xzf boot_jdk_musl_amd64.tar.gz && rm /jdk20/boot_jdk_musl_amd64.tar.gz
ENV BOOT_JDK=/jdk20
RUN git config --global user.email "teamcity@jetbrains.com" && \
git config --global user.name "builduser"

View File

@@ -0,0 +1,73 @@
# jetbrains/runtime:jbr17env_x86_64
FROM centos:7
RUN yum -y install centos-release-scl; \
yum -y install devtoolset-10-10.1-0.el7; \
yum -y install \
alsa-lib-devel-1.1.8-1.el7 \
autoconf-2.69-11.el7 \
automake-1.13.4-3.el7 \
bzip2-1.0.6-13.el7 \
cups-devel-1.6.3-51.el7 \
file-5.11-37.el7 \
fontconfig-devel-2.13.0-4.3.el7 \
freetype-devel-2.8-14.el7_9.1 \
giflib-devel-4.1.6-9.el7 \
git-1.8.3.1-24.el7_9 \
libtool-2.4.2-22.el7_3 \
libXi-devel-1.7.9-1.el7 \
libXrandr-devel-1.5.1-2.el7 \
libXrender-devel-0.9.10-1.el7 \
libXt-devel-1.1.5-3.el7 \
libXtst-devel-1.2.3-1.el7 \
make-3.82-24.el7 \
tar-1.26-35.el7 \
unzip-6.0-24.el7_9 \
wayland-devel-1.15.0-1.el7 \
wget-1.14-18.el7_6.1 \
which-2.20-7.el7 \
zip-3.0-11.el7 \
python3-3.6.8-17.el7
RUN mkdir .git && \
git config user.email "teamcity@jetbrains.com" && \
git config user.name "builduser"
ENV LD_LIBRARY_PATH="/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib:/opt/rh/devtoolset-10/root/usr/lib64/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyninst:/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib"
ENV PATH="/opt/rh/devtoolset-10/root/usr/bin::${PATH}"
ENV PKG_CONFIG_PATH="/opt/rh/devtoolset-10/root/usr/lib64/pkgconfig"
# Build GLSLC
RUN curl -OL https://github.com/Kitware/CMake/releases/download/v3.27.5/cmake-3.27.5-linux-x86_64.tar.gz \
&& echo 138c68addae825b16ed78d792dafef5e0960194833f48bd77e7e0429c6bc081c *cmake-3.27.5-linux-x86_64.tar.gz | sha256sum -c - \
&& tar -xzf cmake-3.27.5-linux-x86_64.tar.gz \
&& rm cmake-3.27.5-linux-x86_64.tar.gz \
&& git clone https://github.com/google/shaderc --branch v2023.6 \
&& cd shaderc \
&& ./utils/git-sync-deps \
&& mkdir build \
&& cd build \
&& /cmake-3.27.5-linux-x86_64/bin/cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DSHADERC_SKIP_TESTS=ON \
-DSHADERC_SKIP_EXAMPLES=ON \
-DSHADERC_SKIP_COPYRIGHT_CHECK=ON \
.. \
&& make install
ENV PATH="/cmake-3.27.5-linux-x86_64/bin::${PATH}"
# Checkout Vulkan headers
RUN mkdir /vulkan \
&& cd /vulkan \
&& git init \
&& git remote add -f origin https://github.com/KhronosGroup/Vulkan-Headers.git \
&& git fetch origin \
&& git checkout v1.3.265 -- include \
&& rm -r .git \
&& mkdir /vulkan_hpp \
&& cd /vulkan_hpp \
&& git init \
&& git remote add -f origin https://github.com/KhronosGroup/Vulkan-Hpp.git \
&& git fetch origin \
&& git checkout v1.3.265 -- vulkan \
&& rm -r .git

View File

@@ -4,10 +4,10 @@ set -euo pipefail
set -x
# This script creates a Docker image suitable for building musl AArch64 variant
# of the JetBrains Runtime version 17.
# of the JetBrains Runtime version 21.
BOOT_JDK_REMOTE_FILE=zulu17.32.13-ca-jdk17.0.2-linux_musl_aarch64.tar.gz
BOOT_JDK_SHA=6b920559abafbe9bdef386a20ecf3a2f318bc1f0d8359eb1f95aee26606bbc70
BOOT_JDK_REMOTE_FILE=zulu20.32.11-ca-jdk20.0.2-linux_musl_aarch64.tar.gz
BOOT_JDK_SHA=eec57cf744c2438f695221f041d4804de3033ad33b6dba769d3359813ba3f90d
BOOT_JDK_LOCAL_FILE=boot_jdk_musl_aarch64.tar.gz
if [ ! -f $BOOT_JDK_LOCAL_FILE ]; then
@@ -22,7 +22,7 @@ sha256sum -c - <<EOF
$BOOT_JDK_SHA *$BOOT_JDK_LOCAL_FILE
EOF
docker build -t jbr17buildenv -f Dockerfile.musl_aarch64 .
docker build -t jetbrains/runtime:jbr21env_musl_aarch64 -f Dockerfile.musl_aarch64 .
# NB: the resulting container can (and should) be used without the network
# connection (--network none) during build in order to reduce the chance

View File

@@ -4,10 +4,10 @@ set -euo pipefail
set -x
# This script creates a Docker image suitable for building musl-x64 variant
# of the JetBrains Runtime version 17.
# of the JetBrains Runtime version 21.
BOOT_JDK_REMOTE_FILE=zulu17.32.13-ca-jdk17.0.2-linux_musl_x64.tar.gz
BOOT_JDK_SHA=bcc5342011bd9f3643372aadbdfa68d47463ff0d8621668a0bdf2910614d95c6
BOOT_JDK_REMOTE_FILE=zulu20.32.11-ca-jdk20.0.2-linux_musl_x64.tar.gz
BOOT_JDK_SHA=fca5081dd6da847fcd06f5b755e58edae22d6784f21b81bf73da2b538f842c07
BOOT_JDK_LOCAL_FILE=boot_jdk_musl_amd64.tar.gz
if [ ! -f $BOOT_JDK_LOCAL_FILE ]; then
@@ -22,7 +22,7 @@ sha256sum -c - <<EOF
$BOOT_JDK_SHA *$BOOT_JDK_LOCAL_FILE
EOF
docker build -t jbr17buildenv -f Dockerfile.musl_x64 .
docker build -t jetbrains/runtime:jbr21env_musl_x64 -f Dockerfile.musl_x64 .
# NB: the resulting container can (and should) be used without the network
# connection (--network none) during build in order to reduce the chance

View File

@@ -5,7 +5,7 @@ set -x
function check_bundle_type_maketest() {
# check whether last char is 't', if so remove it
if [ "${bundle_type: -1}" == "t" ]; then
if [ "${bundle_type: -1}" == "t" ] && [ "${bundle_type: -2}" != "ft" ]; then
bundle_type="${bundle_type%?}"
do_maketest=1
else
@@ -17,9 +17,11 @@ function getVersionProp() {
grep "^${1}" make/conf/version-numbers.conf | cut -d'=' -f2
}
while getopts ":i?" o; do
DISABLE_WARNINGS_AS_ERRORS=""
while getopts ":iw?" o; do
case "${o}" in
i) INC_BUILD=1 ;;
w) DISABLE_WARNINGS_AS_ERRORS="--disable-warnings-as-errors" ;;
esac
done
shift $((OPTIND-1))
@@ -36,8 +38,8 @@ architecture=${3:-x64} # aarch64 or x64
check_bundle_type_maketest
tag_prefix="jdk-"
OPENJDK_TAG=$(git log --simplify-by-decoration --decorate=short --pretty=short | grep "$tag_prefix" | cut -d "(" -f2 | cut -d ")" -f1 | awk '{print $2}' | tr -d ',' | sort -t "-" -k 2 -g | tail -n 1)
tag_prefix="jbr-"
OPENJDK_TAG=$(git log --simplify-by-decoration --decorate=short --pretty=short | grep "$tag_prefix" | cut -d "(" -f2 | cut -d ")" -f1 | awk '{print $2}' | sort -t "-" -k 2 -g | tail -n 1 | tr -d ",")
VERSION_FEATURE=$(getVersionProp "DEFAULT_VERSION_FEATURE")
VERSION_INTERIM=$(getVersionProp "DEFAULT_VERSION_INTERIM")
VERSION_UPDATE=$(getVersionProp "DEFAULT_VERSION_UPDATE")
@@ -94,8 +96,13 @@ esac
WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS="--with-native-debug-symbols=zipped"
REPRODUCIBLE_BUILD_OPTS="--enable-reproducible-build
--with-source-date=$SOURCE_DATE_EPOCH
if [ "$bundle_type" == "nomodft" ]; then
WITH_BUNDLED_FREETYPE="--with-freetype=bundled"
else
WITH_BUNDLED_FREETYPE=""
fi
REPRODUCIBLE_BUILD_OPTS="--with-source-date=$SOURCE_DATE_EPOCH
--with-hotspot-build-time=$BUILD_TIME
--with-copyright-year=$COPYRIGHT_YEAR
--disable-absolute-paths-in-output

View File

@@ -35,9 +35,11 @@ function do_configure {
--with-version-opt=b"$build_number" \
--with-boot-jdk="$BOOT_JDK" \
--enable-cds=yes \
$DISABLE_WARNINGS_AS_ERRORS \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
$WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS \
$WITH_BUNDLED_FREETYPE \
|| do_exit $?
}
@@ -58,19 +60,20 @@ function create_image_bundle {
libc_type_suffix=''
fastdebug_infix=''
__cds_opt=''
if is_musl; then libc_type_suffix='musl-' ; fi
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then __cds_opt="--generate-cds-archive"; fi
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
JBR=${__bundle_name}-${JBSDK_VERSION}-linux-${libc_type_suffix}aarch64-${fastdebug_infix}b${build_number}
__root_dir=${__bundle_name}-${JBSDK_VERSION}-linux-${libc_type_suffix}aarch64-${fastdebug_infix:-}b${build_number}
echo Running jlink....
[ -d "$IMAGES_DIR"/"$__root_dir" ] && rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
$JSDK/bin/jlink \
--module-path "$__modules_path" --no-man-pages --compress=2 \
--add-modules "$__modules" --output "$IMAGES_DIR"/"$__root_dir"
$__cds_opt --add-modules "$__modules" --output "$IMAGES_DIR"/"$__root_dir"
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> "$IMAGES_DIR"/"$__root_dir"/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
@@ -100,16 +103,23 @@ function create_image_bundle {
WITH_DEBUG_LEVEL="--with-debug-level=release"
RELEASE_NAME=linux-aarch64-server-release
jbr_name_postfix=""
case "$bundle_type" in
"jcef")
do_reset_changes=1
jbr_name_postfix="_${bundle_type}"
do_maketest=1
;;
"nomod" | "")
bundle_type=""
;;
"nomodft" | "")
jbr_name_postfix="_ft"
;;
"fd")
do_reset_changes=1
jbr_name_postfix="_${bundle_type}"
WITH_DEBUG_LEVEL="--with-debug-level=fastdebug"
RELEASE_NAME=linux-aarch64-server-fastdebug
;;
@@ -133,10 +143,7 @@ if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
git apply -p0 < jb/project/tools/patches/add_jcef_module_aarch64.patch || do_exit $?
update_jsdk_mods $JSDK $JCEF_PATH/jmods $JSDK/jmods $JSDK_MODS_DIR || do_exit $?
cp $JCEF_PATH/jmods/* $JSDK_MODS_DIR # $JSDK/jmods is not changed
jbr_name_postfix="_${bundle_type}"
else
jbr_name_postfix=""
cat $JCEF_PATH/jcef.version >> $JSDK/release
fi
# create runtime image bundle

View File

@@ -25,6 +25,13 @@ source jb/project/tools/common/scripts/common.sh
JCEF_PATH=${JCEF_PATH:=./jcef_linux_x64}
function do_configure {
if is_musl; then
LINUX_TARGET=""
else
LINUX_TARGET="\
--build=x86_64-unknown-linux-gnu \
--openjdk-target=x86_64-unknown-linux-gnu"
fi
sh configure \
$WITH_DEBUG_LEVEL \
--with-vendor-name="$VENDOR_NAME" \
@@ -35,9 +42,12 @@ function do_configure {
--with-version-opt=b"$build_number" \
--with-boot-jdk="$BOOT_JDK" \
--enable-cds=yes \
$LINUX_TARGET \
$DISABLE_WARNINGS_AS_ERRORS \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
$WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS \
$WITH_BUNDLED_FREETYPE \
|| do_exit $?
}
@@ -58,8 +68,10 @@ function create_image_bundle {
libc_type_suffix=''
fastdebug_infix=''
__cds_opt=''
if is_musl; then libc_type_suffix='musl-' ; fi
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then __cds_opt="--generate-cds-archive"; fi
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
JBR=${__bundle_name}-${JBSDK_VERSION}-linux-${libc_type_suffix}x64-${fastdebug_infix}b${build_number}
@@ -69,7 +81,7 @@ function create_image_bundle {
[ -d "$IMAGES_DIR"/"$__root_dir" ] && rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
$JSDK/bin/jlink \
--module-path "$__modules_path" --no-man-pages --compress=2 \
--add-modules "$__modules" --output "$IMAGES_DIR"/"$__root_dir"
$__cds_opt --add-modules "$__modules" --output "$IMAGES_DIR"/"$__root_dir"
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> "$IMAGES_DIR"/"$__root_dir"/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
@@ -93,22 +105,29 @@ function create_image_bundle {
[ -f "$JBR".tar.gz ] && rm "$JBR.tar.gz"
touch -c -d "@$SOURCE_DATE_EPOCH" "$JBR".tar
gzip "$JBR".tar || do_exit $?
rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
#rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
}
WITH_DEBUG_LEVEL="--with-debug-level=release"
RELEASE_NAME=linux-x86_64-server-release
jbr_name_postfix=""
case "$bundle_type" in
"jcef")
do_reset_changes=1
jbr_name_postfix="_${bundle_type}"
do_maketest=1
;;
"nomod" | "")
bundle_type=""
;;
"nomodft" | "")
jbr_name_postfix="_ft"
;;
"fd")
do_reset_changes=1
jbr_name_postfix="_${bundle_type}"
WITH_DEBUG_LEVEL="--with-debug-level=fastdebug"
RELEASE_NAME=linux-x86_64-server-fastdebug
;;
@@ -132,11 +151,7 @@ if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
git apply -p0 < jb/project/tools/patches/add_jcef_module.patch || do_exit $?
update_jsdk_mods $JSDK $JCEF_PATH/jmods $JSDK/jmods $JSDK_MODS_DIR || do_exit $?
cp $JCEF_PATH/jmods/* $JSDK_MODS_DIR # $JSDK/jmods is not changed
jbr_name_postfix="_${bundle_type}"
[ "$bundle_type" != "fd" ] && jbrsdk_name_postfix="_${bundle_type}"
else
jbr_name_postfix=""
cat $JCEF_PATH/jcef.version >> $JSDK/release
fi
# create runtime image bundle

View File

@@ -25,6 +25,7 @@ function do_configure {
--with-boot-jdk="$BOOT_JDK" \
$STATIC_CONF_ARGS \
--enable-cds=yes \
$DISABLE_WARNINGS_AS_ERRORS \
$REPRODUCIBLE_BUILD_OPTS \
$WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS \
|| do_exit $?
@@ -47,8 +48,10 @@ function create_image_bundle {
libc_type_suffix=''
fastdebug_infix=''
__cds_opt=''
if is_musl; then libc_type_suffix='musl-' ; fi
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then __cds_opt="--generate-cds-archive"; fi
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
JBR=${__bundle_name}-${JBSDK_VERSION}-linux-${libc_type_suffix}x86-${fastdebug_infix}b${build_number}
@@ -58,7 +61,7 @@ function create_image_bundle {
[ -d "$IMAGES_DIR"/"$__root_dir" ] && rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
$JSDK/bin/jlink \
--module-path "$__modules_path" --no-man-pages --compress=2 \
--add-modules "$__modules" --output "$IMAGES_DIR"/"$__root_dir"
$__cds_opt --add-modules "$__modules" --output "$IMAGES_DIR"/"$__root_dir"
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> "$IMAGES_DIR"/"$__root_dir"/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then

View File

@@ -0,0 +1,47 @@
#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" >/dev/null && pwd)"
source "$SCRIPT_DIR/jetsign-common.sh" || exit 1
function isMacOsBinary() {
file "$1" | grep -q 'Mach-O'
}
function isSigned() {
codesign --verify "$1" >/dev/null 2>&1 && ! grep -q Signature=adhoc < <(codesign --display --verbose "$1" 2>&1)
}
# last argument is a path to be signed
pathToBeSigned="$(pwd)/${*: -1}"
jetSignArgs=("${@:1:$#-1}")
if [[ ! -f "$pathToBeSigned" ]]; then
echo "$pathToBeSigned is missing or not a file"
exit 1
elif isSigned "$pathToBeSigned" && ! isForced "${jetSignArgs[@]}" ; then
echo "Already signed: $pathToBeSigned"
elif [[ "$JETSIGN_CLIENT" == "null" ]]; then
echo "JetSign client is missing, cannot proceed with signing"
exit 1
elif ! isMacOsBinary "$pathToBeSigned" && [[ "$pathToBeSigned" != *.sit ]] && [[ "$pathToBeSigned" != *.tar.gz ]]; then
echo "$pathToBeSigned won't be signed, assumed not to be a macOS executable"
else
if isMacOsBinary "$pathToBeSigned" && ! isSigned "$pathToBeSigned" ; then
echo "Unsigned macOS binary: $pathToBeSigned"
fi
workDir=$(dirname "$pathToBeSigned")
pathSigned="$workDir/signed/${pathToBeSigned##*/}"
jetSignExtensions=$(jetSignExtensions "${jetSignArgs[@]}")
contentType=$(jetSignContentType "$pathToBeSigned")
(
cd "$workDir" || exit 1
"$JETSIGN_CLIENT" -log-format text -denoted-content-type "$contentType" -extensions "$jetSignExtensions" "$pathToBeSigned"
# SRE-1223 (Codesign removes execute bits in executable files) workaround
chmod "$(stat -f %A "$pathToBeSigned")" "$pathSigned"
if isMacOsBinary "$pathSigned"; then
isSigned "$pathSigned"
fi
rm "$pathToBeSigned"
mv "$pathSigned" "$pathToBeSigned"
rm -rf "$workDir/signed"
)
fi

View File

@@ -0,0 +1,63 @@
#!/bin/bash
set -euo pipefail
function isForced() {
for arg in "$@"; do
if [[ "$arg" == --force ]]; then
return 0
fi
done
return 1
}
function jetSignExtensions() {
args=("$@")
((lastElementIndex=${#args[@]}-1))
for index in "${!args[@]}"; do
arg=${args[$index]}
case "$arg" in
--sign | -s)
echo -n 'mac_codesign_identity='
continue
;;
--entitlements)
echo -n 'mac_codesign_entitlements='
continue
;;
--options=runtime)
echo -n 'mac_codesign_options=runtime'
;;
--force)
echo -n 'mac_codesign_force=true'
;;
--timestamp | --verbose | -v)
continue
;;
*)
echo -n "$arg"
;;
esac
if [[ $index != "$lastElementIndex" ]]; then
echo -n ","
fi
done
}
# See jetbrains.sign.util.FileUtil.contentType
function jetSignContentType() {
case "${1##*/}" in
*.sit)
echo -n 'application/x-mac-app-zip'
;;
*.tar.gz)
echo -n 'application/x-mac-app-targz'
;;
*.pkg)
echo -n 'application/x-mac-pkg'
;;
*)
echo -n 'application/x-mac-app-bin'
;;
esac
}

View File

@@ -26,11 +26,6 @@ JCEF_PATH=${JCEF_PATH:=./jcef_mac}
BOOT_JDK=${BOOT_JDK:=$(/usr/libexec/java_home -v 17)}
function do_configure {
if [[ "${architecture}" == *aarch64* ]]; then
ENABLE_CDS="--enable-cds=no"
else
ENABLE_CDS="--enable-cds=yes"
fi
sh configure \
$WITH_DEBUG_LEVEL \
--with-vendor-name="$VENDOR_NAME" \
@@ -43,6 +38,7 @@ function do_configure {
--with-version-opt=b"$build_number" \
--with-boot-jdk="$BOOT_JDK" \
--enable-cds=yes \
$DISABLE_WARNINGS_AS_ERRORS \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
$WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS \
@@ -56,6 +52,8 @@ function create_image_bundle {
__modules=$4
fastdebug_infix=''
__cds_opt=''
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then __cds_opt="--generate-cds-archive"; fi
tmp=.bundle.$$.tmp
mkdir "$tmp" || do_exit $?
@@ -70,7 +68,7 @@ function create_image_bundle {
echo Running jlink...
"$JSDK"/bin/jlink \
--module-path "$__modules_path" --no-man-pages --compress=2 \
--add-modules "$__modules" --output "$JRE_CONTENTS/Home" || do_exit $?
$__cds_opt --add-modules "$__modules" --output "$JRE_CONTENTS/Home" || do_exit $?
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> "$JRE_CONTENTS/Home/release"
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
@@ -81,6 +79,10 @@ function create_image_bundle {
zip_native_debug_symbols $IMAGES_DIR/jdk-bundle/jdk-$JBSDK_VERSION.jdk "${JBR}_diz"
fi
if [ "$bundle_type" == "jcef" ]; then
cat $JCEF_PATH/jcef.version >> "$JRE_CONTENTS/Home/release"
fi
cp -R "$JSDK"/../MacOS "$JRE_CONTENTS"
cp "$JSDK"/../Info.plist "$JRE_CONTENTS"

View File

@@ -1,21 +1,17 @@
#!/bin/bash
#immediately exit script with an error if a command fails
set -euo pipefail
set -x
[[ "${SCRIPT_VERBOSE:-}" == "1" ]] && set -x
APP_DIRECTORY=$1
APPL_USER=$2
APPL_PASSWORD=$3
APP_NAME=$4
BUNDLE_ID=$5
FAKE_ROOT="${6:-fake-root}"
APP_PATH=$1
if [[ -z "$APP_DIRECTORY" ]] || [[ -z "$APPL_USER" ]] || [[ -z "$APPL_PASSWORD" ]]; then
echo "Usage: $0 AppDirectory Username Password"
if [[ -z "$APP_PATH" ]]; then
echo "Usage: $0 AppPath"
exit 1
fi
if [[ ! -d "$APP_DIRECTORY" ]]; then
echo "AppDirectory '$APP_DIRECTORY' does not exist or not a directory"
if [[ ! -f "$APP_PATH" ]]; then
echo "AppName '$APP_PATH' does not exist or not a file"
exit 1
fi
@@ -23,99 +19,22 @@ function log() {
echo "$(date '+[%H:%M:%S]') $*"
}
function publish-log() {
id=$1
file=$2
curl -T "$file" "$ARTIFACTORY_URL/$id" || true
}
function altool-upload() {
# Since altool uses same file for upload token we have to trick it into using different folders for token file location
# Also it copies zip into TMPDIR so we override it too, to simplify cleanup
OLD_HOME="$HOME"
export HOME="$FAKE_ROOT/home"
export TMPDIR="$FAKE_ROOT/tmp"
mkdir -p "$HOME"
mkdir -p "$TMPDIR"
export _JAVA_OPTIONS="-Duser.home=$HOME -Djava.io.tmpdir=$TMPDIR"
# Reduce amount of downloads, cache transporter libraries
shared_itmstransporter="$OLD_HOME/shared-itmstransporter"
if [[ -f "$shared_itmstransporter" ]]; then
cp -r "$shared_itmstransporter" "$HOME/.itmstransporter"
fi
# For some reason altool prints everything to stderr, not stdout
set +e
xcrun altool --notarize-app \
--username "$APPL_USER" --password "$APPL_PASSWORD" \
--primary-bundle-id "$BUNDLE_ID" \
--asc-provider JetBrainssro --file "$1" 2>&1 | tee "altool.init.out"
unset TMPDIR
export HOME="$OLD_HOME"
set -e
}
# check required parameters
: "${APPLE_ISSUER_ID}"
: "${APPLE_KEY_ID}"
: "${APPLE_PRIVATE_KEY}"
#immediately exit script with an error if a command fails
set -euo pipefail
# shellcheck disable=SC2064
trap "rm -f \"$PWD/tmp_key\"" INT EXIT RETURN
echo -n "${APPLE_PRIVATE_KEY}" > tmp_key
#file="$APP_NAME.zip"
log "Notarizing $APP_PATH..."
xcrun notarytool submit --key tmp_key --key-id "${APPLE_KEY_ID}" --issuer "${APPLE_ISSUER_ID}" "$APP_PATH" 2>&1 | tee "notarytool.submit.out"
REQUEST_ID="$(grep -e " id: " "notarytool.submit.out" | grep -oE '([0-9a-f-]{36})'| head -n1)"
#log "Zipping $file..."
#rm -rf "$file"
#ditto -c -k --sequesterRsrc --keepParent "$APP_DIRECTORY" "$file"
xcrun notarytool wait "$REQUEST_ID" --key tmp_key --key-id "${APPLE_KEY_ID}" --issuer "${APPLE_ISSUER_ID}" --timeout 6h ||:
xcrun notarytool log "$REQUEST_ID" --key tmp_key --key-id "${APPLE_KEY_ID}" --issuer "${APPLE_ISSUER_ID}" developer_log.json ||:
xcrun notarytool info "$REQUEST_ID" --key tmp_key --key-id "${APPLE_KEY_ID}" --issuer "${APPLE_ISSUER_ID}"
log "Notarizing $APP_NAME..."
rm -rf "altool.init.out" "altool.check.out"
altool-upload "$APP_NAME"
notarization_info="$(grep -e "RequestUUID" "altool.init.out" | grep -oE '([0-9a-f-]{36})')"
if [ -z "$notarization_info" ]; then
log "Faile to read RequestUUID from altool.init.out"
exit 10
fi
PATH="$PATH:/usr/local/bin/"
log "Notarization request sent, awaiting response"
spent=0
while true; do
# For some reason altool prints everything to stderr, not stdout
xcrun altool --username "$APPL_USER" --notarization-info "$notarization_info" --password "$APPL_PASSWORD" >"altool.check.out" 2>&1 || true
status="$(grep -oe 'Status: .*' "altool.check.out" | cut -c 9- || true)"
log "Current status: $status"
if [ "$status" = "invalid" ]; then
log "Notarization failed"
ec=1
elif [ "$status" = "success" ]; then
log "Notarization succeeded"
ec=0
else
if [ "$status" != "in progress" ]; then
log "Unknown notarization status, waiting more, altool output:"
cat "altool.check.out"
fi
if [[ $spent -gt 60 ]]; then
log "Waiting time out (apx 60 minutes)"
ec=2
break
fi
sleep 60
((spent += 1))
continue
fi
developer_log="developer_log.json"
log "Fetching $developer_log"
# TODO: Replace cut with trim or something better
url="$(grep -oe 'LogFileURL: .*' "altool.check.out" | cut -c 13-)"
wget "$url" -O "$developer_log" && cat "$developer_log" || true
if [ $ec != 0 ]; then
log "Publishing $developer_log"
publish-log "$notarization_info" "$developer_log"
fi
break
done
cat "altool.check.out"
rm -rf "altool.init.out" "altool.check.out"
exit $ec
log "Notarizing finished"

View File

@@ -0,0 +1,41 @@
#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" >/dev/null && pwd)"
source "$SCRIPT_DIR/jetsign-common.sh" || exit 1
function isSigned() {
pkgutil --check-signature "$1" >/dev/null 2>&1 && grep -q "signed by a developer certificate" < <(pkgutil --check-signature "$1" 2>&1)
}
# second last argument is a path to be signed
pathToBeSigned="$(pwd)/${*:(-2):1}"
# last argument is a path to signed file
pathOut="$(pwd)/${*:(-1)}"
jetSignArgs=("${@:1:$#-2}")
if [[ ! -f "$pathToBeSigned" ]]; then
echo "$pathToBeSigned is missing or not a file"
exit 1
elif isSigned "$pathToBeSigned" && ! isForced "${jetSignArgs[@]}" ; then
echo "Already signed: $pathToBeSigned"
elif [[ "$JETSIGN_CLIENT" == "null" ]]; then
echo "JetSign client is missing, cannot proceed with signing"
exit 1
elif [[ "$pathToBeSigned" != *.pkg ]]; then
echo "$pathToBeSigned won't be signed, assumed not to be a macOS package"
else
if ! isSigned "$pathToBeSigned" ; then
echo "Unsigned macOS package: $pathToBeSigned"
fi
workDir=$(dirname "$pathToBeSigned")
pathSigned="$workDir/signed/${pathToBeSigned##*/}"
jetSignExtensions=$(jetSignExtensions "${jetSignArgs[@]}")
contentType=$(jetSignContentType "$pathToBeSigned")
(
cd "$workDir" || exit 1
"$JETSIGN_CLIENT" -log-format text -denoted-content-type "$contentType" -extensions "$jetSignExtensions" "$pathToBeSigned"
isSigned "$pathSigned"
rm -f "$pathOut"
mv "$pathSigned" "$pathOut"
rm -rf "$workDir/signed"
)
fi

View File

@@ -1,18 +1,33 @@
#!/bin/bash
#immediately exit script with an error if a command fails
set -euo pipefail
set -x
[[ "${SCRIPT_VERBOSE:-}" == "1" ]] && set -x
if [[ $# -lt 5 ]]; then
echo "Usage: $0 AppDirectory AppName BundleId CertificateID InstallerCertificateID"
exit 1
fi
APPLICATION_PATH=$1
APP_NAME=$2
PKG_NAME=$2
BUNDLE_ID=$3
JB_DEVELOPER_CERT=$4
JB_INSTALLER_CERT=$5
if [[ -z "$APPLICATION_PATH" ]] || [[ -z "$JB_DEVELOPER_CERT" ]]; then
echo "Usage: $0 AppDirectory CertificateID"
exit 1
SCRIPT_DIR="$(cd "$(dirname "$0")" >/dev/null && pwd)"
# Use JetBrains sign utility if it's available
if [[ "${JETSIGN_CLIENT:=}" == "null" ]] || [[ "$JETSIGN_CLIENT" == "" ]]; then
JB_SIGN=false
SIGN_UTILITY="codesign"
PRODUCTSIGN_UTILITY="productsign"
else
JB_SIGN=true
SIGN_UTILITY="$SCRIPT_DIR/codesign.sh"
PRODUCTSIGN_UTILITY="$SCRIPT_DIR/productsign.sh"
fi
if [[ ! -d "$APPLICATION_PATH" ]]; then
echo "AppDirectory '$APPLICATION_PATH' does not exist or not a directory"
exit 1
@@ -22,9 +37,6 @@ function log() {
echo "$(date '+[%H:%M:%S]') $*"
}
#immediately exit script with an error if a command fails
set -euo pipefail
# Cleanup files left from previous sign attempt (if any)
find "$APPLICATION_PATH" -name '*.cstemp' -exec rm '{}' \;
@@ -37,13 +49,13 @@ for f in \
if [ -d "$APPLICATION_PATH/$f" ]; then
find "$APPLICATION_PATH/$f" \
-type f \( -name "*.jnilib" -o -name "*.dylib" -o -name "*.so" -o -name "*.tbd" -o -name "*.node" -o -perm +111 \) \
-exec codesign --timestamp \
-exec "$SIGN_UTILITY" --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime --force \
--entitlements entitlements.xml {} \;
--entitlements "$SCRIPT_DIR/entitlements.xml" {} \;
fi
done
log "Signing libraries in jars in $PWD"
log "Signing libraries in jars in $APPLICATION_PATH"
# todo: add set -euo pipefail; into the inner sh -c
# `-e` prevents `grep -q && printf` loginc
@@ -61,10 +73,10 @@ find "$APPLICATION_PATH" -name '*.jar' \
find jarfolder \
-type f \( -name "*.jnilib" -o -name "*.dylib" -o -name "*.so" -o -name "*.tbd" -o -name "jattach" \) \
-exec codesign --timestamp \
-exec "$SIGN_UTILITY" --timestamp \
--force \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--entitlements entitlements.xml {} \;
--entitlements "$SCRIPT_DIR/entitlements.xml" {} \;
(cd jarfolder; zip -q -r -o -0 ../jar.jar .)
mv jar.jar "$file"
@@ -73,44 +85,77 @@ find "$APPLICATION_PATH" -name '*.jar' \
rm -rf jarfolder jar.jar
log "Signing other files..."
# shellcheck disable=SC2043
for f in \
"Contents/Home/bin"; do
if [ -d "$APPLICATION_PATH/$f" ]; then
find "$APPLICATION_PATH/$f" \
-type f \( -name "*.jnilib" -o -name "*.dylib" -o -name "*.so" -o -name "*.tbd" -o -perm +111 \) \
-exec codesign --timestamp \
-exec "$SIGN_UTILITY" --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime --force \
--entitlements entitlements.xml {} \;
--entitlements "$SCRIPT_DIR/entitlements.xml" {} \;
fi
done
#log "Signing executable..."
#codesign --timestamp \
# -v -s "$JB_DEVELOPER_CERT" --options=runtime \
# --force \
# --entitlements entitlements.xml "$APPLICATION_PATH/Contents/MacOS/idea"
log "Signing whole frameworks..."
# shellcheck disable=SC2043
if [ "$JB_SIGN" = true ]; then for f in \
"Contents/Frameworks/cef_server.app/Contents/Frameworks" "Contents/Home/Frameworks" "Contents/Frameworks"; do
if [ -d "$APPLICATION_PATH/$f" ]; then
find "$APPLICATION_PATH/$f" \( -name '*.framework' -o -name '*.app' \) -maxdepth 1 | while read -r line
do
log "Signing '$line':"
tar -pczf tmp-to-sign.tar.gz -C "$(dirname "$line")" "$(basename "$line")"
"$SIGN_UTILITY" --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--force \
--entitlements "$SCRIPT_DIR/entitlements.xml" tmp-to-sign.tar.gz
rm -rf "$line"
tar -xzf tmp-to-sign.tar.gz --directory "$(dirname "$line")"
rm -f tmp-to-sign.tar.gz
done
fi
done; fi
log "Checking framework signatures..."
for f in \
"Contents/Home/Frameworks" "Contents/Frameworks"; do
if [ -d "$APPLICATION_PATH/$f" ]; then
find "$APPLICATION_PATH/$f" -name '*.framework' -maxdepth 1 | while read -r line
do
log "Checking '$line':"
codesign --verify --deep --strict --verbose=4 "$line"
done
fi
done
log "Signing whole app..."
codesign --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--force \
--entitlements entitlements.xml "$APPLICATION_PATH"
if [ "$JB_SIGN" = true ]; then
tar -pczf tmp-to-sign.tar.gz --exclude='man' -C "$(dirname "$APPLICATION_PATH")" "$(basename "$APPLICATION_PATH")"
"$SIGN_UTILITY" --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--force \
--entitlements "$SCRIPT_DIR/entitlements.xml" tmp-to-sign.tar.gz
rm -rf "$APPLICATION_PATH"
tar -xzf tmp-to-sign.tar.gz --directory "$(dirname "$APPLICATION_PATH")"
rm -f tmp-to-sign.tar.gz
else
"$SIGN_UTILITY" --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--force \
--entitlements "$SCRIPT_DIR/entitlements.xml" "$APPLICATION_PATH"
fi
BUILD_NAME=$(echo $APPLICATION_PATH | awk -F"/" '{ print $2 }')
BUILD_NAME="$(basename "$APPLICATION_PATH")"
log "Creating $APP_NAME.pkg..."
rm -rf "$APP_NAME.pkg"
log "Creating $PKG_NAME..."
rm -rf "$PKG_NAME"
mkdir -p unsigned
pkgbuild --identifier $BUNDLE_ID --root $APPLICATION_PATH \
--install-location /Library/Java/JavaVirtualMachines/${BUILD_NAME} unsigned/${APP_NAME}.pkg
productsign --timestamp --sign "$JB_INSTALLER_CERT" unsigned/${APP_NAME}.pkg ${APP_NAME}.pkg
#log "Signing whole app..."
#codesign --timestamp \
# -v -s "$JB_DEVELOPER_CERT" --options=runtime \
# --force \
# --entitlements entitlements.xml $APP_NAME.pkg
--install-location /Library/Java/JavaVirtualMachines/${BUILD_NAME} unsigned/${PKG_NAME}
log "Signing $PKG_NAME..."
"$PRODUCTSIGN_UTILITY" --timestamp --sign "$JB_INSTALLER_CERT" unsigned/${PKG_NAME} ${PKG_NAME}
log "Verifying java is not broken"
find "$APPLICATION_PATH" \

View File

@@ -2,7 +2,7 @@
#immediately exit script with an error if a command fails
set -euo pipefail
set -x
[[ "${SCRIPT_VERBOSE:-}" == "1" ]] && set -x
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
export COPYFILE_DISABLE=true
@@ -17,7 +17,7 @@ JB_INSTALLER_CERT=$6
NOTARIZE=$7
BUNDLE_ID=$8
cd "$(dirname "$0")"
SCRIPT_DIR="$(cd "$(dirname "$0")" >/dev/null && pwd)"
function log() {
echo "$(date '+[%H:%M:%S]') $*"
@@ -44,7 +44,8 @@ fi
log "$INPUT_FILE extracted and removed"
APP_NAME=$(echo ${INPUT_FILE} | awk -F".tar" '{ print $1 }')
APP_NAME=$(basename "$INPUT_FILE" | awk -F".tar" '{ print $1 }')
PKG_NAME="$APP_NAME.pkg"
APPLICATION_PATH=$EXPLODED/$(ls $EXPLODED)
find "$APPLICATION_PATH/Contents/Home/bin" \
@@ -73,16 +74,18 @@ if [[ $non_plist -gt 0 ]]; then
exit 1
fi
log "Unlocking keychain..."
# Make sure *.p12 is imported into local KeyChain
security unlock-keychain -p "$PASSWORD" "/Users/$USERNAME/Library/Keychains/login.keychain"
if [[ "${JETSIGN_CLIENT:=}" == "null" ]] || [[ "$JETSIGN_CLIENT" == "" ]]; then
log "Unlocking keychain..."
# Make sure *.p12 is imported into local KeyChain
security unlock-keychain -p "$PASSWORD" "/Users/$USERNAME/Library/Keychains/login.keychain"
fi
attempt=1
limit=3
set +e
while [[ $attempt -le $limit ]]; do
log "Signing (attempt $attempt) $APPLICATION_PATH ..."
./sign.sh "$APPLICATION_PATH" "$APP_NAME" "$BUNDLE_ID" "$CODESIGN_STRING" "$JB_INSTALLER_CERT"
"$SCRIPT_DIR/sign.sh" "$APPLICATION_PATH" "$PKG_NAME" "$BUNDLE_ID" "$CODESIGN_STRING" "$JB_INSTALLER_CERT"
ec=$?
if [[ $ec -ne 0 ]]; then
((attempt += 1))
@@ -104,19 +107,10 @@ set -e
if [ "$NOTARIZE" = "yes" ]; then
log "Notarizing..."
# shellcheck disable=SC1090
source "$HOME/.notarize_token"
# Since notarization tool uses same file for upload token we have to trick it into using different folders, hence fake root
# Also it leaves copy of zip file in TMPDIR, so notarize.sh overrides it and uses FAKE_ROOT as location for temp TMPDIR
FAKE_ROOT="$(pwd)/fake-root"
mkdir -p "$FAKE_ROOT"
echo "Notarization will use fake root: $FAKE_ROOT"
./notarize.sh "$APPLICATION_PATH" "$APPLE_USERNAME" "$APPLE_PASSWORD" "$APP_NAME.pkg" "$BUNDLE_ID" "$FAKE_ROOT"
rm -rf "$FAKE_ROOT"
set +e
"$SCRIPT_DIR/notarize.sh" "$PKG_NAME"
log "Stapling..."
xcrun stapler staple "$APPLICATION_PATH"
xcrun stapler staple "$APPLICATION_PATH" ||:
xcrun stapler staple "$PKG_NAME" ||:
else
log "Notarization disabled"
log "Stapling disabled"
@@ -129,7 +123,11 @@ log "Zipping $BUILD_NAME to $INPUT_FILE ..."
if test -d $BACKUP_JMODS/jmods; then
mv $BACKUP_JMODS/jmods $APPLICATION_PATH/Contents/Home
fi
mv $APPLICATION_PATH $EXPLODED/$BUILD_NAME
if [[ "$APPLICATION_PATH" != "$EXPLODED/$BUILD_NAME" ]]; then
mv $APPLICATION_PATH $EXPLODED/$BUILD_NAME
else
echo "No move, source == destination: $APPLICATION_PATH"
fi
tar -pczvf $INPUT_FILE --exclude='man' -C $EXPLODED $BUILD_NAME
log "Finished zipping"

View File

@@ -34,6 +34,7 @@ NVDA_PATH=${NVDA_PATH:=$WORK_DIR/nvda_controllerClient}
function do_configure {
sh ./configure \
--enable-option-checking=fatal \
--openjdk-target=aarch64-unknown-cygwin \
$WITH_DEBUG_LEVEL \
--with-vendor-name="$VENDOR_NAME" \
@@ -47,9 +48,11 @@ function do_configure {
--with-build-jdk=$BUILD_JDK \
--with-nvdacontrollerclient=$NVDA_PATH \
--disable-ccache \
--enable-cds=yes \
$DISABLE_WARNINGS_AS_ERRORS \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
--enable-cds=yes || do_exit $?
|| do_exit $?
}
function create_image_bundle {
@@ -68,7 +71,7 @@ function create_image_bundle {
--module-path $__modules_path --no-man-pages --compress=2 \
--add-modules $__modules --output $__root_dir || do_exit $?
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> $__arch_name/release
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> $__root_dir/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
sed 's/JBR/JBRSDK/g' $__root_dir/release > release
mv release $__root_dir/release
@@ -129,6 +132,7 @@ if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
cp $JCEF_PATH/jmods/* $JSDK_MODS_DIR # $JSDK/jmods is not unchanged
jbr_name_postfix="_${bundle_type}"
cat $JCEF_PATH/jcef.version >> $JSDK/release
else
jbr_name_postfix=""
fi

View File

@@ -40,6 +40,7 @@ function do_configure {
--with-nvdacontrollerclient=$NVDA_PATH \
--disable-ccache \
--enable-cds=yes \
$DISABLE_WARNINGS_AS_ERRORS \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
|| do_exit $?
@@ -52,6 +53,8 @@ function create_image_bundle {
__modules=$4
fastdebug_infix=''
__cds_opt=''
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then __cds_opt="--generate-cds-archive"; fi
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
__root_dir=${__bundle_name}-${JBSDK_VERSION}-windows-x64-${fastdebug_infix}b${build_number}
@@ -59,10 +62,10 @@ function create_image_bundle {
echo Running jlink ...
${JSDK}/bin/jlink \
--module-path $__modules_path --no-man-pages --compress=2 \
--add-modules $__modules --output $__root_dir || do_exit $?
$__cds_opt --add-modules $__modules --output $__root_dir || do_exit $?
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> $__root_dir/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> $__root_dir/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
sed 's/JBR/JBRSDK/g' $__root_dir/release > release
mv release $__root_dir/release
cp $IMAGES_DIR/jdk/lib/src.zip $__root_dir/lib
@@ -122,6 +125,7 @@ if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
cp $JCEF_PATH/jmods/* ${JSDK_MODS_DIR} # $JSDK/jmods is not unchanged
jbr_name_postfix="_${bundle_type}"
cat $JCEF_PATH/jcef.version >> $JSDK/release
else
jbr_name_postfix=""
fi

View File

@@ -36,6 +36,7 @@ function do_configure {
--with-nvdacontrollerclient=$NVDA_PATH \
--disable-ccache \
--enable-cds=yes \
$DISABLE_WARNINGS_AS_ERRORS \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
|| do_exit $?
@@ -48,6 +49,8 @@ function create_image_bundle {
__modules=$4
fastdebug_infix=''
__cds_opt=''
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then __cds_opt="--generate-cds-archive"; fi
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
__root_dir=${__bundle_name}-${JBSDK_VERSION}-windows-x86-${fastdebug_infix}b${build_number}
@@ -55,7 +58,7 @@ function create_image_bundle {
echo Running jlink ...
${JSDK}/bin/jlink \
--module-path $__modules_path --no-man-pages --compress=2 \
--add-modules $__modules --output $__root_dir || do_exit $?
$__cds_opt --add-modules $__modules --output $__root_dir || do_exit $?
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> $__root_dir/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then

View File

@@ -98,6 +98,7 @@ define SetupInterimModule
EXCLUDES := sun javax/tools/snippet-files, \
EXCLUDE_FILES := $(TOPDIR)/src/$1/share/classes/module-info.java \
$(TOPDIR)/src/$1/share/classes/javax/tools/ToolProvider.java \
$(TOPDIR)/src/$1/share/classes/com/sun/tools/javac/launcher/Main.java \
Standard.java, \
EXTRA_FILES := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim/module-info.java \
$($1.interim_EXTRA_FILES), \

View File

@@ -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
@@ -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), \
@@ -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

View File

@@ -110,7 +110,6 @@ JAVA_WARNINGS_ARE_ERRORS ?= -Werror
JAVADOC_OPTIONS := -use -keywords -notimestamp \
-encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
-splitIndex --system none -javafx --expand-requires transitive \
--enable-preview -source $(JDK_SOURCE_TARGET_VERSION) \
--override-methods=summary \
--no-external-specs-page
@@ -118,7 +117,6 @@ JAVADOC_OPTIONS := -use -keywords -notimestamp \
# development cycle.
REFERENCE_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
-encoding ISO-8859-1 -breakiterator -splitIndex --system none \
--enable-preview -source $(JDK_SOURCE_TARGET_VERSION) \
-html5 -javafx --expand-requires transitive \
--no-external-specs-page

View File

@@ -125,6 +125,11 @@ test-prebuilt:
$(MAKE) --no-print-directory -r -R -I make/common/ -f make/RunTestsPrebuilt.gmk \
test-prebuilt CUSTOM_MAKE_DIR=$(CUSTOM_MAKE_DIR) TEST="$(TEST)" )
test-prebuilt-with-exit-code:
@( cd $(topdir) && \
$(MAKE) --no-print-directory -r -R -I make/common/ -f make/RunTestsPrebuilt.gmk \
test-prebuilt-with-exit-code CUSTOM_MAKE_DIR=$(CUSTOM_MAKE_DIR) TEST="$(TEST)" )
# Alias for backwards compatibility
run-test-prebuilt: test-prebuilt

View File

@@ -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), \
@@ -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)) \
)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 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
@@ -138,7 +138,10 @@ ifeq ($(HAS_SPEC),)
# The spec files depend on the autoconf source code. This check makes sure
# the configuration is up to date after changes to configure.
$(SPECS): $(wildcard $(topdir)/make/autoconf/*) \
$(if $(CUSTOM_CONFIG_DIR), $(wildcard $(CUSTOM_CONFIG_DIR)/*))
$(if $(CUSTOM_CONFIG_DIR), $(wildcard $(CUSTOM_CONFIG_DIR)/*)) \
$(addprefix $(topdir)/make/conf/, version-numbers.conf branding.conf) \
$(if $(CUSTOM_CONF_DIR), $(wildcard $(addprefix $(CUSTOM_CONF_DIR)/, \
version-numbers.conf branding.conf)))
ifeq ($(CONF_CHECK), fail)
@echo Error: The configuration is not up to date for \
"'$(lastword $(subst /, , $(dir $@)))'."

View File

@@ -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
@@ -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, \

View File

@@ -178,7 +178,8 @@ ifeq ($(TEST_JOBS), 0)
c = c * $(TEST_JOBS_FACTOR_JDL); \
c = c * $(TEST_JOBS_FACTOR_MACHINE); \
if (c < 1) c = 1; \
printf "%.0f", c; \
c = c + 0.5; \
printf "%d", c; \
}')
endif
@@ -356,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
@@ -595,16 +596,7 @@ define SetupRunMicroTestBody
endif
# Set library path for native dependencies
$1_JMH_JVM_ARGS := -Djava.library.path=$$(TEST_IMAGE_DIR)/micro/native \
--add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
--add-exports java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.attribute=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.constantpool=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.instruction=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.java.lang.constant=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.components=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.impl=ALL-UNNAMED
$1_JMH_JVM_ARGS := -Djava.library.path=$$(TEST_IMAGE_DIR)/micro/native
ifneq ($$(MICRO_VM_OPTIONS)$$(MICRO_JAVA_OPTIONS), )
$1_JMH_JVM_ARGS += $$(MICRO_VM_OPTIONS) $$(MICRO_JAVA_OPTIONS)
@@ -809,8 +801,10 @@ define SetupRunJtregTestBody
$1_JTREG_BASIC_OPTIONS += -e:JIB_DATA_DIR
# If running on Windows, propagate the _NT_SYMBOL_PATH to enable
# symbol lookup in hserr files
# The minidumps are disabled by default on client Windows, so enable them
ifeq ($$(call isTargetOs, windows), true)
$1_JTREG_BASIC_OPTIONS += -e:_NT_SYMBOL_PATH
$1_JTREG_BASIC_OPTIONS += -vmoption:-XX:+CreateCoredumpOnCrash
else ifeq ($$(call isTargetOs, linux), true)
$1_JTREG_BASIC_OPTIONS += -e:_JVM_DWARF_PATH=$$(SYMBOLS_IMAGE_DIR)
endif
@@ -869,11 +863,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) \
@@ -916,7 +911,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) \
@@ -953,9 +948,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

View File

@@ -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))
@@ -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)
@@ -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
@@ -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), \
@@ -295,6 +304,11 @@ test-prebuilt:
@cd $(TOPDIR) && $(MAKE) $(MAKE_ARGS) -f make/RunTests.gmk run-test \
TEST="$(TEST)"
test-prebuilt-with-exit-code: test-prebuilt
@if test -f $(MAKESUPPORT_OUTPUTDIR)/exit-with-error ; then \
exit 1 ; \
fi
all: test-prebuilt
.PHONY: default all test-prebuilt

View File

@@ -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.

View File

@@ -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)

View File

@@ -406,9 +406,9 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
# WARNING: This might be a bad thing to do. You need to be sure you want to
# have a configuration in this directory. Do some sanity checks!
if test ! -e "$OUTPUTDIR/spec.gmk"; then
# If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
# other files
if test ! -e "$OUTPUTDIR/spec.gmk" && test ! -e "$OUTPUTDIR/configure-support/generated-configure.sh"; then
# If we have a spec.gmk or configure-support/generated-configure.sh,
# we have run here before and we are OK. Otherwise, check for other files
files_present=`$LS $OUTPUTDIR`
# Configure has already touched config.log and confdefs.h in the current dir when this check
# is performed.
@@ -423,8 +423,9 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
AC_MSG_NOTICE([Current directory is $CONFIGURE_START_DIR.])
AC_MSG_NOTICE([Since this is not the source root, configure will output the configuration here])
AC_MSG_NOTICE([(as opposed to creating a configuration in <src_root>/build/<conf-name>).])
AC_MSG_NOTICE([However, this directory is not empty. This is not allowed, since it could])
AC_MSG_NOTICE([seriously mess up just about everything.])
AC_MSG_NOTICE([However, this directory is not empty, additionally to some allowed files])
AC_MSG_NOTICE([it contains $filtered_files.])
AC_MSG_NOTICE([This is not allowed, since it could seriously mess up just about everything.])
AC_MSG_NOTICE([Try 'cd $TOPDIR' and restart configure])
AC_MSG_NOTICE([(or create a new empty directory and cd to it).])
AC_MSG_ERROR([Will not continue creating configuration in $CONFIGURE_START_DIR])

View File

@@ -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
@@ -51,6 +51,14 @@ AC_DEFUN([FLAGS_SETUP_SHARED_LIBS],
SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/[$]1'
SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,[$]1'
elif test "x$OPENJDK_TARGET_OS" = xaix; then
# Linking is different on aix
SHARED_LIBRARY_FLAGS="-shared -Wl,-bM:SRE -Wl,-bnoentry"
SET_EXECUTABLE_ORIGIN=""
SET_SHARED_LIBRARY_ORIGIN=''
SET_SHARED_LIBRARY_NAME=''
SET_SHARED_LIBRARY_MAPFILE=''
else
# Default works for linux, might work on other platforms as well.
SHARED_LIBRARY_FLAGS='-shared'
@@ -109,6 +117,11 @@ AC_DEFUN([FLAGS_SETUP_DEBUG_SYMBOLS],
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [${DEBUG_PREFIX_CFLAGS}],
IF_FALSE: [
DEBUG_PREFIX_CFLAGS=
],
IF_TRUE: [
# Add debug prefix map gcc system include paths, as they cause
# non-deterministic debug paths depending on gcc path location.
DEBUG_PREFIX_MAP_GCC_INCLUDE_PATHS
]
)
fi
@@ -150,6 +163,55 @@ AC_DEFUN([FLAGS_SETUP_DEBUG_SYMBOLS],
AC_SUBST(ASFLAGS_DEBUG_SYMBOLS)
])
# gcc will embed the full system include paths in the debug info
# resulting in non-deterministic debug symbol files and thus
# non-reproducible native libraries if gcc includes are located
# in different paths.
# Add -fdebug-prefix-map'ings for root and gcc include paths,
# pointing to a common set of folders so that the binaries are deterministic:
# root include : /usr/include
# gcc include : /usr/local/gcc_include
# g++ include : /usr/local/gxx_include
AC_DEFUN([DEBUG_PREFIX_MAP_GCC_INCLUDE_PATHS],
[
# Determine gcc system include paths.
# Assume default roots to start with:
GCC_ROOT_INCLUDE="/usr/include"
# Determine is sysroot or devkit specified?
if test "x$SYSROOT" != "x"; then
GCC_ROOT_INCLUDE="${SYSROOT%/}/usr/include"
fi
# Add root include mapping => /usr/include
GCC_INCLUDE_DEBUG_MAP_FLAGS="-fdebug-prefix-map=${GCC_ROOT_INCLUDE}/=/usr/include/"
# Add gcc system include mapping => /usr/local/gcc_include
# Find location of stddef.h using build C compiler
GCC_SYSTEM_INCLUDE=`$ECHO "#include <stddef.h>" | \
$CC $CFLAGS -v -E - 2>&1 | \
$GREP stddef | $TAIL -1 | $TR -s " " | $CUT -d'"' -f2`
if test "x$GCC_SYSTEM_INCLUDE" != "x"; then
GCC_SYSTEM_INCLUDE=`$DIRNAME $GCC_SYSTEM_INCLUDE`
GCC_INCLUDE_DEBUG_MAP_FLAGS="$GCC_INCLUDE_DEBUG_MAP_FLAGS \
-fdebug-prefix-map=${GCC_SYSTEM_INCLUDE}/=/usr/local/gcc_include/"
fi
# Add g++ system include mapping => /usr/local/gxx_include
# Find location of cstddef using build C++ compiler
GXX_SYSTEM_INCLUDE=`$ECHO "#include <cstddef>" | \
$CXX $CXXFLAGS -v -E -x c++ - 2>&1 | \
$GREP cstddef | $TAIL -1 | $TR -s " " | $CUT -d'"' -f2`
if test "x$GXX_SYSTEM_INCLUDE" != "x"; then
GXX_SYSTEM_INCLUDE=`$DIRNAME $GXX_SYSTEM_INCLUDE`
GCC_INCLUDE_DEBUG_MAP_FLAGS="$GCC_INCLUDE_DEBUG_MAP_FLAGS \
-fdebug-prefix-map=${GXX_SYSTEM_INCLUDE}/=/usr/local/gxx_include/"
fi
# Add to debug prefix cflags
DEBUG_PREFIX_CFLAGS="$DEBUG_PREFIX_CFLAGS $GCC_INCLUDE_DEBUG_MAP_FLAGS"
])
AC_DEFUN([FLAGS_SETUP_WARNINGS],
[
# Set default value.
@@ -206,7 +268,6 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
WARNINGS_ENABLE_ALL="-Wall -Wextra -Wformat=2 $WARNINGS_ENABLE_ADDITIONAL"
DISABLED_WARNINGS="unknown-warning-option unused-parameter unused"
;;
xlc)
@@ -284,9 +345,15 @@ AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
C_O_FLAG_NONE="${C_O_FLAG_NONE} ${DISABLE_FORTIFY_CFLAGS}"
fi
elif test "x$TOOLCHAIN_TYPE" = xclang; then
C_O_FLAG_HIGHEST_JVM="-O3"
C_O_FLAG_HIGHEST="-O3"
C_O_FLAG_HI="-O3"
if test "x$OPENJDK_TARGET_OS" = xaix; then
C_O_FLAG_HIGHEST_JVM="-O3 -finline-functions"
C_O_FLAG_HIGHEST="-O3 -finline-functions"
C_O_FLAG_HI="-O3 -finline-functions"
else
C_O_FLAG_HIGHEST_JVM="-O3"
C_O_FLAG_HIGHEST="-O3"
C_O_FLAG_HI="-O3"
fi
C_O_FLAG_NORM="-O2"
C_O_FLAG_DEBUG_JVM="-O0"
C_O_FLAG_SIZE="-Os"
@@ -412,7 +479,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
[
#### OS DEFINES, these should be independent on toolchain
if test "x$OPENJDK_TARGET_OS" = xlinux; then
CFLAGS_OS_DEF_JVM="-DLINUX"
CFLAGS_OS_DEF_JVM="-DLINUX -D_FILE_OFFSET_BITS=64"
CFLAGS_OS_DEF_JDK="-D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
CFLAGS_OS_DEF_JVM="-D_ALLBSD_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE"
@@ -458,6 +525,9 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
# so for debug we build with '-qpic=large -bbigtoc'.
DEBUG_CFLAGS_JVM="-qpic=large"
fi
if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
DEBUG_CFLAGS_JVM="-fpic -mcmodel=large"
fi
fi
if test "x$DEBUG_LEVEL" != xrelease; then
@@ -493,6 +563,12 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
-fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer"
fi
if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
# clang compiler on aix needs -ffunction-sections
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -ffunction-sections -ftls-model -fno-math-errno -fstack-protector"
TOOLCHAIN_CFLAGS_JDK="-ffunction-sections -fsigned-char -fstack-protector"
fi
if test "x$TOOLCHAIN_TYPE" = xgcc; then
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -fstack-protector"
TOOLCHAIN_CFLAGS_JDK="-pipe -fstack-protector"
@@ -601,6 +677,9 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
PICFLAG="-fPIC"
PIEFLAG="-fPIE"
elif test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
JVM_PICFLAG="-fpic -mcmodel=large -Wl,-bbigtoc
JDK_PICFLAG="-fpic
elif test "x$TOOLCHAIN_TYPE" = xxlc; then
# '-qpic' defaults to 'qpic=small'. This means that the compiler generates only
# one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker
@@ -746,6 +825,9 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
$1_CFLAGS_CPU_JDK="${$1_CFLAGS_CPU_JDK} -fno-omit-frame-pointer"
fi
fi
if test "x$OPENJDK_TARGET_OS" = xaix; then
$1_CFLAGS_CPU="-mcpu=pwr8"
fi
elif test "x$TOOLCHAIN_TYPE" = xxlc; then
if test "x$FLAGS_CPU" = xppc64; then
@@ -788,6 +870,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
@@ -821,6 +904,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])

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 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
@@ -75,7 +75,11 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
elif test "x$TOOLCHAIN_TYPE" = xclang; then
BASIC_LDFLAGS_JVM_ONLY="-mno-omit-leaf-frame-pointer -mstack-alignment=16 \
-fPIC"
if test "x$OPENJDK_TARGET_OS" = xaix; then
BASIC_LDFLAGS="-Wl,-b64 -Wl,-brtl -Wl,-bnorwexec -Wl,-bnolibpath -Wl,-bnoexpall \
-Wl,-bernotok -Wl,-bdatapsize:64k -Wl,-btextpsize:64k -Wl,-bstackpsize:64k"
BASIC_LDFLAGS_JVM_ONLY="$BASIC_LDFLAGS_JVM_ONLY -Wl,-lC_r -Wl,-bbigtoc"
fi
elif test "x$TOOLCHAIN_TYPE" = xxlc; then
BASIC_LDFLAGS="-b64 -brtl -bnorwexec -bnolibpath -bnoexpall -bernotok -btextpsize:64K \
-bdatapsize:64K -bstackpsize:64K"
@@ -88,7 +92,8 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
BASIC_LDFLAGS_JVM_ONLY="-opt:icf,8 -subsystem:windows"
fi
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
if (test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang) \
&& test "x$OPENJDK_TARGET_OS" != xaix; then
if test -n "$HAS_NOEXECSTACK"; then
BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,noexecstack"
fi
@@ -116,6 +121,14 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
if test "x$DEBUG_LEVEL" != xrelease; then
DEBUGLEVEL_LDFLAGS_JVM_ONLY="$DEBUGLEVEL_LDFLAGS_JVM_ONLY -bbigtoc"
fi
elif test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
# We need '-fpic' or '-fpic -mcmodel=large -Wl,-bbigtoc' if the TOC overflows.
# Hotspot now overflows its 64K TOC (currently only for debug),
# so we build with '-fpic -mcmodel=large -Wl,-bbigtoc'.
if test "x$DEBUG_LEVEL" != xrelease; then
DEBUGLEVEL_LDFLAGS_JVM_ONLY="$DEBUGLEVEL_LDFLAGS_JVM_ONLY -Wl,-bbigtoc"
fi
fi
# Setup LDFLAGS for linking executables

View File

@@ -88,6 +88,16 @@ AC_DEFUN([FLAGS_SETUP_RCFLAGS],
AC_SUBST(RCFLAGS)
])
AC_DEFUN([FLAGS_SETUP_NMFLAGS],
[
# On AIX, we need to set NM flag -X64 for processing 64bit object files
if test "x$OPENJDK_TARGET_OS" = xaix; then
NMFLAGS="-X64"
fi
AC_SUBST(NMFLAGS)
])
################################################################################
# platform independent
AC_DEFUN([FLAGS_SETUP_ASFLAGS],

View File

@@ -428,6 +428,7 @@ AC_DEFUN([FLAGS_SETUP_FLAGS],
FLAGS_SETUP_ARFLAGS
FLAGS_SETUP_STRIPFLAGS
FLAGS_SETUP_RCFLAGS
FLAGS_SETUP_NMFLAGS
FLAGS_SETUP_ASFLAGS
FLAGS_SETUP_ASFLAGS_CPU_DEP([TARGET])

View File

@@ -847,6 +847,9 @@ AC_DEFUN([JDKOPT_CHECK_CODESIGN_PARAMS],
$RM "$CODESIGN_TESTFILE"
$TOUCH "$CODESIGN_TESTFILE"
CODESIGN_SUCCESS=false
$ECHO "check codesign, calling $CODESIGN $PARAMS $CODESIGN_TESTFILE" >&AS_MESSAGE_LOG_FD
eval \"$CODESIGN\" $PARAMS \"$CODESIGN_TESTFILE\" 2>&AS_MESSAGE_LOG_FD \
>&AS_MESSAGE_LOG_FD && CODESIGN_SUCCESS=true
$RM "$CODESIGN_TESTFILE"

View File

@@ -110,6 +110,15 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
CHECK_VALUE: [UTIL_CHECK_STRING_NON_EMPTY_PRINTABLE])
AC_SUBST(COMPANY_NAME)
# Set the JDK RC Company name
# Otherwise uses the value set for "vendor-name".
UTIL_ARG_WITH(NAME: jdk-rc-company-name, TYPE: string,
DEFAULT: $COMPANY_NAME,
DESC: [Set JDK RC company name. This is used for CompanyName properties of MS Windows binaries.],
DEFAULT_DESC: [from branding.conf],
CHECK_VALUE: [UTIL_CHECK_STRING_NON_EMPTY_PRINTABLE])
AC_SUBST(JDK_RC_COMPANY_NAME)
# The vendor URL, if any
# Only set VENDOR_URL if '--with-vendor-url' was used and is not empty.
# Otherwise we will use the value from "branding.conf" included above.

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 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
@@ -68,12 +68,20 @@ AC_DEFUN_ONCE([LIB_SETUP_CUPS],
fi
fi
if test "x$CUPS_FOUND" = xno; then
# Are the cups headers installed in the default /usr/include location?
AC_CHECK_HEADERS([cups/cups.h cups/ppd.h], [
CUPS_FOUND=yes
CUPS_CFLAGS=
DEFAULT_CUPS=yes
])
# Are the cups headers installed in the default AIX or /usr/include location?
if test "x$OPENJDK_TARGET_OS" = "xaix"; then
AC_CHECK_HEADERS([/opt/freeware/include/cups/cups.h /opt/freeware/include/cups/ppd.h], [
CUPS_FOUND=yes
CUPS_CFLAGS="-I/opt/freeware/include"
DEFAULT_CUPS=yes
])
else
AC_CHECK_HEADERS([cups/cups.h cups/ppd.h], [
CUPS_FOUND=yes
CUPS_CFLAGS=
DEFAULT_CUPS=yes
])
fi
fi
if test "x$CUPS_FOUND" = xno; then
HELP_MSG_MISSING_DEPENDENCY([cups])

55
make/autoconf/lib-dbus.m4 Normal file
View File

@@ -0,0 +1,55 @@
#
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2024, JetBrains s.r.o.. 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.
#
################################################################################
# Check if a potential dbus library match is correct and usable
################################################################################
AC_DEFUN_ONCE([LIB_SETUP_DBUS],
[
AC_ARG_WITH(dbus-includes, [AS_HELP_STRING([--with-dbus-includes],
[specify include directories for the dbus files as list separated by space])])
if test "x$NEEDS_LIB_DBUS" = xfalse; then
DBUS_CFLAGS=
DBUS_FOUND=false
else
if test "x${with_dbus_includes}" != x; then
DBUS_FOUND=true
DBUS_CFLAGS=""
for include in $with_dbus_includes; do
DBUS_CFLAGS="${DBUS_CFLAGS}-I${include} "
done
else
PKG_CHECK_MODULES(DBUS, dbus-1, [DBUS_FOUND=true], [
DBUS_FOUND=false
AC_MSG_NOTICE([Can't find dbus-1 library. This library is needed to use some features. You can install dbus-1 library or specify include directories manually by giving --with-dbus-includes option.])
])
fi
fi
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_FOUND)
])

View File

@@ -28,7 +28,7 @@
################################################################################
# Minimum supported versions
JTREG_MINIMUM_VERSION=7.2
JTREG_MINIMUM_VERSION=7.3.1
GTEST_MINIMUM_VERSION=1.13.0
###############################################################################
@@ -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])

View File

@@ -34,6 +34,9 @@ AC_DEFUN_ONCE([LIB_SETUP_WAYLAND],
(expecting the headers under PATH/include)])])
AC_ARG_WITH(wayland-include, [AS_HELP_STRING([--with-wayland-include],
[specify directory for the wayland include files])])
AC_ARG_WITH(wayland-lib, [AS_HELP_STRING([--with-wayland-lib],
[specify directory for the wayland library files])])
if test "x$NEEDS_LIB_WAYLAND" = xfalse; then
if (test "x${with_wayland}" != x && test "x${with_wayland}" != xno) || \
@@ -73,6 +76,10 @@ AC_DEFUN_ONCE([LIB_SETUP_WAYLAND],
AC_MSG_ERROR([Can't find 'wayland-client.h' and 'wayland-cursor.h' under ${with_wayland_include} given with the --with-wayland-include option.])
fi
fi
if test "x${with_wayland_lib}" != x; then
WAYLAND_LIBS="-L${with_wayland_lib} -lwayland-client -lwayland-cursor"
fi
if test "x$WAYLAND_FOUND" = xno; then
# Are the wayland headers installed in the default /usr/include location?
AC_CHECK_HEADERS([wayland-client.h wayland-cursor.h],
@@ -97,7 +104,13 @@ AC_DEFUN_ONCE([LIB_SETUP_WAYLAND],
[specify whether we use vulkan])])
AC_ARG_WITH(vulkan-include, [AS_HELP_STRING([--with-vulkan-include],
[specify directory for the vulkan include files])])
[specify directory for the vulkan include files ({with-vulkan-include}/vulkan/vulkan.h)])])
AC_ARG_WITH(vulkan-hpp, [AS_HELP_STRING([--with-vulkan-hpp],
[specify directory for the vulkan-hpp include files ({with-vulkan-hpp}/vulkan/vulkan_raii.hpp)])])
AC_ARG_WITH(vulkan-shader-compiler, [AS_HELP_STRING([--with-vulkan-shader-compiler],
[specify which shader compiler to use: glslc/glslangValidator])])
if test "x$SUPPORTS_LIB_VULKAN" = xfalse; then
@@ -117,21 +130,38 @@ AC_DEFUN_ONCE([LIB_SETUP_WAYLAND],
VULKAN_FOUND=no
if test "x${with_vulkan_include}" != x; then
AC_CHECK_HEADERS([${with_vulkan_include}/include/vulkan/vulkan.h],
[ VULKAN_FOUND=yes
VULKAN_FLAGS="-DVK_USE_PLATFORM_WAYLAND_KHR -I${with_vulkan_include}/include -DVULKAN_ENABLED"
VULKAN_ENABLED=true
],
[ AC_MSG_ERROR([Can't find 'vulkan/vulkan.h' under '${with_vulkan_include}']) ]
)
AC_MSG_CHECKING([for vulkan.h])
if test -s "${with_vulkan_include}/vulkan/vulkan.h"; then
VULKAN_FOUND=yes
VULKAN_FLAGS="-DVK_USE_PLATFORM_WAYLAND_KHR -I${with_vulkan_include} -DVULKAN_ENABLED"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([Can't find 'vulkan/vulkan.h' under '${with_vulkan_include}'])
fi
AC_MSG_CHECKING([for vulkan_raii.hpp])
if test "x${with_vulkan_hpp}" != x; then
VULKAN_FLAGS="-I${with_vulkan_hpp} ${VULKAN_FLAGS}"
VULKAN_HPP_DIR=${with_vulkan_hpp}
else
VULKAN_HPP_DIR=${with_vulkan_include}
fi
if test -s "$VULKAN_HPP_DIR/vulkan/vulkan_raii.hpp"; then
VULKAN_FOUND=yes
AC_MSG_RESULT([yes])
else
VULKAN_FOUND=no
AC_MSG_RESULT([no])
AC_MSG_ERROR([Can't find 'vulkan/vulkan_raii.hpp' under '$VULKAN_HPP_DIR'])
fi
fi
AC_LANG_PUSH([C++])
if test "x$VULKAN_FOUND" = xno; then
# Check vulkan sdk location
AC_CHECK_HEADERS([$VULKAN_SDK/include/vulkan/vulkan.h],
AC_CHECK_HEADERS([$VULKAN_SDK/include/vulkan/vulkan.h $VULKAN_SDK/include/vulkan/vulkan_raii.hpp],
[ VULKAN_FOUND=yes
VULKAN_FLAGS="-DVK_USE_PLATFORM_WAYLAND_KHR -I${VULKAN_SDK}/include -DVULKAN_ENABLED"
VULKAN_ENABLED=true
],
[ VULKAN_FOUND=no; break ]
)
@@ -139,23 +169,44 @@ AC_DEFUN_ONCE([LIB_SETUP_WAYLAND],
if test "x$VULKAN_FOUND" = xno; then
# Check default /usr/include location
AC_CHECK_HEADERS([vulkan/vulkan.h],
AC_CHECK_HEADERS([vulkan/vulkan.h vulkan/vulkan_raii.hpp],
[ VULKAN_FOUND=yes
VULKAN_FLAGS="-DVK_USE_PLATFORM_WAYLAND_KHR -DVULKAN_ENABLED"
VULKAN_ENABLED=true
],
[ VULKAN_FOUND=no; break ]
)
fi
AC_LANG_POP([C++])
if test "x$VULKAN_FOUND" = xno; then
HELP_MSG_MISSING_DEPENDENCY([vulkan])
AC_MSG_ERROR([Could not find vulkan! $HELP_MSG ])
else
# Find shader compiler - glslc or glslangValidator
if (test "x${with_vulkan_shader_compiler}" = x || test "x${with_vulkan_shader_compiler}" = xglslc); then
UTIL_LOOKUP_PROGS(GLSLC, glslc)
SHADER_COMPILER="$GLSLC"
VULKAN_SHADER_COMPILER="glslc --target-env=vulkan1.2 -mfmt=num -o"
fi
if (test "x${with_vulkan_shader_compiler}" = x || test "x${with_vulkan_shader_compiler}" = xglslangValidator) && \
test "x$SHADER_COMPILER" = x; then
UTIL_LOOKUP_PROGS(GLSLANG, glslangValidator)
SHADER_COMPILER="$GLSLANG"
VULKAN_SHADER_COMPILER="glslangValidator --target-env vulkan1.2 -x -o"
fi
if test "x$SHADER_COMPILER" != x; then
VULKAN_ENABLED=true
else
AC_MSG_ERROR([Can't find shader compiler])
fi
fi
fi
fi
fi
AC_SUBST(VULKAN_FLAGS)
AC_SUBST(VULKAN_SHADER_COMPILER)
AC_SUBST(VULKAN_ENABLED)
AC_SUBST(WAYLAND_CFLAGS)
AC_SUBST(WAYLAND_LIBS)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 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
@@ -35,6 +35,7 @@ AC_DEFUN_ONCE([LIB_SETUP_X11],
X_CFLAGS=
X_LIBS=
else
x_libraries_orig="$x_libraries"
if test "x${with_x}" = xno; then
AC_MSG_ERROR([It is not possible to disable the use of X11. Remove the --without-x option.])
@@ -48,6 +49,7 @@ AC_DEFUN_ONCE([LIB_SETUP_X11],
fi
if test "x$x_libraries" = xNONE; then
x_libraries="${with_x}/lib"
x_libraries_orig="$x_libraries"
fi
else
# Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries.
@@ -82,8 +84,8 @@ AC_DEFUN_ONCE([LIB_SETUP_X11],
AC_PATH_XTRA
# AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
# this doesn't make sense so we remove it.
if test "x$COMPILE_TYPE" = xcross; then
# this doesn't make sense so we remove it; same for sysroot (devkit).
if test "x$COMPILE_TYPE" = xcross || (test "x$SYSROOT" != "x" && test "x$x_libraries_orig" = xNONE); then
X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[[^ ]]*//g'`
fi

View File

@@ -37,7 +37,7 @@ m4_include([lib-fontconfig.m4])
m4_include([lib-speechd.m4])
m4_include([lib-nvdacontrollerclient.m4])
m4_include([lib-wayland.m4])
m4_include([lib-dbus.m4])
m4_include([lib-tests.m4])
################################################################################
@@ -90,11 +90,13 @@ AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
NEEDS_LIB_FREETYPE=true
fi
# Check if alsa is needed
# Check if alsa and dbus is needed
if test "x$OPENJDK_TARGET_OS" = xlinux; then
NEEDS_LIB_ALSA=true
NEEDS_LIB_DBUS=true
else
NEEDS_LIB_ALSA=false
NEEDS_LIB_DBUS=false
fi
# Check if ffi is needed
@@ -131,12 +133,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
])
################################################################################
@@ -158,7 +154,7 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
LIB_SETUP_SPEECHD
LIB_SETUP_NVDACONTROLLERCLIENT
LIB_SETUP_WAYLAND
LIB_SETUP_DBUS
LIB_TESTS_SETUP_GTEST
BASIC_JDKLIB_LIBS=""

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 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
@@ -567,8 +567,6 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
HOTSPOT_$1_CPU_DEFINE=PPC64
elif test "x$OPENJDK_$1_CPU" = xppc64le; then
HOTSPOT_$1_CPU_DEFINE=PPC64
elif test "x$OPENJDK_$1_CPU" = xriscv32; then
HOTSPOT_$1_CPU_DEFINE=RISCV32
elif test "x$OPENJDK_$1_CPU" = xriscv64; then
HOTSPOT_$1_CPU_DEFINE=RISCV64
@@ -577,10 +575,14 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
HOTSPOT_$1_CPU_DEFINE=SPARC
elif test "x$OPENJDK_$1_CPU" = xppc; then
HOTSPOT_$1_CPU_DEFINE=PPC32
elif test "x$OPENJDK_$1_CPU" = xriscv32; then
HOTSPOT_$1_CPU_DEFINE=RISCV32
elif test "x$OPENJDK_$1_CPU" = xs390; then
HOTSPOT_$1_CPU_DEFINE=S390
elif test "x$OPENJDK_$1_CPU" = xs390x; then
HOTSPOT_$1_CPU_DEFINE=S390
elif test "x$OPENJDK_$1_CPU" = xloongarch64; then
HOTSPOT_$1_CPU_DEFINE=LOONGARCH64
elif test "x$OPENJDK_$1_CPU" != x; then
HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
fi
@@ -657,6 +659,21 @@ AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET],
PLATFORM_SET_MODULE_TARGET_OS_VALUES
PLATFORM_SET_RELEASE_FILE_OS_VALUES
PLATFORM_SETUP_LEGACY_VARS
PLATFORM_CHECK_DEPRECATION
])
AC_DEFUN([PLATFORM_CHECK_DEPRECATION],
[
AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@],
[Suppress the error when configuring for a deprecated port @<:@no@:>@])])
if test "x$OPENJDK_TARGET_OS" = xwindows && test "x$OPENJDK_TARGET_CPU" = xx86; then
if test "x$enable_deprecated_ports" = "xyes"; then
AC_MSG_WARN([The Windows 32-bit x86 port is deprecated and may be removed in a future release.])
else
AC_MSG_ERROR(m4_normalize([The Windows 32-bit x86 port is deprecated and may be removed in a future release.
Use --enable-deprecated-ports=yes to suppress this error.]))
fi
fi
])
AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],

View File

@@ -191,6 +191,7 @@ PRODUCT_NAME:=@PRODUCT_NAME@
PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
JDK_RC_NAME:=@JDK_RC_NAME@
JDK_RC_COMPANY_NAME:=@JDK_RC_COMPANY_NAME@
COMPANY_NAME:=@COMPANY_NAME@
HOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@
MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
@@ -424,6 +425,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@
@@ -465,6 +467,10 @@ UBSAN_LDFLAGS:=@UBSAN_LDFLAGS@
X_CFLAGS:=@X_CFLAGS@
X_LIBS:=@X_LIBS@
# Necessary additional compiler flags to compile dbus
DBUS_CFLAGS := @DBUS_CFLAGS@
DBUS_FOUND := @DBUS_FOUND@
# Linux speechd a11y announcer
A11Y_SPEECHD_ANNOUNCING_ENABLED:=@A11Y_SPEECHD_ANNOUNCING_ENABLED@
SPEECHD_CFLAGS:=@SPEECHD_CFLAGS@
@@ -482,6 +488,7 @@ A11Y_JAWS_ANNOUNCING_ENABLED:=@A11Y_JAWS_ANNOUNCING_ENABLED@
WAYLAND_CFLAGS:=@WAYLAND_CFLAGS@
WAYLAND_LIBS:=@WAYLAND_LIBS@
VULKAN_FLAGS:=@VULKAN_FLAGS@
VULKAN_SHADER_COMPILER:=@VULKAN_SHADER_COMPILER@
VULKAN_ENABLED:=@VULKAN_ENABLED@
# The lowest required version of macosx
@@ -620,6 +627,7 @@ AR := @AR@
ARFLAGS:=@ARFLAGS@
NM:=@NM@
NMFLAGS:=@NMFLAGS@
STRIP:=@STRIP@
OBJDUMP:=@OBJDUMP@
CXXFILT:=@CXXFILT@
@@ -697,6 +705,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

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, 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
@@ -40,7 +40,7 @@ VALID_TOOLCHAINS_all="gcc clang xlc microsoft"
# These toolchains are valid on different platforms
VALID_TOOLCHAINS_linux="gcc clang"
VALID_TOOLCHAINS_macosx="clang"
VALID_TOOLCHAINS_aix="xlc"
VALID_TOOLCHAINS_aix="xlc clang"
VALID_TOOLCHAINS_windows="microsoft"
# Toolchain descriptions
@@ -53,7 +53,7 @@ TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
TOOLCHAIN_MINIMUM_VERSION_clang="3.5"
TOOLCHAIN_MINIMUM_VERSION_gcc="6.0"
TOOLCHAIN_MINIMUM_VERSION_microsoft="19.28.0.0" # VS2019 16.8, aka MSVC 14.28
TOOLCHAIN_MINIMUM_VERSION_xlc=""
TOOLCHAIN_MINIMUM_VERSION_xlc="16.1.0.0011"
# Minimum supported linker versions, empty means unspecified
TOOLCHAIN_MINIMUM_LD_VERSION_gcc="2.18"
@@ -234,6 +234,25 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETERMINE_TOOLCHAIN_TYPE],
# First toolchain type in the list is the default
DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *}
# On AIX the default toolchain depends on the installed (found) compiler
# xlclang++ -> xlc toolchain
# ibm-clang++_r -> clang toolchain
# The compiler is searched on the PATH and TOOLCHAIN_PATH
# xlclang++ has precedence over ibm-clang++_r if both are installed
if test "x$OPENJDK_TARGET_OS" = xaix; then
DEFAULT_TOOLCHAIN="clang"
if test "x$TOOLCHAIN_PATH" != x; then
if test -e ${TOOLCHAIN_PATH}/xlclang++; then
DEFAULT_TOOLCHAIN="xlc"
fi
else
UTIL_LOOKUP_PROGS(XLCLANG_TEST_PATH, xlclang++)
if test "x$XLCLANG_TEST_PATH" != x; then
DEFAULT_TOOLCHAIN="xlc"
fi
fi
fi
if test "x$with_toolchain_type" = xlist; then
# List all toolchains
AC_MSG_NOTICE([The following toolchains are valid on this platform:])
@@ -263,22 +282,40 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETERMINE_TOOLCHAIN_TYPE],
if test "x$TOOLCHAIN_PATH" != x; then
XLC_TEST_PATH=${TOOLCHAIN_PATH}/
fi
XLCLANG_VERSION_OUTPUT=`${XLC_TEST_PATH}xlclang++ -qversion 2>&1 | $HEAD -n 1`
$ECHO "$XLCLANG_VERSION_OUTPUT" | $GREP "IBM XL C/C++ for AIX" > /dev/null
if test $? -eq 0; then
AC_MSG_NOTICE([xlclang++ output: $XLCLANG_VERSION_OUTPUT])
if test "x$TOOLCHAIN_TYPE" = xclang; then
TOOLCHAIN_DESCRIPTION_clang="IBM Open XL C/C++"
XLCLANG_VERSION_OUTPUT=`${XLC_TEST_PATH}ibm-clang++_r --version 2>&1 | $HEAD -n 1`
$ECHO "$XLCLANG_VERSION_OUTPUT" | $GREP "IBM Open XL C/C++ for AIX" > /dev/null
if test $? -eq 0; then
AC_MSG_NOTICE([ibm-clang++_r output: $XLCLANG_VERSION_OUTPUT])
else
AC_MSG_ERROR([ibm-clang++_r version output check failed, output: $XLCLANG_VERSION_OUTPUT])
fi
else
AC_MSG_ERROR([xlclang++ version output check failed, output: $XLCLANG_VERSION_OUTPUT])
XLCLANG_VERSION_OUTPUT=`${XLC_TEST_PATH}xlclang++ -qversion 2>&1 | $HEAD -n 1`
$ECHO "$XLCLANG_VERSION_OUTPUT" | $GREP "IBM XL C/C++ for AIX" > /dev/null
if test $? -eq 0; then
AC_MSG_NOTICE([xlclang++ output: $XLCLANG_VERSION_OUTPUT])
else
AC_MSG_ERROR([xlclang++ version output check failed, output: $XLCLANG_VERSION_OUTPUT])
fi
fi
fi
TOOLCHAIN_CC_BINARY_clang="clang"
if test "x$OPENJDK_TARGET_OS" = xaix; then
TOOLCHAIN_CC_BINARY_clang="ibm-clang_r"
else
TOOLCHAIN_CC_BINARY_clang="clang"
fi
TOOLCHAIN_CC_BINARY_gcc="gcc"
TOOLCHAIN_CC_BINARY_microsoft="cl"
TOOLCHAIN_CC_BINARY_xlc="xlclang"
TOOLCHAIN_CXX_BINARY_clang="clang++"
if test "x$OPENJDK_TARGET_OS" = xaix; then
TOOLCHAIN_CXX_BINARY_clang="ibm-clang++_r"
else
TOOLCHAIN_CXX_BINARY_clang="clang++"
fi
TOOLCHAIN_CXX_BINARY_gcc="g++"
TOOLCHAIN_CXX_BINARY_microsoft="cl"
TOOLCHAIN_CXX_BINARY_xlc="xlclang++"
@@ -352,6 +389,10 @@ AC_DEFUN_ONCE([TOOLCHAIN_POST_DETECTION],
# This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
CFLAGS="$ORG_CFLAGS"
CXXFLAGS="$ORG_CXXFLAGS"
# filter out some unwanted additions autoconf may add to CXX; we saw this on macOS with autoconf 2.72
UTIL_GET_NON_MATCHING_VALUES(cxx_filtered, $CXX, -std=c++11 -std=gnu++11)
CXX="$cxx_filtered"
])
# Check if a compiler is of the toolchain type we expect, and save the version
@@ -384,7 +425,7 @@ AC_DEFUN([TOOLCHAIN_EXTRACT_COMPILER_VERSION],
# Collapse compiler output into a single line
COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT`
COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
$SED -e 's/^.*, V\(@<:@1-9@:>@@<:@0-9.@:>@*\).*$/\1/'`
$SED -e 's/^.*Version: \(@<:@1-9@:>@@<:@0-9.@:>@*\).*$/\1/'`
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
# There is no specific version flag, but all output starts with a version string.
# First line typically looks something like:
@@ -632,7 +673,7 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_CORE],
if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then
TOOLCHAIN_CHECK_COMPILER_VERSION(VERSION: $TOOLCHAIN_MINIMUM_VERSION,
IF_OLDER_THAN: [
AC_MSG_WARN([You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration.])
AC_MSG_WARN([You are using $TOOLCHAIN_TYPE $CC_VERSION_NUMBER which is older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration.])
]
)
fi
@@ -767,7 +808,11 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_EXTRA],
case $TOOLCHAIN_TYPE in
gcc|clang)
UTIL_REQUIRE_TOOLCHAIN_PROGS(CXXFILT, c++filt)
if test "x$OPENJDK_TARGET_OS" = xaix; then
UTIL_REQUIRE_TOOLCHAIN_PROGS(CXXFILT, ibm-llvm-cxxfilt)
else
UTIL_REQUIRE_TOOLCHAIN_PROGS(CXXFILT, c++filt)
fi
;;
esac
])
@@ -966,7 +1011,11 @@ AC_DEFUN_ONCE([TOOLCHAIN_MISC_CHECKS],
# Setup hotspot lecagy names for toolchains
HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE
if test "x$TOOLCHAIN_TYPE" = xclang; then
HOTSPOT_TOOLCHAIN_TYPE=gcc
if test "x$OPENJDK_TARGET_OS" = xaix; then
HOTSPOT_TOOLCHAIN_TYPE=xlc
else
HOTSPOT_TOOLCHAIN_TYPE=gcc
fi
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
HOTSPOT_TOOLCHAIN_TYPE=visCPP
fi

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, 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
@@ -199,7 +199,7 @@ AC_DEFUN([UTIL_GET_NON_MATCHING_VALUES],
if test -z "$legal_values"; then
$1="$2"
else
result=`$GREP -Fvx "$legal_values" <<< "$values_to_check" | $GREP -v '^$'`
result=`$GREP -Fvx -- "$legal_values" <<< "$values_to_check" | $GREP -v '^$'`
$1=${result//$'\n'/ }
fi
])
@@ -226,7 +226,7 @@ AC_DEFUN([UTIL_GET_MATCHING_VALUES],
if test -z "$illegal_values"; then
$1=""
else
result=`$GREP -Fx "$illegal_values" <<< "$values_to_check" | $GREP -v '^$'`
result=`$GREP -Fx -- "$illegal_values" <<< "$values_to_check" | $GREP -v '^$'`
$1=${result//$'\n'/ }
fi
])

View File

@@ -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.

View File

@@ -98,7 +98,7 @@ GLOBAL_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/common/ve
JDK_RCFLAGS=$(RCFLAGS) \
-D"JDK_VERSION_STRING=$(VERSION_STRING)" \
-D"JDK_COMPANY=$(COMPANY_NAME)" \
-D"JDK_COMPANY=$(JDK_RC_COMPANY_NAME)" \
-D"JDK_VER=$(VERSION_NUMBER_FOUR_POSITIONS)" \
-D"JDK_COPYRIGHT=Copyright \xA9 $(COPYRIGHT_YEAR)" \
-D"JDK_NAME=$(JDK_RC_NAME) $(VERSION_SHORT)" \

View File

@@ -48,12 +48,12 @@ define GetSymbols
$(SED) -e 's/#.*//;s/global://;s/local://;s/\;//;s/^[ ]*/_/;/^_$$$$/d' | \
$(EGREP) -v "JNI_OnLoad|JNI_OnUnload|Agent_OnLoad|Agent_OnUnload|Agent_OnAttach" > \
$$(@D)/$$(basename $$(@F)).symbols || true; \
$(NM) $$($1_TARGET) | $(GREP) " T " | \
$(NM) $(NMFLAGS) $$($1_TARGET) | $(GREP) " T " | \
$(EGREP) "JNI_OnLoad|JNI_OnUnload|Agent_OnLoad|Agent_OnUnload|Agent_OnAttach" | \
$(CUT) -d ' ' -f 3 >> $$(@D)/$$(basename $$(@F)).symbols || true;\
else \
$(ECHO) "Getting symbols from nm"; \
$(NM) -m $$($1_TARGET) | $(GREP) "__TEXT" | \
$(NM) $(NMFLAGS) -m $$($1_TARGET) | $(GREP) "__TEXT" | \
$(EGREP) -v "non-external|private extern|__TEXT,__eh_frame" | \
$(SED) -e 's/.* //' > $$(@D)/$$(basename $$(@F)).symbols; \
fi
@@ -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
@@ -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

View File

@@ -42,7 +42,6 @@ DOCS_MODULES= \
jdk.hotspot.agent \
jdk.httpserver \
jdk.jpackage \
jdk.incubator.concurrent \
jdk.incubator.vector \
jdk.jartool \
jdk.javadoc \

View File

@@ -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
@@ -26,7 +26,7 @@
# Versions and download locations for dependencies used by GitHub Actions (GHA)
GTEST_VERSION=1.13.0
JTREG_VERSION=7.2+1
JTREG_VERSION=7.3.1+1
LINUX_X64_BOOT_JDK_EXT=tar.gz
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_linux-x64_bin.tar.gz
@@ -36,6 +36,10 @@ MACOS_X64_BOOT_JDK_EXT=tar.gz
MACOS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_macos-x64_bin.tar.gz
MACOS_X64_BOOT_JDK_SHA256=47cf960d9bb89dbe987535a389f7e26c42de7c984ef5108612d77c81aa8cc6a4
MACOS_AARCH64_BOOT_JDK_EXT=tar.gz
MACOS_AARCH64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_macos-aarch64_bin.tar.gz
MACOS_AARCH64_BOOT_JDK_SHA256=d020f5c512c043cfb7119a591bc7e599a5bfd76d866d939f5562891d9db7c9b3
WINDOWS_X64_BOOT_JDK_EXT=zip
WINDOWS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_windows-x64_bin.zip
WINDOWS_X64_BOOT_JDK_SHA256=c92fae5e42b9aecf444a66c8ec563c652f60b1e231dfdd33a4f5a3e3603058fb

View File

@@ -463,7 +463,8 @@ var getJibProfilesProfiles = function (input, common, data) {
target_cpu: "x86",
build_cpu: "x64",
dependencies: ["devkit", "gtest"],
configure_args: concat(common.configure_args_32bit),
configure_args: concat(common.configure_args_32bit,
"--enable-deprecated-ports"),
},
"windows-aarch64": {
@@ -944,10 +945,7 @@ var getJibProfilesProfiles = function (input, common, data) {
target_os: input.build_os,
target_cpu: input.build_cpu,
dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ],
labels: "test",
environment: {
"JT_JAVA": common.boot_jdk_home
}
labels: "test"
}
};
profiles = concatObjects(profiles, testOnlyProfiles);
@@ -1187,9 +1185,9 @@ var getJibProfilesDependencies = function (input, common) {
jtreg: {
server: "jpg",
product: "jtreg",
version: "7.2",
version: "7.3.1",
build_number: "1",
file: "bundles/jtreg-7.2+1.zip",
file: "bundles/jtreg-7.3.1+1.zip",
environment_name: "JT_HOME",
environment_path: input.get("jtreg", "home_path") + "/bin",
configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),

View File

@@ -43,7 +43,6 @@ BOOT_MODULES= \
java.rmi \
java.security.sasl \
java.xml \
jdk.incubator.concurrent \
jdk.incubator.vector \
jdk.internal.vm.ci \
jdk.jfr \

View File

@@ -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
@@ -28,15 +28,15 @@
DEFAULT_VERSION_FEATURE=21
DEFAULT_VERSION_INTERIM=0
DEFAULT_VERSION_UPDATE=0
DEFAULT_VERSION_UPDATE=3
DEFAULT_VERSION_PATCH=0
DEFAULT_VERSION_EXTRA1=0
DEFAULT_VERSION_EXTRA2=0
DEFAULT_VERSION_EXTRA3=0
DEFAULT_VERSION_DATE=2023-09-19
DEFAULT_VERSION_DATE=2024-04-16
DEFAULT_VERSION_CLASSFILE_MAJOR=65 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
DEFAULT_VERSION_CLASSFILE_MINOR=0
DEFAULT_VERSION_DOCS_API_SINCE=11
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="20 21"
DEFAULT_JDK_SOURCE_TARGET_VERSION=21
DEFAULT_PROMOTED_VERSION_PRE=ea
DEFAULT_PROMOTED_VERSION_PRE=

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 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
@@ -56,10 +56,10 @@ public class $NAME_CLZ$ extends Charset
return new DoubleByte.Encoder$ENCTYPE$(this, $ENC_REPLACEMENT$ EncodeHolder.c2b, EncodeHolder.c2bIndex, $ASCIICOMPATIBLE$);
}
static class DecodeHolder {
public static class DecodeHolder {
$B2C$
static final char[][] b2c = new char[b2cStr.length][];
static final char[] b2cSB;
public static final char[][] b2c = new char[b2cStr.length][];
public static final char[] b2cSB;
static {
for (int i = 0; i < b2cStr.length; i++) {
@@ -72,9 +72,9 @@ public class $NAME_CLZ$ extends Charset
}
}
static class EncodeHolder {
static final char[] c2b = new char[$C2BLENGTH$];
static final char[] c2bIndex = new char[0x100];
public static class EncodeHolder {
public static final char[] c2b = new char[$C2BLENGTH$];
public static final char[] c2bIndex = new char[0x100];
static {
$NONROUNDTRIP_B2C$

File diff suppressed because it is too large Load Diff

View File

@@ -2,13 +2,11 @@
# generate these charsets into sun.nio.cs
#
Big5
Big5_Solaris
Big5_HKSCS
EUC_CN
EUC_KR
EUC_JP
EUC_JP_LINUX
EUC_JP_Open
EUC_TW
GBK
ISO_8859_11
@@ -16,12 +14,9 @@ ISO_8859_3
ISO_8859_6
ISO_8859_8
Johab
PCK
TIS_620
JIS_X_0201
JIS_X_0208
JIS_X_0212
JIS_X_0208_Solaris
JIS_X_0212_Solaris
MS932
SJIS

View File

@@ -181,6 +181,7 @@ JVM_NewArray
JVM_NewInstanceFromConstructor
JVM_NewMultiArray
JVM_PhantomReferenceRefersTo
JVM_PrintWarningAtDynamicAgentLoad
JVM_RaiseSignal
JVM_RawMonitorCreate
JVM_RawMonitorDestroy

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 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
@@ -539,6 +539,7 @@ $(BUILDDIR)/$(gcc_ver)/Makefile \
$(PATHPRE) $(ENVS) $(GCC_CFG) $(EXTRA_CFLAGS) \
$(CONFIG) \
--with-sysroot=$(SYSROOT) \
--with-debug-prefix-map=$(OUTPUT_ROOT)=devkit \
--enable-languages=c,c++ \
--enable-shared \
--disable-nls \

View File

@@ -26,8 +26,8 @@
# Create a bundle in the build directory, containing what's needed to
# build and run JMH microbenchmarks from the OpenJDK build.
JMH_VERSION=1.36
COMMONS_MATH3_VERSION=3.2
JMH_VERSION=1.37
COMMONS_MATH3_VERSION=3.6.1
JOPT_SIMPLE_VERSION=5.0.4
BUNDLE_NAME=jmh-$JMH_VERSION.tar.gz

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 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
@@ -37,8 +37,13 @@ ifeq ($(call check-jvm-feature, compiler2), true)
ifeq ($(call isBuildOs, linux), true)
ADLC_CFLAGS := -fno-exceptions -DLINUX
else ifeq ($(call isBuildOs, aix), true)
ADLC_LDFLAGS += -q64
ADLC_CFLAGS := -qnortti -qeh -q64 -DAIX
ifeq ($(TOOLCHAIN_TYPE), clang)
ADLC_LDFLAGS += -m64
ADLC_CFLAGS := -fno-rtti -fexceptions -ffunction-sections -m64 -DAIX -mcpu=pwr8
else
ADLC_LDFLAGS += -q64
ADLC_CFLAGS := -qnortti -qeh -q64 -DAIX
endif
else ifeq ($(call isBuildOs, windows), true)
ADLC_LDFLAGS += -nologo
ADLC_CFLAGS := -nologo -EHsc
@@ -57,7 +62,7 @@ ifeq ($(call check-jvm-feature, compiler2), true)
ADLC_CFLAGS += -I$(TOPDIR)/src/hotspot/share
# Add file macro mappings
ADLC_CFLAGS += $(FILE_MACRO_CFLAGS)
ADLC_CFLAGS += $(FILE_MACRO_CFLAGS) $(REPRODUCIBLE_CFLAGS)
ifeq ($(UBSAN_ENABLED), true)
ADLC_CFLAGS += $(UBSAN_CFLAGS)
@@ -128,6 +133,21 @@ ifeq ($(call check-jvm-feature, compiler2), true)
ADLCFLAGS += -DARM=1
endif
# Set ASSERT, NDEBUG and PRODUCT flags just like in JvmFlags.gmk
ifeq ($(DEBUG_LEVEL), release)
# release builds disable uses of assert macro from <assert.h>.
ADLCFLAGS += -DNDEBUG
# For hotspot, release builds differ internally between "optimized" and "product"
# in that "optimize" does not define PRODUCT.
ifneq ($(HOTSPOT_DEBUG_LEVEL), optimized)
ADLCFLAGS += -DPRODUCT
endif
else ifeq ($(DEBUG_LEVEL), fastdebug)
ADLCFLAGS += -DASSERT
else ifeq ($(DEBUG_LEVEL), slowdebug)
ADLCFLAGS += -DASSERT
endif
##############################################################################
# Concatenate all ad source files into a single file, which will be fed to
# adlc. Also include a #line directive at the start of every included file
@@ -167,6 +187,8 @@ ifeq ($(call check-jvm-feature, compiler2), true)
ifeq ($(call check-jvm-feature, zgc), true)
AD_SRC_FILES += $(call uniq, $(wildcard $(foreach d, $(AD_SRC_ROOTS), \
$d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/gc/x/x_$(HOTSPOT_TARGET_CPU).ad \
$d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/gc/x/x_$(HOTSPOT_TARGET_CPU_ARCH).ad \
$d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/gc/z/z_$(HOTSPOT_TARGET_CPU).ad \
$d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/gc/z/z_$(HOTSPOT_TARGET_CPU_ARCH).ad \
)))

View File

@@ -168,10 +168,14 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJVM, \
DISABLED_WARNINGS_clang_management.cpp := missing-field-initializers, \
DISABLED_WARNINGS_clang_notificationThread.cpp := bitwise-instead-of-logical, \
DISABLED_WARNINGS_clang_os_posix.cpp := mismatched-tags missing-field-initializers, \
DISABLED_WARNINGS_clang_aix_os_posix.cpp := format-nonliteral, \
DISABLED_WARNINGS_clang_postaloc.cpp := tautological-undefined-compare, \
DISABLED_WARNINGS_clang_serviceThread.cpp := bitwise-instead-of-logical, \
DISABLED_WARNINGS_clang_vm_version_x86.cpp := missing-field-initializers, \
DISABLED_WARNINGS_clang_zTracer.cpp := undefined-var-template, \
DISABLED_WARNINGS_clang_aix_debug.cpp := format-nonliteral, \
DISABLED_WARNINGS_clang_aix_jvm.cpp := format-nonliteral, \
DISABLED_WARNINGS_clang_aix_osThread_aix.cpp := tautological-undefined-compare, \
DISABLED_WARNINGS_xlc := $(DISABLED_WARNINGS_xlc), \
DISABLED_WARNINGS_microsoft := $(DISABLED_WARNINGS_microsoft), \
ASFLAGS := $(JVM_ASFLAGS), \
@@ -272,10 +276,10 @@ ifneq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
define SetupOperatorNewDeleteCheck
$1.op_check: $1
$$(call ExecuteWithLog, $1.op_check, \
$$(NM) $$< 2>&1 | $$(GREP) $$(addprefix -e , $$(MANGLED_SYMS)) | $$(GREP) $$(UNDEF_PATTERN) > $1.op_check || true)
$$(NM) $$(NMFLAGS) $$< 2>&1 | $$(GREP) $$(addprefix -e , $$(MANGLED_SYMS)) | $$(GREP) $$(UNDEF_PATTERN) > $1.op_check || true)
if [ -s $1.op_check ]; then \
$$(ECHO) "$$(notdir $$<): Error: Use of global operators new and delete is not allowed in Hotspot:"; \
$$(NM) $$< | $$(CXXFILT) | $$(EGREP) '$$(DEMANGLED_REGEXP)' | $$(GREP) $$(UNDEF_PATTERN); \
$$(NM) $$(NMFLAGS) $$< | $$(CXXFILT) | $$(EGREP) '$$(DEMANGLED_REGEXP)' | $$(GREP) $$(UNDEF_PATTERN); \
$$(ECHO) "See: $$(TOPDIR)/make/hotspot/lib/CompileJvm.gmk"; \
exit 1; \
fi

View File

@@ -150,6 +150,7 @@ endif
ifneq ($(call check-jvm-feature, zgc), true)
JVM_CFLAGS_FEATURES += -DINCLUDE_ZGC=0
JVM_EXCLUDE_PATTERNS += gc/z
JVM_EXCLUDE_PATTERNS += gc/x
endif
ifneq ($(call check-jvm-feature, shenandoahgc), true)

View File

@@ -53,7 +53,7 @@ endif
# platform dependent.
ifeq ($(call isTargetOs, linux), true)
DUMP_SYMBOLS_CMD := $(NM) --defined-only *$(OBJ_SUFFIX)
DUMP_SYMBOLS_CMD := $(NM) $(NMFLAGS) --defined-only *$(OBJ_SUFFIX)
ifneq ($(FILTER_SYMBOLS_PATTERN), )
FILTER_SYMBOLS_PATTERN := $(FILTER_SYMBOLS_PATTERN)|
endif
@@ -67,7 +67,7 @@ ifeq ($(call isTargetOs, linux), true)
else ifeq ($(call isTargetOs, macosx), true)
# nm on macosx prints out "warning: nm: no name list" to stderr for
# files without symbols. Hide this, even at the expense of hiding real errors.
DUMP_SYMBOLS_CMD := $(NM) -Uj *$(OBJ_SUFFIX) 2> /dev/null
DUMP_SYMBOLS_CMD := $(NM) $(NMFLAGS) -Uj *$(OBJ_SUFFIX) 2> /dev/null
ifneq ($(FILTER_SYMBOLS_PATTERN), )
FILTER_SYMBOLS_PATTERN := $(FILTER_SYMBOLS_PATTERN)|
endif
@@ -89,7 +89,7 @@ else ifeq ($(call isTargetOs, aix), true)
# which may be installed under /opt/freeware/bin. So better use an absolute path here!
# NM=/usr/bin/nm
DUMP_SYMBOLS_CMD := $(NM) -X64 -B -C *$(OBJ_SUFFIX)
DUMP_SYMBOLS_CMD := $(NM) $(NMFLAGS) -B -C *$(OBJ_SUFFIX)
FILTER_SYMBOLS_AWK_SCRIPT := \
'{ \
if (($$2="d" || $$2="D") && ($$3 ~ /^__vft/ || $$3 ~ /^gHotSpotVM/)) print $$3; \

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 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
@@ -109,7 +109,11 @@ else ifeq ($(call isTargetOs, macosx), true)
endif
else ifeq ($(call isTargetOs, aix), true)
BUILD_LIBJVM_synchronizer.cpp_CXXFLAGS := -qnoinline
ifeq ($(TOOLCHAIN_TYPE), clang)
BUILD_LIBJVM_synchronizer.cpp_CXXFLAGS := -fno-inline
else
BUILD_LIBJVM_synchronizer.cpp_CXXFLAGS := -qnoinline
endif
BUILD_LIBJVM_sharedRuntimeTrans.cpp_CXXFLAGS := $(CXX_O_FLAG_NONE)
# Disable aggressive optimizations for functions in sharedRuntimeTrig.cpp
# and sharedRuntimeTrans.cpp on ppc64.

View File

@@ -61,7 +61,7 @@ ifeq ($(call isTargetOs, windows), true)
$(eval $(call SetupCopyFiles, COPY_GTEST_PDB_$v, \
SRC := $(HOTSPOT_OUTPUTDIR)/variant-$v/libjvm/gtest, \
DEST := $(TEST_IMAGE_DIR)/hotspot/gtest/$v, \
FILES := jvm.pdb gtestLauncher.pdb, \
FILES := jvm.dll.pdb gtestLauncher.exe.pdb, \
)) \
$(eval TARGETS += $$(COPY_GTEST_PDB_$v)) \
) \

View File

@@ -329,7 +329,7 @@ class CompilerInterfaceVC10 extends CompilerInterface {
addAttr(rv, "PrecompiledHeaderOutputFile", outDir+Util.sep+"vm.pch");
addAttr(rv, "AssemblerListingLocation", outDir);
addAttr(rv, "ObjectFileName", outDir+Util.sep);
addAttr(rv, "ProgramDataBaseFileName", outDir+Util.sep+"jvm.pdb");
addAttr(rv, "ProgramDataBaseFileName", outDir+Util.sep+"jvm.dll.pdb");
// Set /nologo option
addAttr(rv, "SuppressStartupBanner", "true");
// Surpass the default /Tc or /Tp.
@@ -409,7 +409,7 @@ class CompilerInterfaceVC10 extends CompilerInterface {
addAttr(rv, "OutputFile", outDll);
addAttr(rv, "SuppressStartupBanner", "true");
addAttr(rv, "ModuleDefinitionFile", outDir+Util.sep+"vm.def");
addAttr(rv, "ProgramDatabaseFile", outDir+Util.sep+"jvm.pdb");
addAttr(rv, "ProgramDatabaseFile", outDir+Util.sep+"jvm.dll.pdb");
addAttr(rv, "SubSystem", "Windows");
addAttr(rv, "BaseAddress", "0x8000000");
addAttr(rv, "ImportLibrary", outDir+Util.sep+"jvm.lib");

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 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
@@ -32,6 +32,7 @@ import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.Locale;
@@ -339,9 +340,15 @@ public class GenerateCurrencyData {
validCurrencyCodes.substring(i * 7 + 3, i * 7 + 6));
checkCurrencyCode(currencyCode);
int tableEntry = mainTable[(currencyCode.charAt(0) - 'A') * A_TO_Z + (currencyCode.charAt(1) - 'A')];
if (tableEntry == INVALID_COUNTRY_ENTRY ||
(tableEntry & SPECIAL_CASE_COUNTRY_MASK) != 0 ||
(tableEntry & SIMPLE_CASE_COUNTRY_FINAL_CHAR_MASK) != (currencyCode.charAt(2) - 'A')) {
// Do not allow a future currency to be classified as an otherCurrency,
// otherwise it will leak out into Currency:getAvailableCurrencies
boolean futureCurrency = Arrays.asList(specialCaseNewCurrencies).contains(currencyCode);
boolean simpleCurrency = (tableEntry & SIMPLE_CASE_COUNTRY_FINAL_CHAR_MASK) == (currencyCode.charAt(2) - 'A');
// If neither a simple currency, or one defined in the future
// then the current currency is applicable to be added to the otherTable
if (!futureCurrency && !simpleCurrency) {
if (otherCurrenciesCount == maxOtherCurrencies) {
throw new RuntimeException("too many other currencies");
}

View File

@@ -60,7 +60,9 @@ public class EquivMapsGenerator {
}
copyrightYear = Integer.parseInt(args[2]);
readLSRfile(args[0]);
// Builds the maps from the IANA data
generateEquivalentMap();
// Writes the maps out to LocaleEquivalentMaps.java
generateSourceCode(args[1]);
}
@@ -213,63 +215,6 @@ public class EquivMapsGenerator {
return list.toArray(new String[list.size()]);
}
private static String generateValuesString(String[] values) {
String outputStr = "";
for (int i = 0; i < values.length; i++) {
if (i != values.length - 1) {
outputStr = outputStr + "\"" + values[i] + "\", ";
} else {
outputStr = outputStr + "\"" + values[i] + "\"";
}
}
return outputStr;
}
private static final String COPYRIGHT = "/*\n"
+ " * Copyright (c) 2012, %d, Oracle and/or its affiliates. All rights reserved.\n"
+ " * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n"
+ " *\n"
+ " * This code is free software; you can redistribute it and/or modify it\n"
+ " * under the terms of the GNU General Public License version 2 only, as\n"
+ " * published by the Free Software Foundation. Oracle designates this\n"
+ " * particular file as subject to the \"Classpath\" exception as provided\n"
+ " * by Oracle in the LICENSE file that accompanied this code.\n"
+ " *\n"
+ " * This code is distributed in the hope that it will be useful, but WITHOUT\n"
+ " * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n"
+ " * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n"
+ " * version 2 for more details (a copy is included in the LICENSE file that\n"
+ " * accompanied this code).\n"
+ " *\n"
+ " * You should have received a copy of the GNU General Public License version\n"
+ " * 2 along with this work; if not, write to the Free Software Foundation,\n"
+ " * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n"
+ " *\n"
+ " * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA\n"
+ " * or visit www.oracle.com if you need additional information or have any\n"
+ " * questions.\n"
+ "*/\n\n";
private static final String headerText =
"package sun.util.locale;\n\n"
+ "import java.util.HashMap;\n"
+ "import java.util.Map;\n\n"
+ "final class LocaleEquivalentMaps {\n\n"
+ " static final Map<String, String> singleEquivMap;\n"
+ " static final Map<String, String[]> multiEquivsMap;\n"
+ " static final Map<String, String> regionVariantEquivMap;\n\n"
+ " static {\n"
+ " singleEquivMap = HashMap.newHashMap(";
private static final String footerText =
" }\n\n"
+ "}";
private static String getOpenJDKCopyright() {
return String.format(Locale.US, COPYRIGHT, copyrightYear);
}
/**
* The input lsr data file is in UTF-8, so theoretically for the characters
* beyond US-ASCII, the generated Java String literals need to be Unicode
@@ -277,53 +222,132 @@ public class EquivMapsGenerator {
* the case since we don't use "description", "comment" or alike.
*/
private static void generateSourceCode(String fileName) {
try (BufferedWriter writer = Files.newBufferedWriter(
Paths.get(fileName))) {
writer.write(getOpenJDKCopyright());
writer.write(headerText
+ sortedLanguageMap1.size() + ");\n"
+ " multiEquivsMap = HashMap.newHashMap("
+ sortedLanguageMap2.size() + ");\n"
+ " regionVariantEquivMap = HashMap.newHashMap("
+ sortedRegionVariantMap.size() + ");\n\n"
+ " // This is an auto-generated file and should not be manually edited.\n"
+ " // LSR Revision: " + LSRrevisionDate);
writer.write(HEADER_TEXT);
writer.write(getMapsText());
writer.write(getLSRText());
writeEquiv(writer, "singleEquivMap", sortedLanguageMap1);
writer.newLine();
for (String key : sortedLanguageMap1.keySet()) {
String value = sortedLanguageMap1.get(key);
writer.write(" singleEquivMap.put(\""
+ key + "\", \"" + value + "\");");
writer.newLine();
}
writeMultiEquiv(writer);
writer.newLine();
for (String key : sortedLanguageMap2.keySet()) {
String[] values = sortedLanguageMap2.get(key);
if (values.length >= 2) {
writer.write(" multiEquivsMap.put(\""
+ key + "\", new String[] {"
+ generateValuesString(values) + "});");
writer.newLine();
}
}
writer.newLine();
for (String key : sortedRegionVariantMap.keySet()) {
String value = sortedRegionVariantMap.get(key);
writer.write(" regionVariantEquivMap.put(\""
+ key + "\", \"" + value + "\");");
writer.newLine();
}
writer.write(footerText);
writeEquiv(writer, "regionVariantEquivMap", sortedRegionVariantMap);
writer.write(FOOTER_TEXT);
} catch (IOException ex) {
ex.printStackTrace(System.err);
System.exit(1);
}
}
private static String getOpenJDKCopyright() {
return String.format(Locale.US, COPYRIGHT, copyrightYear);
}
private static final String COPYRIGHT =
"""
/*
* Copyright (c) 2012, %d, 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.
*/
""";
private static final String HEADER_TEXT =
"""
package sun.util.locale;
import java.util.HashMap;
import java.util.Map;
final class LocaleEquivalentMaps {
static final Map<String, String> singleEquivMap;
static final Map<String, String[]> multiEquivsMap;
static final Map<String, String> regionVariantEquivMap;
""";
private static final String FOOTER_TEXT =
"""
}
}
""";
private static String getMapsText() {
return """
static {
singleEquivMap = HashMap.newHashMap(%s);
multiEquivsMap = HashMap.newHashMap(%s);
regionVariantEquivMap = HashMap.newHashMap(%s);
""".formatted(
sortedLanguageMap1.size(),
sortedLanguageMap2.size(),
sortedRegionVariantMap.size());
}
private static final String getLSRText(){
return """
// This is an auto-generated file and should not be manually edited.
// LSR Revision: %s
""".formatted(LSRrevisionDate);
}
private static void writeMultiEquiv(BufferedWriter writer) throws IOException {
for (String key : sortedLanguageMap2.keySet()) {
String[] values = sortedLanguageMap2.get(key);
if (values.length >= 2) {
writer.write(String.format(
" multiEquivsMap.put(\"%s\", new String[] {%s});"
, key, generateValuesString(values)));
writer.newLine();
}
}
}
// Use for writing an equivlancy map with one value
private static void writeEquiv(BufferedWriter writer, String name, Map<String, String> map) throws IOException {
for (String key : map.keySet()) {
String value = map.get(key);
writer.write(String.format(
" %s.put(\"%s\", \"%s\");"
, name, key, value));
writer.newLine();
}
}
private static String generateValuesString(String[] values) {
String outputStr = "";
for (int i = 0; i < values.length; i++) {
if (i != values.length - 1) {
outputStr = String.format("%s\"%s\", ", outputStr, values[i]);
} else {
outputStr = String.format("%s\"%s\"", outputStr, values[i]);
}
}
return outputStr;
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 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
@@ -145,11 +145,15 @@ public final class SealedGraph implements Taglet {
static void traverse(State state, TypeElement node, Set<String> exports) {
state.addNode(node);
for (TypeElement subNode : permittedSubclasses(node, exports)) {
if (isInPublicApi(node, exports) && isInPublicApi(subNode, exports)) {
state.addEdge(node, subNode);
if (!(node.getModifiers().contains(Modifier.SEALED) || node.getModifiers().contains(Modifier.FINAL))) {
state.addNonSealedEdge(node);
} else {
for (TypeElement subNode : permittedSubclasses(node, exports)) {
if (isInPublicApi(node, exports) && isInPublicApi(subNode, exports)) {
state.addEdge(node, subNode);
}
traverse(state, subNode, exports);
}
traverse(state, subNode, exports);
}
}
@@ -158,13 +162,31 @@ public final class SealedGraph implements Taglet {
private static final String LABEL = "label";
private static final String TOOLTIP = "tooltip";
private static final String LINK = "href";
private static final String STYLE = "style";
private final TypeElement rootNode;
private final StringBuilder builder;
private final Map<String, Map<String, String>> nodeStyleMap;
private final Map<String, Map<String, StyleItem>> nodeStyleMap;
private int nonSealedHierarchyCount = 0;
private sealed interface StyleItem {
String valueString();
record PlainString(String text) implements StyleItem {
@Override
public String valueString() {
return "\"" + text + "\"";
}
}
record HtmlString(String text) implements StyleItem {
@Override
public String valueString() {
return "<" + text + ">";
}
}
}
public State(TypeElement rootNode) {
this.rootNode = rootNode;
@@ -188,13 +210,9 @@ public final class SealedGraph implements Taglet {
public void addNode(TypeElement node) {
var styles = nodeStyleMap.computeIfAbsent(id(node), n -> new LinkedHashMap<>());
styles.put(LABEL, node.getSimpleName().toString());
styles.put(TOOLTIP, node.getQualifiedName().toString());
styles.put(LINK, relativeLink(node));
if (!(node.getModifiers().contains(Modifier.SEALED) || node.getModifiers().contains(Modifier.FINAL))) {
// This indicates that the hierarchy is not closed
styles.put(STYLE, "dashed");
}
styles.put(LABEL, new StyleItem.PlainString(node.getSimpleName().toString()));
styles.put(TOOLTIP, new StyleItem.PlainString(node.getQualifiedName().toString()));
styles.put(LINK, new StyleItem.PlainString(relativeLink(node)));
}
// A permitted class must be in the same package or in the same module.
@@ -223,12 +241,32 @@ public final class SealedGraph implements Taglet {
.append(lineSeparator());
}
public void addNonSealedEdge(TypeElement node) {
// prepare open node
var openNodeId = "open node #" + nonSealedHierarchyCount++;
var styles = nodeStyleMap.computeIfAbsent(openNodeId, n -> new LinkedHashMap<>());
styles.put(LABEL, new StyleItem.HtmlString("<I>&lt;any&gt;</I>"));
styles.put(TOOLTIP, new StyleItem.PlainString("Non-sealed Hierarchy"));
// add link to parent node
builder.append(" ")
.append('"')
.append(openNodeId)
.append('"')
.append(" -> ")
.append(quotedId(node))
.append(" ")
.append("[style=\"dashed\"]")
.append(";")
.append(lineSeparator());
}
public String render() {
nodeStyleMap.forEach((nodeName, styles) -> {
builder.append(" ")
.append('"').append(nodeName).append("\" ")
.append(styles.entrySet().stream()
.map(e -> e.getKey() + "=\"" + e.getValue() + "\"")
.map(e -> e.getKey() + "=" + e.getValue().valueString())
.collect(joining(" ", "[", "]")))
.append(lineSeparator());
});
@@ -265,16 +303,17 @@ public final class SealedGraph implements Taglet {
}
private static boolean isInPublicApi(TypeElement typeElement, Set<String> exports) {
return (exports.contains(packageName(typeElement.getQualifiedName().toString())) ||
exports.contains(packageName(typeElement.getSuperclass().toString()))) &&
typeElement.getModifiers().contains(Modifier.PUBLIC);
var packageName = packageName(typeElement);
return packageName.isPresent() && exports.contains(packageName.get()) &&
typeElement.getModifiers().contains(Modifier.PUBLIC);
}
private static String packageName(String name) {
int lastDot = name.lastIndexOf('.');
return lastDot < 0
? ""
: name.substring(0, lastDot);
private static Optional<String> packageName(TypeElement element) {
return switch (element.getNestingKind()) {
case TOP_LEVEL -> Optional.of(((PackageElement) element.getEnclosingElement()).getQualifiedName().toString());
case ANONYMOUS, LOCAL -> Optional.empty();
case MEMBER -> packageName((TypeElement) element.getEnclosingElement());
};
}
}
}

View File

@@ -51,9 +51,9 @@ import javacserver.util.Log;
public class Client {
private static final Log.Level LOG_LEVEL = Log.Level.INFO;
// Wait 2 seconds for response, before giving up on javac server.
private static final int CONNECTION_TIMEOUT = 2000;
private static final int MAX_CONNECT_ATTEMPTS = 3;
// Wait 4 seconds for response, before giving up on javac server.
private static final int CONNECTION_TIMEOUT = 4000;
private static final int MAX_CONNECT_ATTEMPTS = 10;
private static final int WAIT_BETWEEN_CONNECT_ATTEMPTS = 2000;
private final ClientConfiguration conf;
@@ -130,7 +130,7 @@ public class Client {
Log.error("Connection attempt failed: " + ex.getMessage());
if (attempt >= MAX_CONNECT_ATTEMPTS) {
Log.error("Giving up");
throw new IOException("Could not connect to server", ex);
throw new IOException("Could not connect to server after " + MAX_CONNECT_ATTEMPTS + " attempts with timeout " + CONNECTION_TIMEOUT, ex);
}
}
Thread.sleep(WAIT_BETWEEN_CONNECT_ATTEMPTS);

View File

@@ -27,9 +27,7 @@ DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
JAVAC_FLAGS += -XDstringConcat=inline \
--enable-preview
DISABLED_WARNINGS_java += preview
JAVAC_FLAGS += -XDstringConcat=inline
COPY += .icu .dat .spp .nrm content-types.properties \
hijrah-config-Hijrah-umalqura_islamic-umalqura.properties
CLEAN += intrinsic.properties

View File

@@ -46,6 +46,8 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBNET, \
DISABLED_WARNINGS_gcc_net_util_md.c := format-nonliteral, \
DISABLED_WARNINGS_gcc_NetworkInterface.c := unused-function, \
DISABLED_WARNINGS_clang_net_util_md.c := format-nonliteral, \
DISABLED_WARNINGS_clang_aix_DefaultProxySelector.c := deprecated-non-prototype, \
DISABLED_WARNINGS_clang_aix_NetworkInterface.c := gnu-pointer-arith, \
DISABLED_WARNINGS_microsoft_InetAddress.c := 4244, \
DISABLED_WARNINGS_microsoft_ResolverConfigurationImpl.c := 4996, \
LDFLAGS := $(LDFLAGS_JDKLIB) \

View File

@@ -52,9 +52,7 @@ $(eval $(call SetupTextFileProcessing, BUILD_VERSION_JAVA, \
# Normalize OPENJDK_TARGET_CPU name to match jdk.internal.util.Architecture enum
ifneq ($(filter $(OPENJDK_TARGET_CPU), ppc64le), )
OPENJDK_TARGET_ARCH_CANONICAL = ppc64
else ifneq ($(filter $(OPENJDK_TARGET_CPU), s390x), )
ifneq ($(filter $(OPENJDK_TARGET_CPU), s390x), )
OPENJDK_TARGET_ARCH_CANONICAL = s390
else ifneq ($(filter $(OPENJDK_TARGET_CPU), x86_64 amd64), )
OPENJDK_TARGET_ARCH_CANONICAL = x64

View File

@@ -198,6 +198,7 @@ ifeq ($(call isTargetOs, aix), true)
OPTIMIZATION := HIGH, \
CFLAGS := $(STATIC_LIBRARY_FLAGS) $(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS) \
$(addprefix -I, $(LIBJLI_SRC_DIRS)), \
DISABLED_WARNINGS_clang_aix := format-nonliteral deprecated-non-prototype, \
ARFLAGS := $(ARFLAGS), \
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static))

View File

@@ -68,10 +68,12 @@ EXCLUDE_FILES += \
ifeq ($(call isTargetOs, macosx), true)
# exclude all X11 on Mac.
EXCLUDES += \
sun/awt/screencast \
sun/awt/X11 \
sun/awt/wl \
sun/java2d/wl \
sun/java2d/x11 \
sun/java2d/vulkan \
sun/java2d/jules \
sun/java2d/xr \
com/sun/java/swing/plaf/gtk \

View File

@@ -78,6 +78,10 @@ ifeq ($(call isTargetOs, windows), true)
#
endif
ifeq ($(DBUS_FOUND), false)
LIBAWT_EXFILES += dbus_interface.c dbus_interface.h
endif
ifeq ($(call isTargetOs, linux macosx aix), true)
LIBAWT_EXFILES += awt_Font.c CUPSfuncs.c fontpath.c X11Color.c
endif
@@ -111,6 +115,10 @@ LIBAWT_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES $(X_CFLAGS)
LIBAWT_CFLAGS += -DMLIB_NO_LIBSUNMATH
ifeq ($(DBUS_FOUND), true)
LIBAWT_CFLAGS += -DDBUS_FOUND
endif
ifeq ($(call isTargetOs, windows), true)
LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE
ifeq ($(call isTargetCpuBits, 64), true)
@@ -162,7 +170,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBAWT, \
EXCLUDES := $(LIBAWT_EXCLUDES), \
EXCLUDE_FILES := $(LIBAWT_EXFILES), \
OPTIMIZATION := HIGHEST, \
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_CFLAGS), \
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_CFLAGS) $(DBUS_CFLAGS), \
EXTRA_HEADER_DIRS := $(LIBAWT_EXTRA_HEADER_DIRS), \
DISABLED_WARNINGS_gcc_awt_LoadLibrary.c := unused-result, \
DISABLED_WARNINGS_gcc_debug_mem.c := format-nonliteral, \
@@ -219,6 +227,34 @@ ifeq ($(call isTargetOs, windows)+$(ENABLE_HEADLESS_ONLY)+$(A11Y_NVDA_ANNOUNCING
TARGETS += $(COPY_NVDA_DEPENDENCIES)
endif
# Compile Vulkan shaders
define compile-spirv
$(call MakeTargetDir)
$(VULKAN_SHADER_COMPILER) '$(call DecodeSpace, $@)' '$(call DecodeSpace, $<)'
endef
spirv-name = $(strip $1).h
ifeq ($(VULKAN_ENABLED), true)
$(eval $(call SetupCopyFiles, COMPILE_VULKAN_SHADERS, \
SRC := $(TOPDIR)/src/$(MODULE)/share/glsl/vulkan, \
FILES := $(call FindFiles, $(TOPDIR)/src/$(MODULE)/share/glsl/vulkan), \
DEST := $(SUPPORT_OUTPUTDIR)/headers/java.desktop/vulkan/spirv, \
MACRO := compile-spirv, \
NAME_MACRO := spirv-name, \
))
VULKAN_SHADER_LIST = $(SUPPORT_OUTPUTDIR)/headers/java.desktop/vulkan/shader_list.h
$(VULKAN_SHADER_LIST): $(COMPILE_VULKAN_SHADERS)
> $(VULKAN_SHADER_LIST) $(NEWLINE) \
$(foreach f, $(patsubst $(TOPDIR)/src/$(MODULE)/share/glsl/vulkan/%,%,$(call FindFiles, $(TOPDIR)/src/$(MODULE)/share/glsl/vulkan)), \
$(ECHO) SHADER_ENTRY\($(subst .,$(COMMA),$(subst /,_,$f))\) >> $(VULKAN_SHADER_LIST) $(NEWLINE) \
$(ECHO) '#ifdef INCLUDE_BYTECODE' >> $(VULKAN_SHADER_LIST) $(NEWLINE) \
$(ECHO) '#include "spirv/$f.h"' >> $(VULKAN_SHADER_LIST) $(NEWLINE) \
$(ECHO) BYTECODE_END >> $(VULKAN_SHADER_LIST) $(NEWLINE) \
$(ECHO) '#endif' >> $(VULKAN_SHADER_LIST) $(NEWLINE) \
)
$(BUILD_LIBAWT): $(VULKAN_SHADER_LIST)
endif
TARGETS += $(BUILD_LIBAWT)
################################################################################
@@ -246,6 +282,9 @@ ifeq ($(call isTargetOs, windows macosx), false)
LIBAWT_XAWT_EXCLUDES := medialib debug wl vulkan
LIBPIPEWIRE_HEADER_DIRS := \
$(TOPDIR)/src/$(MODULE)/unix/native/libpipewire/include
LIBAWT_XAWT_EXTRA_HEADER_DIRS := \
$(LIBAWT_DEFAULT_HEADER_DIRS) \
libawt_xawt/awt \
@@ -255,7 +294,7 @@ ifeq ($(call isTargetOs, windows macosx), false)
common/font \
common/java2d/opengl \
common/java2d/x11 \
#
$(LIBPIPEWIRE_HEADER_DIRS)
LIBAWT_XAWT_CFLAGS += -DXAWT -DXAWT_HACK \
$(FONTCONFIG_CFLAGS) \
@@ -282,7 +321,7 @@ ifeq ($(call isTargetOs, windows macosx), false)
EXTRA_HEADER_DIRS := $(LIBAWT_XAWT_EXTRA_HEADER_DIRS), \
EXCLUDES := $(LIBAWT_XAWT_EXCLUDES), \
OPTIMIZATION := LOW, \
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_XAWT_CFLAGS) \
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_XAWT_CFLAGS) $(DBUS_CFLAGS) \
$(X_CFLAGS), \
WARNINGS_AS_ERRORS_xlc := false, \
DISABLED_WARNINGS_gcc := int-to-pointer-cast, \
@@ -292,6 +331,8 @@ ifeq ($(call isTargetOs, windows macosx), false)
DISABLED_WARNINGS_gcc_gtk3_interface.c := parentheses type-limits unused-function, \
DISABLED_WARNINGS_gcc_OGLBufImgOps.c := format-nonliteral, \
DISABLED_WARNINGS_gcc_OGLPaints.c := format-nonliteral, \
DISABLED_WARNINGS_gcc_screencast_pipewire.c := undef, \
DISABLED_WARNINGS_gcc_screencast_portal.c := undef, \
DISABLED_WARNINGS_gcc_sun_awt_X11_GtkFileDialogPeer.c := parentheses, \
DISABLED_WARNINGS_gcc_X11SurfaceData.c := implicit-fallthrough pointer-to-int-cast, \
DISABLED_WARNINGS_gcc_XlibWrapper.c := type-limits pointer-to-int-cast, \
@@ -299,6 +340,14 @@ ifeq ($(call isTargetOs, windows macosx), false)
DISABLED_WARNINGS_gcc_XToolkit.c := unused-result, \
DISABLED_WARNINGS_gcc_XWindow.c := unused-function, \
DISABLED_WARNINGS_gcc_keycode_cache.c := unused-function, \
DISABLED_WARNINGS_clang_aix := deprecated-non-prototype, \
DISABLED_WARNINGS_clang_aix_awt_Taskbar.c := parentheses, \
DISABLED_WARNINGS_clang_aix_OGLPaints.c := format-nonliteral, \
DISABLED_WARNINGS_clang_aix_OGLBufImgOps.c := format-nonliteral, \
DISABLED_WARNINGS_clang_aix_gtk2_interface.c := parentheses logical-op-parentheses, \
DISABLED_WARNINGS_clang_aix_gtk3_interface.c := parentheses logical-op-parentheses, \
DISABLED_WARNINGS_clang_aix_sun_awt_X11_GtkFileDialogPeer.c := parentheses, \
DISABLED_WARNINGS_clang_aix_awt_InputMethod.c := sign-compare, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN) \
-L$(INSTALL_LIBRARIES_HERE), \
@@ -323,6 +372,7 @@ ifeq ($(call isTargetOs, windows macosx), false)
common/awt \
common/java2d \
common/font \
common/wayland \
#
LIBAWT_WLAWT_EXCLUDES := medialib debug opengl x11
@@ -343,6 +393,8 @@ ifeq ($(call isTargetOs, windows macosx), false)
common/font \
common/java2d/wl \
common/java2d/vulkan \
common/wayland \
libvmahpp \
#
# Enable 'wakefield' extension for java.awt.Robot support
@@ -390,6 +442,8 @@ ifeq ($(call isTargetOs, windows macosx), false)
DISABLED_WARNINGS_CXX_gcc := undef, \
DISABLED_WARNINGS_clang := parentheses format undef \
logical-op-parentheses format-nonliteral int-conversion, \
DISABLED_WARNINGS_gcc_VKMemory.cpp := missing-field-initializers implicit-fallthrough parentheses, \
DISABLED_WARNINGS_clang_VKMemory.cpp := missing-field-initializers implicit-fallthrough parentheses, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN) \
-L$(INSTALL_LIBRARIES_HERE), \
@@ -513,6 +567,7 @@ ifeq ($(call isTargetOs, windows macosx), false)
common/awt/debug \
common/font \
common/java2d/opengl \
common/java2d/vulkan \
#
LIBAWT_HEADLESS_CFLAGS := $(CUPS_CFLAGS) $(FONTCONFIG_CFLAGS) $(X_CFLAGS) \
@@ -524,7 +579,8 @@ ifeq ($(call isTargetOs, windows macosx), false)
EXCLUDES := $(LIBAWT_HEADLESS_EXCLUDES), \
OPTIMIZATION := LOW, \
CFLAGS := $(CFLAGS_JDKLIB) \
$(LIBAWT_HEADLESS_CFLAGS), \
$(LIBAWT_HEADLESS_CFLAGS) $(DBUS_CFLAGS), \
CXXFLAGS := $(CXXFLAGS_JDKLIB), \
EXTRA_HEADER_DIRS := $(LIBAWT_HEADLESS_EXTRA_HEADER_DIRS), \
DISABLED_WARNINGS_gcc_X11Renderer.c := unused-function, \
DISABLED_WARNINGS_gcc_X11SurfaceData.c := unused-function, \
@@ -597,16 +653,26 @@ else
# Early re-canonizing has to be disabled to workaround an internal XlC compiler error
# when building libharfbuzz
ifeq ($(call isTargetOs, aix), true)
ifneq ($(TOOLCHAIN_TYPE), clang)
HARFBUZZ_CFLAGS += -qdebug=necan
endif
endif
# hb-ft.cc is not presently needed, and requires freetype 2.4.2 or later.
LIBFONTMANAGER_EXCLUDE_FILES += libharfbuzz/hb-ft.cc
# list of disabled warnings and the compilers for which it was specifically added.
# array-bounds -> GCC 12 on Alpine Linux
# parentheses -> GCC 6
# range-loop-analysis -> clang on Xcode12
HARFBUZZ_DISABLED_WARNINGS_gcc := missing-field-initializers strict-aliasing \
unused-result
unused-result array-bounds parentheses
# noexcept-type required for GCC 7 builds. Not required for GCC 8+.
HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := class-memaccess noexcept-type
# expansion-to-defined required for GCC 9 builds. Not required for GCC 10+.
# maybe-uninitialized required for GCC 8 builds. Not required for GCC 9+.
HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := class-memaccess noexcept-type \
expansion-to-defined dangling-reference maybe-uninitialized
HARFBUZZ_DISABLED_WARNINGS_clang := missing-field-initializers range-loop-analysis
HARFBUZZ_DISABLED_WARNINGS_microsoft := 4267 4244
@@ -644,12 +710,10 @@ ifeq ($(call isTargetOs, windows), true)
else ifeq ($(call isTargetOs, macosx), true)
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
X11TextRenderer.c \
fontpath.c \
lcdglyph.c \
lcdglyphDW.cpp
else
LIBFONTMANAGER_EXCLUDE_FILES += fontpath.c \
lcdglyph.c \
LIBFONTMANAGER_EXCLUDE_FILES += lcdglyph.c \
lcdglyphDW.cpp
endif
@@ -849,6 +913,7 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
#
LIBSPLASHSCREEN_HEADER_DIRS += common/awt/utility
LIBSPLASHSCREEN_HEADER_DIRS += common/awt/systemscale
ifeq ($(USE_EXTERNAL_LIBGIF), false)
LIBSPLASHSCREEN_HEADER_DIRS += libsplashscreen/giflib
@@ -890,6 +955,22 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
endif
endif
# The external libpng submitted in the jdk is a reduced version
# which does not contain .png_init_filter_functions_vsx.
# Therefore we need to disable PNG_POWERPC_VSX_OPT explicitly by setting
# it to 0. If this define is not set, it would be automatically set to 2,
# because
# "#if defined(__PPC64__) && defined(__ALTIVEC__) && defined(__VSX__)"
# expands to true. This would results in the fact that
# .png_init_filter_functions_vsx is needed in libpng.
ifeq ($(call isTargetOs, aix), true)
ifeq ($(TOOLCHAIN_TYPE), clang)
LIBSPLASHSCREEN_CFLAGS += -DPNG_POWERPC_VSX_OPT=0
endif
endif
LIBSPLASHSCREEN_CFLAGS += $(CFLAGS_JDKLIB) $(GIFLIB_CFLAGS) $(LIBJPEG_CFLAGS) $(PNG_CFLAGS) $(LIBZ_CFLAGS)
ifeq ($(call isTargetOs, macosx), true)
LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX
@@ -904,11 +985,10 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
else ifeq ($(call isTargetOs, windows), true)
LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32
else
LIBWLSPLASHSCREEN_CFLAGS := -DWITH_WL $(LIBSPLASHSCREEN_CFLAGS) $(X_CFLAGS)
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 $(X_CFLAGS)
endif
LIBSPLASHSCREEN_LIBS :=
ifeq ($(call isTargetOs, macosx), true)
LIBSPLASHSCREEN_LIBS += \
$(LIBM) -lpthread -liconv -losxapp \
@@ -924,48 +1004,59 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
endif
LIBSPLASHSCREEN_HEADER_DIRS += \
libsplashscreen \
libosxapp \
java.base:libjava \
#
LIBSPLASHSCREEN_EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c
LIBSPLASHSCREEN_LDFLAGS := $(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN)
LIBSPLASHSCREEN_LIBS := $(JDKLIB_LIBS) $(LIBSPLASHSCREEN_LIBS) $(LIBZ_LIBS) $(GIFLIB_LIBS) $(LIBJPEG_LIBS) $(PNG_LIBS)
LIBSPLASHSCREEN_DISABLED_WARNINGS_gcc := sign-compare implicit-fallthrough shift-negative-value maybe-uninitialized unused-function type-limits unused-result
LIBSPLASHSCREEN_DISABLED_WARNINGS_clang := deprecated-non-prototype format-nonliteral sign-compare incompatible-pointer-types deprecated-declarations
LIBSPLASHSCREEN_DISABLED_WARNINGS_microsoft := 4018 4267 4244
LIBWLSPLASHSCREEN_HEADER_DIRS := common/wayland
LIBWLSPLASHSCREEN_EXTRA_SRC := common/wayland
$(eval $(call SetupJdkLibrary, BUILD_LIBSPLASHSCREEN, \
NAME := splashscreen, \
EXTRA_SRC := $(LIBSPLASHSCREEN_EXTRA_SRC), \
EXTRA_SRC := $(LIBSPLASHSCREEN_EXTRA_SRC) libxsplashscreen libsplashscreen, \
EXCLUDE_SRC_PATTERNS := $(LIBSPLASHSCREEN_EXCLUDE_SRC_PATTERNS), \
EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \
DISABLED_WARNINGS_gcc := $(LIBSPLASHSCREEN_DISABLED_WARNINGS_gcc), \
DISABLED_WARNINGS_clang := $(LIBSPLASHSCREEN_DISABLED_WARNINGS_clang), \
DISABLED_WARNINGS_microsoft := $(LIBSPLASHSCREEN_DISABLED_WARNINGS_microsoft), \
EXCLUDE_FILES := $(LIBSPLASHSCREEN_EXCLUDE_FILES), \
EXCLUDES := $(LIBSPLASHSCREEN_EXCLUDES), \
OPTIMIZATION := LOW, \
CFLAGS := $(CFLAGS_JDKLIB) $(LIBSPLASHSCREEN_CFLAGS) \
$(GIFLIB_CFLAGS) $(LIBJPEG_CFLAGS) $(PNG_CFLAGS) $(LIBZ_CFLAGS), \
EXTRA_HEADER_DIRS := $(LIBSPLASHSCREEN_HEADER_DIRS), \
DISABLED_WARNINGS_gcc_dgif_lib.c := sign-compare, \
DISABLED_WARNINGS_gcc_jcmaster.c := implicit-fallthrough, \
DISABLED_WARNINGS_gcc_jdphuff.c := shift-negative-value, \
DISABLED_WARNINGS_gcc_png.c := maybe-uninitialized, \
DISABLED_WARNINGS_gcc_pngerror.c := maybe-uninitialized, \
DISABLED_WARNINGS_gcc_splashscreen_gfx_impl.c := implicit-fallthrough maybe-uninitialized, \
DISABLED_WARNINGS_gcc_splashscreen_impl.c := implicit-fallthrough sign-compare unused-function, \
DISABLED_WARNINGS_gcc_splashscreen_sys.c := type-limits unused-result, \
DISABLED_WARNINGS_clang := deprecated-non-prototype, \
DISABLED_WARNINGS_clang_dgif_lib.c := sign-compare, \
DISABLED_WARNINGS_clang_gzwrite.c := format-nonliteral, \
DISABLED_WARNINGS_clang_splashscreen_impl.c := sign-compare, \
DISABLED_WARNINGS_clang_splashscreen_png.c := incompatible-pointer-types, \
DISABLED_WARNINGS_clang_splashscreen_sys.m := deprecated-declarations, \
DISABLED_WARNINGS_microsoft_dgif_lib.c := 4018 4267, \
DISABLED_WARNINGS_microsoft_splashscreen_impl.c := 4018 4267 4244, \
DISABLED_WARNINGS_microsoft_splashscreen_png.c := 4267, \
DISABLED_WARNINGS_microsoft_splashscreen_sys.c := 4267 4244, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN), \
CFLAGS := $(LIBSPLASHSCREEN_CFLAGS), \
EXTRA_HEADER_DIRS := libxsplashscreen $(LIBSPLASHSCREEN_HEADER_DIRS), \
LDFLAGS := $(LIBSPLASHSCREEN_LDFLAGS), \
LDFLAGS_macosx := -L$(INSTALL_LIBRARIES_HERE), \
LDFLAGS_windows := -delayload:user32.dll, \
LIBS := $(JDKLIB_LIBS) $(LIBSPLASHSCREEN_LIBS) $(LIBZ_LIBS) \
$(GIFLIB_LIBS) $(LIBJPEG_LIBS) $(PNG_LIBS), \
LIBS := $(LIBSPLASHSCREEN_LIBS), \
LIBS_aix := -liconv, \
))
$(eval $(call SetupJdkLibrary, BUILD_LIBWLSPLASHSCREEN, \
NAME := wlsplashscreen, \
EXTRA_SRC := $(LIBSPLASHSCREEN_EXTRA_SRC) $(LIBWLSPLASHSCREEN_EXTRA_SRC) libwlsplashscreen libsplashscreen, \
EXCLUDE_SRC_PATTERNS := $(LIBSPLASHSCREEN_EXCLUDE_SRC_PATTERNS), \
DISABLED_WARNINGS_gcc := $(LIBSPLASHSCREEN_DISABLED_WARNINGS_gcc), \
DISABLED_WARNINGS_clang := $(LIBSPLASHSCREEN_DISABLED_WARNINGS_clang), \
EXCLUDE_FILES := $(LIBSPLASHSCREEN_EXCLUDE_FILES), \
EXCLUDES := $(LIBSPLASHSCREEN_EXCLUDES), \
OPTIMIZATION := LOW, \
CFLAGS := $(LIBWLSPLASHSCREEN_CFLAGS), \
EXTRA_HEADER_DIRS := $(LIBSPLASHSCREEN_HEADER_DIRS) $(LIBWLSPLASHSCREEN_HEADER_DIRS) libwlsplashscreen, \
LDFLAGS := $(LIBSPLASHSCREEN_LDFLAGS) -lrt, \
LIBS := -lwayland-client -lwayland-cursor $(LIBSPLASHSCREEN_LIBS) -lrt, \
LIBS_aix := -liconv, \
))
TARGETS += $(BUILD_LIBSPLASHSCREEN)
ifeq ($(call isTargetOs, linux), true)
TARGETS += $(BUILD_LIBWLSPLASHSCREEN)
endif
ifeq ($(call isTargetOs, macosx), true)
$(BUILD_LIBSPLASHSCREEN): $(call FindLib, $(MODULE), osxapp)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 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
@@ -32,6 +32,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJ2GSS, \
OPTIMIZATION := LOW, \
CFLAGS := $(CFLAGS_JDKLIB), \
DISABLED_WARNINGS_gcc := undef, \
DISABLED_WARNINGS_clang_aix := undef, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN), \
LIBS := $(LIBDL), \

View File

@@ -1,10 +1,12 @@
#
# Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
# 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
@@ -21,4 +23,15 @@
# questions.
#
exclusiveAccess.dirs=.
include CopyCommon.gmk
################################################################################
XML_LIB_SRC := $(TOPDIR)/src/java.xml/share/conf
$(CONF_DST_DIR)/jaxp.properties: $(XML_LIB_SRC)/jaxp.properties
$(call install-file)
TARGETS := $(CONF_DST_DIR)/jaxp.properties
################################################################################

Some files were not shown because too many files have changed in this diff Show More