Compare commits

...

1475 Commits

Author SHA1 Message Date
Coleen Phillimore
11a37c829c 8351165: Remove unused includes from vmStructs
Reviewed-by: kbarrett
2025-03-05 19:28:39 +00:00
Justin Lu
c3b48196af 8351074: Disallow null prefix and suffix in DecimalFormat
Reviewed-by: naoto
2025-03-05 18:12:26 +00:00
Archie Cobbs
6012e8d250 8350808: Small typos in JShell method SnippetEvent.toString()
Reviewed-by: jlahoda
2025-03-05 17:33:54 +00:00
Archie Cobbs
661bd5bfe8 8343478: Remove unnecessary @SuppressWarnings annotations (core-libs)
Reviewed-by: darcy, asemenyuk, joehw
2025-03-05 17:32:59 +00:00
Xiaolong Peng
61d9ab9717 8350854: Include thread counts in safepoint logging
Reviewed-by: shade, dholmes
2025-03-05 16:35:46 +00:00
Serhiy Sachkov
ea9e3cfe03 8281511: java/net/ipv6tests/UdpTest.java fails with checkTime failed
Reviewed-by: dfuchs
2025-03-05 16:16:58 +00:00
SendaoYan
caaf409845 8350546: Several java/net/InetAddress tests fails UnknownHostException
Reviewed-by: dfuchs, myankelevich
2025-03-05 12:57:56 +00:00
SendaoYan
062b7c7348 8351115: Test AOTClassLinkingVMOptions.java fails after JDK-8348322
Reviewed-by: dholmes, iklam
2025-03-05 12:55:33 +00:00
Matthias Baesken
a88e8cd0d2 8350952: Remove some non present files from OPT_SPEED_SRC list
Reviewed-by: dholmes, clanger
2025-03-05 12:30:09 +00:00
Sergey Chernyshev
de29ef3bf3 8343191: Cgroup v1 subsystem fails to set subsystem path
Co-authored-by: Severin Gehwolf <sgehwolf@openjdk.org>
Reviewed-by: sgehwolf, mbaesken
2025-03-05 10:32:36 +00:00
Emanuel Peter
75f028b46b 8348657: compiler/loopopts/superword/TestEquivalentInvariants.java timed out
Reviewed-by: thartmann
2025-03-05 10:01:26 +00:00
Fei Yang
b1a21b563e 8351101: RISC-V: C2: Small improvement to MacroAssembler::revb
Reviewed-by: fjiang, mli
2025-03-05 02:17:22 +00:00
Jatin Bhateja
62fa33a870 8351158: Incorrect APX EGPR register save ordering
Reviewed-by: kvn, sviswanathan
2025-03-05 01:34:15 +00:00
Dean Long
20ea218ce5 8336042: Caller/callee param size mismatch in deoptimization causes crash
Co-authored-by: Richard Reingruber <rrich@openjdk.org>
Reviewed-by: pchilanomate, rrich, vlivanov, never
2025-03-04 23:10:52 +00:00
Cesar Soares Lucas
38b4d46c1f 8351081: Off-by-one error in ShenandoahCardCluster
Reviewed-by: wkemper
2025-03-04 21:44:40 +00:00
Alexander Zvegintsev
29de20dbc2 8280991: [XWayland] No displayChanged event after setDisplayMode call
Reviewed-by: honkar, prr
2025-03-04 20:55:45 +00:00
Alexey Semenyuk
3e86b3a879 8350013: Add a test for JDK-8150442
Reviewed-by: almatvee
2025-03-04 20:30:52 +00:00
Doug Simon
a21302bb32 8351036: [JVMCI] value not an s2: -32776
Reviewed-by: yzheng, dlong
2025-03-04 20:10:57 +00:00
Weijun Wang
0753376b0c 8297531: sun/security/krb5/MicroTime.java fails with "Exception: What? only 100 musec precision?"
Reviewed-by: mullan, abarashev
2025-03-04 19:32:33 +00:00
Erik Gahlin
55987925fd 8351064: JFR: Consistent timestamps
Reviewed-by: mgronlun
2025-03-04 17:39:55 +00:00
William Kemper
fe806caa16 8350605: assert(!heap->is_uncommit_in_progress()) failed: Cannot uncommit bitmaps while resetting them
Reviewed-by: kdnilsen, ysr
2025-03-04 17:11:59 +00:00
Justin Lu
5b8d3491bf 4745837: Make grouping usage during parsing apparent in relevant NumberFormat methods
Reviewed-by: naoto
2025-03-04 17:08:54 +00:00
Magnus Ihse Bursie
4aa4b46440 8351154: Use -ftrivial-auto-var-init=pattern for clang too
Reviewed-by: kbarrett, erikj
2025-03-04 16:59:19 +00:00
Prasanta Sadhukhan
daf0213abc 8350924: javax/swing/JMenu/4213634/bug4213634.java fails
Reviewed-by: aivanov, tr
2025-03-04 16:58:15 +00:00
Alexey Semenyuk
6a31aaeb00 8350594: Misleading warning about install dir for DMG packaging
Reviewed-by: almatvee
2025-03-04 16:22:28 +00:00
Alexander Zvegintsev
216f113f8b 8344892: beans/finder/MethodFinder.findMethod incorrectly returns null
Reviewed-by: aivanov, serb
2025-03-04 15:42:03 +00:00
Ferenc Rakoczi
3230894bdd 8348561: Add aarch64 intrinsics for ML-DSA
Reviewed-by: adinn
2025-03-04 14:41:35 +00:00
Coleen Phillimore
8073914af7 8350974: The os_cpu VM_STRUCTS, VM_TYPES, etc have no declarations and should be removed
Reviewed-by: kvn, dholmes
2025-03-04 12:32:23 +00:00
Andrew Dinn
7ee89a5301 8350893: Use generated names for hand generated opto runtime blobs
Reviewed-by: kvn
2025-03-04 12:18:56 +00:00
Magnus Ihse Bursie
fae37aaae8 8345627: [REDO] Use gcc12 -ftrivial-auto-var-init=pattern in debug builds
Reviewed-by: erikj, kbarrett
2025-03-04 10:27:52 +00:00
Axel Boldt-Christmas
1f10ffba88 8350851: ZGC: Reduce size of ZAddressOffsetMax scaling data structures
Reviewed-by: eosterlund, jsikstro
2025-03-04 07:30:10 +00:00
Ioi Lam
4fc72b8e4b 8351082: Remove dead code for estimating CDS archive size
Reviewed-by: ccheung
2025-03-04 05:23:30 +00:00
Ioi Lam
b6e2d66cc4 8351087: Combine scratch object tables in heapShared.cpp
Reviewed-by: ccheung
2025-03-04 05:23:16 +00:00
Kim Barrett
d9b98f72c2 8350771: Fix -Wzero-as-null-pointer-constant warning in nsk/monitoring ThreadController utility
Reviewed-by: dholmes
2025-03-04 04:27:24 +00:00
Xiaolong Peng
7c173fde42 8351077: Shenandoah: Update comments in ShenandoahConcurrentGC::op_reset_after_collect
Reviewed-by: wkemper, ysr
2025-03-04 03:56:16 +00:00
Joe Wang
96613cc538 8349516: StAXStream2SAX.handleCharacters() fails on empty CDATA
Reviewed-by: naoto
2025-03-04 03:49:17 +00:00
William Kemper
3a8a432c05 8349094: GenShen: Race between control and regulator threads may violate assertions
Reviewed-by: ysr, kdnilsen
2025-03-04 00:41:39 +00:00
Brian Burkhalter
99fb350bf6 8350654: (fs) Files.createTempDirectory should say something about the default file permissions when no file attributes specified
Reviewed-by: alanb
2025-03-03 21:25:11 +00:00
Vladimir Ivanov
768b02410f 8350682: [JMH] vector.IndexInRangeBenchmark failed with IndexOutOfBoundsException for size=1024
Reviewed-by: xgong, drwhite, sviswanathan
2025-03-03 21:05:19 +00:00
Calvin Cheung
c4b516dfe7 8348322: AOT cache creation crashes with "All cached hidden classes must be aot-linkable" when AOTInvokeDynamicLinking is disabled
Co-authored-by: Ioi Lam <iklam@openjdk.org>
Reviewed-by: iklam, matsaave
2025-03-03 18:49:11 +00:00
Hamlin Li
e470f474ee 8350095: RISC-V: Refactor string_compare
Reviewed-by: fyang
2025-03-03 18:31:56 +00:00
Hamlin Li
f53de9208c 8350931: RISC-V: remove unnecessary src register for fp_sqrt_d/f
Reviewed-by: fyang
2025-03-03 18:30:43 +00:00
Hamlin Li
e1fc14fa17 8350940: RISC-V: remove unnecessary assert_different_registers in minmax_fp
Reviewed-by: fyang
2025-03-03 18:29:36 +00:00
Hamlin Li
79880e5637 8351033: RISC-V: TestFloat16ScalarOperations asserts with offset (4210) is too large to be patched in one beq/bge/bgeu/blt/bltu/bne instruction!
Reviewed-by: fyang
2025-03-03 18:28:28 +00:00
Jiangli Zhou
bb70896e35 8350903: Remove explicit libjvm.so dependency for libVThreadEventTest
Reviewed-by: dholmes, alanb
2025-03-03 17:36:31 +00:00
Xiaolong Peng
7c187b5d81 8338737: Shenandoah: Reset marking bitmaps after the cycle
Reviewed-by: wkemper
2025-03-03 17:20:54 +00:00
Thomas Schatzl
3602c8cfd8 8350955: Fix repetitions of the word "the" in runtime component comments
Reviewed-by: coleenp
2025-03-03 16:51:56 +00:00
Kim Barrett
c988d7d647 8350767: Fix -Wzero-as-null-pointer-constant warnings in nsk jni stress tests
Reviewed-by: coleenp
2025-03-03 15:55:07 +00:00
Kim Barrett
67dfdfa6ea 8350623: Fix -Wzero-as-null-pointer-constant warnings in nsk native test utilities
Reviewed-by: coleenp
2025-03-03 15:53:47 +00:00
Afshin Zafari
4a51c61b2c 8350567: NMT: update VMATree::register_mapping to copy the existing tag of the region
Reviewed-by: jsjolen, stuefe
2025-03-03 15:39:35 +00:00
Thomas Stuefe
db69ec9e58 8344009: Improve compiler memory statistics
Reviewed-by: rcastanedalo, asmehra
2025-03-03 14:39:19 +00:00
Thomas Schatzl
f47232ad71 8350954: Fix repetitions of the word "the" in gc component comments
Reviewed-by: iwalulya, ayang
2025-03-03 13:57:57 +00:00
Thomas Schatzl
30b0c60980 8350956: Fix repetitions of the word "the" in compiler component comments
Reviewed-by: rcastanedalo
2025-03-03 12:31:33 +00:00
Coleen Phillimore
8b0468faf1 8315488: Remove outdated and unused ciReplay support from SA
Reviewed-by: kvn, cjplummer, yzheng
2025-03-03 12:08:18 +00:00
Marc Chevalier
4109c73a78 8349523: Unused runtime calls to drem/frem should be removed
Reviewed-by: thartmann, kvn, chagedorn
2025-03-03 09:32:54 +00:00
SendaoYan
b054d24df5 8350584: Check the usage of LOG_PLEASE
Reviewed-by: stuefe
2025-03-03 07:48:12 +00:00
David Holmes
717c4997a2 8351014: ProblemList the com/sun/management/OperatingSystemMXBean cpuLoad tests on Windows
Reviewed-by: lmesnik
2025-03-03 06:41:59 +00:00
Jasmine Karthikeyan
3657e92ead 8349637: Integer.numberOfLeadingZeros outputs incorrectly in certain cases
Reviewed-by: thartmann, qamai, jbhateja
2025-03-03 05:18:55 +00:00
Amit Kumar
93c878455b 8350716: [s390] intrinsify Thread.currentThread()
Reviewed-by: lucy, mdoerr
2025-03-03 03:12:37 +00:00
Xiaohong Gong
d48ddfe49a 8350748: VectorAPI: Method "checkMaskFromIndexSize" should be force inlined
Reviewed-by: psandoz
2025-03-03 02:22:15 +00:00
Kim Barrett
0a1eea112d 8345492: Fix -Wzero-as-null-pointer-constant warnings in adlc code
Reviewed-by: kvn, dlong
2025-03-02 23:36:27 +00:00
Ioi Lam
157e5ad4a3 8350916: Remove misleading warning "Cannot dump shared archive while using shared archive"
Reviewed-by: ccheung
2025-03-02 03:43:46 +00:00
Mikael Vidstedt
785e7b47e0 8350819: Ignore core files
Reviewed-by: erikj, dholmes
2025-02-28 23:34:07 +00:00
Leonid Mesnik
3c72c04de7 8350818: Improve OperatingSystemMXBean cpu load tests to not accept -1.0 by default
Reviewed-by: kevinw
2025-02-28 22:37:41 +00:00
Alisen Chung
6b719eeebc 8348596: Update FreeType to 2.13.3
Reviewed-by: azvegint, dnguyen, prr
2025-02-28 21:22:20 +00:00
Alexander Matveev
a87dd1a75f 8347139: [macos] Test tools/jpackage/share/InOutPathTest.java failed: "execution error: Finder got an error: AppleEvent timed out."
Reviewed-by: asemenyuk
2025-02-28 20:22:23 +00:00
Chen Liang
c7fa499bf5 8350118: Simplify the layout access VarHandle
Reviewed-by: mcimadamore, jvernee, erikj
2025-02-28 20:01:17 +00:00
Volkan Yazici
fb659eba02 8350915: [JMH] test SocketChannelConnectionSetup failed for 2 threads config
Reviewed-by: michaelm
2025-02-28 19:38:25 +00:00
Justin Lu
3a7d986878 8350646: Calendar.Builder.build() Throws ArrayIndexOutOfBoundsException
Reviewed-by: naoto
2025-02-28 19:37:36 +00:00
Leonid Mesnik
197004f4c6 8350820: OperatingSystemMXBean CpuLoad() methods return -1.0 on Windows
Reviewed-by: kevinw, jwaters
2025-02-28 18:13:53 +00:00
Calvin Cheung
e98df71d9c 8348028: Unable to run gtests with CDS enabled
Reviewed-by: dholmes, iklam, ihse
2025-02-28 17:08:25 +00:00
Thomas Schatzl
d6c4be672f 8350758: G1: Use actual last prediction in accumulated survivor rate prediction too
Reviewed-by: ayang, iwalulya
2025-02-28 14:16:52 +00:00
Ivan Bereziuk
2019f44539 8343832: Enhance test summary with number of skipped tests
Co-authored-by: Magnus Ihse Bursie <ihse@openjdk.org>
Reviewed-by: ihse, erikj
2025-02-28 13:46:17 +00:00
Johan Sjölen
ac76d8d63f 8350824: New async logging gtest StallingModePreventsDroppedMessages fails
Reviewed-by: mbaesken, dholmes
2025-02-28 09:48:17 +00:00
Hamlin Li
eada1ea8d2 8350855: RISC-V: print offset by assert of patch_offset_in_conditional_branch
Reviewed-by: fyang
2025-02-28 09:05:42 +00:00
Matthias Baesken
2af76de05a 8350683: Non-C2 / minimal JVM crashes in the build on ppc64 platforms
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Reviewed-by: mdoerr, amitkumar
2025-02-28 07:36:35 +00:00
Kelvin Nilsen
ab4b0ef924 8350889: GenShen: Break out of infinite loop of old GC cycles
Reviewed-by: wkemper, ysr
2025-02-27 23:23:40 +00:00
Kelvin Nilsen
0a4c5a8a48 8347804: GenShen: Crash with small GCCardSizeInBytes and small Java heap
Reviewed-by: wkemper
2025-02-27 23:10:16 +00:00
Vladimir Ivanov
f1398ecbe4 8350701: [JMH] test foreign.AllocFromSliceTest failed with Exception for size>1024
Reviewed-by: pminborg
2025-02-27 20:35:58 +00:00
Kelvin Nilsen
3ae80bfb60 8349766: GenShen: Bad progress after degen does not always need full gc
Reviewed-by: wkemper
2025-02-27 18:40:20 +00:00
Marc Chevalier
2fd7156110 8347426: Invalid value used for enum Cell in iTypeFlow::StateVector::meet_exception
Reviewed-by: dlong, kvn
2025-02-27 18:06:50 +00:00
Roland Westrelin
939815fdcf 8347040: C2: assert(!loop->_body.contains(in)) failed
Reviewed-by: chagedorn, kvn
2025-02-27 16:47:31 +00:00
Nizar Benalla
8323ddfe18 8346659: SnippetTaglet should report an error if provided ambiguous links
Reviewed-by: hannesw, liach
2025-02-27 14:52:18 +00:00
Kuai Wei
3c9d64eb07 8350858: [IR Framework] Some tests failed on Cascade Lake
Reviewed-by: chagedorn, epeter
2025-02-27 13:55:59 +00:00
Matthias Baesken
d6d94472c2 8350786: Some java/lang jtreg tests miss requires vm.hasJFR
Reviewed-by: alanb
2025-02-27 13:34:38 +00:00
Robert Toyonaga
e80b76b663 8276995: Bug in jdk.jfr.event.gc.collection.TestSystemGC
Reviewed-by: egahlin, dholmes
2025-02-27 12:59:47 +00:00
Ramkumar Sunderbabu
799ac5288e 8314840: 3 gc/epsilon tests ignore external vm options
Reviewed-by: tschatzl
2025-02-27 12:58:35 +00:00
Emanuel Peter
63e0fc4331 8350841: ProblemList jdk/incubator/vector/Long256VectorTests.java
Reviewed-by: thartmann
2025-02-27 11:29:02 +00:00
SendaoYan
acc6f19cec 8350614: [JMH] jdk.incubator.vector.VectorCommutativeOperSharingBenchmark fails
Reviewed-by: redestad
2025-02-27 11:06:50 +00:00
Xiaolong Peng
01bd7e417e 8350314: Shenandoah: Capture thread state sync times in GC timings
Reviewed-by: ysr, shade, wkemper
2025-02-27 09:49:29 +00:00
Andrew Dinn
4522f128a3 8349921: Crash in codeBuffer.cpp:1004: guarantee(sect->end() <= tend) failed: sanity
Reviewed-by: kvn, dlong
2025-02-27 09:31:14 +00:00
Richard Reingruber
e4d3c97c0f 8350111: [PPC] AsyncGetCallTrace crashes when called while handling SIGTRAP
Reviewed-by: mdoerr, stuefe
2025-02-27 09:24:15 +00:00
Emanuel Peter
885338b5f3 8323582: C2 SuperWord AlignVector: misaligned vector memory access with unaligned native memory
Reviewed-by: roland, kvn
2025-02-27 06:58:43 +00:00
SendaoYan
bb48b7319c 8350723: RISC-V: debug.cpp help() is missing riscv line for pns
Reviewed-by: fyang
2025-02-27 06:16:57 +00:00
SendaoYan
b29f8b0478 8350665: SIZE_FORMAT_HEX macro undefined in gtest
Reviewed-by: coleenp, stuefe
2025-02-27 06:15:59 +00:00
Jiangli Zhou
78c18cfbce 8349399: GHA: Add static-jdk build on linux-x64
Reviewed-by: shade, ihse
2025-02-26 23:23:42 +00:00
David Holmes
e43960a017 8350616: Skip ValidateHazardPtrsClosure in non-debug builds
Reviewed-by: kbarrett, tschatzl, shade
2025-02-26 20:14:11 +00:00
Xiaolong Peng
9ec46968fb 8350313: Include timings for leaving safepoint in safepoint logging
Reviewed-by: shade, dholmes
2025-02-26 17:29:12 +00:00
Aleksey Shipilev
ec6624b54e 8350649: Class unloading accesses/resurrects dead Java mirror after JDK-8346567
Reviewed-by: coleenp, egahlin
2025-02-26 16:41:16 +00:00
Brian Burkhalter
9477c705c0 8024695: new File("").exists() returns false whereas it is the current working directory
Reviewed-by: alanb, rriggs, lancea
2025-02-26 16:24:25 +00:00
Thomas Stuefe
3e46480dcf 8350770: [BACKOUT] Protection zone for easier detection of accidental zero-nKlass use
Reviewed-by: mdoerr, rkennke
2025-02-26 15:57:37 +00:00
Aleksey Shipilev
bd112c4fab 8350443: GHA: Split static-libs-bundles into a separate job
Reviewed-by: ihse, yzheng
2025-02-26 15:00:47 +00:00
Hannes Wallnöfer
2731712383 8287749: Re-enable javadoc -serialwarn option
Reviewed-by: erikj
2025-02-26 14:59:18 +00:00
Matthew Donovan
0f82268134 8345598: Upgrade NSS binaries for interop tests
Reviewed-by: weijun, rhalade
2025-02-26 14:14:33 +00:00
Johan Sjölen
ea2c923849 8323807: Async UL: Add a stalling mode to async UL
Reviewed-by: dholmes, aboldtch
2025-02-26 12:51:35 +00:00
Matthias Baesken
e7d4b360fe 8350667: Remove startThread_lock() and _startThread_lock on AIX
Reviewed-by: stuefe, jkern
2025-02-26 12:40:53 +00:00
Coleen Phillimore
1e18fffee4 8328473: StringTable and SymbolTable statistics delay time to safepoint
Reviewed-by: shade, eosterlund
2025-02-26 11:49:09 +00:00
Thomas Schatzl
a0dd565432 8350643: G1: Make loop iteration variable type correspond to limit in G1SurvRateGroup
Reviewed-by: ayang, kbarrett
2025-02-26 11:31:48 +00:00
Thomas Schatzl
aac9cb4537 8349906: G1: Improve initial survivor rate for newly used young regions
Reviewed-by: kbarrett, iwalulya
2025-02-26 10:30:01 +00:00
Tagir F. Valeev
a431046404 8350518: org.openjdk.bench.java.util.TreeMapUpdate.compute fails with "java.lang.IllegalArgumentException: key out of range"
Reviewed-by: liach, skuksenko
2025-02-26 10:08:29 +00:00
Thomas Stuefe
a70eba8e42 8330174: Protection zone for easier detection of accidental zero-nKlass use
Co-authored-by: Ioi Lam <iklam@openjdk.org>
Reviewed-by: iklam, rkennke
2025-02-26 09:51:56 +00:00
Patrick Zhang
f529bf712d 8350483: AArch64: turn on signum intrinsics by default on Ampere CPUs
Reviewed-by: aph
2025-02-26 09:07:07 +00:00
Calvin Cheung
037e47112b 8350666: cmp-baseline builds fail after JDK-8280682
Reviewed-by: iklam
2025-02-25 23:49:52 +00:00
Naoto Sato
c8a521fdda 8345213: JVM Prefers /etc/timezone Over /etc/localtime on Debian 12
Reviewed-by: joehw, jpai, alanb
2025-02-25 23:03:18 +00:00
Ioi Lam
86024ebdb0 8348426: Generate binary file for -XX:AOTMode=record -XX:AOTConfiguration=file
Reviewed-by: ccheung, asmehra, kvn, iveresov
2025-02-25 22:56:25 +00:00
Alexey Semenyuk
267d69bed6 8326447: jpackage creates Windows installers that cannot be signed
Reviewed-by: almatvee
2025-02-25 22:49:26 +00:00
Alexey Semenyuk
2efb0336e0 8350601: Miscellaneous updates to jpackage test lib
Reviewed-by: almatvee
2025-02-25 21:53:24 +00:00
Damon Nguyen
d4fdc796aa 8344981: [REDO] JDK-6672644 JComboBox still scrolling if switch to another window and return back
Co-authored-by: Alexander Zvegintsev <azvegint@openjdk.org>
Reviewed-by: azvegint, psadhukhan, honkar
2025-02-25 19:40:39 +00:00
Archie Cobbs
b78043fdc6 8320220: Compilation of cyclic hierarchy causes infinite recursion
Reviewed-by: vromero, jlahoda
2025-02-25 19:39:21 +00:00
Archie Cobbs
a3188e0406 8349991: GraphUtils.java can use String.replace() instead of String.replaceAll()
Reviewed-by: mcimadamore
2025-02-25 19:39:00 +00:00
Ioi Lam
d422abc55a 8350668: has_extra_module_paths in filemap.cpp may be uninitialized
Reviewed-by: ccheung, shade
2025-02-25 19:25:18 +00:00
Leonid Mesnik
829d7a845e 8339889: Several compiler tests ignore vm flags and not marked as flagless
Reviewed-by: thartmann
2025-02-25 19:20:05 +00:00
Leonid Mesnik
0151b15b7c 8348367: Remove hotspot_not_fast_compiler and hotspot_slow_compiler test groups
Reviewed-by: thartmann, chagedorn
2025-02-25 19:19:40 +00:00
Mikhail Yankelevich
c5992ca27b 8349533: Refactor validator tests shell files to java
Reviewed-by: weijun
2025-02-25 18:24:42 +00:00
Volodymyr Paprotski
dea7a9f0d6 8350516: Update model numbers for ECore-based cpus
Reviewed-by: sviswanathan, vaivanov
2025-02-25 16:28:25 +00:00
Mark Powers
5023971640 8267068: Incomplete @throws javadoc for various javax.crypto.spec classes
Reviewed-by: valeriep, jnimeh
2025-02-25 15:21:07 +00:00
Stuart Marks
08bc59da9b 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned
Reviewed-by: rgiulietti, shade, alanb, rriggs, liach
2025-02-25 15:18:30 +00:00
Matthias Baesken
b17c0b63a1 8350585: InlineSecondarySupersTest must be guarded on ppc64 by COMPILER2
Reviewed-by: amitkumar, mdoerr
2025-02-25 14:38:19 +00:00
Johan Sjölen
62f39bd646 8350636: Potential null-pointer dereference in MallocSiteTable::new_entry
Reviewed-by: dholmes
2025-02-25 14:30:24 +00:00
Matthias Baesken
cfeb7d6c96 8350497: os::create_thread unify init thread attributes part across UNIX platforms
Reviewed-by: dholmes
2025-02-25 13:30:54 +00:00
Kevin Walls
8cfebc41dc 8350571: Remove mention of Tonga test suite from JMX tests
Reviewed-by: cjplummer, lmesnik, sspitsyn
2025-02-25 12:54:30 +00:00
Coleen Phillimore
c413549eb7 8349860: Make Class.isArray(), Class.isInterface() and Class.isPrimitive() non-native
Reviewed-by: dlong, rriggs, vlivanov, yzheng, liach
2025-02-25 12:35:54 +00:00
Albert Mingkun Yang
a9c9f7f0cb 8192647: GClocker induced GCs can starve threads requiring memory leading to OOME
Reviewed-by: tschatzl, iwalulya, egahlin
2025-02-25 11:14:20 +00:00
Jaikiran Pai
aa70f0ae8b 8347348: Clarify that the HTTP server in jdk.httpserver module is not a full featured server
Reviewed-by: michaelm, dfuchs
2025-02-25 10:57:22 +00:00
Matthias Baesken
d551dacaef 8350103: Test containers/systemd/SystemdMemoryAwarenessTest.java fails on Linux ppc64le SLES15 SP6
Co-authored-by: Severin Gehwolf <sgehwolf@openjdk.org>
Reviewed-by: sgehwolf, asteiner
2025-02-25 08:19:56 +00:00
Adam Sotona
ab86a13519 8350548: java.lang.classfile package javadoc has errors
Reviewed-by: liach
2025-02-25 08:18:52 +00:00
SendaoYan
e1081cffcb 8348536: Remove remain SIZE_FORMAT usage after JDK-8347990
Reviewed-by: dholmes, kbarrett
2025-02-25 06:12:39 +00:00
Ioi Lam
a6cc37fdbe 8349888: AOTMode=create crashes with EpsilonGC
Reviewed-by: shade, kvn
2025-02-25 05:38:39 +00:00
Bradford Wetmore
990d40e98d 8350476: Fix typo introduced in JDK-8350147
Reviewed-by: jnimeh, jpai
2025-02-24 22:57:03 +00:00
Rajat Mahajan
39cb493c36 8348106: Catch C++ exception in Java_sun_awt_windows_WTaskbarPeer_setOverlayIcon
Reviewed-by: abhiscxk, aivanov, azvegint, serb, dmarkov
2025-02-24 20:21:20 +00:00
Calvin Cheung
ddb2569110 8280682: Refactor AOT code source validation checks
Co-authored-by: Ioi Lam <iklam@openjdk.org>
Reviewed-by: iklam, asmehra, dholmes, kvn
2025-02-24 19:54:48 +00:00
Erik Österlund
65f79c145b 8347335: ZGC: Use limitless mark stack memory
Reviewed-by: aboldtch, iwalulya
2025-02-24 12:03:42 +00:00
Jatin Bhateja
e410af00e6 8342393: Promote commutative vector IR node sharing
Reviewed-by: vlivanov, epeter, sviswanathan
2025-02-24 07:40:17 +00:00
Per Minborg
f755fadc3d 8349653: Clarify the docs for MemorySegment::reinterpret
Reviewed-by: jvernee, mcimadamore
2025-02-24 07:38:29 +00:00
Christian Hagedorn
a5c9a4dbde 8349032: C2: Parse Predicate refactoring in Loop Unswitching broke fix for JDK-8290850
Reviewed-by: kvn, thartmann
2025-02-24 07:28:05 +00:00
Ao Qi
302bed055c 8350499: Minimal build fails with slowdebug builds
Reviewed-by: kbarrett, dholmes
2025-02-24 03:17:56 +00:00
David Holmes
0795d11bfc 8350464: The flags to set the native priority for the VMThread and Java threads need a broader range
Reviewed-by: stuefe, shade
2025-02-24 03:13:55 +00:00
Jiangli Zhou
05b481294c 8350041: Skip test/jdk/java/lang/String/nativeEncoding/StringPlatformChars.java on static JDK
Reviewed-by: alanb
2025-02-23 02:35:57 +00:00
Fei Yang
a891630817 8350480: RISC-V: Relax assertion about registers in C2_MacroAssembler::minmax_fp
Reviewed-by: mli, fjiang
2025-02-22 10:16:51 +00:00
SendaoYan
5cbd9d1fe1 8349959: Test CR6740048.java passes unexpectedly missing CR6740048.xsd
Reviewed-by: joehw
2025-02-22 03:11:42 +00:00
Dmitry Chuyko
25322aae8e 8350258: AArch64: Client build fails after JDK-8347917
Reviewed-by: dlong, kvn
2025-02-21 21:43:54 +00:00
Fernando Guallini
825ab20ba9 8350456: Test javax/crypto/CryptoPermissions/InconsistentEntries.java crashed: EXCEPTION_ACCESS_VIOLATION
Reviewed-by: rhalade, jnimeh
2025-02-21 21:06:54 +00:00
Jamil Nimeh
9d9d7a17d3 8349759: Add unit test for CertificateBuilder and SimpleOCSPServer test utilities
Reviewed-by: mullan
2025-02-21 20:30:02 +00:00
Chris Plummer
b45c32cd4f 8350287: Cleanup SA's support for CodeBlob subclasses
Reviewed-by: kvn, sspitsyn
2025-02-21 19:09:38 +00:00
Xiaolong Peng
bd8ad309b5 8350285: Shenandoah: Regression caused by ShenandoahLock under extreme contention
Reviewed-by: shade, kdnilsen
2025-02-21 16:39:17 +00:00
Matias Saavedra Silva
24b557361a 8350444: Check for verifer error in StackMapReader::check_offset()
Reviewed-by: coleenp, dholmes
2025-02-21 16:17:31 +00:00
Volkan Yazici
dfcd0df60c 8350019: HttpClient: DelegatingExecutor should resort to the fallback executor only on RejectedExecutionException
Reviewed-by: dfuchs
2025-02-21 10:26:55 +00:00
Hamlin Li
1b6281d98c 8321003: RISC-V: C2 MulReductionVI
8321004: RISC-V: C2 MulReductionVL

Reviewed-by: fyang, rehn
2025-02-21 10:25:50 +00:00
Hamlin Li
c73fead5ca 8350383: Test: add more test case for string compare (UL case)
Reviewed-by: fyang
2025-02-21 09:48:54 +00:00
Fernando Guallini
16033ea79a 8342238: Test javax/crypto/CryptoPermissions/InconsistentEntries.java writes files in tested JDK dir
Reviewed-by: jnimeh, rhalade
2025-02-20 18:52:57 +00:00
Fernando Guallini
f979f727b6 8337723: Remove redundant tests from com/sun/security/sasl/gsskerb
Reviewed-by: rhalade
2025-02-20 18:52:30 +00:00
Leonid Mesnik
1eb0db3760 8350151: Support requires property to filter tests incompatible with --enable-preview
Reviewed-by: alanb, rriggs
2025-02-20 18:00:33 +00:00
Erik Joelsson
16873732a7 8349933: Mixing of includes and snippets stack causes the wrong -post snippet to be included
Reviewed-by: ihse
2025-02-20 17:46:06 +00:00
Nizar Benalla
53db57648a 8350137: After JDK-8348975, Linux builds contain man pages for windows only tools
Reviewed-by: erikj
2025-02-20 15:53:05 +00:00
Johan Sjölen
10bf48a6b0 8350214: Test gtest/AsyncLogGtest.java fails after JDK-8349755
Reviewed-by: aboldtch, dholmes
2025-02-20 15:50:24 +00:00
Jiangli Zhou
960ad21186 8349620: Add VMProps for static JDK
Reviewed-by: alanb, manc
2025-02-20 15:47:54 +00:00
Martin Doerr
735805d925 8349727: [PPC] C1: Improve Class.isInstance intrinsic
Reviewed-by: rrich, varadam
2025-02-20 12:03:08 +00:00
Abhishek Kumar
1e87ff0199 8348936: [Accessibility,macOS,VoiceOver] VoiceOver doesn't announce untick on toggling the checkbox with "space" key on macOS
8345728: [Accessibility,macOS,Screen Magnifier]: JCheckbox unchecked state does not magnify but works for checked state

Reviewed-by: aivanov, kizune, dnguyen, asemenov
2025-02-20 09:17:40 +00:00
Hao Sun
86d0616276 8350303: ARM32: StubCodeGenerator::verify_stub(StubGenStubId) failed after JDK-8343767
Reviewed-by: shade, adinn
2025-02-20 09:03:53 +00:00
Matthias Baesken
0662e39a6e 8350267: Set mtune and mcpu settings in JDK native lib compilation on Linux ppc64(le)
Reviewed-by: mdoerr, asteiner, erikj
2025-02-20 08:58:18 +00:00
Amit Kumar
c5c91a8293 8345285: [s390x] test failures: foreign/normalize/TestNormalize.java with C2
Reviewed-by: mdoerr, aph
2025-02-20 08:53:19 +00:00
SendaoYan
26bf445f47 8350049: [JMH] Float16OperationsBenchmark fails java.lang.NoClassDefFoundError
Reviewed-by: jbhateja
2025-02-20 07:24:51 +00:00
SendaoYan
00d4e4a971 8350051: [JMH] Several tests fails NPE
Reviewed-by: erikj, redestad
2025-02-20 02:51:24 +00:00
Ioi Lam
0131c1bfd8 8349953: Avoid editing AOTConfiguration file in "make test JTREG=AOT_JDK=true"
Reviewed-by: erikj, ccheung
2025-02-20 02:13:41 +00:00
Nicole Xu
3ebed78328 8349943: [JMH] Use jvmArgs consistently
Reviewed-by: syan, redestad, haosun
2025-02-20 01:33:58 +00:00
Boris Ulasevich
92efab90db 8350344: Cross-build failure: _vptr name conflict
Reviewed-by: kvn
2025-02-19 21:02:27 +00:00
Chris Plummer
4fb70c79c1 8229012: When single stepping, the debug agent can cause the thread to remain in interpreter mode after single stepping completes
Reviewed-by: kevinw, sspitsyn
2025-02-19 19:58:11 +00:00
Joe Wang
4e60c2d937 8349699: XSL transform fails with certain UTF-8 characters on 1024 byte boundaries
Reviewed-by: lancea, naoto
2025-02-19 19:36:30 +00:00
Mikhail Yankelevich
7734f8ed13 8349664: HEX dump should always use ASCII or ISO_8859_1
Reviewed-by: weijun
2025-02-19 18:56:26 +00:00
Matias Saavedra Silva
7631984525 8349923: Refactor StackMapTable constructor and StackMapReader
Reviewed-by: coleenp, dholmes
2025-02-19 17:26:41 +00:00
Alexey Semenyuk
3487f8cbd5 8350102: Decouple jpackage test-lib Executor.Result and Executor classes
Reviewed-by: almatvee
2025-02-19 17:08:01 +00:00
konanki sreenath
70a6c0b7ac 8346094: Harden X509CertImpl.getExtensionValue for NPE cases
Reviewed-by: coffeys, weijun
2025-02-19 16:47:54 +00:00
Ivan Walulya
efbad00c4d 8349688: G1: Wrong initial optional region index when selecting candidates from retained regions
Reviewed-by: tschatzl, ayang
2025-02-19 14:27:33 +00:00
Albert Mingkun Yang
c6e47fd581 8348171: Refactor GenerationCounters and its subclasses
Co-authored-by: Thomas Schatzl <tschatzl@openjdk.org>
Reviewed-by: gli, tschatzl, zgu
2025-02-19 14:15:16 +00:00
Sean Mullan
577ff98a67 8347946: Add API note that caller should validate/trust signers to the getCertificates and getCodeSigners methods of JarEntry and JarURLConnection
Reviewed-by: lancea, jpai
2025-02-19 13:18:20 +00:00
Alexey Ivanov
014701a09b 8350260: Improve HTML instruction formatting in PassFailJFrame
Reviewed-by: kizune, azvegint, abhiscxk
2025-02-19 12:22:51 +00:00
Matthias Baesken
59810ad745 8350201: Out of bounds access on Linux aarch64 in os::print_register_info
Reviewed-by: dholmes, mdoerr
2025-02-19 12:14:04 +00:00
Aleksey Shipilev
2353f3e2f1 8350210: CTW: Use stackless exceptions
Reviewed-by: kvn, chagedorn
2025-02-19 11:35:00 +00:00
Aleksey Shipilev
79db2d4186 8350159: compiler/tiered/Level2RecompilationTest.java fails after JDK-8349915
Reviewed-by: kvn, chagedorn
2025-02-19 11:33:57 +00:00
Aleksey Shipilev
d13fd5738f 8350211: CTW: Attempt to preload all classes in constant pool
Reviewed-by: vlivanov, chagedorn
2025-02-19 11:02:14 +00:00
Roberto Castañeda Lozano
0ef1c40991 8350006: IGV: show memory slices as type information
Reviewed-by: dlunden, chagedorn, dfenacci
2025-02-19 09:17:27 +00:00
Christian Stein
9042aa82a8 8339238: Update to use jtreg 7.5.1
Reviewed-by: erikj, jpai, rriggs, iris
2025-02-19 06:38:39 +00:00
Prasanta Sadhukhan
4de92a40d0 8350224: Test javax/swing/JComboBox/TestComboBoxComponentRendering.java fails in ubuntu 23.x and later
Reviewed-by: aivanov, azvegint
2025-02-19 02:19:27 +00:00
SendaoYan
04659a4073 8350197: [UBSAN] Node::dump_idx reported float-cast-overflow
Reviewed-by: chagedorn
2025-02-19 01:30:16 +00:00
Leonid Mesnik
2d03bd0078 8350280: The JDK-8346050 testlibrary changes break the build
Reviewed-by: dholmes
2025-02-18 20:58:04 +00:00
Doug Simon
f2b4e12afe 8350263: JvmciNotifyBootstrapFinishedEventTest intermittently times out
Reviewed-by: yzheng, never
2025-02-18 20:18:08 +00:00
Vladimir Kozlov
46d4a601e0 8349088: De-virtualize Codeblob and nmethod
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Chris Plummer <cjplummer@openjdk.org>
Reviewed-by: cjplummer, aboldtch, dlong
2025-02-18 20:08:08 +00:00
Leonid Mesnik
62d93f2a22 8346050: Update BuildTestLib.gmk to build whole testlibrary
Reviewed-by: weijun, ihse
2025-02-18 20:06:05 +00:00
Matthias Baesken
e1d0a9c832 8350202: Tune for Power10 CPUs on Linux ppc64le
Reviewed-by: mdoerr
2025-02-18 13:20:05 +00:00
Hamlin Li
885be2efa6 8349908: RISC-V: C2 SelectFromTwoVector
Reviewed-by: fyang, luhenry
2025-02-18 10:24:51 +00:00
Roberto Castañeda Lozano
8193e0d53a 8346280: C2: implement late barrier elision for G1
Reviewed-by: tschatzl, aboldtch, mdoerr
2025-02-18 10:23:35 +00:00
SendaoYan
d7baae3ee9 8350178: Incorrect comment after JDK-8345580
Reviewed-by: chagedorn, kvn
2025-02-18 09:56:49 +00:00
Afshin Zafari
160db5f0f0 8340110: Ubsan: verifier.cpp:2043:19: runtime error: shift exponent 100 is too large for 32-bit type 'int'
Reviewed-by: dholmes, jsjolen
2025-02-18 09:56:38 +00:00
Marc Chevalier
ff05d97953 8349180: Remove redundant initialization in ciField constructor
Reviewed-by: chagedorn
2025-02-18 09:25:24 +00:00
Marc Chevalier
013fda1dad 8348172: C2: Remove unused local variables in filter_helper() methods
Reviewed-by: kvn, haosun, chagedorn
2025-02-18 08:43:21 +00:00
Stefan Karlsson
3353f8e087 8349652: Rewire nmethod oop load barriers
Reviewed-by: kvn, aboldtch
2025-02-18 07:51:45 +00:00
Fei Yang
8df804005e 8350093: RISC-V: java/math/BigInteger/LargeValueExceptions.java timeout with COH
Reviewed-by: mli, fjiang
2025-02-18 00:19:46 +00:00
Doug Simon
8ec589390f 8346781: [JVMCI] Limit ServiceLoader to class initializers
Reviewed-by: never, yzheng
2025-02-17 19:34:29 +00:00
Hannes Wallnöfer
3f0c137026 8347123: Add missing @serial tags to other modules
Reviewed-by: prr, nbenalla, alanb
2025-02-17 15:31:18 +00:00
Suchismith Roy
8b2aa51b0c 8349780: AIX os::get_summary_cpu_info support Power 11
Reviewed-by: stuefe, amitkumar
2025-02-17 13:28:34 +00:00
Alexey Ivanov
650d0d954e 8348865: JButton/bug4796987.java never runs because Windows XP is unavailable
Reviewed-by: tr, abhiscxk, serb
2025-02-17 13:13:42 +00:00
Alexey Ivanov
906358d3a1 8294155: Exception thrown before awaitAndCheck hangs PassFailJFrame
Reviewed-by: serb, azvegint, kizune
2025-02-17 13:13:15 +00:00
Alexey Ivanov
2bd8f026db 8342524: Use latch in AbstractButton/bug6298940.java instead of delay
Reviewed-by: azvegint, kizune, dnguyen, achung
2025-02-17 13:12:02 +00:00
Matthias Ernst
7f3ecb4d92 8346664: C2: Optimize mask check with constant offset
Reviewed-by: epeter, qamai
2025-02-17 13:07:23 +00:00
Gui Cao
b3a4026c65 8349764: RISC-V: C1: Improve Class.isInstance intrinsic
Reviewed-by: fyang, mli
2025-02-17 11:35:07 +00:00
Jaikiran Pai
071c8f5155 8349909: jdk.internal.jimage.decompressor.ZipDecompressor does not close the Inflater in exceptional cases
Reviewed-by: lancea, alanb
2025-02-17 11:05:59 +00:00
Johan Sjölen
f1258f9e16 8349755: Fix corner case issues in async UL
Reviewed-by: dholmes, aboldtch
2025-02-17 09:22:57 +00:00
Aleksey Shipilev
b1b48286a6 8350086: Inline hot Method accessors for faster task selection
Reviewed-by: kvn, coleenp, aph, vlivanov
2025-02-17 09:21:49 +00:00
Matthias Baesken
5e9d72e224 8350094: Linux gcc 13.2.0 build fails when ubsan is enabled
Reviewed-by: mdoerr, prr, kbarrett
2025-02-17 08:02:51 +00:00
David Holmes
2192723734 8350162: ProblemList compiler/tiered/Level2RecompilationTest.java
Reviewed-by: jpai
2025-02-17 02:09:25 +00:00
Bradford Wetmore
7d11418c82 8350147: Replace example in KEM class with the one from JEP 452
Reviewed-by: weijun
2025-02-15 22:40:46 +00:00
Alexey Semenyuk
5cf11324af 8350098: jpackage test lib erroneously will run methods without @Test annotation as tests
Reviewed-by: almatvee
2025-02-15 14:31:29 +00:00
Aleksey Shipilev
623453647a 8349915: CTW: Lots of level 3 compiles are done at level 2 after JDK-8348570
Reviewed-by: kvn, chagedorn
2025-02-15 07:22:20 +00:00
Chris Plummer
b6443f6ff9 8348347: Cleanup JavaThread subclass support in SA
Reviewed-by: kevinw, sspitsyn
2025-02-14 19:40:47 +00:00
Kelvin Nilsen
ba6c96599a 8348595: GenShen: Fix generational free-memory no-progress check
Reviewed-by: phh, xpeng
2025-02-14 16:41:26 +00:00
Kelvin Nilsen
38322407cd 8348594: Shenandoah: Do not penalize for degeneration when not the fault of triggering heuristic
Reviewed-by: phh, wkemper
2025-02-14 16:40:08 +00:00
Ivan Šipka
2a90b90a95 8346117: Add test annotation
Reviewed-by: coffeys
2025-02-14 16:18:47 +00:00
Maxim Kartashev
0414dcec11 8349812: (fs) Files.newByteChannel with empty path name and CREATE_NEW throws unexpected exception
Reviewed-by: bpb
2025-02-14 15:28:59 +00:00
anass baya
9ea81d9017 8349351: Combine Screen Inset Tests into a Single File
Reviewed-by: honkar, dnguyen, aivanov
2025-02-14 15:19:09 +00:00
Aleksey Shipilev
742e735d7f 8349858: Print compilation task before blocking compiler thread for shutdown
Reviewed-by: kvn, chagedorn
2025-02-14 13:53:06 +00:00
Alexey Semenyuk
db42a48dc5 8350011: Convert jpackage test lib tests in JUnit format
Reviewed-by: almatvee
2025-02-14 13:12:30 +00:00
Alexander Zvegintsev
19c0ce43e2 8349751: AIX build failure after upgrade pipewire to 1.3.81
Reviewed-by: mdoerr
2025-02-14 12:55:36 +00:00
Nizar Benalla
fa1bd2344e 8343802: Prevent NULL usage backsliding
Reviewed-by: kbarrett
2025-02-14 12:24:36 +00:00
Dmitry Chuyko
57f4c30fb6 8347917: AArch64: Enable upper GPR registers in C1
Reviewed-by: aph
2025-02-14 07:54:44 +00:00
Alexey Semenyuk
ff52859d2a 8285624: jpackage fails to create exe, msi when Windows OS is in FIPS mode
Reviewed-by: almatvee
2025-02-13 22:53:30 +00:00
Justin Lu
3741c980b8 8349883: Locale.LanguageRange.parse("-") throws ArrayIndexOutOfBoundsException
Reviewed-by: naoto
2025-02-13 22:25:23 +00:00
Naoto Sato
3e7acfac48 8349873: StackOverflowError after JDK-8342550 if -Duser.timezone= is set to a deprecated zone id
Reviewed-by: joehw, jlu, iris
2025-02-13 20:57:48 +00:00
Aleksey Shipilev
d8fcd43a24 8349927: Waiting for compiler termination delays shutdown for 10+ ms
Reviewed-by: kvn, dholmes
2025-02-13 20:06:33 +00:00
Doug Simon
a88e2a58bf 8349977: JVMCIRuntime::_shared_library_javavm_id should be jlong
Reviewed-by: yzheng, never
2025-02-13 19:35:42 +00:00
Jiangli Zhou
2eac490bd2 8349868: Remove unneeded libjava shared library dependency from jtreg test libNewDirectByteBuffer, libDirectIO and libInheritedChannel
Reviewed-by: bpb
2025-02-13 19:08:03 +00:00
Martin Balao
6ddbcc34c0 8328119: Support HKDF in SunPKCS11 (Preview)
8346720: Support Generic keys in SunPKCS11 SecretKeyFactory

Co-authored-by: Francisco Ferrari Bihurriet <fferrari@openjdk.org>
Co-authored-by: Martin Balao <mbalao@openjdk.org>
Reviewed-by: valeriep, kdriver, weijun
2025-02-13 16:55:33 +00:00
William Kemper
28e744dc64 8348092: Shenandoah: assert(nk >= _lowest_valid_narrow_klass_id && nk <= _highest_valid_narrow_klass_id) failed: narrowKlass ID out of range (3131947710)
Reviewed-by: shade
2025-02-13 16:34:37 +00:00
Vladimir Kozlov
0b50e479a0 8349753: Incorrect use of CodeBlob::is_buffer_blob() in few places
Reviewed-by: dlong, shade
2025-02-13 16:09:04 +00:00
Jiangli Zhou
18958c6298 8349925: [REDO] Support static JDK in libfontmanager/freetypeScaler.c
Reviewed-by: prr
2025-02-13 15:44:46 +00:00
Matthias Baesken
c2fc947826 8349378: Build splashscreen lib with SIZE optimization
Reviewed-by: erikj, prr, honkar
2025-02-13 14:16:23 +00:00
Jaikiran Pai
5b75ff7283 8349907: jdk.tools.jlink.internal.plugins.ZipPlugin does not close the Deflater in exceptional cases
Reviewed-by: liach, alanb, sundar, lancea
2025-02-13 11:54:01 +00:00
Alexander Zvegintsev
add3cd1ca4 8348600: Update PipeWire to 1.3.81
Reviewed-by: psadhukhan, prr, honkar
2025-02-13 11:42:46 +00:00
Alexey Semenyuk
efc597bf47 8349564: Clean warnings found in jpackage tests when building them with -Xlint:all
Reviewed-by: almatvee
2025-02-13 10:22:19 +00:00
Christoph Langer
29202d1fa7 8349648: Test tools/jpackage/share/JLinkOptionsTest.java fails with --enable-linkable-runtime set after JDK-8346434
Reviewed-by: sgehwolf, asemenyuk
2025-02-13 10:03:25 +00:00
Ivan Walulya
24b7f815ae 8349783: g1RemSetSummary.cpp:344:68: runtime error: member call on null pointer of type 'struct G1HeapRegion'
Reviewed-by: tschatzl, ayang
2025-02-13 09:47:02 +00:00
Robbin Ehn
a637ccf2fe 8349851: RISC-V: Call VM leaf can use movptr2
Reviewed-by: fyang, mli
2025-02-13 06:36:32 +00:00
SendaoYan
adc3f53d24 8349787: java/lang/Thread/virtual/ThreadPollOnYield.java#default passes unexpectedly without libVThreadPinner.so
Reviewed-by: alanb
2025-02-13 02:59:57 +00:00
Volodymyr Paprotski
55097dd4cb 8344802: Crash in StubRoutines::verify_mxcsr with -XX:+EnableX86ECoreOpts and -Xcheck:jni
Reviewed-by: jwaters, kvn, sviswanathan
2025-02-12 22:25:05 +00:00
Daniel Gredler
b8576eb48e 6562489: Font-Renderer should ignore invisible characters \u2062 and \u2063
Reviewed-by: avu, prr
2025-02-12 22:15:37 +00:00
Zhao Song
7a0832f548 8349934: Wrong file regex for copyright header format check in .jcheck/conf
Reviewed-by: erikj
2025-02-12 21:36:45 +00:00
Chris Plummer
2a5d1da335 8349571: Remove JavaThreadFactory interface from SA
Reviewed-by: kevinw, sspitsyn
2025-02-12 19:28:28 +00:00
Chris Plummer
74e458bad6 8349684: Remove SA core file tests from problem list for macosx-x64
Reviewed-by: kevinw, sspitsyn
2025-02-12 19:27:54 +00:00
Archie Cobbs
ba28119642 8348427: DeferredLintHandler API should use JCTree instead of DiagnosticPosition
Reviewed-by: mcimadamore
2025-02-12 19:17:29 +00:00
Fernando Guallini
c5ac3c4f11 8249831: Test sun/security/mscapi/nonUniqueAliases/NonUniqueAliases.java is marked with @ignore
Reviewed-by: hchao, rhalade
2025-02-12 18:36:24 +00:00
Vladimir Kozlov
336d0d8592 8349926: [BACKOUT] Support static JDK in libfontmanager/freetypeScaler.c
Reviewed-by: jiangli, shade
2025-02-12 18:26:37 +00:00
Jatin Bhateja
4b463ee70e 8342103: C2 compiler support for Float16 type and associated scalar operations
Co-authored-by: Paul Sandoz <psandoz@openjdk.org>
Co-authored-by: Bhavana Kilambi <bkilambi@openjdk.org>
Co-authored-by: Joe Darcy <darcy@openjdk.org>
Co-authored-by: Raffaello Giulietti <rgiulietti@openjdk.org>
Reviewed-by: psandoz, epeter, sviswanathan
2025-02-12 17:02:51 +00:00
Jiangli Zhou
332d87cc7e 8349859: Support static JDK in libfontmanager/freetypeScaler.c
Reviewed-by: prr
2025-02-12 16:29:08 +00:00
Thomas Schatzl
73e1780ad0 8349836: G1: Improve group prediction log message
Reviewed-by: ayang, iwalulya
2025-02-12 16:11:09 +00:00
Coleen Phillimore
ed17c55ea3 8349145: Make Class.getProtectionDomain() non-native
Reviewed-by: liach, dholmes, yzheng
2025-02-12 12:04:40 +00:00
Volkan Yazici
e700460b49 8349813: Test behavior of limiting() on RS operators throwing exceptions
Reviewed-by: dfuchs
2025-02-12 12:04:22 +00:00
Daniel Jeliński
08f4c1c801 8349781: make test TEST=gtest fails on WSL
Reviewed-by: erikj
2025-02-12 09:04:32 +00:00
Kevin Walls
bb41df44d9 8349723: Problemlist jdp tests for macosx-x64
Reviewed-by: rriggs, sspitsyn
2025-02-12 08:22:29 +00:00
David Holmes
adda12b724 8349874: Missing comma in copyright from JDK-8349689
Reviewed-by: dcubed, mikael
2025-02-12 03:57:30 +00:00
Prasanta Sadhukhan
342dec93f2 8347019: Test javax/swing/JRadioButton/8033699/bug8033699.java still fails: Focus is not on Radio Button Single as Expected
Reviewed-by: aivanov, dnguyen, azvegint
2025-02-12 03:10:00 +00:00
SendaoYan
88b4a906d2 8349689: Several virtual thread tests missing /native keyword
Reviewed-by: alanb, lmesnik
2025-02-12 03:00:43 +00:00
Volkan Yazici
d558d9d427 8349702: jdk.internal.net.http.Http2Connection::putStream needs to provide cause while cancelling stream
Reviewed-by: jpai, dfuchs
2025-02-12 01:58:22 +00:00
William Kemper
8c09d40d6c 8348268: Test gc/shenandoah/TestResizeTLAB.java#compact: fatal error: Before Updating References: Thread C2 CompilerThread1: expected gc-state 9, actual 21
Reviewed-by: shade
2025-02-11 20:20:53 +00:00
Alexey Semenyuk
e7157d174c 8150442: Enforce Supported Platforms in Packager for MSI bundles
Reviewed-by: almatvee, cstein
2025-02-11 19:22:35 +00:00
Naoto Sato
642816538f 8349254: Disable "best-fit" mapping on Windows environment variables
Reviewed-by: jlu, jpai
2025-02-11 17:20:50 +00:00
Chen Liang
32dc41c9f7 8349624: Validation for slot missing in CodeBuilder local variable instructions
Reviewed-by: asotona
2025-02-11 16:21:23 +00:00
Mohamed Issa
a1bcda2476 8349579: jsvml.dll incorrect RDATA SEGMENT specification
Reviewed-by: sviswanathan, jbhateja
2025-02-11 15:33:30 +00:00
Tobias Hartmann
ee079fdbf1 8349820: Temporarily increase MemLimit for tests until JDK-8349772 and JDK-8337821 are fixed
Reviewed-by: rcastanedalo, epeter
2025-02-11 13:57:45 +00:00
SendaoYan
545d19f1fa 8349771: Replace usages of -mx and -ms in some monitor tests
Reviewed-by: jpai, stefank, dholmes
2025-02-11 12:38:19 +00:00
Daniel Fuchs
5ee44c1688 8349662: SSLTube SSLSubscriptionWrapper has potential races when switching subscriptions
Reviewed-by: jpai
2025-02-11 12:10:05 +00:00
Magnus Ihse Bursie
964dd18fd2 8349515: [REDO] Framework for tracing makefile inclusion and parsing
Reviewed-by: erikj
2025-02-11 10:55:47 +00:00
Thomas Schatzl
8e85829496 8349213: G1: Clearing bitmaps during collection set merging not claimed by region
Reviewed-by: iwalulya, ayang
2025-02-11 09:52:38 +00:00
Richard Reingruber
1a8212e101 8348678: [PPC64] C2: unaligned vector load/store is ok
8343906: test2 of compiler/c2/TestCastX2NotProcessedIGVN.java fails on some platforms

Reviewed-by: mdoerr, amitkumar
2025-02-11 07:45:55 +00:00
Daniel Gredler
41bdc47d71 8208377: Soft hyphens render if not using TextLayout
Reviewed-by: achung, prr
2025-02-11 00:39:09 +00:00
Jiangli Zhou
df654a9f58 8349752: Tier1 build failure caused by JDK-8349178
Reviewed-by: dholmes
2025-02-10 20:52:20 +00:00
Jiangli Zhou
527489c06d 8349284: Make libExplicitAttach work on static JDK
Reviewed-by: alanb, dholmes
2025-02-10 20:19:48 +00:00
Joe Darcy
f11a737707 8349475: Test tools/javac/api/TestJavacTaskWithWarning.java writes files in src dir
Reviewed-by: jlahoda, liach, jpai
2025-02-10 18:27:05 +00:00
Jamil Nimeh
b737f7fb30 8349501: Relocate supporting classes in security/testlibrary to test/lib/jdk tree
Reviewed-by: rhalade, weijun
2025-02-10 18:19:57 +00:00
Jiangli Zhou
84b32cb61c 8349178: runtime/jni/atExit/TestAtExit.java should be supported on static JDK
Reviewed-by: dholmes
2025-02-10 18:05:27 +00:00
Aleksey Shipilev
ab66c82ce9 8349639: jfr/event/gc/detailed/TestShenandoahEvacuationInformationEvent.java fails to compile after JDK-8348610
Reviewed-by: mdoerr, wkemper
2025-02-10 15:51:23 +00:00
Johan Sjölen
f74c4dfe0b 8349580: Do not use address in MemTracker top level functions
Reviewed-by: gziemski, stefank
2025-02-10 13:52:23 +00:00
Coleen Phillimore
c9cadbd23f 8346567: Make Class.getModifiers() non-native
Reviewed-by: alanb, vlivanov, yzheng, dlong
2025-02-10 12:44:30 +00:00
Volkan Yazici
5589892262 8343074: test/jdk/com/sun/net/httpserver/docs/test1/largefile.txt could be generated
Reviewed-by: dfuchs, jpai
2025-02-10 12:12:54 +00:00
Hamlin Li
d104debe51 8349556: RISC-V: improve the performance when -COH and -AvoidUnalignedAccesses for UL and LU string comparison
Reviewed-by: fyang, vkempik
2025-02-10 11:47:57 +00:00
Hamlin Li
4a83ca1202 8349666: RISC-V: enable superwords tests for vector reductions
Reviewed-by: fyang, luhenry
2025-02-10 11:25:20 +00:00
SendaoYan
8f6ccde982 8349554: [UBSAN] os::attempt_reserve_memory_between reported applying non-zero offset to non-null pointer produced null pointer
Reviewed-by: stefank, stuefe
2025-02-08 13:11:07 +00:00
Thomas Stuefe
7d52f1e64d 8349525: RBTree: provide leftmost, rightmost, and a simple way to print trees
Reviewed-by: jsjolen, cnorrbin
2025-02-08 06:35:27 +00:00
Quan Anh Mai
e9278de3f8 8348411: C2: Remove the control input of LoadKlassNode and LoadNKlassNode
Reviewed-by: vlivanov, epeter
2025-02-08 04:20:46 +00:00
Joe Wang
5395ffa006 8327378: XMLStreamReader throws EOFException instead of XMLStreamException
Reviewed-by: iris, lancea, naoto
2025-02-08 02:48:04 +00:00
Coleen Phillimore
1ed9ef1c3f 8349559: Compiler interface doesn't need to store protection domain
Reviewed-by: vlivanov, iklam
2025-02-07 21:27:35 +00:00
Alexander Matveev
f0ea38b387 8349509: [macos] Clean up macOS dead code in jpackage
Reviewed-by: asemenyuk
2025-02-07 19:58:51 +00:00
Tom Rodriguez
7f6c687815 8349374: [JVMCI] concurrent use of HotSpotSpeculationLog can crash
Reviewed-by: kvn, dnsimon
2025-02-07 19:58:37 +00:00
Liam Miller-Cushon
bd9b24c0f8 8349512: Duplicate PermittedSubclasses entries with doclint enabled
Reviewed-by: vromero
2025-02-07 19:43:33 +00:00
Andrew Haley
b40f8eef98 8337251: C1: Improve Class.isInstance intrinsic
Reviewed-by: vlivanov
2025-02-07 17:39:10 +00:00
Bradford Wetmore
88a84835a3 8349121: SSLParameters.setApplicationProtocols() ALPN example could be clarified
Reviewed-by: abarashev, jnimeh, dfuchs
2025-02-07 17:09:56 +00:00
Justin Lu
fb847bb2af 8349493: Replace sun.util.locale.ParseStatus usage with java.text.ParsePosition
Reviewed-by: naoto
2025-02-07 17:08:52 +00:00
Mikhail Yankelevich
7cd5cb2916 8349532: Refactor ./util/Pem/encoding.sh to run in java
Reviewed-by: weijun
2025-02-07 15:40:17 +00:00
Ivan Walulya
86cec4ea2c 8343782: G1: Use one G1CardSet instance for multiple old gen regions
Reviewed-by: ayang, tschatzl
2025-02-07 10:22:23 +00:00
Matthias Baesken
006ed5c02b 8349375: Cleanup AIX special file build settings
Reviewed-by: mdoerr, clanger, erikj, jwaters
2025-02-07 07:43:43 +00:00
Joe Wang
3989a19957 8344925: translet-name ignored when package-name is also set
Reviewed-by: lancea, iris, naoto
2025-02-07 02:26:20 +00:00
Fernando Guallini
1eb54e4228 8346049: jdk/test/lib/security/timestamp/TsaServer.java warnings
Reviewed-by: weijun, rhalade, hchao, lmesnik
2025-02-07 00:31:11 +00:00
Calvin Cheung
a0c7f661be 8349508: runtime/cds/appcds/TestParallelGCWithCDS.java should not check for specific output
Reviewed-by: dholmes, iklam
2025-02-06 22:31:19 +00:00
Aleksey Shipilev
10791477cf 8348570: CTW: Expose the code hidden by uncommon traps
Reviewed-by: kvn, thartmann
2025-02-06 20:20:43 +00:00
Brian Burkhalter
1a74ee64eb 8349092: File.getFreeSpace violates specification if quotas are in effect (win)
Reviewed-by: naoto
2025-02-06 19:11:35 +00:00
Brian Burkhalter
0181030bdc 8349006: File.getCanonicalPath should remove "(on UNIX platforms)" from its specification
Reviewed-by: jlu, naoto
2025-02-06 19:10:26 +00:00
Harshitha Onkar
ed8945a68a 8347377: Add validation checks for ICC_Profile header fields
Reviewed-by: prr, jdv
2025-02-06 18:30:39 +00:00
Liam Miller-Cushon
1ab1c1d53b 8349058: 'internal proprietary API' warnings make javac warnings unusable
Reviewed-by: vromero
2025-02-06 17:33:44 +00:00
Jiangli Zhou
eb84702626 8349513: Remove unused BUILD_JDK_JTREG_LIBRARIES_JDK_LIBS_libTracePinnedThreads
Reviewed-by: dholmes, erikj
2025-02-06 16:15:35 +00:00
Nizar Benalla
f12d2de53a 8345212: Since checker should better handle non numeric values
Reviewed-by: liach
2025-02-06 16:14:30 +00:00
Viktor Klang
5ec1aae21e 8347842: ThreadPoolExecutor specification discusses RuntimePermission
Reviewed-by: alanb, jpai
2025-02-06 15:02:21 +00:00
SendaoYan
3fbae32d0a 8349465: [UBSAN] test_os_reserve_between.cpp reported applying non-zero offset to null pointer
Reviewed-by: mdoerr, amitkumar
2025-02-06 15:01:05 +00:00
Christian Hagedorn
e0487c7cbc 8346777: Add missing const declarations and rename variables
Reviewed-by: epeter, thartmann
2025-02-06 14:49:28 +00:00
Archie Cobbs
2b82e2d57b 8347958: Minor compiler cleanups relating to MandatoryWarningHandler
Reviewed-by: mcimadamore
2025-02-06 14:32:25 +00:00
Alexey Semenyuk
2093bb7467 8346434: Add test for non-automatic service binding
Reviewed-by: almatvee
2025-02-06 14:10:44 +00:00
Amit Kumar
dd8720e90d 8348520: [s390x] Problemlist TestVectorReinterpret.java
Reviewed-by: mdoerr
2025-02-06 13:15:18 +00:00
Tobias Hartmann
4618993e27 8349537: Bad copyright in TestArrayStructs.java
Reviewed-by: jpai
2025-02-06 10:41:30 +00:00
SendaoYan
acb46ddb89 8345155: Add /native to native test in FFM
Reviewed-by: mcimadamore, pminborg
2025-02-06 09:33:02 +00:00
Gui Cao
d85f65147a 8349428: RISC-V: "bad alignment" with -XX:-AvoidUnalignedAccesses after JDK-8347489
Reviewed-by: fyang, mli
2025-02-06 09:31:54 +00:00
Andrew Dinn
7e307916ec 8349102: Test compiler/arguments/TestCodeEntryAlignment.java failed: assert(allocates2(pc)) failed: not in CodeBuffer memory
Reviewed-by: dlong
2025-02-06 09:14:50 +00:00
Matthias Baesken
3eb57f6d46 8349140: Size optimization (opt-size) build fails after recent PCH changes
Reviewed-by: jwaters, erikj, ihse
2025-02-06 08:08:59 +00:00
Jan Lahoda
3cf04dec49 8349132: javac Analyzers should handle non-deferrable errors
Reviewed-by: abimpoudis
2025-02-06 07:34:28 +00:00
David Holmes
30f71622a1 8349417: Fix NULL usage from JDK-8346433
Reviewed-by: chagedorn
2025-02-06 07:32:22 +00:00
David Holmes
64bd8d2592 8349511: [BACKOUT] Framework for tracing makefile inclusion and parsing
Reviewed-by: darcy, mikael
2025-02-06 02:51:12 +00:00
Alexey Semenyuk
5e1cc08259 8349504: Support platform-specific JUnit tests in jpackage
Reviewed-by: almatvee
2025-02-06 02:27:43 +00:00
Archie Cobbs
89e5e7ab73 8349155: The "log" parameter to Lint.logIfEnabled() is not needed
Reviewed-by: mcimadamore
2025-02-06 01:52:51 +00:00
Alexey Semenyuk
aad6664bb6 8333569: jpackage tests must run app launchers with retries on Linux only
Reviewed-by: almatvee
2025-02-05 23:23:54 +00:00
Brian Burkhalter
b499c827a5 8349383: (fs) FileTreeWalker.next() superfluous null check of visit() return value
Reviewed-by: djelinski
2025-02-05 21:40:47 +00:00
Damon Nguyen
379c3f9966 8347836: Disabled PopupMenu shows shortcuts on Mac
Reviewed-by: azvegint, achung, kizune, abhiscxk
2025-02-05 18:43:19 +00:00
Mikhail Yankelevich
82bc0a7f8c 8344316: security/auth/callback/TextCallbackHandler/Password.java make runnable with JTReg and add the UI
Reviewed-by: weijun
2025-02-05 18:23:25 +00:00
Mark Powers
2f2f7cf0dd 8349084: Update vectors used in several PQC benchmarks
Reviewed-by: weijun
2025-02-05 18:04:00 +00:00
Serguei Spitsyn
b9b62a0248 8346792: serviceability/jvmti/vthread/GetThreadState/GetThreadState.java testObjectWaitMillis failed
Reviewed-by: dholmes, pchilanomate
2025-02-05 16:03:39 +00:00
Roland Westrelin
6b994cd8cc 8333697: C2: Hit MemLimit in PhaseCFG::global_code_motion
Reviewed-by: thartmann, kvn
2025-02-05 13:54:35 +00:00
Per Minborg
2ff8440c76 8349344: Clarify documentation of Arena.ofConfined
Reviewed-by: jvernee, jpai, mcimadamore
2025-02-05 13:48:34 +00:00
Emanuel Peter
19399d271e 8348572: C2 compilation asserts due to unexpected irreducible loop
Reviewed-by: thartmann, kvn
2025-02-05 12:58:43 +00:00
Magnus Ihse Bursie
61465883b4 8348190: Framework for tracing makefile inclusion and parsing
Reviewed-by: erikj
2025-02-05 11:17:08 +00:00
Bhavana Kilambi
66a3898448 8348659: AArch64: IR rule failure with compiler/loopopts/superword/TestSplitPacks.java
Reviewed-by: shade, epeter
2025-02-05 08:37:21 +00:00
Matthias Baesken
40603a5bf0 8349214: Improve size optimization flags for MSVC builds
Reviewed-by: djelinski, ihse
2025-02-05 08:05:56 +00:00
Jan Lahoda
09269497a2 8347629: Test FailOverDirectExecutionControlTest.java fails with -Xcomp
Reviewed-by: liach
2025-02-05 06:44:36 +00:00
SendaoYan
a51e6699b4 8349200: [JMH] time.format.ZonedDateTimeFormatterBenchmark fails
Reviewed-by: naoto, jlu
2025-02-05 02:18:01 +00:00
Ben Perez
9d23de58d1 8184352: Remove Sun provider information from KeyPairGenerator javadoc
Reviewed-by: mullan
2025-02-04 23:13:16 +00:00
Brent Christian
d222c186a6 8349107: Remove RMI finalizers
Reviewed-by: rriggs, vklang, djelinski, smarks
2025-02-04 22:37:31 +00:00
Satyen Subramaniam
bad39b6d88 8348610: GenShen: TestShenandoahEvacuationInformationEvent failed with setRegions >= regionsFreed: expected 1 >= 57
Reviewed-by: wkemper, phh
2025-02-04 17:19:19 +00:00
Justin Lu
250ff86dc8 8349000: Performance improvement for Currency.isPastCutoverDate(String)
Reviewed-by: naoto, aturbanov
2025-02-04 17:07:01 +00:00
Jamil Nimeh
ee4caa4180 8349106: Change ChaCha20 intrinsic to use quarter-round parallel implementation on aarch64
Reviewed-by: aph
2025-02-04 16:28:04 +00:00
Ioi Lam
b985347c23 8348349: Refactor CDSConfig::is_dumping_heap()
Reviewed-by: ccheung, matsaave
2025-02-04 16:08:00 +00:00
Per Minborg
beb43e2633 8349343: Add missing copyright messages in FFM benchmarks
Reviewed-by: jvernee
2025-02-04 14:10:42 +00:00
Fei Yang
e91a6ec49c 8347489: RISC-V: Misaligned memory access with COH
Reviewed-by: mli, vkempik
2025-02-04 14:03:07 +00:00
Volkan Yazici
d699aba26f 8349135: Add tests for HttpRequest.Builder.copy()
Reviewed-by: jpai, dfuchs
2025-02-04 13:56:25 +00:00
Per Minborg
81126c20cb 8349238: Some more FFM benchmarks are broken
Reviewed-by: mcimadamore
2025-02-04 11:00:54 +00:00
Matthias Baesken
beae8843b9 8349150: Support precompiled headers on AIX
Reviewed-by: jkern, erikj
2025-02-04 08:10:49 +00:00
Christian Hagedorn
c545a3e028 8346774: Use Predicate classes instead of Node classes
Reviewed-by: epeter, kvn
2025-02-04 07:33:34 +00:00
Amit Kumar
7ea176d79c 8349193: compiler/intrinsics/TestContinuationPinningAndEA.java missing @requires vm.continuations
Reviewed-by: chagedorn
2025-02-04 03:05:00 +00:00
Coleen Phillimore
9b49597244 8334320: Replace vmTestbase/metaspace/share/TriggerUnloadingWithWhiteBox.java with ClassUnloadCommon from testlibrary
Reviewed-by: dholmes, lmesnik
2025-02-03 22:48:28 +00:00
Ben Perez
43979fb1be 8347428: Avoid using secret-key in specifications
Reviewed-by: mullan
2025-02-03 22:14:38 +00:00
Jaikiran Pai
618c5eb27b 8349183: [BACKOUT] Optimization for StringBuilder append boolean & null
8349239: [BACKOUT] Reuse StringLatin1::putCharsAt and StringUTF16::putCharsAt

Reviewed-by: redestad, liach
2025-02-03 18:21:33 +00:00
Tom Rodriguez
bb837d2f9b 8342775: [Graal] java/util/concurrent/locks/Lock/OOMEInAQS.java fails OOME thrown from the UncaughtExceptionHandler
Reviewed-by: jpai, dholmes
2025-02-03 17:04:55 +00:00
SendaoYan
a57c9b101a 8349184: [JMH] jdk.incubator.vector.ColumnFilterBenchmark.filterDoubleColumn fails on linux-aarch64
Reviewed-by: haosun, aph
2025-02-03 14:25:47 +00:00
Coleen Phillimore
d330421d28 8337548: Parallel class loading can pass is_superclass true for interfaces
Reviewed-by: iklam
2025-02-03 13:55:00 +00:00
Hamlin Li
3f1d9b5735 8348575: SpinLockT is typedef'ed but unused
Reviewed-by: dholmes
2025-02-03 12:33:31 +00:00
Alexander Zvegintsev
6f4fc82149 8348675: TrayIcon tests fail in Ubuntu 24.10 Wayland
Reviewed-by: aivanov, dnguyen
2025-02-03 11:14:14 +00:00
Aggelos Biboudis
9aa6d09bf7 8326485: Assertion due to Type.addMetadata adding annotations to already-annotated type
Reviewed-by: jlahoda
2025-02-03 09:08:25 +00:00
SendaoYan
2cce5eeb09 8349142: [JMH] compiler.MergeLoadBench.getCharBV fails
Reviewed-by: liach
2025-02-02 02:46:16 +00:00
Aleksey Shipilev
305bbdae7f 8348402: PerfDataManager stalls shutdown for 1ms
Reviewed-by: dholmes, pchilanomate, coleenp
2025-02-01 14:06:48 +00:00
anass baya
651ac3cc0f 6899304: java.awt.Toolkit.getScreenInsets(GraphicsConfiguration) returns incorrect values
Reviewed-by: aivanov, honkar, prr, serb
2025-01-31 18:30:01 +00:00
Naoto Sato
2d6045a26f 8301875: java.util.TimeZone.getSystemTimeZoneID uses C library default file mode
Reviewed-by: jlu, joehw
2025-01-31 17:12:00 +00:00
Rajan Halade
13d852a0b8 8349017: Update ML tests to verify against ACVP 1.1.0.38 version
Reviewed-by: weijun
2025-01-31 16:56:38 +00:00
Jorn Vernee
137ad5d03c 8348976: MemorySegment::reinretpret should be force inlined
Reviewed-by: liach
2025-01-31 16:49:21 +00:00
Jorn Vernee
77647421c5 8348909: [BACKOUT] Implement a better allocator for downcalls
Reviewed-by: shade, liach
2025-01-31 16:49:03 +00:00
Magnus Ihse Bursie
fcd5ebc7e8 8292944: Noisy output when running make help the first time
Reviewed-by: erikj
2025-01-31 14:35:42 +00:00
Magnus Ihse Bursie
bba6a8f0c1 8349143: All make control variables need special propagation
Reviewed-by: erikj
2025-01-31 14:29:35 +00:00
Daniel Lundén
ee87d187d1 8348658: [AArch64] The node limit in compiler/codegen/TestMatcherClone.java is too strict
Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Reviewed-by: shade, kvn
2025-01-31 14:09:15 +00:00
Sorna Sarathi N
a414a591dd 8344983: [PPC64] Rename ConditionRegisters
Reviewed-by: rrich, mdoerr
2025-01-31 14:06:22 +00:00
Magnus Ihse Bursie
5878e45ae0 8348998: Split out PreInit.gmk from Init.gmk
Reviewed-by: erikj
2025-01-31 13:48:09 +00:00
Erik Gahlin
8f7e6e2dbc 8348430: Update jfr tests to allow execution with different vm flags
Reviewed-by: mgronlun
2025-01-31 08:55:52 +00:00
Tobias Hartmann
c3923fbb9a 8349130: Problem list TestCodeEntryAlignment.java
Reviewed-by: chagedorn
2025-01-31 08:22:11 +00:00
Matthias Baesken
669f8c0c07 8349039: Adjust exception No type named <ThreadType> in database
Reviewed-by: kevinw, cjplummer
2025-01-31 08:11:30 +00:00
Jan Lahoda
5a45de5e1e 8347989: Trees.getScope may crash for not-yet attributed source
Reviewed-by: asotona
2025-01-31 07:56:13 +00:00
SendaoYan
2df9d5bc2f 8349040: Test compiler/inlining/LateInlinePrinting.java fails after JDK-8319850
Reviewed-by: mbaesken, thartmann
2025-01-31 06:40:26 +00:00
Ioi Lam
03f5c33b53 8349122: -XX:+AOTClassLinking is not compatible with jdwp
Reviewed-by: jrose, kvn
2025-01-31 05:37:38 +00:00
naveen.n.narayanan
0d30b869d8 8344581: [TESTBUG] java/awt/Robot/ScreenCaptureRobotTest.java failing on macOS
Reviewed-by: aivanov, azvegint, abhiscxk
2025-01-31 05:14:57 +00:00
Ioi Lam
cdc84acdcc 8348890: Fix docs for -XX:AOT* options in java man page
Reviewed-by: jrose
2025-01-31 01:56:05 +00:00
Nizar Benalla
8986cb2772 8331873: Improve/expand info in New API In on Help page
Co-authored-by: Jonathan Gibbons <jjg@openjdk.org>
Reviewed-by: liach, hannesw
2025-01-31 01:16:54 +00:00
Harshitha Onkar
d589a82d08 8349101: Problemlist HeadlessMalfunctionTest.java
Reviewed-by: dholmes
2025-01-30 21:11:34 +00:00
Justin Lu
f05c53c2c4 8347949: Currency method to stream available Currencies
Reviewed-by: naoto, liach, rriggs
2025-01-30 17:55:47 +00:00
Andrey Turbanov
cc775b1620 8348648: Unnecessary Hashtable usage in javax.swing.text.html.CSS.LengthUnit
Reviewed-by: aivanov, azvegint, serb
2025-01-30 17:48:11 +00:00
William Kemper
06ebb170ba 8349002: GenShen: Deadlock during shutdown
Reviewed-by: shade
2025-01-30 17:01:41 +00:00
Ioi Lam
1ac2d6e0fb 8349009: JVM fails to start when AOTClassLinking is used with unverifiable old classes
Reviewed-by: jrose, kvn
2025-01-30 16:21:57 +00:00
Zhengyu Gu
0cae888046 8349003: NativeCallStack::print_on() output is unreadable
Reviewed-by: stuefe, dholmes
2025-01-30 16:14:43 +00:00
Shaojin Wen
fdfb68c8d0 8344168: Change Unsafe base offset from int to long
Reviewed-by: liach
2025-01-30 15:57:13 +00:00
Andrew Dinn
5d5b294b0a 8349070: Fix riscv and ppc build errors caused by JDK-8343767
Reviewed-by: mdoerr, fyang, jwaters
2025-01-30 15:29:13 +00:00
Shaojin Wen
3f8a875497 8348880: Replace ConcurrentMap with AtomicReferenceArray for ZoneOffset.QUARTER_CACHE
Reviewed-by: naoto, liach
2025-01-30 15:13:13 +00:00
Jorn Vernee
fac63d4383 8348668: Prevent first resource cleanup in confined arena from escaping
Reviewed-by: liach
2025-01-30 14:55:37 +00:00
Casper Norrbin
2efb6aaadb 8345314: Add a red–black tree as a utility data structure
Reviewed-by: aboldtch, jsjolen, stuefe
2025-01-30 12:34:29 +00:00
Andrew Dinn
a937f6db30 8343767: Enumerate StubGen blobs, stubs and entries and generate code from declarations
Reviewed-by: vlivanov, mdoerr
2025-01-30 11:46:39 +00:00
Michal Karm Babacek
1858dc1410 8336382: Fix error reporting in loading AWT
Reviewed-by: prr, aivanov, serb
2025-01-30 11:12:44 +00:00
Nizar Benalla
22069ff42b 8348975: Broken links in the JDK 24 JavaDoc API documentation, build 33
Reviewed-by: liach
2025-01-30 10:10:49 +00:00
Stefan Karlsson
f81772a49e 8348647: CDS dumping commits 3GB when large pages are used
Reviewed-by: aboldtch, iklam
2025-01-30 09:47:45 +00:00
Serguei Spitsyn
fb0f2d25d2 8300708: Some nsk jvmti tests fail with virtual thread wrapper due to jvmti missing some virtual thread support
Reviewed-by: cjplummer, lmesnik
2025-01-30 09:11:13 +00:00
SendaoYan
bb528d5ad6 8348567: [ASAN] Memory access partially overflows by NativeCallStack
Reviewed-by: jsjolen, dholmes
2025-01-30 08:55:40 +00:00
Joachim Kern
e0c2cb48b3 8348663: [AIX] clang pollutes the burned-in library search paths of the generated executables
Reviewed-by: ihse, clanger, mbaesken
2025-01-30 08:36:05 +00:00
Axel Boldt-Christmas
14136f8b11 8347564: ZGC: Crash in DependencyContext::clean_unloading_dependents
Reviewed-by: eosterlund, stefank, vlivanov
2025-01-30 08:33:16 +00:00
Matthias Baesken
04c24f18d5 8347779: sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java fails with Unable to deduce type of thread from address
Reviewed-by: cjplummer, kevinw
2025-01-30 08:23:04 +00:00
Alexander Zvegintsev
d985b31cbb 8342096: Popup menus that request focus are not shown on Linux with Wayland
Reviewed-by: aivanov, honkar
2025-01-29 22:09:01 +00:00
Jiangli Zhou
cbe9ec530f 8348905: Add support to specify the JDK for compiling Jtreg tests
Reviewed-by: erikj
2025-01-29 17:52:43 +00:00
Vladimir Kozlov
6b581d22e1 8347997: assert(false) failed: EA: missing memory path
Reviewed-by: thartmann, chagedorn
2025-01-29 17:24:10 +00:00
Theo Weidmann
4662363e86 8348687: [BACKOUT] C2: Non-fluid StringBuilder pattern bails out in OptoStringConcat
Reviewed-by: chagedorn, shade
2025-01-29 16:57:00 +00:00
Ioi Lam
d266ca965d 8348752: Enable -XX:+AOTClassLinking by default when -XX:AOTMode is specified
Reviewed-by: shade, heidinga
2025-01-29 16:52:10 +00:00
Shaojin Wen
cbc89a7ac6 8348898: Remove unused OctalDigits to clean up code
Reviewed-by: liach
2025-01-29 16:24:01 +00:00
Theo Weidmann
96fefed37f 8319850: PrintInlining should print which methods are late inlines
Reviewed-by: chagedorn, kvn, jsjolen, dlong
2025-01-29 15:14:40 +00:00
Prasanta Sadhukhan
51cce6e612 8318577: Windows Look-and-Feel JProgressBarUI does not render correctly on 2x UI scale
Reviewed-by: tr
2025-01-29 14:37:14 +00:00
Guoxiong Li
6bfae3acc1 8333386: TestAbortOnVMOperationTimeout test fails for client VM
Reviewed-by: ayang, tschatzl
2025-01-29 14:36:55 +00:00
Shaojin Wen
f98d9a3301 8348870: Eliminate array bound checks in DecimalDigits
Reviewed-by: liach, rgiulietti
2025-01-29 13:07:19 +00:00
Matthias Baesken
fe6d9ab951 8348582: Set -fstack-protector when building with clang
Reviewed-by: jkern, erikj
2025-01-29 13:04:44 +00:00
Theo Weidmann
fff97d6d9a 8343938: TestStressBailout triggers "Should not be locked when freed" assert
Reviewed-by: kvn, thartmann
2025-01-29 08:59:19 +00:00
Kevin Walls
69ec45348a 8347985: Deprecate java.management Permission classes for removal
Reviewed-by: sspitsyn, rriggs
2025-01-29 08:42:06 +00:00
Stefan Karlsson
3af4cfc52d 8348180: Remove mention of include of precompiled.hpp from the HotSpot Style Guide
Reviewed-by: dholmes, eosterlund
2025-01-29 08:36:23 +00:00
Matthias Baesken
168a471fd0 8348830: LIBFONTMANAGER optimization is always HIGHEST
Reviewed-by: erikj, prr, serb
2025-01-29 08:22:42 +00:00
Tobias Hartmann
55c3e78f4e 8348631: Crash in PredictedCallGenerator::generate after JDK-8347006
Reviewed-by: kvn, epeter
2025-01-29 07:13:11 +00:00
Chris Plummer
98a93e1151 8348800: Many serviceability/sa tests failing after JDK-8348239
Reviewed-by: shade, kevinw, lmesnik
2025-01-28 23:29:59 +00:00
Alexey Semenyuk
5e81fa6a1f 8348892: Properly fix compilation error for zip_util.c on Windows
Reviewed-by: kcr, jiangli
2025-01-28 23:06:13 +00:00
Justin Lu
3a564ed101 8347955: TimeZone methods to stream the available timezone IDs
Reviewed-by: naoto, rriggs
2025-01-28 21:31:46 +00:00
Jiangli Zhou
1efae9a41e 8348888: tier1 closed build failure on Windows after JDK-8348348
Reviewed-by: kcr, liach, asemenyuk
2025-01-28 20:24:16 +00:00
Daniel Gredler
c018a604f6 8344637: Fix Page8 of manual test java/awt/print/PrinterJob/PrintTextTest.java on Linux and Windows
Reviewed-by: honkar, prr
2025-01-28 20:02:48 +00:00
Cesar Soares Lucas
c3c3888762 8336760: [JVMCI] -XX:+PrintCompilation should also print "hosted" JVMCI compilations
Reviewed-by: dnsimon, kvn
2025-01-28 19:18:59 +00:00
Cesar Soares Lucas
9f4d3de442 8347718: Unexpected NullPointerException in C2 compiled code due to ReduceAllocationMerges
Reviewed-by: kvn, thartmann
2025-01-28 19:17:15 +00:00
Justin Lu
a224f12cb7 8348205: Improve cutover time selection when building available currencies set
Reviewed-by: naoto, rriggs
2025-01-28 17:40:20 +00:00
Jiangli Zhou
81032560f7 8348348: Remove unnecessary #ifdef STATIC_BUILD around DEF_STATIC_JNI_OnLoad from zip_util.c
Reviewed-by: sgehwolf
2025-01-28 16:42:13 +00:00
Alexey Semenyuk
fb066caea8 8347272: [ubsan] JvmLauncher.cpp:262:52: runtime error: applying non-zero offset 40 to null pointer
Reviewed-by: almatvee, mbaesken
2025-01-28 13:51:04 +00:00
Zhengyu Gu
5fec999474 8339668: Parallel: Adopt PartialArrayState to consolidate marking stack in Full GC
Co-authored-by: Thomas Schatzl <tschatzl@openjdk.org>
Reviewed-by: tschatzl, ayang
2025-01-28 13:29:37 +00:00
Dhamoder Nalla
2bef5b4a87 8348323: Corrupted timezone string in JVM crash log
Reviewed-by: dholmes, amitkumar, kevinw
2025-01-28 11:32:00 +00:00
Nizar Benalla
3a8680e919 8347058: When automatically translating the page to pt-br, all CSS styling disappears
Reviewed-by: hannesw, liach
2025-01-28 11:13:54 +00:00
Joachim Kern
a4942a2f7a 8348286: [AIX] clang 17 introduces new warning Wtentative-Definitions which produces Build errors
Reviewed-by: ihse, azvegint
2025-01-28 10:25:36 +00:00
Volkan Yazici
558255ae70 8328919: Add BodyHandlers / BodySubscribers methods to handle excessive server input
Reviewed-by: jpai
2025-01-28 10:22:55 +00:00
Theo Weidmann
1f74caa7da 8348401: [IR Framework] PrintTimes should not require verbose
Reviewed-by: kvn, chagedorn
2025-01-28 09:41:12 +00:00
Kevin Walls
f71541c93b 8344976: Remove the jmx.invoke.getters compatibility property
Reviewed-by: cjplummer, dfuchs, sspitsyn
2025-01-28 09:22:50 +00:00
Robbin Ehn
2537a05c06 8348384: RISC-V: Disable auto-enable Vector on buggy kernels
Reviewed-by: fyang, mli, luhenry
2025-01-28 07:35:30 +00:00
Ioi Lam
46f48e4e3d 8348515: Add docs for -XX:AOT* options in java man pages
Reviewed-by: adinn, kvn
2025-01-28 00:12:57 +00:00
Calvin Cheung
1916a7773f 8346923: MetaspaceShared base calculation may cause overflow in align_up
Reviewed-by: iklam, matsaave
2025-01-27 22:41:55 +00:00
Chris Plummer
21feef3280 8348239: SA does not know about DeoptimizeObjectsALotThread
Reviewed-by: kevinw, dlong, dholmes, lmesnik
2025-01-27 19:45:50 +00:00
Matthias Ernst
8cc1304542 8287788: Implement a better allocator for downcalls
Reviewed-by: jvernee
2025-01-27 19:40:26 +00:00
Weijun Wang
039e73fcdb 8346736: Java Security Standard Algorithm Names spec should include key algorithm names
Reviewed-by: mullan, hchao
2025-01-27 18:21:51 +00:00
Weijun Wang
aba60a9274 8189441: Define algorithm names for keys derived from KeyAgreement
Reviewed-by: mullan
2025-01-27 18:09:17 +00:00
Gennadiy Krivoshein
03106eb2d3 8344119: CUPSPrinter does not respect PostScript printer definition specification in case of reading ImageableArea values from PPD files
Reviewed-by: prr, psadhukhan
2025-01-27 18:05:19 +00:00
Albert Mingkun Yang
ad01dfb670 8346920: Serial: Support allocation in old generation when heap is almost full
Reviewed-by: tschatzl, gli, sjohanss
2025-01-27 14:57:49 +00:00
Chen Liang
1d8ccb8920 8342465: Improve API documentation for java.lang.classfile
Reviewed-by: asotona, darcy
2025-01-27 14:03:35 +00:00
Magnus Ihse Bursie
7d6055a786 8348429: Update cross-compilation devkits to Fedora 41/gcc 13.2
Reviewed-by: erikj
2025-01-27 13:11:03 +00:00
Magnus Ihse Bursie
f1e07974a0 8348586: Optionally silence make warnings about non-control variables
Reviewed-by: mcimadamore, erikj
2025-01-27 13:10:43 +00:00
Eirik Bjørsnøs
ffeb9b5aff 8342807: Update links in java.base to use https://
Reviewed-by: rriggs, ihse, jkern
2025-01-27 12:46:43 +00:00
Martin Doerr
afcc2b03af 8348562: ZGC: segmentation fault due to missing node type check in barrier elision analysis
Reviewed-by: rcastanedalo, rrich
2025-01-27 10:11:53 +00:00
Theo Weidmann
175e58b2e3 8332980: [IR Framework] Add option to measure IR rule processing time
Reviewed-by: kvn, chagedorn
2025-01-27 08:19:55 +00:00
Matthias Baesken
b8c68c0e8c 8348207: Linux PPC64 PCH build broken after JDK-8347909
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Reviewed-by: clanger, erikj, mdoerr
2025-01-27 08:14:33 +00:00
Matthias Baesken
70eec9001a 8338303: Linux ppc64le with toolchain clang - detection failure in early JVM startup
Reviewed-by: mdoerr, erikj, ihse
2025-01-27 07:35:40 +00:00
Robbin Ehn
a1fd5f4e88 8348554: Enhance Linux kernel version checks
Reviewed-by: shade, fyang
2025-01-27 07:13:00 +00:00
Koushik Thirupattur
002679ac9f 8347065: Add missing @spec tags for Java Security Standard Algorithm Names
Reviewed-by: weijun
2025-01-25 19:06:47 +00:00
Leonid Mesnik
99002e4f9d 8318098: Update jfr tests to replace keyword jfr with vm.flagless
Reviewed-by: mgronlun
2025-01-25 18:59:20 +00:00
Archie Cobbs
5431668cb9 8348212: Need to add warn() step to JavacTaskImpl after JDK-8344148
Reviewed-by: mcimadamore
2025-01-25 18:02:18 +00:00
Alan Bateman
1d2eb2fbae 8299504: Resolve uses and provides at run time if the service is optional and missing
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Alex Buckley <abuckley@openjdk.org>
Reviewed-by: sundar
2025-01-25 07:25:24 +00:00
Shaojin Wen
f446cefee0 8343962: [REDO] Move getChars to DecimalDigits
Reviewed-by: redestad, rgiulietti
2025-01-25 03:12:56 +00:00
William Kemper
7c0985fc32 8348420: Shenandoah: Check is_reserved before using ReservedSpace instances
Reviewed-by: ysr
2025-01-24 23:34:57 +00:00
Jamil Nimeh
f8e81d2339 8347506: Compatible OCSP readtimeout property with OCSP timeout
Reviewed-by: mullan, hchao
2025-01-24 23:06:57 +00:00
Mark Powers
907350e9e8 8346587: Distrust TLS server certificates anchored by Camerfirma Root CAs
Reviewed-by: mullan
2025-01-24 23:05:34 +00:00
Justin Lu
dec93675ab 8347498: JDK 24 RDP2 L10n resource files update
Reviewed-by: sgehwolf, dnguyen, naoto, joehw, asemenyuk
2025-01-24 21:43:19 +00:00
Andrey Turbanov
bef5f56544 8291027: Some of TimeZone methods marked 'synchronized' unnecessarily
Reviewed-by: liach, naoto, jlu
2025-01-24 20:13:17 +00:00
Eirik Bjørsnøs
8e8f800071 8344943: Mark not subclassable classes final in java.base exported classes
Reviewed-by: weijun, liach, djelinski
2025-01-24 19:29:05 +00:00
Volker Simonis
76f792b552 8348203: [JVMCI] Make eager JVMCI initialization observable in the debugger
Reviewed-by: dnsimon
2025-01-24 15:37:47 +00:00
Sonia Zaldana Calles
909cef5198 8339891: Several sun/security/ssl/SSLSessionImpl/* tests override test.java.opts
Reviewed-by: lmesnik
2025-01-24 14:36:05 +00:00
Andrey Turbanov
56a1877989 8348170: Unnecessary Hashtable usage in CSS.styleConstantToCssMap
Reviewed-by: azvegint, aivanov
2025-01-24 14:06:08 +00:00
Eirik Bjørsnøs
9768f60a94 8345249: Apply some conservative cleanups in FileURLConnection
Reviewed-by: jpai, djelinski
2025-01-24 13:00:28 +00:00
Guoxiong Li
c5a69b620a 8331723: Serial: Remove the unused parameter of the method SerialHeap::gc_prologue
Co-authored-by: nanxiaotao <nxtchongchong@163.com>
Reviewed-by: ayang
2025-01-24 12:47:25 +00:00
Robbin Ehn
9c55e2538c 8347981: RISC-V: Add Zfa zli imm loads
Reviewed-by: fyang, luhenry
2025-01-24 11:46:54 +00:00
Sean Coffey
e20bd018c4 8344361: Restore null return for invalid services from legacy providers
Reviewed-by: valeriep
2025-01-24 10:40:36 +00:00
Andrew Haley
5a0bdd04e0 8346890: AArch64: Type profile counters generate suboptimal code
Reviewed-by: shade, adinn
2025-01-24 10:38:43 +00:00
Martin Doerr
4a375e5b88 8344232: [PPC64] secondary_super_cache does not scale well: C1 and interpreter
Reviewed-by: rrich, amitkumar
2025-01-24 09:50:06 +00:00
Stefan Karlsson
0df9dcb6aa 8346572: Check is_reserved() before using ReservedSpace instances
Reviewed-by: tschatzl, wkemper, ayang, ysr
2025-01-24 09:23:29 +00:00
Kevin Walls
a09f06d538 8348265: RMIConnectionImpl: Remove Subject.callAs on MarshalledObject
Reviewed-by: rriggs
2025-01-24 08:39:37 +00:00
Jan Lahoda
0395593a8a 8346751: Internal java compiler error with type annotations in constants expression in constant fields
Reviewed-by: vromero
2025-01-24 08:12:50 +00:00
Adam Sotona
2daafe49c7 8348283: java.lang.classfile.components.snippets.PackageSnippets shipped in java.base.jmod
Reviewed-by: liach
2025-01-24 07:25:08 +00:00
anass baya
50ca450417 8340784: Remove PassFailJFrame constructor with screenshots
Reviewed-by: aivanov, azvegint
2025-01-24 07:01:03 +00:00
Alexander Zvegintsev
416d46947c 8347008: beancontext package spec does not clearly explain why the API is deprecated
Reviewed-by: aivanov, prr
2025-01-24 05:41:12 +00:00
Joe Wang
471d63c91f 8343609: Broken links in java.xml
Reviewed-by: naoto, lancea, iris
2025-01-24 00:29:49 +00:00
Ioi Lam
7f16a0875c 8348240: Remove SystemDictionaryShared::lookup_super_for_unregistered_class()
Reviewed-by: ccheung, coleenp
2025-01-23 22:02:48 +00:00
Rajat Mahajan
48ece07214 8282862: AwtWindow::SetIconData leaks old icon handles if an exception is detected
Reviewed-by: aivanov, dmarkov, prr, honkar, azvegint
2025-01-23 20:52:45 +00:00
Mikhail Yankelevich
356e2a8f48 8348406: Remove tests GrantAllPermToExtWhenNoPolicy and PrincipalExpansionError from problem list
Reviewed-by: rhalade
2025-01-23 18:59:21 +00:00
Mikael Vidstedt
3ebf88996f 8348327: Incorrect march flag when building libsleef/vector_math_neon.c
Reviewed-by: erikj, vlivanov, shade
2025-01-23 18:37:37 +00:00
Liam Miller-Cushon
d9d2e19f92 8348365: Bad format string in CLDRDisplayNamesTest
Reviewed-by: shade, naoto
2025-01-23 17:24:33 +00:00
Aleksey Shipilev
59e750931c 8348301: Remove unused Reference.waitForReferenceProcessing break-ins in tests
Reviewed-by: alanb
2025-01-23 16:49:00 +00:00
Alexey Ivanov
605b53e4f8 8348299: Update List/ItemEventTest/ItemEventTest.java
Use thread-safe StringBuffer to track selecting/deselecting items.
Use auto waitForIdle for all events.
Log handleEvent and ItemListener.
Take screenshot of the list on failure;
Optionally take screenshot after each mouse press+release.

Reviewed-by: azvegint, prr, kizune
2025-01-23 15:18:38 +00:00
Magnus Ihse Bursie
cba0f786fc 8348387: Add fixpath if needed for user-supplied tools
Reviewed-by: erikj
2025-01-23 14:51:32 +00:00
Magnus Ihse Bursie
44e5ccaf86 8348391: Keep case if possible for TOPDIR
Reviewed-by: erikj
2025-01-23 14:50:03 +00:00
Magnus Ihse Bursie
7460a0aff4 8348392: Make claims "other matches are possible" even when that is not true
Reviewed-by: erikj
2025-01-23 14:47:14 +00:00
Serhiy Sachkov
5cc690d31e 8347994: Add additional diagnostics to macOS failure handler to assist with diagnosing MCast test failures
Reviewed-by: dfuchs
2025-01-23 13:40:20 +00:00
Kevin Walls
c00557f8f5 8345049: Remove the jmx.tabular.data.hash.map compatibility property
Reviewed-by: cjplummer, sspitsyn, dfuchs
2025-01-23 11:41:16 +00:00
Kevin Walls
8b46db0c0d 8345045: Remove the jmx.remote.x.buffer.size JMX notification property
Reviewed-by: amenkov, sspitsyn
2025-01-23 11:39:38 +00:00
Kevin Walls
119899bc69 8345048: Remove the jmx.extend.open.types compatibility property
Reviewed-by: cjplummer, amenkov, sspitsyn
2025-01-23 11:06:11 +00:00
Alexey Ivanov
89bfcb8db0 8348308: Make fields of ListSelectionEvent final
Reviewed-by: honkar, azvegint
2025-01-23 10:51:53 +00:00
Alexey Ivanov
17df51516a 8348303: Remove repeated 'a' from ListSelectionEvent
Reviewed-by: azvegint, honkar, dmarkov, prr, kizune
2025-01-23 10:50:39 +00:00
Theo Weidmann
337118da6f 8348388: Incorrect copyright header in TestFluidAndNonFluid.java
Reviewed-by: epeter, chagedorn
2025-01-23 10:16:33 +00:00
Kevin Walls
3069e91232 8344969: Remove the jmx.mxbean.multiname compatibility property
Reviewed-by: sspitsyn, amenkov, dfuchs
2025-01-23 09:30:03 +00:00
Kevin Walls
c882160d03 8344966: Remove the allowNonPublic MBean compatibility property
Reviewed-by: amenkov, sspitsyn, dfuchs
2025-01-23 09:28:51 +00:00
Theo Weidmann
6032f6ea04 8341696: C2: Non-fluid StringBuilder pattern bails out in OptoStringConcat
Reviewed-by: epeter
2025-01-23 08:41:02 +00:00
Johny Jose
caa3c78f78 8347965: (tz) Update Timezone Data to 2025a
Reviewed-by: coffeys, naoto
2025-01-23 08:26:43 +00:00
Magnus Ihse Bursie
e69e5b7960 8348324: The failure handler cannot be build by JDK 24 due to restricted warning
Reviewed-by: jwaters, jpai
2025-01-23 07:51:11 +00:00
Casper Norrbin
66513ddbe9 8337997: MallocHeader description refers to non-existent NMT state "minimal"
Reviewed-by: jsjolen, zgu
2025-01-23 05:05:19 +00:00
Jaikiran Pai
8cf0735839 8348102: java/net/httpclient/HttpClientSNITest.java fails intermittently
Reviewed-by: dfuchs, djelinski
2025-01-23 01:39:20 +00:00
Zhengyu Gu
a36e166ec9 8348241: ZGC: Unnecessarily reinitialize ZFragmentationLimit's default value
Reviewed-by: stefank
2025-01-23 01:14:47 +00:00
Daniel Fuchs
b720517cb3 8348108: Race condition in AggregatePublisher.AggregateSubscription
Reviewed-by: jpai
2025-01-22 16:39:08 +00:00
Johan Sjölen
17a408c4b1 8348169: Destruct values on free in Treap
Reviewed-by: cnorrbin, gziemski
2025-01-22 16:35:59 +00:00
Aleksey Shipilev
25bb698eff 8348195: More u2 conversion warnings after JDK-8347147
Reviewed-by: coleenp, dholmes
2025-01-22 15:27:41 +00:00
Magnus Ihse Bursie
893d00ac7d 8346388: Cannot use DllMain in libawt for static builds
Reviewed-by: aivanov, prr
2025-01-22 15:11:41 +00:00
Roberto Castañeda Lozano
1c7641d44f 8347563: C2: clean up ModRefBarrierSetC2
Reviewed-by: ayang, tschatzl, kvn
2025-01-22 12:29:53 +00:00
Coleen Phillimore
86a8b48b6c 8337458: Remove debugging code print_cpool_bytes
Reviewed-by: dholmes, shade
2025-01-22 12:21:17 +00:00
Jaikiran Pai
16a1d0a7ff 8348135: Fix couple of problem listing entries in test/hotspot/jtreg/ProblemList-Virtual.txt
Reviewed-by: dholmes
2025-01-22 12:14:27 +00:00
Emanuel Peter
16dcf15a14 8348263: C2 SuperWord: TestMemorySegment.java has failing IR rules with AlignVector after JDK-8343685
Reviewed-by: chagedorn, thartmann
2025-01-22 12:02:39 +00:00
Jaikiran Pai
61873564a4 Merge
Reviewed-by: dfuchs
2025-01-22 11:28:24 +00:00
Robbin Ehn
fb43849227 8347794: RISC-V: Add Zfhmin - Float cleanup
Reviewed-by: fyang, mli
2025-01-22 10:25:36 +00:00
Christian Hagedorn
5f6c85420a 8330045: Enhance array handling
Co-authored-by: Christian Hagedorn <chagedorn@openjdk.org>
Co-authored-by: Emanuel Peter <epeter@openjdk.org>
Co-authored-by: Francisco Ferrari Bihurriet <fferrari@redhat.com>
Co-authored-by: Martin Balao <mbalao@redhat.com>
Reviewed-by: rhalade, ahgross, thartmann, epeter, adinn, roland
2025-01-22 14:56:49 +05:30
Roger Riggs
fa83309e10 8339180: Enhanced Building of Processes: Follow-on Issue
Reviewed-by: naoto, djelinski
2025-01-22 14:56:49 +05:30
Jayathirth D V
496d06fb55 8336564: Enhance mask blit functionality redux
Reviewed-by: rhalade, mschoene, psadhukhan, prr
2025-01-22 14:56:49 +05:30
Roger Riggs
46b2481958 8335428: Enhanced Building of Processes
Reviewed-by: rhalade, djelinski
2025-01-22 14:56:49 +05:30
Stefan Karlsson
9b98cc0ba7 8348182: Remove DONT_USE_PRECOMPILED_HEADER
Reviewed-by: erikj, shade, dholmes
2025-01-22 09:25:40 +00:00
Matthias Baesken
d777218f38 8346830: Simplify adlc build config for aix
Reviewed-by: clanger, erikj, jwaters, jkern
2025-01-22 08:01:01 +00:00
Richard Reingruber
15d6469e8d 8347817: Timeouts running test/jdk/java/lang/String/concat/HiddenClassUnloading.java with fastdebug builds
Reviewed-by: clanger, mbaesken, mdoerr
2025-01-22 07:02:40 +00:00
David Holmes
3c2a1d87d5 8348117: The two-argument overload of SignatureHandlerLibrary::add is not used
Reviewed-by: coleenp, shade
2025-01-22 06:10:24 +00:00
Abhishek Kumar
8458f886bd 8347475: GTK: javax/swing/JColorChooser/Test8152419.java there are no swatches or RGB tab in JColorChooser
Reviewed-by: aivanov, azvegint, prr, kizune
2025-01-22 05:51:38 +00:00
Serguei Spitsyn
7a6ff9206a 8345543: Test serviceability/jvmti/vthread/StopThreadTest/StopThreadTest.java failed: expected JVMTI_ERROR_OPAQUE_FRAME instead of: 0
Reviewed-by: pchilanomate, dholmes, alanb
2025-01-21 21:37:34 +00:00
Leonid Mesnik
bbd880775f 8338428: Add logging of final VM flags while setting properties
Reviewed-by: dholmes, rriggs
2025-01-21 21:10:43 +00:00
Aleksey Shipilev
c38417a86e 8348186: C1: Purge fpu_stack_size infrastructure
Reviewed-by: kvn
2025-01-21 19:23:33 +00:00
Brian Burkhalter
f2a9d26b2e 8347740: java/io/File/createTempFile/SpecialTempFile.java failing
Reviewed-by: djelinski
2025-01-21 19:07:17 +00:00
Magnus Ihse Bursie
25fecaaf87 8348039: testmake fails at IDEA after JDK-8347825
Reviewed-by: erikj
2025-01-21 19:02:08 +00:00
William Kemper
6a29a8110e 8345750: Shenandoah: Test TestJcmdHeapDump.java#aggressive intermittent assert(gc_cause() == GCCause::_no_gc) failed: Over-writing cause
Reviewed-by: kdnilsen, ysr
2025-01-21 18:36:19 +00:00
Naoto Sato
81912e958b 8347841: Test fixes that use deprecated time zone IDs
Reviewed-by: jlu, joehw
2025-01-21 18:29:56 +00:00
Kevin Walls
3d4afc492a 8345079: Simplify/cleanup Exception handling in RMIConnectionImpl
Reviewed-by: dfuchs
2025-01-21 17:23:04 +00:00
Daniel Fuchs
a62a870150 8347995: Race condition in jdk/java/net/httpclient/offline/FixedResponseHttpClient.java
Reviewed-by: jpai
2025-01-21 16:04:04 +00:00
SendaoYan
8e8c9482a9 8346866: [ASAN] memoryReserver.cpp reported applying non-zero offset to non-null pointer produced null pointer
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: kbarrett, stefank
2025-01-21 15:32:05 +00:00
Simon Tooke
1ed396b4fc 8346927: serviceability/dcmd/vm/[SystemMapTest.java|SystemDumpMapTest.java] fail at jmx
Reviewed-by: kevinw
2025-01-21 15:01:37 +00:00
Daniel Fuchs
5c4a387b7e 8348107: test/jdk/java/net/httpclient/HttpsTunnelAuthTest.java fails intermittently
Reviewed-by: jpai
2025-01-21 14:46:53 +00:00
Thomas Stuefe
48c75976b1 8348029: Make gtest death tests work with real crash signals
Reviewed-by: mbaesken, szaldana
2025-01-21 14:46:25 +00:00
Coleen Phillimore
4a9fba615d 8347990: Remove SIZE_FORMAT macros and replace remaining uses
Reviewed-by: dholmes, kbarrett
2025-01-21 13:18:58 +00:00
Stefan Karlsson
c33c1cfe73 8347909: Automatic precompiled.hpp inclusion
Reviewed-by: lkorinth, erikj, dholmes, ihse
2025-01-21 10:21:24 +00:00
Theo Weidmann
f54e0bf267 8345766: C2 should emit macro nodes for ModF/ModD instead of calls during parsing
Reviewed-by: kvn, epeter
2025-01-21 09:15:18 +00:00
Emanuel Peter
0f426e4a6d 8343685: C2 SuperWord: refactor VPointer with MemPointer
Co-authored-by: Christian Hagedorn <chagedorn@openjdk.org>
Reviewed-by: kvn, chagedorn
2025-01-21 07:05:05 +00:00
Amit Kumar
6b9198541b 8346157: [Ubsan]: runtime error: pointer index expression with base 0x000000001000 overflowed to 0xfffffffffffffff0
Reviewed-by: stuefe, aph
2025-01-21 03:53:43 +00:00
David Holmes
955bf185c3 8348040: Bad use of ifdef with INCLUDE_xxx GC macros
Reviewed-by: stefank, shade
2025-01-20 20:31:26 +00:00
Zhengyu Gu
ca863fd5ab 8347758: modules.cpp leaks string returned from get_numbered_property_as_sorted_string()
Reviewed-by: dholmes, iklam, ccheung
2025-01-20 19:13:59 +00:00
Magnus Ihse Bursie
3a4d5ff7a3 8347996: JavaCompilation.gmk should not include ZipArchive.gmk
Reviewed-by: erikj
2025-01-20 16:29:00 +00:00
Archie Cobbs
0fbf10a9cf 8348038: Docs build failing in Options.notifyListeners with AssertionError
Reviewed-by: jlahoda, mcimadamore
2025-01-20 14:20:10 +00:00
Andrey Turbanov
9346984725 8347916: Simplify javax.swing.text.html.CSS.LengthUnit.getValue
Reviewed-by: azvegint, aivanov
2025-01-20 12:54:58 +00:00
Albert Mingkun Yang
3c9239263f 8348089: Serial: Remove virtual specifier in SerialHeap
Reviewed-by: stefank
2025-01-20 12:44:21 +00:00
Christian Hagedorn
8a83dc213a 8347018: C2: Insertion of Assertion Predicates ignores the effects of PhaseIdealLoop::clone_up_backedge_goo()
Reviewed-by: epeter, kvn
2025-01-20 12:24:33 +00:00
Aleksey Shipilev
85fdd2cc12 8347434: Richer VM operations events logging
Reviewed-by: dholmes, jsjolen
2025-01-20 12:18:05 +00:00
Albert Mingkun Yang
c207cc7e70 8347923: Parallel: Simplify compute_survivor_space_size_and_threshold
Reviewed-by: tschatzl
2025-01-20 09:51:45 +00:00
Markus Grönlund
4b4b1e912a 8347922: Remove runtime/cds/appcds/customLoader/HelloCustom_JFR.java from ProblemList.txt
Reviewed-by: egahlin
2025-01-20 08:54:15 +00:00
Volkan Yazıcı
e7a1c8660a 8217914: java/net/httpclient/ConnectTimeoutHandshakeSync.java failed on connection refused while doing POST
Reviewed-by: dfuchs, jpai
2025-01-20 06:53:25 +00:00
Archie Cobbs
644d154c7c 8347474: Options singleton is used before options are parsed
Reviewed-by: vromero
2025-01-19 14:57:08 +00:00
Robert Toyonaga
3804082cba 8346123: [REDO] NMT should not use ThreadCritical
Reviewed-by: dholmes, coleenp, stuefe
2025-01-18 17:21:28 +00:00
Robbin Ehn
1f0efc0091 8347343: RISC-V: Unchecked zicntr csr reads
Reviewed-by: fyang, mli
2025-01-18 09:19:21 +00:00
Robbin Ehn
ca8ba5c890 8347366: RISC-V: Add extension asserts for CMO instructions
Reviewed-by: fyang, mli
2025-01-18 09:16:22 +00:00
Robbin Ehn
0ff67000dc 8347987: Bad ifdef in 8330851
Reviewed-by: stefank, mdoerr, syan, amitkumar
2025-01-18 08:41:00 +00:00
Calvin Cheung
e1cf3517ae 8348013: [doc] fix typo in java.md caused by JDK-8347763
Reviewed-by: iklam
2025-01-18 00:34:27 +00:00
Serguei Spitsyn
6ef860c728 8332857: Test vmTestbase/nsk/jvmti/GetThreadCpuTime/thrcputime002/TestDescription.java failed
Reviewed-by: lmesnik, cjplummer, amenkov
2025-01-18 00:28:30 +00:00
Calvin Cheung
17e3df652f 8347763: [doc] Add documentation of module options for JEP 483
Reviewed-by: iklam
2025-01-17 18:46:17 +00:00
Jatin Bhateja
6cc1c0abdb 8347422: Crash during safepoint handler execution with -XX:+UseAPX
Reviewed-by: kvn, sviswanathan, thartmann
2025-01-17 18:05:13 +00:00
Coleen Phillimore
baca7daa32 8347733: Replace SIZE_FORMAT in runtime code
Reviewed-by: matsaave, sspitsyn, dholmes
2025-01-17 16:24:47 +00:00
Leonid Mesnik
2ca1b4d48d 8347840: Fix testlibrary compilation warnings
Reviewed-by: dholmes
2025-01-17 15:43:04 +00:00
Zhengyu Gu
2c41f5adbf 8347959: ThreadDumper leaks memory
Reviewed-by: amenkov, sspitsyn, shade
2025-01-17 13:39:22 +00:00
Prasanta Sadhukhan
15e06b6186 8345618: javax/swing/text/Caret/8163124/CaretFloatingPointAPITest.java leaves Caret is not complete
Reviewed-by: azvegint
2025-01-17 12:54:54 +00:00
Coleen Phillimore
3ab521e1a1 8347924: Replace SIZE_FORMAT in memory and metaspace
Reviewed-by: jsjolen, matsaave
2025-01-17 12:16:44 +00:00
Gui Cao
8460072f9d 8342881: RISC-V: secondary_super_cache does not scale well: C1 and interpreter
Reviewed-by: fyang, fjiang
2025-01-17 11:31:48 +00:00
Amit Kumar
f5573f5cbd 8330851: C2: More efficient TypeFunc creation
Reviewed-by: vlivanov, dlong
2025-01-17 10:21:15 +00:00
Matthias Baesken
a3eef6c241 8346875: Test jdk/jdk/jfr/event/os/TestCPULoad.java fails on macOS
Reviewed-by: egahlin
2025-01-17 07:58:52 +00:00
Jayathirth D V
398a580518 8347911: Limit the length of inflated text chunks
Reviewed-by: azvegint, prr
2025-01-17 04:02:26 +00:00
Quan Anh Mai
aa21de566d 8347481: C2: Remove the control input of some nodes
Reviewed-by: dfenacci, vlivanov, kvn
2025-01-17 02:05:14 +00:00
Magnus Ihse Bursie
1f365cc6c7 8346433: Cannot use DllMain in hotspot for static builds
Reviewed-by: dholmes, stuefe
2025-01-16 21:46:18 +00:00
William Kemper
0330ca4221 8347617: Shenandoah: Use consistent name for update references phase
Reviewed-by: ysr
2025-01-16 20:53:17 +00:00
Matthias Baesken
07a0dcbabc 8347576: Error output in libjsound has non matching format strings
Reviewed-by: mdoerr, serb, clanger
2025-01-16 16:30:32 +00:00
Coleen Phillimore
d218b54086 8347609: Replace SIZE_FORMAT in os/os_cpu/cpu directories
Reviewed-by: matsaave, dholmes
2025-01-16 16:09:04 +00:00
SendaoYan
e7795ccdd9 8347347: Build fails undefined symbol: __asan_init by clang17
Reviewed-by: erikj, jwaters
2025-01-16 15:40:21 +00:00
Theo Weidmann
788f04990a 8346607: IGV: Support drag-and-drop for opening graph files
Reviewed-by: rcastanedalo, chagedorn, dfenacci, thartmann
2025-01-16 14:38:02 +00:00
Coleen Phillimore
bfa0cb7916 8347730: Replace SIZE_FORMAT in g1
Reviewed-by: kbarrett, tschatzl
2025-01-16 14:30:53 +00:00
Magnus Ihse Bursie
3b6e57670c 8347825: Make IDEA ide support use proper build system mechanisms
Reviewed-by: mcimadamore, erikj
2025-01-16 14:25:52 +00:00
Coleen Phillimore
8bfa540550 8347731: Replace SIZE_FORMAT in zgc
Reviewed-by: stefank, tschatzl, jsikstro
2025-01-16 12:48:51 +00:00
Coleen Phillimore
cbe2f9654e 8347732: Replace SIZE_FORMAT in shenandoah
Reviewed-by: wkemper, ysr
2025-01-16 12:46:32 +00:00
Theo Weidmann
f64f22b360 8346107: Generators: testing utility for random value generation
Co-authored-by: Emanuel Peter <epeter@openjdk.org>
Reviewed-by: epeter, chagedorn
2025-01-16 12:17:21 +00:00
Theo Weidmann
4ad5d5514e 8325030: PhaseMacroExpand::value_from_mem_phi assert with "unknown node on this path"
Reviewed-by: chagedorn, kvn
2025-01-16 12:16:14 +00:00
Andrey Turbanov
24de9dee80 8347370: Unnecessary Hashtable usage in javax.swing.text.html.HTML
Reviewed-by: aivanov, azvegint
2025-01-16 11:38:28 +00:00
Aleksey Shipilev
d23ad01319 8337978: Verify OopHandles oops on access
Reviewed-by: dholmes, coleenp
2025-01-16 10:13:48 +00:00
Alexander Zuev
9c430c9225 8336920: ArithmeticException in javax.sound.sampled.AudioInputStream
Reviewed-by: azvegint, prr
2025-01-16 01:10:46 +00:00
Coleen Phillimore
bdf6e63eb1 8347431: Update ObjectMonitor comments
Reviewed-by: dholmes, pchilanomate
2025-01-15 22:44:33 +00:00
William Kemper
764d70b7df 8344049: Shenandoah: Eliminate init-update-refs safepoint
8344050: Shenandoah: Retire GC LABs concurrently
8344055: Shenandoah: Make all threads use local gc state

Reviewed-by: ysr, kdnilsen
2025-01-15 17:49:38 +00:00
Naoto Sato
cfe70ebcb3 8342550: Log warning for using JDK1.1 compatible time zone IDs for future removal
Reviewed-by: jlu, joehw, iris
2025-01-15 17:15:05 +00:00
Coleen Phillimore
983e24fd26 8347727: Replace SIZE_FORMAT in shared gc
Reviewed-by: kbarrett, dholmes, tschatzl
2025-01-15 17:11:29 +00:00
Aleksey Shipilev
a6be907635 8347424: Fix and rewrite sun/security/x509/DNSName/LeadingPeriod.java test
Reviewed-by: mullan, bperez
2025-01-15 16:40:12 +00:00
Markus Grönlund
4257215a9f 8345493: JFR: JVM.flush hangs intermittently
Reviewed-by: egahlin
2025-01-15 16:17:26 +00:00
Mikhail Yankelevich
a0f7982e44 8345134: Test sun/security/tools/jarsigner/ConciseJarsigner.java failed: unable to find valid certification path to requested target
Reviewed-by: weijun
2025-01-15 15:24:31 +00:00
Severin Gehwolf
63cedaf40e 8347334: JimageDiffGenerator code clean-ups
Reviewed-by: henryjen, mbaesken
2025-01-15 14:44:35 +00:00
Sonia Zaldana Calles
254e840d9a 8340416: Remove ArchiveBuilder::estimate_archive_size()
Reviewed-by: iklam, ccheung
2025-01-15 14:09:27 +00:00
Hannes Greule
8193ba3de2 8347562: javac crash due to type vars in permits clause
Reviewed-by: vromero
2025-01-15 14:09:14 +00:00
Daniel Fuchs
7df21a8f09 8347597: HttpClient: improve exception reporting when closing connection
Reviewed-by: jpai
2025-01-15 12:40:38 +00:00
Coleen Phillimore
b0e2be6f6b 8347729: Replace SIZE_FORMAT in parallel and serial gc
Reviewed-by: dholmes, tschatzl
2025-01-15 12:25:59 +00:00
Per Minborg
d4e5ec2746 8346610: Make all imports consistent in the FFM API
Reviewed-by: mcimadamore
2025-01-15 12:19:27 +00:00
Coleen Phillimore
c36200b098 8347721: Replace SIZE_FORMAT in compiler directories
Reviewed-by: kvn, dlong
2025-01-15 12:16:58 +00:00
Alan Bateman
af3f5d852e 8347039: ThreadPerTaskExecutor terminates if cancelled tasks still running
Reviewed-by: vklang
2025-01-15 10:54:03 +00:00
Joakim Nordström
91197b384f 8347531: The signal tests are failing after JDK-8345782 due to an unrelated warning
Reviewed-by: kevinw, dholmes
2025-01-15 08:56:38 +00:00
Fei Yang
4f3dc9d13a 8347352: RISC-V: Cleanup bitwise AND assembler routines
Reviewed-by: rehn, fjiang, mli
2025-01-15 08:04:04 +00:00
Swati Sharma
afc4529d96 8346834: Tests failing with -XX:+UseNUMA due to "NUMA support disabled" warning
Reviewed-by: dholmes, sjohanss
2025-01-15 06:52:24 +00:00
Henry Jen
a3be97e2d6 8347761: Test tools/jimage/JImageExtractTest.java fails after JDK-8303884
Reviewed-by: dholmes
2025-01-15 05:40:04 +00:00
Chen Liang
28e01e6559 8347762: ClassFile attribute specification refers to non-SE modules
Reviewed-by: darcy, dholmes
2025-01-15 05:24:43 +00:00
Ioi Lam
be1cdd9450 8344140: Refactor the discovery of AOT cache artifacts
Reviewed-by: ccheung, asmehra
2025-01-15 04:32:47 +00:00
Chen Liang
973c630777 8342466: Improve API documentation for java.lang.classfile.attribute
Reviewed-by: darcy, asotona
2025-01-15 02:04:01 +00:00
William Kemper
9782bfdd27 8347620: Shenandoah: Use 'free' tag for free set related logging
Reviewed-by: ysr
2025-01-15 01:28:07 +00:00
Jaikiran Pai
35be4a432b 8347173: java/net/DatagramSocket/InterruptibleDatagramSocket.java fails with virtual thread factory
Reviewed-by: alanb, lmesnik, dfuchs
2025-01-15 01:10:32 +00:00
Jaikiran Pai
36b7abd617 8225763: Inflater and Deflater should implement AutoCloseable
Reviewed-by: lancea, rriggs, alanb, smarks
2025-01-15 01:04:44 +00:00
Henry Jen
d6d45c6eae 8303884: jlink --add-options plugin does not allow GNU style options to be provided
Reviewed-by: ysuenaga, alanb
2025-01-14 23:49:14 +00:00
Weijun Wang
0ee6ba9c4c 8347596: Update HSS/LMS public key encoding
Reviewed-by: mullan
2025-01-14 23:06:45 +00:00
Patricio Chilano Mateo
ec2aaaaf83 8326236: assert(ce != nullptr) failed in Continuation::continuation_bottom_sender
Reviewed-by: dholmes, mgronlun
2025-01-14 21:51:05 +00:00
Justin Lu
02d24934ff 8347613: Remove leftover doPrivileged call in Currency test: CheckDataVersion.java
Reviewed-by: naoto
2025-01-14 21:45:36 +00:00
Vladimir Ivanov
10d08dbc81 8346142: [perf] scalability issue for the specjvm2008::xml.validation workload
Reviewed-by: joehw
2025-01-14 21:29:52 +00:00
David Holmes
9b1bed0aa4 8290043: serviceability/attach/ConcAttachTest.java failed "guarantee(!CheckJNICalls) failed: Attached JNI thread exited without being detached"
Reviewed-by: jsjolen, coleenp
2025-01-14 19:49:55 +00:00
Severin Gehwolf
2de71d0445 8347129: cpuset cgroups controller is required for no good reason
Reviewed-by: stuefe, asmehra
2025-01-14 19:40:50 +00:00
Kim Barrett
4c30933b2a 8346971: [ubsan] psCardTable.cpp:131:24: runtime error: large index is out of bounds
Reviewed-by: ayang, tschatzl
2025-01-14 18:54:56 +00:00
Naoto Sato
06ff4c17bd 8347146: Convert IncludeLocalesPluginTest to use JUnit
Reviewed-by: jlu, joehw
2025-01-14 17:47:18 +00:00
Kim Barrett
db76f47f27 8347720: [BACKOUT] Portable implementation of FORBID_C_FUNCTION and ALLOW_C_FUNCTION
Reviewed-by: coleenp
2025-01-14 17:42:24 +00:00
Liam Miller-Cushon
e6902cfca4 8323740: java.lang.ExceptionInInitializerError when trying to load XML classes in wrong order
Reviewed-by: joehw
2025-01-14 17:27:54 +00:00
Coleen Phillimore
a01e92cdef 8347724: Replace SIZE_FORMAT in jfr directory
Reviewed-by: egahlin
2025-01-14 17:00:46 +00:00
Brian Burkhalter
d002933c26 8347286: (fs) Remove some extensions from java/nio/file/Files/probeContentType/Basic.java
Reviewed-by: alanb, jpai
2025-01-14 15:52:54 +00:00
Joachim Kern
d532019799 8347143: [aix] Fix strdup use in os::dll_load
Reviewed-by: mdoerr, clanger, kbarrett
2025-01-14 15:39:45 +00:00
Henry Jen
dfd215b7e9 8347376: tools/jlink/runtimeImage/JavaSEReproducibleTest.java and PackagedModulesVsRuntimeImageLinkTest.java failed after JDK-8321413
Reviewed-by: dholmes, iklam, alanb
2025-01-14 15:26:36 +00:00
Sean Mullan
a49f8332ed 8346045: Cleanup of security library tests calling Security Manager APIs
Reviewed-by: rriggs
2025-01-14 15:21:06 +00:00
Hannes Wallnöfer
56c780078f 8347381: Upgrade jQuery UI to version 1.14.1
Reviewed-by: liach
2025-01-14 14:00:54 +00:00
Magnus Ihse Bursie
1c64a459a6 8347501: Make static-launcher fails after JDK-8346669
Reviewed-by: syan, erikj
2025-01-14 13:47:33 +00:00
Coleen Phillimore
b4cd3b1296 8347566: Replace SSIZE_FORMAT with 'z' length modifier
Reviewed-by: dlong, dholmes, kbarrett
2025-01-14 12:33:56 +00:00
Emanuel Peter
f0af830f85 8335747: C2: fix overflow case for LoopLimit with constant inputs
Reviewed-by: kvn, qamai
2025-01-14 11:55:39 +00:00
Christian Stein
fec769b0a8 8346778: Enable native access should work with the source launcher
Reviewed-by: alanb
2025-01-14 10:34:51 +00:00
Daniel Lundén
cbb2b847e4 8344130: C2: Avoid excessive hoisting in scheduler due to minuscule differences in block frequency
Reviewed-by: rcastanedalo, kvn
2025-01-14 10:23:57 +00:00
Jan Lahoda
bb93f67ea8 8347646: module-info classfile missing the preview flag
Reviewed-by: asotona
2025-01-14 10:23:32 +00:00
Adam Sotona
3e989fd0f7 8346986: Remove ASM from java.base
Reviewed-by: dholmes, ihse, lmesnik, alanb
2025-01-14 09:28:56 +00:00
Severin Gehwolf
3967696386 8347496: Test jdk/jfr/jvm/TestModularImage.java fails after JDK-8347124: No javac
Reviewed-by: egahlin, dholmes
2025-01-14 09:18:27 +00:00
Yasumasa Suenaga
6eb83ef874 8347500: hsdis cannot be built with Capstone.next
Reviewed-by: ihse, simonis
2025-01-14 09:06:25 +00:00
David Holmes
c1d322fff4 8347627: Compiler replay tests are failing after JDK-8346990
Reviewed-by: coleenp
2025-01-14 03:19:25 +00:00
Alex Menkov
0ae5c6b38b 8342996: Enhance Attach API to support arbitrary length arguments - OSX
Reviewed-by: sspitsyn, kevinw
2025-01-14 01:26:31 +00:00
SendaoYan
91b63ca748 8345016: [ASAN] java.c reported ‘%s’ directive argument is null [-Werror=format-truncation=]
Reviewed-by: rriggs
2025-01-14 01:13:31 +00:00
Coleen Phillimore
379d05bcc1 8346990: Remove INTX_FORMAT and UINTX_FORMAT macros
Reviewed-by: kbarrett, dholmes, matsaave
2025-01-13 22:01:54 +00:00
Magnus Ihse Bursie
d3a7ac22c9 8346383: Cannot use DllMain in libdt_socket for static builds
Reviewed-by: dholmes, sspitsyn
2025-01-13 21:22:44 +00:00
Phil Race
13a1775718 8344146: Remove temporary font file tracking code.
Reviewed-by: honkar, aivanov
2025-01-13 20:10:19 +00:00
Martin Doerr
61dc07c118 8346869: [AIX] Add regression test for handling 4 Byte aligned doubles in structures
Reviewed-by: mbaesken, jkern
2025-01-13 20:07:31 +00:00
Martin Doerr
13e1ea53c5 8346038: [REDO] - [C1] LIR Operations with one input should be implemented as LIR_Op1
Co-authored-by: Sandhya Viswanathan <sviswanathan@openjdk.org>
Reviewed-by: kvn, sviswanathan
2025-01-13 20:03:34 +00:00
Joe Darcy
7c883c284d 8347605: Use spec tag to refer to IEEE 754 standard
Reviewed-by: bpb, iris
2025-01-13 19:59:49 +00:00
Volkan Yazıcı
4e0ffda5b1 8346972: Test java/nio/channels/FileChannel/LoopingTruncate.java fails sometimes with IOException: There is not enough space on the disk
Co-authored-by: Brian Burkhalter <bpb@openjdk.org>
Reviewed-by: bpb
2025-01-13 19:00:09 +00:00
Kim Barrett
e0f2f4b216 8313396: Portable implementation of FORBID_C_FUNCTION and ALLOW_C_FUNCTION
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Reviewed-by: coleenp, dholmes, jsjolen
2025-01-13 18:25:42 +00:00
Brian Burkhalter
b0c131e872 8345368: java/io/File/createTempFile/SpecialTempFile.java fails on Windows Server 2025
Reviewed-by: lancea
2025-01-13 18:09:48 +00:00
Roger Riggs
a7915bb2e1 8346468: SM cleanup of common test library
Reviewed-by: jpai, dfuchs
2025-01-13 16:43:44 +00:00
Alexey Ivanov
f67b703625 8347427: JTabbedPane/8134116/Bug8134116.java has no license header
Reviewed-by: dmarkov, honkar, abhiscxk
2025-01-13 16:13:30 +00:00
Christian Hagedorn
062f2dcfe5 8347554: [BACKOUT] C2: implement optimization for series of Add of unique value
Reviewed-by: thartmann
2025-01-13 14:19:43 +00:00
Julian Waters
a289bcfe7e 8306579: Consider building with /Zc:throwingNew
Reviewed-by: ihse, kbarrett
2025-01-13 14:02:41 +00:00
Zhengyu Gu
cede30416f 8347482: Remove unused field in ParkEvent
Reviewed-by: dholmes
2025-01-13 13:50:05 +00:00
Weijun Wang
fa5ff82eb3 8342062: Reformat keytool and jarsigner output for keys with a named parameter set
Reviewed-by: mullan
2025-01-13 13:43:52 +00:00
Coleen Phillimore
cc19897202 8293123: Fix various include file ordering
Reviewed-by: dholmes, stefank
2025-01-13 13:14:15 +00:00
Coleen Phillimore
6e43f48fcf 8346929: runtime/ClassUnload/DictionaryDependsTest.java fails with "Test failed: should be unloaded"
Reviewed-by: dholmes, ccheung
2025-01-13 12:50:13 +00:00
Magnus Ihse Bursie
c885e59cfa 8346377: Properly support static builds for Windows
Reviewed-by: erikj
2025-01-13 12:25:10 +00:00
Daniel Fuchs
06126361db 8347373: HTTP/2 flow control checks may count unprocessed data twice
Reviewed-by: jpai
2025-01-13 12:05:44 +00:00
Viktor Klang
450636ae28 8347274: Gatherers.mapConcurrent exhibits undesired behavior under variable delays, interruption, and finishing
Reviewed-by: alanb
2025-01-13 10:38:02 +00:00
Tobias Hartmann
82e2a79122 8347006: LoadRangeNode floats above array guard in arraycopy intrinsic
Reviewed-by: roland, qamai, kvn
2025-01-13 09:49:16 +00:00
Severin Gehwolf
85ed78c063 8345185: Update jpackage to not include service bindings by default
Reviewed-by: asemenyuk
2025-01-13 09:26:31 +00:00
Daniel Jeliński
3b9732edc6 8345471: Clean up compiler/intrinsics/sha/cli tests
Reviewed-by: kvn
2025-01-13 08:13:57 +00:00
Christian Hagedorn
ed0b555627 8344035: Replace predicate walking code in Loop Unswitching with a predicate visitor
Reviewed-by: roland, kvn
2025-01-13 08:09:08 +00:00
Damon Fenacci
b37f123625 8347407: [BACKOUT] C1/C2 don't handle allocation failure properly during initialization (RuntimeStub::new_runtime_stub fatal crash)
Reviewed-by: thartmann, kvn
2025-01-13 07:59:51 +00:00
Matthias Baesken
1f7925ceb4 8347270: Remove unix_getParentPidAndTimings, unix_getChildren and unix_getCmdlineAndUserInfo
Reviewed-by: rriggs, clanger, jkern
2025-01-13 07:47:39 +00:00
Prasanta Sadhukhan
9fafd63d46 8346828: javax/swing/JScrollBar/4865918/bug4865918.java still fails in CI
Reviewed-by: abhiscxk, dnguyen
2025-01-13 05:19:14 +00:00
Simon Tooke
f04a642246 8346717: serviceability/dcmd/vm/SystemDumpMapTest.java failing on Windows with "Stack base not yet set for thread id"
Reviewed-by: lmesnik, dholmes
2025-01-12 21:39:43 +00:00
Serguei Spitsyn
3145278847 8346727: JvmtiVTMSTransitionDisabler deadlock
Reviewed-by: cjplummer, lmesnik
2025-01-11 07:07:27 +00:00
Serguei Spitsyn
761774a120 8346143: add ClearAllFramePops function to speedup debugger single stepping in some cases
Reviewed-by: cjplummer, amenkov
2025-01-10 23:49:03 +00:00
Chen Liang
6f1f2f2537 8347063: Add comments in ClassFileFormatVersion for class file format evolution history
Reviewed-by: darcy, iris
2025-01-10 21:23:50 +00:00
Alexey Semenyuk
10f7142dce 8347295: Fix WinResourceTest to make it work with WiX v4.0+
Reviewed-by: almatvee
2025-01-10 19:32:05 +00:00
Alexey Semenyuk
01c8ba2cde 8347298: Bug in JPackageCommand.ignoreFakeRuntime()
Reviewed-by: almatvee
2025-01-10 19:31:48 +00:00
Alexey Semenyuk
d69463e4bc 8347300: Don't exclude the "PATH" var from the environment when running app launchers in jpackage tests
Reviewed-by: almatvee
2025-01-10 19:30:27 +00:00
Brian Burkhalter
4b554b52e6 8346722: (fs) Files.probeContentType throws ClassCastException with custom file system provider
Reviewed-by: alanb
2025-01-10 18:50:40 +00:00
Magnus Ihse Bursie
46ba515c49 8346669: Increase abstraction in SetupBuildLauncher and remove extra args
Reviewed-by: erikj
2025-01-10 17:59:27 +00:00
Leonid Mesnik
e7e8f60c9b 8347302: Mark test tools/jimage/JImageToolTest.java as flagless
Reviewed-by: alanb, shade
2025-01-10 16:50:21 +00:00
Roland Westrelin
9cf7d42b65 8346184: C2: assert(has_node(i)) failed during split thru phi
Reviewed-by: thartmann, chagedorn
2025-01-10 16:47:51 +00:00
Erik Gahlin
1bf2f5c8a9 8343510: JFR: Remove AccessControlContext from FlightRecorder::addListener specification
Reviewed-by: mgronlun
2025-01-10 15:58:50 +00:00
Peter Levart
beb0e607d3 8347397: Cleanup of JDK-8169880
Reviewed-by: liach, alanb
2025-01-10 14:47:01 +00:00
Erik Joelsson
c5c4efdaa1 8347120: Launchers should not have java headers on include path
Reviewed-by: dholmes, ihse
2025-01-10 13:57:52 +00:00
Erik Gahlin
ec7393e919 8347287: JFR: Remove use of Security Manager
Reviewed-by: mgronlun
2025-01-10 13:46:57 +00:00
Kevin Walls
12752b0031 8347346: Remove redundant ClassForName.java and test.policy from runtime/Dictionary
Reviewed-by: coleenp
2025-01-10 10:51:34 +00:00
Alexey Ivanov
57af52c573 8346581: JRadioButton/ButtonGroupFocusTest.java fails in CI on Linux
Reviewed-by: honkar, dnguyen
2025-01-10 10:34:22 +00:00
Severin Gehwolf
1f457977f0 8347124: Clean tests with --enable-linkable-runtime
Reviewed-by: shade, alanb
2025-01-10 10:06:24 +00:00
Matthias Baesken
5e92a4ceaf 8347267: [macOS]: UnixOperatingSystem.c:67:40: runtime error: division by zero
Reviewed-by: kevinw, cjplummer
2025-01-10 10:02:24 +00:00
Theo Weidmann
55c6904e8f 8331717: C2: Crash with SIGFPE Because Loop Predication Wrongly Hoists Division Requiring Zero Check
Reviewed-by: chagedorn, qamai, kvn
2025-01-10 08:59:31 +00:00
Aleksey Shipilev
1a0fe49732 8347256: Epsilon: Demote heap size and AlwaysPreTouch warnings to info level
Reviewed-by: tschatzl, phh
2025-01-10 08:42:42 +00:00
Kevin Walls
8b076172a5 8347345: Remove redundant test policy file from ModelMBeanInfoSupport directory
Reviewed-by: rriggs, sspitsyn
2025-01-10 07:59:26 +00:00
SendaoYan
f6492aa634 8347279: Problemlist TestEvilSyncBug.java#generational
Reviewed-by: tschatzl, wkemper
2025-01-10 01:38:18 +00:00
Henry Jen
0210a63d3b 8347379: Problem list failed tests after JDK-8321413
Reviewed-by: dholmes
2025-01-10 00:53:58 +00:00
Fei Yang
a9351dfec9 8346787: Fix two C2 IR matching tests for RISC-V
Reviewed-by: fjiang, mli, dfenacci
2025-01-10 00:26:38 +00:00
Liming Liu
89ee1a5517 8343978: Update the default value of CodeEntryAlignment for Ampere-1A and 1B
Reviewed-by: dlong, kvn
2025-01-09 23:38:20 +00:00
Matias Saavedra Silva
931914af76 8340631: assert(reserved_rgn->contain_region(base_addr, size)) failed: Reserved CDS region should contain this mapping region
Reviewed-by: iklam, jsjolen, stefank
2025-01-09 22:06:37 +00:00
Alisen Chung
665c39c931 8347375: Extra <p> tag in robot specification
Reviewed-by: kbarrett
2025-01-09 21:51:51 +00:00
Hannes Wallnöfer
b335ea9296 8347122: Add missing @serial tags to module java.desktop
Reviewed-by: prr
2025-01-09 21:37:36 +00:00
Alisen Chung
df28cec6e9 8345144: Robot does not specify all causes of IllegalThreadStateException
Reviewed-by: prr
2025-01-09 20:47:22 +00:00
Harshitha Onkar
9f3c5f9536 8344907: NullPointerException in Win32ShellFolder2.getSystemIcon when "icon" is null
Reviewed-by: aivanov, kizune
2025-01-09 18:22:33 +00:00
Henry Jen
22f70a742a 8321413: IllegalArgumentException: Code length outside the allowed range while creating a jlink image
Reviewed-by: mchung
2025-01-09 17:36:15 +00:00
Sean Mullan
3bfa9521d5 8283795: Add TLSv1.3 and CNSA 1.0 algorithms to implementation requirements
Reviewed-by: jnimeh
2025-01-09 17:34:20 +00:00
Brian Burkhalter
1ef77cdd51 8347171: (dc) java/nio/channels/DatagramChannel/InterruptibleOrNot.java fails with virtual thread factory
Reviewed-by: alanb, lmesnik
2025-01-09 15:26:38 +00:00
Jaikiran Pai
72f1114909 8346705: SNI not sent with Java 22+ using java.net.http.HttpClient.Builder#sslParameters
Reviewed-by: dfuchs, michaelm
2025-01-09 14:58:12 +00:00
Archie Cobbs
cb9a98b31a 8347141: Several javac tests compile with an unnecessary -Xlint:-path flag
Reviewed-by: vromero, darcy
2025-01-09 14:46:13 +00:00
Joachim Kern
f9b11332ec 8346880: [aix] java/lang/ProcessHandle/InfoTest.java still fails: "reported cputime less than expected"
Reviewed-by: mdoerr, clanger, mbaesken
2025-01-09 14:24:12 +00:00
Andrey Turbanov
9c72dedd07 8346036: Unnecessary Hashtable usage in javax.swing.text.html.parser.Entity
Reviewed-by: aivanov, azvegint
2025-01-09 12:47:47 +00:00
Joakim Nordström
3024a7384f 8345782: Refining the cases that libjsig deprecation warning is issued
Reviewed-by: dholmes, kevinw
2025-01-09 12:41:52 +00:00
Serguei Spitsyn
2801bc6bf3 8346460: NotifyFramePop should return JVMTI_ERROR_DUPLICATE
Reviewed-by: cjplummer, amenkov
2025-01-09 12:02:25 +00:00
Hannes Wallnöfer
ceae2b977d 8347121: Add missing @serial tags to module java.base
Reviewed-by: alanb
2025-01-09 11:49:18 +00:00
Fei Yang
8c87ea2bdf 8346478: RISC-V: Refactor add/sub assembler routines
Reviewed-by: fjiang, rehn, gcao
2025-01-09 11:36:40 +00:00
Robbin Ehn
765b9e606b 8346706: RISC-V: Add available registers to hs_err
Reviewed-by: mli, fyang, ihse
2025-01-09 11:25:37 +00:00
Aleksey Shipilev
d66737ea1c 8341097: GHA: Demote Mac x86 jobs to build only
Reviewed-by: kbarrett, prr, ihse
2025-01-09 10:18:08 +00:00
Aleksey Shipilev
dff5719e6f 8347126: gc/stress/TestStressG1Uncommit.java gets OOM-killed
Reviewed-by: tschatzl, gli
2025-01-09 09:49:14 +00:00
Matthias Baesken
82e16ba248 8347268: [ubsan] logOutput.cpp:357:21: runtime error: applying non-zero offset 1 to null pointer
Reviewed-by: dholmes
2025-01-09 08:32:09 +00:00
Ramkumar Sunderbabu
33f9be8de7 8347083: Incomplete logging in nsk/jvmti/ResourceExhausted/resexhausted00* tests
Reviewed-by: dholmes, sspitsyn, lmesnik
2025-01-09 07:50:42 +00:00
Dmitry Markov
8eddf67c82 8346887: DrawFocusRect() may cause an assertion failure
Reviewed-by: aivanov, prr
2025-01-09 06:58:31 +00:00
Abhishek Kumar
a46ae7031e 8339728: [Accessibility,Windows,JAWS] Bug in the getKeyChar method of the AccessBridge class
Reviewed-by: aivanov, psadhukhan, kizune
2025-01-09 04:11:54 +00:00
Alexey Semenyuk
97dd06ce0a 8347299: Add annotations to test cases in LicenseTest
Reviewed-by: almatvee
2025-01-09 03:42:47 +00:00
Alexey Semenyuk
0a35ebfd57 8347297: Skip the RuntimeImageSymbolicLinksTest test on Windows when it is executed outside of the jtreg
Reviewed-by: almatvee
2025-01-09 03:35:31 +00:00
Alexey Semenyuk
b3e8736091 8347296: WinInstallerUiTest fails in local test runs if the path to test work directory is longer that regular
Reviewed-by: almatvee
2025-01-09 03:33:21 +00:00
Qizheng Xing
1ade96b808 8347042: Remove an extra parenthesis in macro definition in jfrTraceIdMacros.hpp
Reviewed-by: mgronlun, fyang
2025-01-09 02:24:25 +00:00
Weijun Wang
db7fa6a2c6 8347289: HKDF delayed provider selection failed with non-extractable PRK
Reviewed-by: valeriep
2025-01-09 01:21:00 +00:00
Chris Plummer
0a5ef827b0 8347162: Update problemlist CR for vmTestbase/nsk/jdi/VMOutOfMemoryException
Reviewed-by: kevinw, amenkov
2025-01-08 22:52:13 +00:00
Patricio Chilano Mateo
ea49537726 8310340: assert(_thread->is_interp_only_mode() || stub_caller) failed: expected a stub-caller
Reviewed-by: dholmes, amenkov, sspitsyn
2025-01-08 21:51:02 +00:00
Brian Burkhalter
2e00816ac3 8346671: java/nio/file/Files/probeContentType/Basic.java fails on Windows 2025
Reviewed-by: jpai
2025-01-08 20:46:57 +00:00
Leonid Mesnik
88fa3b2fe9 8346998: Test nsk/jvmti/ResourceExhausted/resexhausted003 fails with java.lang.OutOfMemoryError when CDS is off
Reviewed-by: dholmes, sspitsyn
2025-01-08 20:14:59 +00:00
Coleen Phillimore
6ee2bd2f33 8347147: [REDO] AccessFlags can be u2 in metadata
Co-authored-by: Amit Kumar <amitkumar@openjdk.org>
Reviewed-by: vlivanov, yzheng
2025-01-08 19:48:25 +00:00
Calvin Cheung
a641932427 8346310: Duplicate !HAS_PENDING_EXCEPTION check in DynamicArchive::dump_at_exit
Reviewed-by: dholmes
2025-01-08 17:07:54 +00:00
Naoto Sato
49ee4df375 8166983: Remove old/legacy unused tzdata files
Reviewed-by: iris, rriggs
2025-01-08 16:48:44 +00:00
Erik Gahlin
3fe08186b1 8346099: JFR: Query for 'jfr view' can't handle wildcard with multiple event types
Reviewed-by: mgronlun
2025-01-08 16:03:40 +00:00
Erik Gahlin
55bcf4c054 8346047: JFR: Incorrect percentile value in 'jfr view'
Reviewed-by: mgronlun
2025-01-08 15:53:22 +00:00
Yagmur Eren
ae3fc46456 8345580: Remove const from Node::_idx which is modified
Reviewed-by: epeter, qamai
2025-01-08 15:14:14 +00:00
Alexey Semenyuk
4d18e5a1e2 8346872: tools/jpackage/windows/WinLongPathTest.java fails
Reviewed-by: almatvee, mbaesken
2025-01-08 14:44:10 +00:00
Erik Gahlin
92ad8a1d96 8346052: JFR: Incorrect average value in 'jfr view'
Reviewed-by: mgronlun
2025-01-08 14:40:13 +00:00
Erik Gahlin
672c413c61 8345337: JFR: jfr view should display all direct subfields for an event type
Reviewed-by: mgronlun
2025-01-08 12:44:53 +00:00
Chen Liang
afe543414f 8347163: Javadoc error in ConstantPoolBuilder after JDK-8342468
Reviewed-by: jpai, shade
2025-01-08 10:56:48 +00:00
Severin Gehwolf
f696d9c521 8346239: Improve memory efficiency of JimageDiffGenerator
Reviewed-by: mbaesken
2025-01-08 10:39:13 +00:00
Fredrik Bredberg
cbabc04515 8332506: SIGFPE In ObjectSynchronizer::is_async_deflation_needed()
Reviewed-by: coleenp, dholmes
2025-01-08 09:50:35 +00:00
Albert Mingkun Yang
98724219a8 8347094: Inline CollectedHeap::increment_total_full_collections
Reviewed-by: stefank, eosterlund, gli
2025-01-08 09:45:08 +00:00
Shaojin Wen
b741f3fe5b 8343629: More MergeStore benchmark
Reviewed-by: epeter
2025-01-08 09:40:17 +00:00
Per Minborg
b0c935c03e 8347047: Cleanup action passed to MemorySegment::reinterpret keeps old segment alive
Reviewed-by: mcimadamore
2025-01-08 08:44:22 +00:00
Chen Liang
bcefab5e55 8342468: Improve API documentation for java.lang.classfile.constantpool
Reviewed-by: asotona
2025-01-08 03:37:28 +00:00
Taizo Kurashige
40f0a398fa 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive
Reviewed-by: bpb, aturbanov
2025-01-08 01:15:44 +00:00
David Holmes
021c476409 8347148: [BACKOUT] AccessFlags can be u2 in metadata
Reviewed-by: coleenp
2025-01-08 00:37:27 +00:00
Coleen Phillimore
ddb5881964 8329549: Remove FORMAT64_MODIFIER
Reviewed-by: dholmes, kbarrett
2025-01-07 23:14:04 +00:00
Coleen Phillimore
098afc8b7d 8339113: AccessFlags can be u2 in metadata
Co-authored-by: Amit Kumar <amitkumar@openjdk.org>
Reviewed-by: sspitsyn, vlivanov, yzheng, dlong, dholmes
2025-01-07 22:03:38 +00:00
Aleksey Shipilev
e413fc643c 8347127: CTW fails to build after JDK-8334733
Reviewed-by: kvn, epeter
2025-01-07 19:34:12 +00:00
Naoto Sato
9702accdd9 8175709: DateTimeFormatterBuilder.appendZoneId() has misleading JavaDoc
Reviewed-by: rriggs
2025-01-07 17:40:01 +00:00
Renjith Kannath Pariyangad
030149fec4 8334644: Automate javax/print/attribute/PageRangesException.java
Reviewed-by: aivanov, abhiscxk, azvegint
2025-01-07 16:54:04 +00:00
Per Minborg
c8a9dd3a02 8346609: Improve MemorySegment.toString
Reviewed-by: mcimadamore
2025-01-07 15:18:02 +00:00
SendaoYan
4d8fb80732 8347038: [JMH] jdk.incubator.vector.SpiltReplicate fails NoClassDefFoundError
Reviewed-by: psandoz
2025-01-07 15:08:24 +00:00
SendaoYan
cf3e48e771 8346965: Multiple compiler/ciReplay test fails with -XX:+SegmentedCodeCache
Reviewed-by: kvn
2025-01-07 15:07:00 +00:00
Tobias Holenstein
e5f0c19084 8345041: IGV: Free Placement Mode in IGV Layout
Reviewed-by: chagedorn, epeter, rcastanedalo
2025-01-07 14:30:05 +00:00
Joachim Kern
8b22517cb0 8211851: (ch) java/nio/channels/AsynchronousSocketChannel/StressLoopback.java times out (aix)
Reviewed-by: mdoerr, varadam
2025-01-07 13:54:09 +00:00
Jaikiran Pai
5e6cda4799 8347000: Bug in com/sun/net/httpserver/bugs/B6361557.java test
Reviewed-by: msheppar, michaelm
2025-01-07 12:32:31 +00:00
Fei Yang
3f7052ed7a 8346868: RISC-V: compiler/sharedstubs tests fail after JDK-8332689
Reviewed-by: rehn, mli
2025-01-07 10:54:52 +00:00
Alan Bateman
f1196638b3 8346573: Can't use custom default file system provider with custom system class loader
Reviewed-by: mkartashev, bpb
2025-01-07 10:34:18 +00:00
Fei Yang
379ac349d1 8346838: RISC-V: runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java crash with debug VMs
Reviewed-by: fjiang, rehn
2025-01-07 10:32:11 +00:00
Matthias Baesken
0285020c7e 8345676: [ubsan] ProcessImpl_md.c:561:40: runtime error: applying zero offset to null pointer on macOS aarch64
Reviewed-by: rriggs
2025-01-07 08:15:12 +00:00
Matthias Baesken
0a81676fae 8346881: [ubsan] logSelection.cpp:154:24 / logSelectionList.cpp:72:94 : runtime error: applying non-zero offset 1 to null pointer
Reviewed-by: clanger, mdoerr, dholmes, syan, amitkumar
2025-01-07 08:10:28 +00:00
Emanuel Peter
08debd335e 8346993: C2 SuperWord: refactor to make more vector nodes available in VectorNode::make
Reviewed-by: chagedorn, kvn
2025-01-07 06:15:48 +00:00
Fei Yang
de0250368e 8346832: runtime/CompressedOops/CompressedCPUSpecificClassSpaceReservation.java fails on RISC-V
Reviewed-by: stuefe, fjiang
2025-01-07 03:39:50 +00:00
Archie Cobbs
27646e5516 8344148: Add an explicit compiler phase for warning generation
Reviewed-by: vromero
2025-01-06 18:37:19 +00:00
Calvin Cheung
8d388ccd9e 8346457: AOT cache creation crashes with "assert(pair_at(i).match() < pair_at(i+1).match()) failed: unsorted table entries"
Reviewed-by: iklam, dholmes
2025-01-06 17:59:10 +00:00
Brian Burkhalter
d723597dd9 8345432: (ch, fs) Replace anonymous Thread with InnocuousThread
Reviewed-by: alanb
2025-01-06 17:47:10 +00:00
Archie Cobbs
9c393a243d 8346953: Remove unnecessary @SuppressWarnings annotations (client, #2)
Reviewed-by: azvegint
2025-01-06 17:24:23 +00:00
Naoto Sato
9a60f4457b 8345668: ZoneOffset.ofTotalSeconds performance regression
Reviewed-by: rriggs, aturbanov
2025-01-06 17:04:07 +00:00
Aleksey Shipilev
12700cb81b 8346264: "Total compile time" counter should include time spent in failing/bailout compiles
Reviewed-by: kvn, mli
2025-01-06 15:36:28 +00:00
Archie Cobbs
dd81f8dcf5 8344079: Minor fixes and cleanups to compiler lint-related code
Reviewed-by: mcimadamore
2025-01-06 15:28:36 +00:00
Adam Sotona
ccf3d57ebc 8346985: Convert test/jdk/com/sun/jdi/ClassUnloadEventTest.java to Class-File API
Reviewed-by: liach
2025-01-06 14:10:34 +00:00
Adam Sotona
594e519648 8346984: Remove ASM-based benchmarks from Class-File API benchmarks
Reviewed-by: liach, redestad, erikj
2025-01-06 14:10:19 +00:00
Adam Sotona
c027f2ed1d 8346983: Remove ASM-based transforms from Class-File API tests
Reviewed-by: liach
2025-01-06 14:08:45 +00:00
Adam Sotona
e0695e0ef0 8346981: Remove obsolete java.base exports of jdk.internal.objectweb.asm packages
Reviewed-by: liach, alanb
2025-01-06 14:08:32 +00:00
Zhengyu Gu
dfaa89162a 8346569: Shenandoah: Worker initializes ShenandoahThreadLocalData twice results in memory leak
Reviewed-by: wkemper, shade
2025-01-06 13:44:35 +00:00
Qizheng Xing
f1d85ab3e6 8346773: Fix unmatched brackets in some misc files
Reviewed-by: kbarrett, alanb, rriggs, dholmes, erikj, liach
2025-01-06 06:23:53 +00:00
Prasanta Sadhukhan
9393897817 8346260: Test "javax/swing/JOptionPane/bug4174551.java" failed because the font size of message "Hi 24" is not set to 24 in Nimbus LookAndFeel
Reviewed-by: aivanov, dnguyen
2025-01-06 06:01:24 +00:00
Gui Cao
e98f412663 8346922: TestVectorReinterpret.java fails without the rvv extension on RISCV fastdebug VM
Reviewed-by: fyang, kvn
2025-01-06 03:36:00 +00:00
Gui Cao
ca5390c4d9 8346924: TestVectorizationNegativeScale.java fails without the rvv extension on RISCV fastdebug VM
Reviewed-by: fyang, kvn
2025-01-06 03:35:46 +00:00
Albert Mingkun Yang
07c9f7138a 8346921: Remove unused arg in markWord::must_be_preserved
Reviewed-by: kbarrett, tschatzl
2025-01-03 11:46:34 +00:00
Daniel Skantz
84e6432bb7 8346288: WB_IsIntrinsicAvailable fails if called with wrong compilation level
Reviewed-by: kvn, rcastanedalo
2025-01-02 22:13:14 +00:00
Volkan Yazıcı
a77ed30fcc 8336412: sun.net.www.MimeTable has a few unused methods
Reviewed-by: jpai
2025-01-02 09:19:58 +00:00
SendaoYan
e769b53614 8346193: CrashGCForDumpingJavaThread do not trigger expected crash build with clang17
Reviewed-by: kbarrett, amitkumar
2025-01-02 09:10:03 +00:00
Kim Barrett
a87bc7e4f0 8345374: Ubsan: runtime error: division by zero
Reviewed-by: jwaters, ayang, amitkumar
2025-01-02 08:11:55 +00:00
Volker Simonis
d3abf01c3e 8346101: [JVMCI] Export jdk.internal.misc to jdk.graal.compiler
Reviewed-by: dnsimon, phh
2025-01-01 17:20:27 +00:00
Jaikiran Pai
24c5ff7ba5 8346871: Improve robustness of java/util/zip/EntryCount64k.java test
Reviewed-by: lancea
2024-12-30 00:53:15 +00:00
Jaikiran Pai
bd0fde71d9 8302293: jar --create fails with IllegalArgumentException if archive name is shorter than 3 characters
Reviewed-by: lancea
2024-12-29 08:37:25 +00:00
Qizheng Xing
79958470e0 8346831: Remove the extra closing parenthesis in CTW Makefile
Reviewed-by: liach, kbarrett, lmesnik, jwaters
2024-12-29 08:32:38 +00:00
GennadiyKrivoshein
b3e63631c7 8343224: print/Dialog/PaperSizeError.java fails with MediaSizeName is not A4: A4
Reviewed-by: azvegint, alexsch, psadhukhan, achung
2024-12-28 20:48:57 +00:00
Matthias Baesken
60e0730a3b 8346712: Remove com/sun/net/httpserver/TcpNoDelayNotRequired.java test
Reviewed-by: djelinski, lucy, jpai
2024-12-28 15:45:26 +00:00
Amit Kumar
807f6f7fb8 8346847: [s390x] minimal build failure
Reviewed-by: stuefe
2024-12-27 10:05:41 +00:00
SendaoYan
6c59185475 8345757: [ASAN] clang17 report 'dprintf' macro redefined
Reviewed-by: kbarrett, valeriep
2024-12-25 01:27:35 +00:00
Phil Race
4fc445d12b 8346829: Problem list com/sun/jdi/ReattachStressTest.java & ProcessAttachTest.java on Linux
Reviewed-by: lmesnik
2024-12-25 00:40:18 +00:00
Nizar Benalla
1a32654faf 8346295: Update --release 24 symbol information for JDK 24 build 29
Reviewed-by: liach
2024-12-24 18:23:14 +00:00
Swati Sharma
62a4544bb7 8205051: Poor Performance with UseNUMA when cpu and memory nodes are misaligned
Co-authored-by: Derek White <drwhite@openjdk.org>
Reviewed-by: sjohanss, tschatzl
2024-12-23 19:16:18 +00:00
Bradford Wetmore
68c6623d38 8345840: Add missing TLS handshake messages to SSLHandshake.java
Reviewed-by: jnimeh
2024-12-23 19:05:07 +00:00
Nizar Benalla
ed292318a9 8337111: Bad HTML checker for generated documentation
8337113: Bad character checker for generated documentation
8337116: Internal links checker for generated documentation
8337114: DocType checker for generated documentation

Reviewed-by: hannesw
2024-12-23 13:50:39 +00:00
David Holmes
cd15ebb963 8346477: Clarify the Java manpage in relation to the JVM's OnOutOfMemoryError flags
Co-authored-by: Thomas Stuefe <stuefe@openjdk.org>
Reviewed-by: jpai, stuefe
2024-12-23 11:56:24 +00:00
SendaoYan
bffa77bc04 8346714: [ASAN] compressedKlass.cpp reported applying non-zero offset to null pointer
Reviewed-by: mdoerr, coleenp
2024-12-23 11:27:12 +00:00
Qizheng Xing
c1b868d27d 8346602: Remove unused macro parameters in jni.cpp
Reviewed-by: dholmes, mli
2024-12-22 20:53:21 +00:00
Jan Kratochvil
43b7e9f547 8346713: [testsuite] NeverActAsServerClassMachine breaks TestPLABAdaptToMinTLABSize.java TestPinnedHumongousFragmentation.java TestPinnedObjectContents.java
Reviewed-by: stefank, tschatzl
2024-12-21 03:40:48 +00:00
William Kemper
249f141211 8346737: GenShen: Generational memory pools should not report zero for maximum capacity
Reviewed-by: kdnilsen, ysr
2024-12-20 23:51:49 +00:00
Liam Miller-Cushon
d562d3c7a9 8343882: BasicAnnoTests doesn't handle multiple annotations at the same position
Reviewed-by: darcy
2024-12-20 20:52:48 +00:00
Mandy Chung
7ba969a576 8346739: jpackage tests failed after JDK-8345259
Reviewed-by: kcr, asemenyuk
2024-12-20 20:08:42 +00:00
William Kemper
b8e40b9c2d 8346688: GenShen: Missing metadata trigger log message
Reviewed-by: ysr, kdnilsen
2024-12-20 17:32:33 +00:00
William Kemper
d2a48634b8 8346690: Shenandoah: Fix log message for end of GC usage report
Reviewed-by: ysr, kdnilsen
2024-12-20 17:30:17 +00:00
Severin Gehwolf
bcb1bdaae7 8345259: Disallow ALL-MODULE-PATH without explicit --module-path
Reviewed-by: mchung
2024-12-20 12:35:35 +00:00
Nizar Benalla
054c644ea6 8346667: Doccheck: warning about missing </span> before <h2>
Reviewed-by: psandoz
2024-12-20 10:17:21 +00:00
Nizar Benalla
2a68f74188 8346128: Comparison build fails due to difference in LabelTarget.html
Reviewed-by: jlahoda, liach, prappo
2024-12-20 10:16:04 +00:00
Evgeny Nikitin
cf28fd4cbc 8322983: Virtual Threads: exclude 2 tests
Reviewed-by: jpai, lmesnik, syan
2024-12-20 08:24:18 +00:00
Matthias Baesken
85e024d92d 8346605: AIX fastdebug build fails in memoryReserver.cpp after JDK-8345655
Reviewed-by: stefank, lucy, mdoerr
2024-12-20 07:45:40 +00:00
liyazzi
54f34750ed 8331467: FileSystems.getDefault fails with ClassNotFoundException if custom default provider is in run-time image
Reviewed-by: alanb, jpai
2024-12-20 07:05:42 +00:00
Emanuel Peter
35fafbc597 8346106: Verify.checkEQ: testing utility for recursive value verification
Reviewed-by: kvn, tweidmann
2024-12-20 06:52:22 +00:00
Weijun Wang
b2811a0ccd 8340493: Fix some Asserts failure messages
Reviewed-by: valeriep, djelinski
2024-12-19 21:35:55 +00:00
Brian Burkhalter
4d77dbad4e 8346576: Remove vmTestbase/gc/memory/Nio/Nio.java from test/hotspot/jtreg/ProblemList.txt
Reviewed-by: alanb, jpai, mli
2024-12-19 16:16:58 +00:00
Roland Westrelin
2649a97332 8332827: [REDO] C2: crash in compiled code because of dependency on removed range check CastIIs
Reviewed-by: epeter, chagedorn
2024-12-19 16:09:41 +00:00
Kim Barrett
2344a1a917 8345732: Provide helpers for using PartialArrayState
Reviewed-by: tschatzl, ayang, zgu, iwalulya
2024-12-19 16:00:59 +00:00
Patricio Chilano Mateo
572ce269d0 8345266: java/util/concurrent/locks/StampedLock/OOMEInStampedLock.java JTREG_TEST_THREAD_FACTORY=Virtual fails with OOME
Reviewed-by: dholmes, alanb, coleenp
2024-12-19 14:45:27 +00:00
Matthew Donovan
f6e7713bb6 8339356: Test javax/net/ssl/SSLSocket/Tls13PacketSize.java failed with java.net.SocketException: An established connection was aborted by the software in your host machine
Co-authored-by: Daniel Jeliński <djelinski@openjdk.org>
Reviewed-by: djelinski
2024-12-19 13:19:56 +00:00
Alan Bateman
23d6f74782 8346463: Add test coverage for deploying the default provider as a module
Reviewed-by: bpb
2024-12-19 07:58:26 +00:00
David Holmes
484229e04b 8346306: Unattached thread can cause crash during VM exit if it calls wait_if_vm_exited
Reviewed-by: coleenp, ccheung
2024-12-19 02:48:06 +00:00
Simon Tooke
b0c40aadd2 8340401: DcmdMBeanPermissionsTest.java and SystemDumpMapTest.java fail with assert(_stack_base != nullptr) failed: Sanity check
Reviewed-by: dholmes, stuefe, kevinw
2024-12-19 02:12:02 +00:00
Fei Yang
6b89954c65 8346475: RISC-V: Small improvement for MacroAssembler::ctzc_bit
Reviewed-by: mli, fjiang
2024-12-19 01:33:08 +00:00
SendaoYan
00d8407a8f 8346016: Problemlist vm/mlvm/indy/func/jvmti/mergeCP_indy2manyDiff_a in virtual thread mode
Reviewed-by: sspitsyn
2024-12-19 01:28:21 +00:00
Calvin Cheung
5db0a13863 8346132: fallbacklinker.c failed compilation due to unused variable
Reviewed-by: dholmes, jvernee
2024-12-18 21:56:03 +00:00
Roger Riggs
55906692e1 8346570: SM cleanup of tests for Beans and Serialization
Reviewed-by: lancea, prr
2024-12-18 21:06:10 +00:00
Quan Anh Mai
c8e94abfc3 8346532: XXXVector::rearrangeTemplate misses null check
Reviewed-by: psandoz
2024-12-18 18:32:05 +00:00
Naoto Sato
f7f2b42e10 8346300: Add @Test annotation to TCKZoneId.test_constant_OLD_IDS_POST_2024b test
Reviewed-by: lancea, rriggs
2024-12-18 17:28:00 +00:00
Prasanta Sadhukhan
a0b7c4f015 8346324: javax/swing/JScrollBar/4865918/bug4865918.java fails in CI
Reviewed-by: aivanov, abhiscxk
2024-12-18 14:54:41 +00:00
Magnus Ihse Bursie
8efc5585b7 8346378: Cannot use DllMain in libnet for static builds
Reviewed-by: djelinski
2024-12-18 12:09:32 +00:00
Stefan Karlsson
73b5dbaec3 8345655: Move reservation code out of ReservedSpace
Reviewed-by: azafari, jsjolen
2024-12-18 10:19:13 +00:00
Jan Lahoda
d50b725ac0 8344647: Make java.se participate in the preview language feature requires transitive java.base
Reviewed-by: asotona, darcy
2024-12-18 09:58:40 +00:00
Volkan Yazıcı
9e8aa855fe 8346017: Socket.connect specified to throw UHE for unresolved address is problematic for SOCKS V5 proxy
Reviewed-by: dfuchs, alanb
2024-12-18 09:43:06 +00:00
jeremy
5b703c7023 8342782: AWTEventMulticaster throws StackOverflowError using AquaButtonUI
Reviewed-by: kizune, prr, lbourges
2024-12-18 09:29:27 +00:00
Roberto Castañeda Lozano
edbd76c624 8344951: Stabilize write barrier micro-benchmarks
Reviewed-by: kvn, tschatzl
2024-12-18 07:50:37 +00:00
SendaoYan
842f801c84 8339331: GCC fortify error in vm_version_linux_aarch64.cpp
Reviewed-by: dholmes
2024-12-18 06:35:28 +00:00
David Holmes
453310918b 8345911: Enhance error message when IncompatibleClassChangeError is thrown for sealed class loading failures
Reviewed-by: coleenp, alanb
2024-12-18 04:15:57 +00:00
David Holmes
ea50c54a14 8321818: vmTestbase/nsk/stress/strace/strace015.java failed with 'Cannot read the array length because "<local4>" is null'
Reviewed-by: lmesnik, mli
2024-12-18 01:47:44 +00:00
Alex Menkov
c0f0b8e5f4 8346151: Add transformer error logging to VerifyLocalVariableTableOnRetransformTest
Reviewed-by: cjplummer, sspitsyn
2024-12-17 21:02:45 +00:00
Magnus Ihse Bursie
f3e2f8821a 8346394: Bundled freetype library needs to have JNI_OnLoad for static builds
Reviewed-by: erikj, prr
2024-12-17 19:09:29 +00:00
Chris Plummer
414eb6bb83 8338714: vmTestbase/nsk/jdb/kill/kill001/kill001.java fails with JTREG_TEST_THREAD_FACTORY=Virtual
Reviewed-by: sspitsyn, dholmes
2024-12-17 19:06:07 +00:00
Alex Menkov
dc71e8cae9 8342995: Enhance Attach API to support arbitrary length arguments - Linux
Reviewed-by: sspitsyn, kevinw
2024-12-17 18:50:02 +00:00
Vladimir Ivanov
4f44cf6bf2 8341481: [perf] vframeStreamCommon constructor may be optimized
Reviewed-by: sspitsyn
2024-12-17 17:00:53 +00:00
Leonid Mesnik
390b20537d 8346048: test/lib/containers/docker/DockerRunOptions.java uses addJavaOpts() from ctor
Reviewed-by: dholmes
2024-12-17 16:44:14 +00:00
Magnus Ihse Bursie
03821d979b 8346195: Fix static initialization problem in GDIHashtable
Reviewed-by: jwaters, prr
2024-12-17 15:48:38 +00:00
Jan Kratochvil
a5503fb6fa 8346432: java.lang.foreign.Linker comment typo
Reviewed-by: jvernee
2024-12-17 14:58:21 +00:00
Coleen Phillimore
fbd76ca8ed 8337016: serviceability/jvmti/RedefineClasses/RedefineLeakThrowable.java gets Metaspace OOM
Reviewed-by: dholmes, sspitsyn
2024-12-17 13:00:19 +00:00
Coleen Phillimore
baeb3d9ab8 8346304: SA doesn't need a copy of getModifierFlags
Reviewed-by: sspitsyn, cjplummer
2024-12-17 12:37:05 +00:00
Jan Lahoda
99af595fe0 8345942: Separate source output from class output when building microbenchmarks
Reviewed-by: shade, erikj
2024-12-17 12:32:13 +00:00
Doug Simon
8a64595448 8346282: [JVMCI] Add failure reason support to UnresolvedJava/Type/Method/Field
Reviewed-by: never, yzheng
2024-12-17 12:11:55 +00:00
Jaikiran Pai
725079bf68 8345506: jar --validate may lead to java.nio.file.FileAlreadyExistsException
Reviewed-by: lancea
2024-12-17 10:14:28 +00:00
theoweidmannoracle
5e25c48b8b 8346289: Confusing phrasing in IR Framework README / User-defined Regexes
Reviewed-by: thartmann, chagedorn
2024-12-17 10:01:27 +00:00
Alan Bateman
fbbc7c35f4 8346120: VirtualThreadPinned event recorded for Object.wait may have wrong duration or may record second event
Reviewed-by: dholmes, pchilanomate
2024-12-17 08:30:29 +00:00
Prasanta Sadhukhan
466c00ac88 8346234: javax/swing/text/DefaultEditorKit/4278839/bug4278839.java still fails in CI
Reviewed-by: kizune
2024-12-17 07:46:53 +00:00
Christian Stein
bd3c0be36d 8268611: jar --validate should check targeted classes in MR-JAR files
Reviewed-by: jvernee
2024-12-17 07:16:12 +00:00
Archie Cobbs
87804f24b2 8346294: Invalid lint category specified in compiler.properties
Reviewed-by: mcimadamore
2024-12-17 03:18:25 +00:00
Zhao Song
18d1d61116 8346046: Enable copyright header format check
Reviewed-by: erikj, iris, dholmes
2024-12-17 00:22:54 +00:00
Fei Yang
a7631ccf18 8346235: RISC-V: Optimize bitwise AND with mask values
Reviewed-by: gcao, rehn, fjiang
2024-12-17 00:12:39 +00:00
Fei Yang
929d4a5099 8346231: RISC-V: Fix incorrect assertion in SharedRuntime::generate_handler_blob
Reviewed-by: fjiang, rehn
2024-12-17 00:02:24 +00:00
Magnus Ihse Bursie
3030230915 8346278: Clean up some flag handing in flags-cflags.m4
Reviewed-by: erikj
2024-12-16 21:26:51 +00:00
Justin Lu
fd0207d593 8345327: JDK 24 RDP1 L10n resource files update
Reviewed-by: naoto, dnguyen, joehw, almatvee, sgehwolf, jlahoda, prappo, asemenyuk
2024-12-16 21:00:56 +00:00
Paul Sandoz
31c3b19174 8346174: UMAX/UMIN are missing from XXXVector::reductionOperations
Reviewed-by: qamai, jbhateja
2024-12-16 18:53:05 +00:00
Matthias Baesken
c75b1d4bf6 8346082: Output JVMTI agent information in hserr files
Reviewed-by: mdoerr, dholmes, stuefe
2024-12-16 18:24:15 +00:00
Eirik Bjørsnøs
51662c2384 8346232: Remove leftovers of the jar --normalize feature
Reviewed-by: alanb, jpai
2024-12-16 18:03:21 +00:00
Coleen Phillimore
d3359417f3 8345678: compute_modifiers should not be in create_mirror
Reviewed-by: fparain, dholmes
2024-12-16 17:46:43 +00:00
Kevin Walls
57adf64ab4 8346261: Cleanup in JDP tests
Reviewed-by: cjplummer
2024-12-16 17:18:20 +00:00
Kevin Walls
23708d0166 8346257: Problemlist jdp tests for macosx-aarch64
Reviewed-by: cjplummer
2024-12-16 17:02:29 +00:00
Calvin Cheung
f8974ba718 8345838: Remove the appcds/javaldr/AnonVmClassesDuringDump.java test
Reviewed-by: iklam, dholmes
2024-12-16 16:54:31 +00:00
Matthew Donovan
e7d21fcf49 8346285: Update jarsigner compatibility test for change in default digest algorithm
Reviewed-by: weijun
2024-12-16 16:18:57 +00:00
Amit Kumar
cb92595599 8336356: [s390x] preserve Vector Register before using for string compress / expand
Reviewed-by: aph, lucy
2024-12-16 16:10:16 +00:00
Archie Cobbs
d737978924 8343477: Remove unnecessary @SuppressWarnings annotations (compiler)
Reviewed-by: darcy, mcimadamore
2024-12-16 14:52:42 +00:00
Erik Joelsson
8133eb2c28 8346150: Jib dependency on autoconf missing for 'docs' profile
Reviewed-by: jwaters, dholmes
2024-12-16 14:34:46 +00:00
Stefan Karlsson
45a329790b 8346248: serviceability/dcmd/vm/{SystemMapTest.java,SystemMapTest.java} failing on macos-aarch64
Reviewed-by: eosterlund
2024-12-16 13:43:55 +00:00
Maurizio Cimadamore
dbffe33251 8345263: Make sure that lint categories are used correctly when logging lint warnings
Reviewed-by: vromero, jlahoda
2024-12-16 10:20:13 +00:00
Christian Hagedorn
32c8195c3a 8345801: C2: Clean up include statements to speed up compilation when touching type.hpp
Reviewed-by: kvn, dlong, jwaters
2024-12-16 09:53:38 +00:00
Robbin Ehn
92860186ec 8345322: RISC-V: Add concurrent gtests for cmpxchg variants
Reviewed-by: mli, fyang
2024-12-16 09:48:12 +00:00
Hannes Wallnöfer
4fc43b0b49 8345770: javadoc: API documentation builds are not always reproducible
Reviewed-by: nbenalla, liach
2024-12-16 08:09:52 +00:00
Richard Reingruber
ee1c5ad8fe 8345975: Update SAP SE copyright year to 2024 where it was missed
Reviewed-by: mdoerr, clanger
2024-12-16 07:16:40 +00:00
Christian Hagedorn
3518b4bd20 8344171: Clone and initialize Assertion Predicates in order instead of in reverse-order
Reviewed-by: epeter, kvn
2024-12-16 06:21:22 +00:00
Kim Barrett
c88e081a6a 8346160: Fix -Wzero-as-null-pointer-constant warnings from explicit casts
Reviewed-by: stefank, dholmes
2024-12-16 04:24:39 +00:00
Lance Andersen
ab1dbd4089 8346202: Correct typo in SQLPermission
Reviewed-by: mullan, rriggs, iris
2024-12-15 17:41:52 +00:00
Leonid Mesnik
6b022bb64b 8344453: Test jdk/jfr/event/oldobject/TestSanityDefault.java timed out
Reviewed-by: egahlin
2024-12-14 19:08:19 +00:00
Simon Tooke
3b9de117e8 8319875: Add macOS implementation for jcmd System.map
Reviewed-by: stuefe, szaldana
2024-12-14 06:13:26 +00:00
Kim Barrett
ebb27c2e8f 8346139: test_memset_with_concurrent_readers.cpp should not use <sstream>
Reviewed-by: stefank, tschatzl
2024-12-14 01:48:05 +00:00
Ioi Lam
c2f0ef5f48 8346159: Disable CDS AOTClassLinking tests for JVMCI due to JDK-8345635
Reviewed-by: dnsimon, dholmes
2024-12-14 00:16:08 +00:00
Archie Cobbs
4b21fb9df9 8343467: Remove unnecessary @SuppressWarnings annotations (security)
Reviewed-by: mullan
2024-12-13 22:40:42 +00:00
Kevin Walls
e7fc0eb522 8345987: java.management has two Util.newObjectName methods (remove one)
Reviewed-by: cjplummer, amenkov, lmesnik
2024-12-13 20:39:18 +00:00
Calvin Cheung
f647d4d908 8345936: Call ClassLoader.getResourceAsByteArray only for multi-release jar
Reviewed-by: iklam, dholmes
2024-12-13 19:19:42 +00:00
William Kemper
cfa04d31dd 8346051: MemoryTest fails when Shenandoah's generational mode is enabled
Reviewed-by: lmesnik, ysr
2024-12-13 18:14:01 +00:00
William Kemper
2ce53e8848 8345970: pthread_getcpuclockid related crashes in shenandoah tests
Reviewed-by: ysr
2024-12-13 17:41:26 +00:00
Matthias Baesken
266e3d0dec 8345590: AIX 'make all' fails after JDK-8339480
Reviewed-by: clanger, jkern, mdoerr, lucy
2024-12-13 12:18:49 +00:00
Matthias Baesken
1d2ccaeaa3 8345569: [ubsan] adjustments to filemap.cpp and virtualspace.cpp for macOS aarch64
Reviewed-by: mdoerr, lucy, dholmes
2024-12-13 12:14:07 +00:00
Albert Mingkun Yang
a9a5f7cb0a 8345323: Parallel GC does not handle UseLargePages and UseNUMA gracefully
Reviewed-by: sjohanss, tschatzl
2024-12-13 11:43:32 +00:00
SendaoYan
367c304127 8346059: [ASAN] awt_LoadLibrary.c reported compile warning ignoring return value of function by clang17
Reviewed-by: ihse
2024-12-13 08:34:10 +00:00
Prasanta Sadhukhan
31ceec7cd5 8346055: javax/swing/text/StyledEditorKit/4506788/bug4506788.java fails in ubuntu22.04
Reviewed-by: tr
2024-12-13 05:50:07 +00:00
Sorna Sarathi
09c29d1d42 8346069: Add missing Classpath exception statements
Reviewed-by: amitkumar, asemenyuk, iris, kcr
2024-12-13 05:01:37 +00:00
Kim Barrett
28e49e978a 8345505: Fix -Wzero-as-null-pointer-constant warnings in zero code
Reviewed-by: dholmes
2024-12-13 04:49:11 +00:00
David Holmes
db9eab3f29 8311542: Consolidate the native stack printing code
Reviewed-by: kbarrett, jwaters
2024-12-12 23:15:48 +00:00
Weijun Wang
18e0b343ab 8344137: Update XML Security for Java to 3.0.5
Reviewed-by: mullan
2024-12-12 18:57:46 +00:00
Thomas Stuefe
e9ad27fcdc 8339313: 32-bit build broken
Reviewed-by: coleenp, mbaesken, szaldana
2024-12-12 18:53:33 +00:00
Sonia Zaldana Calles
ff85865b75 8346008: Fix recent NULL usage backsliding in Shenandoah
Reviewed-by: kbarrett, wkemper
2024-12-12 18:15:18 +00:00
Severin Gehwolf
11cd639842 8345573: Module dependencies not resolved from run-time image when --limit-module is being used
Reviewed-by: mchung
2024-12-12 17:58:05 +00:00
Kim Barrett
22845a77a2 8337995: ZUtils::fill uses std::fill_n
Reviewed-by: mli, stefank, jwaters, tschatzl
2024-12-12 14:40:04 +00:00
Hannes Wallnöfer
f71d515026 8345777: Improve sections for inherited members
Reviewed-by: prappo
2024-12-12 13:28:58 +00:00
Hannes Wallnöfer
b8bb51e1f3 8345908: Class links should be properly spaced
Reviewed-by: prappo
2024-12-12 13:14:17 +00:00
Coleen Phillimore
ef6e987a00 8346040: Zero interpreter build on Linux Aarch64 is broken
Reviewed-by: kbarrett, dholmes
2024-12-12 12:48:06 +00:00
Magnus Ihse Bursie
f7f07b94c5 8345804: Update copyright year to 2024 for langtools in files where it was missed
Reviewed-by: rgiulietti, jlahoda
2024-12-12 12:06:27 +00:00
Jan Lahoda
1bdb7b4271 8345622: test/langtools/tools/javac/annotations/parameter/ParameterAnnotations.java should set processorpath to work correctly in the agentvm mode
Reviewed-by: darcy, liach
2024-12-12 11:59:45 +00:00
Maurizio Cimadamore
0ad64234e2 8345944: JEP 492: extending local class in a different static context should not be allowed
8345953: JEP 492: instantiating local classes in a different static context should not be allowed

Reviewed-by: vromero
2024-12-12 10:49:35 +00:00
Amit Kumar
68aa4d44ff 8346063: java/lang/Thread/virtual/Starvation.java missing @requires vm.continuations
Reviewed-by: alanb, vklang
2024-12-12 10:04:09 +00:00
Amit Kumar
77e493226d 8344026: Ubsan: prevent potential integer overflow in c1_LIRGenerator_<arch>.cpp file
Reviewed-by: aph, epeter, mdoerr
2024-12-12 09:51:56 +00:00
Kevin Walls
3f2556b860 8345984: Remove redundant checkXXX methods from java.management Util class
Reviewed-by: alanb, mchung, cjplummer, sspitsyn
2024-12-12 09:16:06 +00:00
David Holmes
ceb4366ebf 8345955: Deprecate the UseOprofile flag with a view to removing the legacy oprofile support in the VM
Reviewed-by: iklam, shade
2024-12-12 07:53:38 +00:00
Saagar Jha
72c59de615 8345876: Update nativeAddAtIndex comment to match the code
Reviewed-by: azvegint, aivanov, psadhukhan, kizune
2024-12-12 03:20:42 +00:00
Quan Anh Mai
75cfb640a6 8310691: [REDO] [vectorapi] Refactor VectorShuffle implementation
Reviewed-by: psandoz, jbhateja, epeter
2024-12-12 03:08:37 +00:00
Xiaolong Peng
4da6fd4283 8345423: Shenandoah: Parallelize concurrent cleanup
Reviewed-by: ysr, kdnilsen, wkemper
2024-12-12 01:08:31 +00:00
David Holmes
ec219ae56f 8346039: [BACKOUT] - [C1] LIR Operations with one input should be implemented as LIR_Op1
Reviewed-by: kvn, mdoerr
2024-12-12 00:04:19 +00:00
Jiangli Zhou
05c5678886 8345959: Make JVM_IsStaticallyLinked JVM_LEAF
Reviewed-by: ihse
2024-12-11 23:45:49 +00:00
Magnus Ihse Bursie
64fad1c7d3 8345797: Update copyright year to 2024 for client-libs in files where it was missed
Reviewed-by: psadhukhan
2024-12-11 21:29:30 +00:00
Magnus Ihse Bursie
ddf0461788 8345799: Update copyright year to 2024 for core-libs in files where it was missed
Reviewed-by: joehw, jlu, mli, lancea, kevinw
2024-12-11 21:08:22 +00:00
Magnus Ihse Bursie
cbab40bce4 8345683: Remove special flags for files compiled for static libraries
Reviewed-by: erikj
2024-12-11 21:01:20 +00:00
Kim Barrett
08bdeedfd3 8345269: Fix -Wzero-as-null-pointer-constant warnings in ppc code
Reviewed-by: mdoerr, mbaesken
2024-12-11 19:37:01 +00:00
Andrey Turbanov
e4a34e96cd 8345616: Unnecessary Hashtable usage in javax.swing.text.html.parser.Element
Reviewed-by: aivanov, azvegint
2024-12-11 18:22:23 +00:00
Brian Burkhalter
cce5808d7a 8345421: (bf) Create specific test for temporary direct buffers and the buffer size limit
Reviewed-by: alanb
2024-12-11 17:57:22 +00:00
Ivan Šipka
cf0e1aa066 8345335: Add excluded jdk_foreign tests to manual group
Reviewed-by: jvernee
2024-12-11 16:33:44 +00:00
Quan Anh Mai
2c4567a689 8342651: Refactor array constant to use an array of jbyte
Reviewed-by: thartmann, kvn
2024-12-11 15:59:39 +00:00
theoweidmannoracle
72c6daf1b1 8346007: Incorrect copyright header in UModLNodeIdealizationTests.java
Reviewed-by: thartmann
2024-12-11 15:21:28 +00:00
Qizheng Xing
cc47918445 8345040: Clean up unused variables and code in generate_native_wrapper
Reviewed-by: mli, dfenacci, kvn
2024-12-11 15:11:46 +00:00
Stefan Karlsson
c34b87c52b 8345659: Fix broken alignment after ReservedSpace splitting in GC code
Reviewed-by: ayang, aboldtch
2024-12-11 15:09:36 +00:00
Sonia Zaldana Calles
e294899154 8345647: Fix recent NULL usage backsliding in Shenandoah
Reviewed-by: shade, jwaters, mli
2024-12-11 14:40:03 +00:00
theoweidmannoracle
d381d581bf 8332268: C2: Add missing optimizations for UDivI/L and UModI/L and unify the shared logic with the signed nodes
Reviewed-by: chagedorn, thartmann, epeter, qamai
2024-12-11 14:30:59 +00:00
Roland Westrelin
45c914c3ad 8343607: C2: Shenandoah crashes during barrier expansion in Continuation::enter
Reviewed-by: shade
2024-12-11 13:48:03 +00:00
Martin Doerr
a21d21f4d7 8345609: [C1] LIR Operations with one input should be implemented as LIR_Op1
Reviewed-by: rrich, goetz
2024-12-11 12:50:24 +00:00
Stefan Karlsson
2382a2de96 8345661: Simplify page size alignment in code heap reservation
Reviewed-by: dholmes, thartmann
2024-12-11 12:22:00 +00:00
Stefan Karlsson
076bfa688c 8345656: Move os alignment functions out of ReservedSpace
Reviewed-by: dholmes
2024-12-11 11:53:25 +00:00
Stefan Karlsson
2826838389 8345658: WB_NMTCommitMemory redundantly records an NMT tag
Reviewed-by: dholmes, jsjolen
2024-12-11 11:49:19 +00:00
Magnus Ihse Bursie
c9ec2716a5 8345800: Update copyright year to 2024 for serviceability in files where it was missed
Reviewed-by: dholmes, cjplummer
2024-12-11 10:40:19 +00:00
Magnus Ihse Bursie
8e0f929ecf 8345805: Update copyright year to 2024 for other files where it was missed
Reviewed-by: dholmes, mli, mullan
2024-12-11 10:39:08 +00:00
Adam Sotona
f88c1c6ff8 8345773: Class-File API debug printing capability
Reviewed-by: liach, mcimadamore
2024-12-11 07:58:26 +00:00
theoweidmannoracle
e88e793cfd 8343148: C2: Refactor uses of "PhaseValue::*con*() + PhaseIdealLoop::set_ctrl()" into separate method
Reviewed-by: kvn, chagedorn, thartmann
2024-12-11 07:52:06 +00:00
Kim Barrett
1e9204fa43 8345273: Fix -Wzero-as-null-pointer-constant warnings in s390 code
Reviewed-by: jwaters, aph, amitkumar
2024-12-11 04:47:44 +00:00
Prasanta Sadhukhan
c40140eb9c 8334581: Remove no-arg constructor BasicSliderUI()
Reviewed-by: abhiscxk, aivanov, azvegint
2024-12-11 04:00:01 +00:00
Prasanta Sadhukhan
8de0622c3a 8345767: javax/swing/JSplitPane/4164779/JSplitPaneKeyboardNavigationTest.java fails in ubuntu22.04
Reviewed-by: honkar, dnguyen
2024-12-11 03:49:16 +00:00
Vicente Romero
abcd23f4d6 8334756: javac crashed on call to non-existent generic method with explicit annotated type arg
Reviewed-by: abimpoudis
2024-12-11 02:12:23 +00:00
Alex Menkov
2ddaa46054 8305010: Test vmTestbase/nsk/jvmti/scenarios/sampling/SP05/sp05t003/TestDescription.java timed out: thread not suspended
Reviewed-by: cjplummer, lmesnik, sspitsyn
2024-12-11 01:37:31 +00:00
Damon Nguyen
c6317191e3 8343170: java/awt/Cursor/JPanelCursorTest/JPanelCursorTest.java does not show the default cursor
Reviewed-by: honkar, azvegint, achung
2024-12-10 23:52:23 +00:00
Jasmine Karthikeyan
29d648c642 8341781: Improve Min/Max node identities
Reviewed-by: chagedorn
2024-12-10 22:32:19 +00:00
Kevin Driver
4c39e9faa0 8344924: Default CA certificates loaded despite request to use custom keystore
Reviewed-by: ascarpino
2024-12-10 20:49:13 +00:00
Chen Liang
0f035545e5 8342469: Improve API documentation for java.lang.classfile.instruction
Reviewed-by: asotona, darcy
2024-12-10 20:34:12 +00:00
Nizar Benalla
9bd70ec806 8345888: Broken links in the JDK 24 JavaDoc API documentation, build 27
Reviewed-by: psadhukhan
2024-12-10 18:25:32 +00:00
Leonid Mesnik
1def2d82ac 8345700: tier{1,2,3}_compiler don't cover all compiler tests
Reviewed-by: dholmes, shade
2024-12-10 17:40:06 +00:00
Leonid Mesnik
d6b5264c3f 8345746: Remove :resourcehogs/compiler from :hotspot_slow_compiler
Reviewed-by: kvn
2024-12-10 15:53:51 +00:00
Roger Riggs
4f855d1342 8345818: Fix SM cleanup of parsing of System property resource.bundle.debug
Reviewed-by: lancea, eirbjo
2024-12-10 15:16:58 +00:00
Hamlin Li
a24b08fcb0 8345669: RISC-V: fix client build failure due to AlignVector after JDK-8343827
Reviewed-by: fyang, luhenry
2024-12-10 14:39:29 +00:00
Manjunath Matti
25d9deb1a3 8335367: [s390] Add support for load immediate on condition instructions.
Reviewed-by: lucy, amitkumar
2024-12-10 14:15:15 +00:00
Coleen Phillimore
a6277bb521 8340212: -Xshare:off -XX:CompressedClassSpaceBaseAddress=0x40001000000 crashes on macos-aarch64
Co-authored-by: Thomas Stuefe <stuefe@openjdk.org>
Reviewed-by: iklam, stuefe
2024-12-10 12:27:30 +00:00
Pavel Rappo
165fd848c1 8342987: Update --release 24 symbol information for JDK 24 build 27
Reviewed-by: darcy, iris
2024-12-10 10:03:36 +00:00
Per Minborg
06c44dd568 8345465: Fix performance regression on x64 after JDK-8345120
Reviewed-by: mcimadamore
2024-12-10 10:01:27 +00:00
Magnus Ihse Bursie
2979806c72 8345795: Update copyright year to 2024 for hotspot in files where it was missed
Reviewed-by: dholmes, tschatzl, dnsimon, sspitsyn
2024-12-10 08:47:46 +00:00
Albert Mingkun Yang
7e73c436ef 8345217: Parallel: Refactor PSParallelCompact::next_src_region
Reviewed-by: tschatzl, sjohanss, zgu
2024-12-10 08:28:36 +00:00
David Holmes
7d3a4049d5 8339019: Obsolete the UseLinuxPosixThreadCPUClocks flag
Reviewed-by: ccheung, kbarrett
2024-12-10 07:43:34 +00:00
Jiangli Zhou
a606836a02 8345744: Use C++ LINK_TYPE with SetupBuildLauncher in StaticLibs.gmk
Reviewed-by: ihse
2024-12-09 21:37:39 +00:00
Magnus Ihse Bursie
fe0173ddef 8345803: Update copyright year to 2024 for security in files where it was missed
Reviewed-by: mullan
2024-12-09 21:03:37 +00:00
Artur Barashev
2207749c89 8344629: SSLSocketNoServerHelloClientShutdown test timeout
Reviewed-by: wetmore
2024-12-09 20:56:59 +00:00
Ioi Lam
0b9e749f54 8345390: [ubsan] systemDictionaryShared.cpp:964: member call on null pointer
Reviewed-by: mbaesken, kbarrett
2024-12-09 20:35:54 +00:00
Michael McMahon
eff20a38c7 8345794: Backout doc change introduced by JDK-8235786
Reviewed-by: dfuchs
2024-12-09 20:24:41 +00:00
Alexandre Iline
48e22ba772 8345693: Update JCov for class file version 69
Reviewed-by: ihse
2024-12-09 19:43:55 +00:00
Roland Westrelin
cc628a133e 8345287: C2: live in computation is broken
Reviewed-by: kvn, dlong, rcastanedalo
2024-12-09 16:43:16 +00:00
Daniel Skantz
480b508cf2 8345156: C2: Add bailouts next to a few asserts
Reviewed-by: kvn, epeter
2024-12-09 16:29:56 +00:00
Magnus Ihse Bursie
b120404620 8345793: Update copyright year to 2024 for the build system in files where it was missed
Reviewed-by: kbarrett, erikj
2024-12-09 15:53:48 +00:00
Scott Marlow
7aa0cbc91d 8345614: Improve AnnotationFormatError message for duplicate annotation interfaces
Reviewed-by: liach
2024-12-09 14:59:59 +00:00
Eric Caspole
35c00532a1 8345405: Add JMH showing the regression in 8341649
Reviewed-by: redestad, coleenp
2024-12-09 14:59:05 +00:00
Erik Joelsson
166c12771d 8345726: Update mx in RunTestPrebuiltSpec to reflect change in JDK-8345302
Reviewed-by: ihse
2024-12-09 14:05:57 +00:00
Kim Barrett
e821d599c8 8345589: Simplify Windows definition of strtok_r
Reviewed-by: dholmes, jwaters
2024-12-09 13:54:31 +00:00
Matthew Donovan
153dc6d843 8345133: Test sun/security/tools/jarsigner/TsacertOptionTest.java failed: Warning found in stdout
Reviewed-by: hchao, mullan
2024-12-09 13:20:26 +00:00
Fabian Meumertzheim
d7ef3ac0b7 8345684: OperatingSystemMXBean.getSystemCpuLoad() throws NPE
Reviewed-by: dholmes, kevinw, sgehwolf
2024-12-09 12:12:50 +00:00
Andrew Haley
830173fcb0 8344068: Windows x86-64: Out of CodeBuffer space when generating final stubs
Reviewed-by: kvn, vlivanov
2024-12-09 11:05:25 +00:00
SendaoYan
69e664de14 8345632: [ASAN] memory leak in get_numbered_property_as_sorted_string function
Reviewed-by: ccheung, dholmes
2024-12-09 03:38:41 +00:00
Leonid Mesnik
842b363879 8345698: Remove tier1_compiler_not_xcomp from github actions
Reviewed-by: syan, liach
2024-12-09 02:43:54 +00:00
Sorna Sarathi
458979d83a 8344611: Add missing classpath exception
Reviewed-by: amitkumar, iris
2024-12-09 02:05:59 +00:00
David Holmes
83ea0133dd 8345629: Remove expired flags in JDK 25
Reviewed-by: kvn, coleenp
2024-12-08 23:27:31 +00:00
Hamlin Li
c517ffba7d 8339910: RISC-V: crc32 intrinsic with carry-less multiplication
Reviewed-by: rehn, luhenry
2024-12-07 09:56:15 +00:00
Brent Christian
e0d6398783 8344575: Examine usage of ReflectUtil.forName() in java.sql.rowset - XmlReaderContentHandler
Reviewed-by: lancea, mchung, alanb, liach
2024-12-06 21:18:35 +00:00
Leonid Mesnik
470701f0bb 8340969: jdk/jfr/startupargs/TestStartDuration.java should be marked as flagless
Reviewed-by: syan, egahlin
2024-12-06 18:42:07 +00:00
Hannes Wallnöfer
573bcb6180 8345664: Use simple parameter type names in @link and @see tags
Reviewed-by: liach
2024-12-06 16:39:08 +00:00
Chen Liang
4966419550 8334733: Remove obsolete @enablePreview from tests after JDK-8334714
Reviewed-by: mchung, asotona
2024-12-06 14:25:03 +00:00
Evgeny Nikitin
0e2a285277 8344833: CTW: Make failing on zero classes optional
Reviewed-by: thartmann, kvn
2024-12-06 14:19:15 +00:00
Daniel Gredler
f6021a9c34 8344668: Unnecessary array allocations and copying in TextLine
Reviewed-by: honkar, azvegint, prr
2024-12-06 13:07:35 +00:00
Roland Westrelin
874d68a96c 8343747: C2: TestReplicateAtConv.java crashes with -XX:MaxVectorSize=8
Reviewed-by: epeter, kvn
2024-12-06 09:19:55 +00:00
Roland Westrelin
d9a22139fb 8345299: C2: some nodes can still have incorrect control after do_range_check()
Reviewed-by: chagedorn, kvn
2024-12-06 09:18:46 +00:00
Kim Barrett
2286fae300 8345159: RISCV: Fix -Wzero-as-null-pointer-constant warning in emit_static_call_stub
Reviewed-by: mli, rehn
2024-12-06 06:32:03 +00:00
Prasanta Sadhukhan
84032850db 8268145: [macos] Rendering artifacts is seen when text inside the JTable with TableCellEditor having JTextfield
Reviewed-by: kizune, abhiscxk, honkar
2024-12-06 03:19:13 +00:00
Leonid Mesnik
aa3828447c 8345435: Eliminate tier1_compiler_not_xcomp group
Reviewed-by: kvn
2024-12-06 01:33:22 +00:00
David Holmes
9284602ecb 8345628: [BACKOUT] JDK-8287122 Use gcc12 -ftrivial-auto-var-init=pattern in debug builds
Reviewed-by: erikj
2024-12-06 00:45:04 +00:00
Magnus Ihse Bursie
41c8971cbc 8287122: Use gcc12 -ftrivial-auto-var-init=pattern in debug builds
Reviewed-by: erikj
2024-12-05 22:58:40 +00:00
Magnus Ihse Bursie
5da0eee3a6 8285692: Enable _FORTIFY_SOURCE=2 when building with Clang
Reviewed-by: erikj
2024-12-05 22:57:06 +00:00
Magnus Ihse Bursie
daa2ba52a3 8339622: Regression in make open-hotspot-xcode-project
Reviewed-by: mcimadamore, erikj
2024-12-05 21:53:53 +00:00
Magnus Ihse Bursie
6f6bce56fc 8344559: Log is spammed by missing pandoc warnings when building man pages
Reviewed-by: shade, erikj
2024-12-05 21:53:36 +00:00
Magnus Ihse Bursie
5f30a8d90c 8345424: Move FindDebuginfoFiles out of FileUtils.gmk
Reviewed-by: erikj
2024-12-05 21:53:18 +00:00
Matias Saavedra Silva
bf0debc023 8343890: SEGV crash in RunTimeClassInfo::klass
Reviewed-by: iklam, ccheung
2024-12-05 20:08:31 +00:00
Y. Srinivas Ramakrishna
a97dca52c9 8344593: GenShen: Review of ReduceInitialCardMarks
Reviewed-by: shade, cslucas
2024-12-05 19:46:39 +00:00
William Kemper
bedb68aba1 8342444: Shenandoah: Uncommit regions from a separate, STS aware thread
Reviewed-by: shade, kdnilsen, ysr
2024-12-05 17:55:23 +00:00
Kim Barrett
dbf48a53ec 8344665: Refactor PartialArrayState allocation for reuse
Reviewed-by: tschatzl, ayang, iwalulya, zgu
2024-12-05 17:43:48 +00:00
Pavel Rappo
5cc150c636 8342979: Start of release updates for JDK 25
8342982: Add SourceVersion.RELEASE_25
8342983: Add source 25 and target 25 to javac

Co-authored-by: Joe Darcy <darcy@openjdk.org>
Reviewed-by: iris, darcy, erikj, dholmes
2024-12-05 17:03:27 +00:00
Matthias Baesken
85fedbf668 8344607: Link Time Optimization - basic support for clang
Reviewed-by: lucy, jkern, ihse
2024-12-05 16:44:18 +00:00
Erik Joelsson
5a0899fc09 8345302: Building microbenchmarks require larger Java heap
Reviewed-by: shade, mcimadamore
2024-12-05 16:17:17 +00:00
Calvin Cheung
1ece4f9d93 8345514: Should use internal class name when calling ClassLoader.getResourceAsByteArray
Reviewed-by: iklam, matsaave
2024-12-05 15:40:12 +00:00
Kim Barrett
ef8da28487 8345591: [aarch64] macroAssembler_aarch64.cpp compile fails ceil_log2 not declared
Reviewed-by: coleenp, alanb, syan
2024-12-05 15:31:43 +00:00
Gerard Ziemski
7513b1378d 8328944: NMT reports "unknown" memory
Reviewed-by: jsjolen, coleenp
2024-12-05 15:28:30 +00:00
Alan Bateman
691e692149 8345565: Remove remaining SecurityManager motivated APIs from sun.reflect.util
Reviewed-by: mullan, rriggs, liach
2024-12-05 15:22:00 +00:00
Erik Gahlin
97b8a09bda 8345339: JFR: Missing javadoc for RecordingStream::onMetadata
Reviewed-by: nbenalla, liach
2024-12-05 14:50:30 +00:00
Thomas Stuefe
456c71d1ff 8343699: [aarch64] Bug in MacroAssembler::klass_decode_mode()
Reviewed-by: adinn, coleenp
2024-12-05 14:07:39 +00:00
Weijun Wang
308357cba7 8345578: New test in JDK-8343622 fails with a promoted build
Reviewed-by: mullan
2024-12-05 13:15:26 +00:00
Aleksey Shipilev
84240cc8e0 8344831: [REDO] CDS: Parallel relocation
Reviewed-by: dholmes, stuefe
2024-12-05 12:37:54 +00:00
Doug Lea
92e9ac6dc7 8345294: test/jdk/java/lang/Thread/virtual/RetryMonitorEnterWhenPinned.java timeout with JTREG_TEST_THREAD_FACTORY=Virtual
Reviewed-by: alanb
2024-12-05 12:15:58 +00:00
Martin Doerr
b42d79eb6a 8345146: [PPC64] Make intrinsic conversions between bit representations of half precision values and floats
Reviewed-by: rrich, lucy
2024-12-05 12:03:53 +00:00
Prasanta Sadhukhan
7ee84d8f70 8345566: Deproblemlist test/jdk/javax/swing/JComboBox/6559152/bug6559152.java
Reviewed-by: tr
2024-12-05 11:51:46 +00:00
Jaikiran Pai
01307a7baf 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486
Reviewed-by: dfuchs, lancea, rriggs, alanb
2024-12-05 11:19:38 +00:00
Christian Stein
bcd1018585 8344540: Remove superseded wildcard description from java manpage
Reviewed-by: dholmes, jpai
2024-12-05 10:15:05 +00:00
Raffaello Giulietti
f3807d6a84 8345403: Add more randomized tests to better cover FloatingDecimal parsing
Reviewed-by: darcy
2024-12-05 09:50:28 +00:00
Andrey Turbanov
3b7571d378 8345398: Avoid redundant Properties.containsKey call in Cursor.getSystemCustomCursor
Reviewed-by: aivanov, prr
2024-12-05 09:07:15 +00:00
Weijun Wang
ca46c3a5ba 8343622: AesDkCrypto.stringToKey should not return null
Reviewed-by: valeriep
2024-12-05 08:36:18 +00:00
Prasanta Sadhukhan
e46d822aeb 8345547: test/jdk/javax/swing/text/DefaultEditorKit/4278839/bug4278839.java fails in ubuntu22.04
Reviewed-by: abhiscxk
2024-12-05 07:29:42 +00:00
Robbin Ehn
2331782cf7 8345179: RISC-V: Add gtests for weak cmpxchg
Reviewed-by: fyang, mli
2024-12-05 07:25:05 +00:00
Ioi Lam
7c8cec186a 8345224: Test runtime/cds/appcds/applications/JavacBench.java#dynamic fails after JDK-8344822
Reviewed-by: matsaave, ccheung
2024-12-05 05:20:40 +00:00
Chris Plummer
77cfcee8a1 8345422: Fix JNI Checker "in native method" warnings in the debug agent and debugger tests
8344804: Test serviceability/jdwp/AllModulesCommandTest.java times out after JNI check warning

Reviewed-by: amenkov, dholmes
2024-12-05 03:33:50 +00:00
Amit Kumar
67a7b0049d 8345355: [s390x] support for z16 hardware
Reviewed-by: lucy, aph
2024-12-05 03:08:36 +00:00
Matias Saavedra Silva
9c3d3b9540 8345503: Test EnableNativeAccessCDS.java fails with TEST_THREAD_FACTORY=Virtual
Reviewed-by: lmesnik, iklam, syan
2024-12-05 02:32:03 +00:00
Weijun Wang
fb95a53944 8345533: Switch ML-DSA implementation to FIPS 204 final
Reviewed-by: bperez, jnimeh
2024-12-05 01:27:10 +00:00
Jaikiran Pai
63d095169a 8345153: Clean up SecurityManager references from jdk.compiler module
Reviewed-by: alanb, jlahoda, darcy
2024-12-05 01:24:29 +00:00
Archie Cobbs
7a0cc79668 8345438: Invalid error for return in early construction context lambda
Reviewed-by: vromero, mcimadamore
2024-12-04 23:17:54 +00:00
Archie Cobbs
bcebb0c53c 8341495: JShell crashes with java.util.MissingFormatArgumentException
Reviewed-by: jlahoda
2024-12-04 23:16:50 +00:00
Alexey Semenyuk
ba158edd81 8334319: Missing keys in jpackage resource bundle
Reviewed-by: naoto, almatvee
2024-12-04 22:41:55 +00:00
Stuart Marks
8a3c100c54 8344461: Additional cleanup in NewThreadAction
8344867: Cleanup unneeded qualified exports to java.rmi

Co-authored-by: Roger Riggs <rriggs@openjdk.org>
Reviewed-by: rriggs
2024-12-04 22:34:51 +00:00
Ben Perez
f904480a49 8345512: Remove wrapper functions for intrinsics in PQC algorithms
Reviewed-by: weijun
2024-12-04 22:01:10 +00:00
Aleksei Efimov
8d19a560d0 8340359: Remove javax.naming.Context.APPLET
Reviewed-by: jpai
2024-12-04 21:37:53 +00:00
Patricio Chilano Mateo
c113f82f78 8343957: Rename ObjectMonitor::owner_from() and JavaThread::_lock_id
Reviewed-by: coleenp, dholmes
2024-12-04 21:25:38 +00:00
Brian Burkhalter
ea73e05852 8345181: (ch) Windows asynchronous channels may return temporary direct buffers to the buffer cache twice (win)
Reviewed-by: alanb, michaelm
2024-12-04 20:59:14 +00:00
Justin Lu
ee0f88c901 8341923: java.util.Locale class specification improvements
Reviewed-by: liach, naoto
2024-12-04 20:57:26 +00:00
Alex Menkov
a72cab8c47 8345148: Fix for JDK-8337317 is incomplete
Reviewed-by: lmesnik, cjplummer
2024-12-04 20:48:17 +00:00
Magnus Ihse Bursie
1a73c76d83 8345524: CHECK_FOR_FILES should properly handle directories
Reviewed-by: erikj
2024-12-04 20:43:47 +00:00
Brian Burkhalter
1d3dcdf2d6 8345433: (fs) Use stream to load FileTypeDetectors in Files.probeContentType
Reviewed-by: rriggs, alanb, aturbanov
2024-12-04 20:25:52 +00:00
Alexey Semenyuk
9740c1df6f 8333572: Update jpackage.md with info related to WiX v4 and v5 support
Reviewed-by: almatvee
2024-12-04 20:07:00 +00:00
Sean Mullan
de3a218a28 8345502: Remove doIntersectionPrivilege methods
Reviewed-by: weijun
2024-12-04 19:17:51 +00:00
Alexey Ivanov
faa109e8d4 8340580: Characters in Document diagrams not in the middle
Move text in Document-{insert,remove}.svg by 0.5 of pixel

Reviewed-by: azvegint, kizune
2024-12-04 18:52:07 +00:00
Ioi Lam
6aa7667e9d 8339535: JVM crashes with -Xshare:dump -XX:+SegmentedCodeCache
Reviewed-by: ccheung, dholmes, kvn
2024-12-04 18:45:35 +00:00
Jatin Bhateja
e1695f6c40 8345472: Fix incorrect format instruction for floating point max/min patterns
Reviewed-by: kvn
2024-12-04 18:27:37 +00:00
Magnus Ihse Bursie
baa6957b9b 8345507: Fix build of static launcher
Reviewed-by: erikj
2024-12-04 17:51:04 +00:00
Chen Liang
79eb77b782 8345486: Reevaluate the classes in java.lang.classfile.components package
Reviewed-by: mcimadamore, asotona
2024-12-04 17:30:01 +00:00
Aleksey Shipilev
f3b4350e0f 8345219: C2: x86_64 should not go to interpreter stubs for NaNs handling
Reviewed-by: epeter, kvn
2024-12-04 16:37:38 +00:00
Volkan Yazıcı
16ef6e2a18 8344229: Revisit SecurityManager usage in jdk.httpserver after JEP 486 integration
Reviewed-by: dfuchs
2024-12-04 15:38:17 +00:00
Prasanta Sadhukhan
923321cfb1 8345447: test/jdk/javax/swing/JToolBar/4529206/bug4529206.java fails in ubuntu22.04
Reviewed-by: abhiscxk
2024-12-04 15:35:27 +00:00
Prasanta Sadhukhan
6f30762356 8345468: test/jdk/javax/swing/JScrollBar/4865918/bug4865918.java fails in ubuntu22.04
Reviewed-by: abhiscxk
2024-12-04 15:34:11 +00:00
Aggelos Biboudis
6c1ed0bb69 8345474: Translation for instanceof is not triggered when patterns are not used in the compilation unit
Reviewed-by: mcimadamore
2024-12-04 14:32:47 +00:00
Kevin Walls
bd6d911cbe 8344177: Remove SecurityManager and related calls from java.management
Reviewed-by: dfuchs
2024-12-04 14:23:08 +00:00
Per Minborg
39cdadfb6a 8345186: Incorrect @throws doc for MemorySegment::getString
Reviewed-by: mcimadamore, jvernee
2024-12-04 14:17:00 +00:00
Alexey Ivanov
6fa5cea984 8341982: Simplify JButton/bug4323121.java
Reviewed-by: abhiscxk, honkar, dnguyen, achung
2024-12-04 13:29:53 +00:00
Sean Mullan
e13206d3a1 8345065: Cleanup DomainCombiner, SubjectDomainCombiner, Subject, and PrivilegedAction specifications
Reviewed-by: weijun
2024-12-04 12:44:23 +00:00
Aleksey Shipilev
4000e923e8 8343704: Bad GC parallelism with processing Cleaner queues
Reviewed-by: bchristi, vklang, ogillespie, kdnilsen
2024-12-04 11:36:23 +00:00
Aleksei Efimov
0c7451ae5a 8332686: InetAddress.ofLiteral can throw StringIndexOutOfBoundsException
Reviewed-by: dfuchs, jpai
2024-12-04 11:34:41 +00:00
Jan Lahoda
56d315da48 8343540: Report preview error for inherited effectively-preview methods
Reviewed-by: vromero
2024-12-04 09:47:40 +00:00
Fredrik Bredberg
994504c3e1 8329351: Add runtime/Monitor/TestRecursiveLocking.java for recursive Java monitor stress testing
Co-authored-by: Daniel D. Daugherty <dcubed@openjdk.org>
Reviewed-by: dcubed, coleenp, aboldtch
2024-12-04 09:32:33 +00:00
Jaikiran Pai
3d49665b85 8345286: Remove use of SecurityManager API from misc areas
Reviewed-by: alanb, kevinw, sgehwolf
2024-12-04 09:23:57 +00:00
Tom Rodriguez
38927fc590 8343213: TEST_BUG: [Graal] java/lang/ref/Basic.java fails
Reviewed-by: mchung
2024-12-04 08:31:55 +00:00
Matthias Baesken
cf1eb58d67 8344935: [ubsan]: javaThread.hpp:1241:52: runtime error: load of value 9831830, which is not a valid value for type 'freeze_result'
Co-authored-by: Richard Reingruber <rrich@openjdk.org>
Reviewed-by: rrich, pchilanomate
2024-12-04 08:11:33 +00:00
Matthias Baesken
943aa033ae 8345404: [ppc64le] ProblemList TestAllocOutOfMemory.java#large
Reviewed-by: mdoerr
2024-12-04 08:06:58 +00:00
Robbin Ehn
9e2b66fb0f 8345178: RISC-V: Add gtests for narrow cmpxchg
Reviewed-by: fyang, mli
2024-12-04 07:53:30 +00:00
Richard Reingruber
4c33caa185 8344609: Check ResourceMark nesting when allocating a GrowableArray on an alternative ResourceArea
Reviewed-by: dholmes, mdoerr
2024-12-04 07:26:34 +00:00
Jaikiran Pai
4b92816743 8345375: Improve debuggability of test/jdk/java/net/Socket/CloseAvailable.java
Reviewed-by: cstein, dfuchs
2024-12-04 06:36:54 +00:00
Jan Lahoda
e15912b804 8345248: Module name 'transitive' not accepted for requires transitive
Reviewed-by: vromero
2024-12-04 06:02:08 +00:00
Prasanta Sadhukhan
521ed72b87 8345357: test/jdk/javax/swing/JRadioButton/8033699/bug8033699.java fails in ubuntu22.04
Reviewed-by: abhiscxk
2024-12-04 04:28:06 +00:00
Joe Wang
447f8d4996 8345353: Test for JDK-8344800 W3C DTDs and XSDs in the built-in Catalog
Reviewed-by: rriggs, lancea
2024-12-04 03:48:24 +00:00
Amit Kumar
43b337eb43 8344304: [s390x] ubsan: negation of -2147483648 cannot be represented in type 'int'
Reviewed-by: lucy, dlong
2024-12-04 03:44:41 +00:00
Joe Wang
7ec36bb783 8343001: Adjust XSLT and XPath Extension Function Property
Reviewed-by: rriggs, lancea
2024-12-04 02:28:06 +00:00
Fei Yang
c143138a35 8345351: RISC-V: Rename macro-assembler routine cmpxchg_weak to weak_cmpxchg
Reviewed-by: rehn, mli
2024-12-04 01:45:16 +00:00
Chris Plummer
42378970e1 8345341: Fix incorrect log message in JDI stop002t test
Reviewed-by: amenkov, lmesnik
2024-12-04 00:15:30 +00:00
Weijun Wang
82e8aa62de 8345415: Rollback JDK-8301991 change on xmlsecurity_de.properties
Reviewed-by: mullan
2024-12-03 22:41:47 +00:00
Severin Gehwolf
05ee562a38 8343839: Detect patched modules and abort run-time image link early
Reviewed-by: mchung
2024-12-03 20:41:48 +00:00
Leonid Mesnik
0664b51765 8344987: Test serviceability/sa/TestJhsdbJstackPrintVMLocks.java fails: NoClassDefFoundError: jdk/test/lib/Utils
Reviewed-by: cjplummer
2024-12-03 20:32:36 +00:00
Jorn Vernee
157a4341f7 8345389: Bump missed copyright years for JDK-8336768
Reviewed-by: pminborg
2024-12-03 19:58:01 +00:00
Francisco Ferrari Bihurriet
a49f0776eb 8345221: Replace legacy with new Provider APIs in SunNativeGSS
Co-authored-by: Francisco Ferrari Bihurriet <fferrari@openjdk.org>
Co-authored-by: Martin Balao <mbalao@openjdk.org>
Reviewed-by: weijun
2024-12-03 18:44:31 +00:00
Dmitry Markov
2be07b5f9d 8324491: Keyboard layout didn't keep its state if it was changed when dialog was active
Reviewed-by: aivanov, azvegint
2024-12-03 18:37:27 +00:00
Damon Nguyen
f37f64df8c 8343736: Test java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.java failed: Choice can't be controlled by keyboard
Reviewed-by: honkar, abhiscxk
2024-12-03 18:18:13 +00:00
Harshitha Onkar
73b8b34a8c 8344368: IndependenceSwingTest.java and IndependenceAWTTest.java failed: Selected text & clipboard contents differs
Reviewed-by: azvegint, dnguyen, prr, kizune
2024-12-03 17:37:16 +00:00
Justin Lu
9267dfa63b 8344589: Update IANA Language Subtag Registry to Version 2024-11-19
Reviewed-by: iris, lancea, naoto
2024-12-03 17:16:09 +00:00
Dean Long
293323c3e2 8340141: C1: rework ciMethod::equals following 8338471
Reviewed-by: kvn, vlivanov
2024-12-03 17:05:49 +00:00
Chen Liang
76e874c08e 8345319: Fix the tag type in PoolEntry and AnnotationValue
Reviewed-by: asotona
2024-12-03 16:59:57 +00:00
Roman Kennke
e9f6ba0526 8345293: Fix generational Shenandoah with compact headers
Reviewed-by: shade, stuefe, ysr
2024-12-03 16:45:50 +00:00
Kim Barrett
e1910f2d19 8345397: Remove <cstdio> from g1HeapRegionRemSet.cpp
Reviewed-by: shade
2024-12-03 16:31:05 +00:00
Aleksey Shipilev
3c60f0b2bb 8345296: AArch64: VM crashes with SIGILL when prctl is disallowed
Reviewed-by: eastigeevich, phh, aph
2024-12-03 16:28:41 +00:00
Brian Burkhalter
3eaa7615cd 8342086: FileInputStream.available() fails with "Incorrect function" for "nul" path (win)
Reviewed-by: alanb
2024-12-03 16:19:51 +00:00
Matias Saavedra Silva
60bd73a595 8342089: Require --enable-native-access to be the same between CDS dump time and run time
Reviewed-by: ccheung, dholmes
2024-12-03 16:18:38 +00:00
Viktor Klang
2be27e1545 8345393: ProblemList java/util/concurrent/locks/StampedLock/OOMEInStampedLock.java on generic-all JTREG_TEST_THREAD_FACTORY=Virtual
Reviewed-by: alanb
2024-12-03 15:56:32 +00:00
Coleen Phillimore
ba5093935d 8341649: Regressions with large metaspace apps after 8338526
Reviewed-by: liach, stuefe
2024-12-03 15:44:00 +00:00
Alexey Ivanov
caf053b3ad 8337287: Update image in javax.swing.text.Document.insert
Reviewed-by: serb, prr, abhiscxk
2024-12-03 15:05:13 +00:00
Alexey Ivanov
8647c00114 8342602: Remove JButton/PressedButtonRightClickTest test
Reviewed-by: dnguyen, prr
2024-12-03 15:00:47 +00:00
Roger Riggs
fcf185c8b4 8345325: SM cleanup of GetPropertyAction in java.base
Reviewed-by: alanb, lancea, naoto, mchung
2024-12-03 14:59:30 +00:00
Per Minborg
eac00f6d11 8345396: Fix headers after JDK-8345164
Reviewed-by: rriggs
2024-12-03 14:32:22 +00:00
Per Minborg
dfa5620ff3 8345164: Remove residual --enable-preview in FFM tests and benchmarks
Reviewed-by: mcimadamore, jvernee
2024-12-03 13:32:48 +00:00
Daniel Skantz
65b5a2e3e4 8345158: IGV: local scheduling should not place successors before predecessors
Reviewed-by: rcastanedalo, chagedorn
2024-12-03 13:32:28 +00:00
Jorn Vernee
8cad0431ff 8336768: Allow captureCallState and critical linker options to be combined
Reviewed-by: mcimadamore
2024-12-03 12:28:17 +00:00
Axel Boldt-Christmas
63af2f42b7 8344414: ZGC: Another division by zero in rule_major_allocation_rate
Reviewed-by: eosterlund, stefank
2024-12-03 10:42:23 +00:00
Eirik Bjørsnøs
077b8422bb 8345074: java.net.InterfaceAddress constructor could be made private
Reviewed-by: jpai
2024-12-03 09:53:37 +00:00
Aggelos Biboudis
ec93cc5098 8343932: Error when parsing qualified generic type test pattern in switch
Reviewed-by: jlahoda
2024-12-03 09:18:58 +00:00
Nizar Benalla
c330b90b9f 8343780: Add since checker tests to the Tools area modules and add missing @since to jdk.jfr
Reviewed-by: cstein, egahlin
2024-12-03 09:06:07 +00:00
Per Minborg
8dada7373f 8345120: A likely bug in StringSupport::chunkedStrlenShort
Reviewed-by: mcimadamore
2024-12-03 08:28:04 +00:00
Andrey Turbanov
659f70b370 8343418: Unnecessary Hashtable usage in CSS.htmlAttrToCssAttrMap
Reviewed-by: honkar, aivanov
2024-12-03 07:26:01 +00:00
Alan Bateman
5c8cb2edcb 8337199: Add jcmd Thread.vthread_scheduler and Thread.vthread_pollers diagnostic commands
Reviewed-by: dholmes, kevinw
2024-12-03 07:24:46 +00:00
Volkan Yazıcı
3eb5461578 8343791: Socket.connect API should document whether the socket will be closed when hostname resolution fails or another error occurs
Reviewed-by: dfuchs, alanb
2024-12-03 06:59:06 +00:00
Kim Barrett
4ac2e477b9 8343800: Cleanup definition of NULL_WORD
Reviewed-by: dholmes, kvn
2024-12-03 04:54:51 +00:00
Amit Kumar
a3b58ee5cd 8339983: [s390x] secondary_super_cache does not scale well: C1 and interpreter
Reviewed-by: lucy, aph
2024-12-03 04:06:39 +00:00
Prasanta Sadhukhan
e023addf70 8345297: test/jdk/javax/swing/Action/8133039/bug8133039.java fails in ubuntu22.04
Reviewed-by: azvegint
2024-12-03 03:19:10 +00:00
Jaikiran Pai
40ae469962 8235786: Javadoc for com/sun/net/httpserver/HttpExchange.java#setAttribute is unclear
Reviewed-by: dfuchs, michaelm
2024-12-03 02:36:14 +00:00
Jaikiran Pai
24983dd4c1 7038838: Unspecified NPE in java.net.IDN methods
Reviewed-by: liach, dfuchs
2024-12-03 02:34:20 +00:00
Phil Race
325366ee1d 8345141: Remove uses of SecurityManager in ShellFolder related classes
Reviewed-by: azvegint, honkar
2024-12-03 02:32:17 +00:00
Jaikiran Pai
d88c7b365a 8345279: Mistake in javadoc of javax.sql.rowset.BaseRowSet#setBigDecimal
Reviewed-by: darcy, lancea, iris
2024-12-03 02:31:26 +00:00
Phil Race
3f6c04247f 8345143: Remove uses of SecurityManager in the java.desktop module
Reviewed-by: azvegint, honkar
2024-12-03 00:12:50 +00:00
Chen Liang
5958463cad 8343377: Performance regression in reflective invocation of native methods
Reviewed-by: mchung
2024-12-02 23:49:57 +00:00
Ioi Lam
68b1b94d1b 8344904: Interned strings in old classes are not stored in CDS archive
Reviewed-by: dholmes, ccheung
2024-12-02 22:55:53 +00:00
William Kemper
1997e89ddf 8345346: Shenandoah: Description of ShenandoahGCMode still refers to incremental update mode
Reviewed-by: ysr
2024-12-02 22:54:53 +00:00
Joe Wang
3a3bcd53d0 8344800: Add W3C DTDs and XSDs to the JDK built-in Catalog
Reviewed-by: lancea, rriggs
2024-12-02 22:26:20 +00:00
Sean Mullan
940aa7c4cf 8344397: Remove Security Manager dependencies from java.security and sun.security packages
Reviewed-by: rriggs, hchao, weijun, alanb
2024-12-02 21:30:53 +00:00
David Holmes
3d0d0e6290 8345012: os::build_agent_function_name potentially wastes a byte when allocating the buffer
Reviewed-by: stuefe, shade
2024-12-02 20:54:58 +00:00
Joe Darcy
525f33baae 8345324: Update comment in SourceVersion for language evolution history for changes in 24
Reviewed-by: iris
2024-12-02 19:43:47 +00:00
Weijun Wang
d6a5f1bafb 8344768: Consider removing "sun.security.krb5.autodeducerealm" system property
Reviewed-by: mullan
2024-12-02 19:30:16 +00:00
Aleksey Shipilev
7c944ee6f4 8345172: x86: Some CPU feature asserts are declared as 32-bit only
Reviewed-by: dfenacci, kvn
2024-12-02 17:34:49 +00:00
Phil Race
67f18cc9ce 8345142: Remove uses of SecurityManager in Printing related classes
Reviewed-by: azvegint, psadhukhan
2024-12-02 17:31:21 +00:00
Naoto Sato
352201ddec 8343788: Provide means to alter lib/tzmappings entries on Windows
Reviewed-by: joehw
2024-12-02 17:05:32 +00:00
Jatin Bhateja
29c57e8b34 8342677: Add IR validation tests for newly added saturated vector add / sub operations
Reviewed-by: epeter
2024-12-02 16:55:33 +00:00
Sean Mullan
30b8bbe255 8345060: Remove Security Manager dependencies from java.security.KeyStore and Identity APIs and implementations
Reviewed-by: hchao, alanb, weijun
2024-12-02 15:23:47 +00:00
Magnus Ihse Bursie
1ca764454b 8339480: Build static-jdk image with a statically linked launcher
Co-authored-by: Magnus Ihse Bursie <ihse@openjdk.org>
Co-authored-by: Jiangli Zhou <jiangli@openjdk.org>
Reviewed-by: dholmes, erikj, coleenp
2024-12-02 15:12:24 +00:00
Magnus Ihse Bursie
d589bafee3 8345218: Clean out references to windows-x86 in jib profiles
Reviewed-by: shade, dholmes, kbarrett, jwaters
2024-12-02 14:22:37 +00:00
Doug Simon
b8233989e7 8345267: Fix memory leak in JVMCIEnv dtor
Reviewed-by: simonis, kbarrett
2024-12-02 13:56:30 +00:00
Robbin Ehn
9a48e4d9d2 8345177: RISC-V: Add gtests for cmpxchg
Reviewed-by: fyang, mli
2024-12-02 13:14:20 +00:00
Volkan Yazıcı
e3b679a2f6 8345176: Add tests to verify java.net.Socket constructors close the socket on failure
Reviewed-by: dfuchs
2024-12-02 12:56:49 +00:00
Jan Lahoda
c7be41ee0c 8340133: Add concise usage message to the java executable
Reviewed-by: jpai, alanb, ihse, rriggs
2024-12-02 11:21:13 +00:00
Albert Mingkun Yang
0b0f83c01e 8345220: Serial: Refactor TenuredGeneration::promotion_attempt_is_safe
Reviewed-by: tschatzl, mli
2024-12-02 10:30:56 +00:00
Fei Yang
dfcbfb5a41 8345236: RISC-V: Remove revb_h_h_u and revb_h_w_u macro assembler routines
Reviewed-by: rehn, fjiang
2024-12-02 10:25:09 +00:00
Hannes Wallnöfer
ac2fede165 8344041: Re-enable external specs page
Reviewed-by: erikj, nbenalla, liach
2024-12-02 08:39:47 +00:00
Prasanta Sadhukhan
1c4c653168 8345247: Deproblemlist test/jdk/javax/swing/JRadioButton/8075609/bug8075609.java
Reviewed-by: abhiscxk
2024-12-02 08:14:50 +00:00
Thomas Schatzl
f5ebda4370 8345173: BlockLocationPrinter::print_location misses a ResourceMark
Reviewed-by: sjohanss, iwalulya
2024-12-02 06:32:43 +00:00
Nizar Benalla
c40b570b71 8343775: Add since checker tests to the security area modules
Reviewed-by: alanb
2024-12-01 22:59:54 +00:00
Amit Kumar
50b4cbd8a4 8345102: [s390x/ppc] ShowRegistersOnAssertTest.java fails after 8343756
Reviewed-by: mdoerr, mbaesken
2024-12-01 13:55:47 +00:00
William Kemper
28ae281b42 8337511: Implement JEP 404: Generational Shenandoah (Experimental)
Co-authored-by: Kelvin Nilsen <kdnilsen@openjdk.org>
Co-authored-by: Y. Srinivas Ramakrishna <ysr@openjdk.org>
Co-authored-by: Bernd Mathiske <bmathiske@openjdk.org>
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Co-authored-by: Fei Yang <fyang@openjdk.org>
Reviewed-by: rkennke, shade, phh
2024-11-29 20:53:07 +00:00
Nizar Benalla
029ace0a1b 8336041: Doccheck: the jfr command doesn't show the correct command-line options
Reviewed-by: dholmes
2024-11-29 18:25:44 +00:00
Aleksey Shipilev
2beb2b602b 8345234: Build system erroneously treats 32-bit x86 Zero as deprecated
Reviewed-by: ihse
2024-11-29 17:00:03 +00:00
Jonathan Lampérth
ed03f0d9d1 8345145: Display javap LineNumberTable and LocalVariableTable iff disassembled code output with -c or -v
Reviewed-by: mcimadamore, liach
2024-11-29 16:24:22 +00:00
Daniel Fuchs
e9136b5e08 8345223: Remove stray doPrivileged in java.base java.net and sun.net classes after JEP 486 integration
Reviewed-by: alanb, aefimov, michaelm
2024-11-29 15:58:57 +00:00
Tobias Holenstein
a80ccf2cd2 8345039: IGV: save user-defined node colors to XML
Co-authored-by: Roberto Castañeda Lozano <rcastanedalo@openjdk.org>
Co-authored-by: Christian Hagedorn <chagedorn@openjdk.org>
Reviewed-by: chagedorn, epeter, rcastanedalo
2024-11-29 15:21:39 +00:00
Tobias Holenstein
28b0f3eaa5 8343705: IGV: Interactive Node Moving in Hierarchical Layout
Reviewed-by: chagedorn, thartmann, rcastanedalo
2024-11-29 15:16:53 +00:00
Tobias Holenstein
4da7c35484 8314512: IGV: clean up hierarchical layout code
Reviewed-by: chagedorn, rcastanedalo
2024-11-29 13:53:18 +00:00
Volker Simonis
6bea1b6cf1 8344727: [JVMCI] Export the CompileBroker compilation activity mode for Truffle compiler control
Reviewed-by: dnsimon
2024-11-29 12:30:43 +00:00
Sharath TN
8858de393a 8338571: [TestBug] DefaultCloseOperation.java test not working as expected wrt instruction after JDK-8325851 fix
Reviewed-by: aivanov, dnguyen
2024-11-29 12:27:06 +00:00
Doug Lea
ece0401054 8345052: Harden StampedLock
Reviewed-by: alanb, vklang
2024-11-29 11:38:23 +00:00
Aleksey Shipilev
095e769f47 8345237: 32-bit Zero builds fail with assert(has_klass_gap()) failed: precondition
Reviewed-by: mli, jwaters, rkennke
2024-11-29 09:55:29 +00:00
Thomas Stuefe
1a7a184e41 8344293: Remove empty Test files left over from JDK-8305895
Reviewed-by: jsjolen, rkennke, shade
2024-11-29 09:54:40 +00:00
Per Minborg
f2c0d186ff 8344989: Test java/foreign/TestLinker.java failed with zero: IllegalStateException: libffi call failed with status: FFI_BAD_TYPEDEF
Reviewed-by: jvernee
2024-11-29 09:24:29 +00:00
Fei Yang
08d563ba15 8345110: RISC-V: Optimize and and clean up byte reverse assembler routines
Reviewed-by: mli, rehn
2024-11-29 07:50:14 +00:00
Aleksei Efimov
959fa4a1a3 8344299: SM cleanup in javax.naming modules
Reviewed-by: alanb, dfuchs
2024-11-28 17:43:27 +00:00
Eirik Bjørsnøs
43000a34d5 8345075: java.lang.module.ModuleDescriptor constructor could be made private
Reviewed-by: alanb
2024-11-28 17:38:07 +00:00
Kevin Walls
fd742af0b7 8344394: Remove SecurityManager and related calls from java.management.rmi
Reviewed-by: amenkov
2024-11-28 17:16:41 +00:00
Daniel Fuchs
3b21a298c2 8345175: Further cleanup in java.logging and jdk.internal.logger after JEP 486 integration
Reviewed-by: alanb, coffeys
2024-11-28 14:17:15 +00:00
Christian Hagedorn
7dc00d39b4 8345154: IGV: Show Parse and Assertion Predicate type as extra label
Reviewed-by: rcastanedalo
2024-11-28 13:58:14 +00:00
Johan Sjölen
1e086b1d73 8340103: Add internal set_flag function to VMATree
Reviewed-by: stuefe, azafari, gziemski
2024-11-28 13:15:10 +00:00
Štěpán Schejbal
db535c86bc 8313367: SunMSCAPI cannot read Local Computer certs w/o Windows elevation
Reviewed-by: weijun
2024-11-28 13:12:45 +00:00
Robbin Ehn
edfe28541a 8344306: RISC-V: Add zicond
Reviewed-by: fyang, luhenry, mli
2024-11-28 12:05:23 +00:00
Kevin Walls
d33ad07c32 8334493: Remove SecurityManager Permissions infrastructure from DiagnosticCommands
Reviewed-by: lmesnik, alanb, coleenp
2024-11-28 09:54:25 +00:00
Aleksey Shipilev
56f1e4ef05 8344093: Implement JEP 501: Deprecate the 32-bit x86 Port for Removal
Reviewed-by: ihse, simonis, dholmes
2024-11-28 09:35:51 +00:00
SendaoYan
d791f4b98d 8341585: Test java/foreign/TestUpcallStress.java should mark as /native
Reviewed-by: luhenry, pminborg
2024-11-28 09:29:49 +00:00
SendaoYan
e096660a18 8345043: [ASAN] methodMatcher.cpp report reading from a region of size 0 [-Werror=stringop-overread]
Reviewed-by: kbarrett, dholmes
2024-11-28 09:06:34 +00:00
Per Minborg
103338534f 8344967: Some tests in TestFill do not use the test parameter
Reviewed-by: jvernee
2024-11-28 07:59:48 +00:00
Jaikiran Pai
81c44e5eb4 8344908: URLClassPath should not propagate IllegalArgumentException when finding resources in classpath URLs
Reviewed-by: alanb
2024-11-28 07:54:00 +00:00
Quan Anh Mai
ce9d543eb1 8345119: Some java/foreign tests wrongly assume aligned memory
Reviewed-by: mcimadamore, jvernee
2024-11-28 06:57:51 +00:00
David Holmes
1a07d542ec 8343703: Symbol name cleanups after JEP 479
Reviewed-by: kbarrett, amenkov
2024-11-28 02:24:55 +00:00
Amit Kumar
a0df0a527f 8340731: Cleanup remaining IA64 references in hotspot code
Reviewed-by: dholmes, aph
2024-11-28 02:05:45 +00:00
Ioi Lam
8485cb1ca1 8344822: CDS BulkLoaderTest.java#dynamic fails with COH
Reviewed-by: dholmes, ccheung
2024-11-28 01:20:27 +00:00
Ioi Lam
f51363e027 8344913: Improve -Xlog:cds+map+oop logging for Java mirrors
Reviewed-by: dholmes, ccheung
2024-11-28 01:15:15 +00:00
Phil Race
cf5ee0bda2 8342280: Deprecate for removal java.awt.AWTPermission
Reviewed-by: azvegint, kizune
2024-11-27 22:10:25 +00:00
Phil Race
8ad0b2afe3 8345001: java/awt/doc-files/FocusSpec.html has SecurityManager references
Reviewed-by: azvegint, kizune
2024-11-27 22:10:07 +00:00
Ioi Lam
f6d29909bb 8344824: CDS dump crashes when member_method of a lambda proxy is null
Reviewed-by: ccheung, matsaave
2024-11-27 20:10:28 +00:00
Casper Norrbin
15378a7853 8345126: [BACKOUT] JDK-8318127: align_up has potential overflow
Reviewed-by: iklam
2024-11-27 19:51:17 +00:00
Aleksei Efimov
880f9a7b16 8344220: Remove calls to SecurityManager and doPrivileged in java.net.InetAddress and sun.net.util.IPAddressUtil after JEP 486 integration
Reviewed-by: jpai, dfuchs, alanb
2024-11-27 19:25:50 +00:00
Phil Race
9527586923 8345073: Remove SecurityManager checks from sun.awt.image classes
Reviewed-by: azvegint, honkar
2024-11-27 17:32:54 +00:00
Jonathan Lampérth
1e3a0fdb5d 8035271: Incorrect indentation of LineNumberTable/LocalVariableTable/Exception table/LocalVariableTypeTable/StackMapTable/RuntimeVisibleTypeAnnotations in verbose mode
Reviewed-by: liach, jvernee
2024-11-27 17:31:39 +00:00
Brian Burkhalter
0312694c46 8344882: (bf) Temporary direct buffers should not count against the upper limit on direct buffer memory
Reviewed-by: alanb
2024-11-27 16:14:03 +00:00
Volodymyr Paprotski
75f3ec77e4 8344766: AES/CTR slow at big payloads
Reviewed-by: ascarpino, jbhateja
2024-11-27 16:05:43 +00:00
Roger Riggs
35bd2f354e 8344555: SM cleanup - drop reflection filter of System.security field
Reviewed-by: mullan, mchung, liach
2024-11-27 15:40:48 +00:00
Nizar Benalla
a491564001 8342836: Automatically determine that a test in the docs test root is requested
Reviewed-by: ihse, erikj
2024-11-27 15:36:26 +00:00
Nizar Benalla
b89cba7517 8342808: Javadoc should add whitespace between type parameters
Reviewed-by: hannesw
2024-11-27 15:36:02 +00:00
Nizar Benalla
0b704a2279 8343239: Javadoc marks non-preview type as preview if it's the subtype of a preview type
Reviewed-by: liach, hannesw
2024-11-27 15:33:54 +00:00
Volkan Yazıcı
ac3bbf7ddc 8344856: Remove calls to SecurityManager and doPrivileged in sun.net.www.protocol.ftp.FtpURLConnection after JEP 486 integration
Reviewed-by: dfuchs
2024-11-27 13:49:51 +00:00
Per Minborg
a1473ec302 8294432: Add provisions to calculate hash values from MemorySegments
Reviewed-by: mcimadamore
2024-11-27 13:26:36 +00:00
Alexey Semenyuk
4a22c1fefc 8344770: Switch jpackage unit tests to use JUnit5
Reviewed-by: almatvee
2024-11-27 12:42:34 +00:00
Casper Norrbin
494806286f 8318127: align_up has potential overflow
Reviewed-by: kbarrett, dlong
2024-11-27 12:27:31 +00:00
Jorn Vernee
461ffafeba 8331735: UpcallLinker::on_exit races with GC when copying frame anchor
8343144: UpcallLinker::on_entry racingly clears pending exception with GC safepoints
8286875: ProgrammableUpcallHandler::on_entry/on_exit access thread fields from native

Reviewed-by: dholmes, eosterlund, aboldtch
2024-11-27 12:20:51 +00:00
Andrew Haley
eb0d1ce948 8344355: Register corruption in MacroAssembler::lookup_secondary_supers_table_var: x86-64 only
Reviewed-by: vlivanov, martin, dlong, asemenov
2024-11-27 10:27:58 +00:00
Fei Yang
82137db24d 8345047: RISC-V: Remove explicit use of AvoidUnalignedAccesses in interpreter
Reviewed-by: mli, fjiang
2024-11-27 10:26:09 +00:00
Emanuel Peter
b3986bdbdb 8344118: C2 SuperWord: add VectorThroughputForIterationCount benchmark
Reviewed-by: kvn, jbhateja, chagedorn
2024-11-27 09:15:57 +00:00
Abhishek Kumar
96388be1b5 8345004: [BACKOUT] GTK & Nimbus LAF: Tabbed pane's background color is not expected one when change the opaque checkbox.
Reviewed-by: psadhukhan, kizune
2024-11-27 08:24:01 +00:00
Alan Bateman
4ae6ce61ea 8344300: Implement JEP 499: Structured Concurrency (Fourth Preview)
Reviewed-by: vklang
2024-11-27 07:58:49 +00:00
Quan Anh Mai
57ee3ba7e1 8344912: Sharpen the return type of various internal methods in jdk.internal.foreign
Reviewed-by: mcimadamore
2024-11-27 07:35:51 +00:00
Kim Barrett
1f6144ef26 8345050: Fix -Wzero-as-null-pointer warning in MemPointer ctor
Reviewed-by: chagedorn, shade
2024-11-27 06:43:05 +00:00
David M. Lloyd
08c1f44eef 8341028: Do not use lambdas or method refs for verifyConstantPool
Reviewed-by: adinn, liach
2024-11-27 01:03:33 +00:00
Joe Wang
28c8729019 8343004: Adjust JAXP limits
Reviewed-by: lancea, rriggs
2024-11-26 22:59:49 +00:00
Valerie Peng
8c2b4f6271 8345057: ML_KEM NamedParameterSpec constants removed by ML-DSA integration
Reviewed-by: mullan, hchao
2024-11-26 21:08:57 +00:00
Vicente Romero
8389e24d38 8345058: Javac issues different error messages for the modifiers of the requires directive
Reviewed-by: mcimadamore
2024-11-26 20:53:12 +00:00
Yudi Zheng
8da6435d4d 8343693: [JVMCI] Override ModifiersProvider.isConcrete in ResolvedJavaType to be isArray() || !isAbstract()
Reviewed-by: never
2024-11-26 20:50:49 +00:00
Daniel Fuchs
7ae6069ee8 8344184: Remove sun.net.ResourceManager after JEP 486 integration
Reviewed-by: alanb
2024-11-26 20:47:56 +00:00
Phil Race
1d5587b887 8344256: Clean up obsolete code in java.desktop/share/classes/sun/awt/datatransfer/DataTransferer.java
Reviewed-by: azvegint, kizune
2024-11-26 20:11:52 +00:00
Harshitha Onkar
5e15415cb9 8344654: Some client tests still expect a SecurityManager after JEP486
Reviewed-by: prr, azvegint
2024-11-26 20:10:48 +00:00
Sonia Zaldana Calles
3689f3909e 8344013: "bad tag in log" assert with +LogCompilation +CITimeVerbose
Reviewed-by: chagedorn, dfenacci
2024-11-26 19:44:09 +00:00
Hannes Wallnöfer
9458a4355f 8318416: Superscript marks should use consistent font style
Reviewed-by: liach
2024-11-26 18:50:50 +00:00
Sean Mullan
c5de307284 8344992: Remove Security Manager dependencies from java.security.cert API and implementations
Reviewed-by: rriggs, hchao
2024-11-26 18:40:52 +00:00
Sean Mullan
65c98e577f 8344420: Remove Security Manager dependencies from javax.security package
Reviewed-by: alanb, rriggs, wetmore
2024-11-26 17:24:22 +00:00
Calvin Cheung
246552674c 8344821: Test CheckDefaultArchiveFile.java fails if classes_coh.jsa is not present
Reviewed-by: iklam, dholmes
2024-11-26 17:17:45 +00:00
Calvin Cheung
d752f19611 8343427: Class file load hook crashes on archived classes from multi-release JARs
Reviewed-by: dholmes, iklam
2024-11-26 17:14:00 +00:00
Roger Riggs
f1b5a6e66e 8344565: SM cleanup in jdk/internal and java/lang package private classes
Reviewed-by: alanb, mchung
2024-11-26 17:12:17 +00:00
Roger Riggs
d8a23373c6 8344895: SM cleanup of module java.xml
Reviewed-by: joehw
2024-11-26 17:08:45 +00:00
Marc R. Hoffmann
c329f97f32 8345015: Remove unused method lookup_time_t_function
Reviewed-by: alanb
2024-11-26 15:09:49 +00:00
Sean Mullan
86d527f987 8344949: javax.security.auth.Subject.SecureSet.writeObject does not do a security check anymore
Reviewed-by: alanb
2024-11-26 14:21:01 +00:00
Alan Bateman
f0b72f728d 8342380: Implement JEP 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe
Reviewed-by: vklang, jpai
2024-11-26 12:28:55 +00:00
Per Minborg
fc2da15bce 8344419: Use StaticProperty in some JDK classes
Reviewed-by: alanb, rriggs
2024-11-26 12:07:26 +00:00
Doug Lea
3e509c8bd1 8344773: SM cleanup in ForkJoinPool
Reviewed-by: alanb
2024-11-26 11:44:29 +00:00
Hamlin Li
6da3ecd65d 8344960: RISC-V: fix TestFloatConversionsVectorNaN for COH and AlignVector
Reviewed-by: fyang, luhenry
2024-11-26 11:10:36 +00:00
Afshin Zafari
9291abc633 8342074: Fix runtime/Thread/TestAlwaysPreTouchStacks.java to be flagless or accept VM flags
Reviewed-by: gziemski, lmesnik
2024-11-26 11:08:34 +00:00
Markus Grönlund
0054bbed7f 8343756: CAN_SHOW_REGISTERS_ON_ASSERT for Windows
Reviewed-by: stuefe, jsjolen
2024-11-26 10:50:20 +00:00
Doug Simon
3a625f38aa 8344628: Test TestEnableJVMCIProduct.java run with virtual thread intermittent fails
Reviewed-by: syan, dlong, mli
2024-11-26 09:50:57 +00:00
Volkan Yazıcı
25dd51e4fc 8344222: Remove calls to SecurityManager and doPrivileged in java.net.HttpURLConnection, java.net.HttpConnectSocketImpl, and javax.net.HttpsURLConnection after JEP 486 integration
Reviewed-by: dfuchs, jpai
2024-11-26 09:35:31 +00:00
Albert Mingkun Yang
9793e73bc1 8344853: Parallel: Improve comments in psParallelCompact
Reviewed-by: sjohanss, zgu
2024-11-26 08:55:01 +00:00
Robbin Ehn
57d35f98f6 8344382: RISC-V: CASandCAEwithNegExpected fails with Zacas
Reviewed-by: fyang, mli
2024-11-26 08:51:55 +00:00
Roberto Castañeda Lozano
0105203575 8337660: C2: basic blocks with only BoxLock nodes are wrongly treated as empty
Co-authored-by: Emanuel Peter <epeter@openjdk.org>
Reviewed-by: qamai, thartmann, kvn
2024-11-26 08:51:34 +00:00
Per Minborg
4e68d665be 8344954: Linker tests fails on BE platforms after JDK-8340205
Reviewed-by: mdoerr, amitkumar
2024-11-26 08:24:21 +00:00
Phil Race
ca81ab5ebc 8344994: Remove most uses of RuntimePermission checks in java.desktop
Reviewed-by: azvegint
2024-11-26 07:03:15 +00:00
Phil Race
43603ac2f9 8344894: Obsolete reference to checking permissions in java.awt.Composite
Reviewed-by: kizune, kcr, azvegint
2024-11-26 06:57:06 +00:00
Brent Christian
4d4cef800a 8344337: SecurityManager cleanup in java.prefs module
Reviewed-by: lancea, bpb, rriggs, iris
2024-11-26 01:17:37 +00:00
Phil Race
1c7f34d3dd 8345000: Remove last mentions of sun.awt.AWTPermissions
Reviewed-by: honkar, azvegint
2024-11-26 01:10:24 +00:00
Fei Yang
5e0d42b6a6 8344916: RISC-V: Misaligned access in array fill stub
Reviewed-by: rehn, mli
2024-11-26 01:01:17 +00:00
Jaikiran Pai
3326874f5f 8344857: Remove calls to SecurityManager and doPrivileged in SocketExceptions and URLJarFile in the sun.net package after JEP 486 integration
Reviewed-by: dfuchs, michaelm
2024-11-26 00:52:50 +00:00
Taizo Kurashige
48e3b6511a 8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform
Reviewed-by: asemenyuk, almatvee
2024-11-25 23:23:03 +00:00
Alisen Chung
16232578d9 8339524: Clean up a few ExtendedRobot tests
Reviewed-by: honkar, aivanov, prr
2024-11-25 22:32:59 +00:00
Phil Race
027607968b 8344667: Remove most uses of AWT Permissions from the desktop module
Reviewed-by: azvegint, kizune
2024-11-25 22:16:07 +00:00
David Holmes
8de158aefe 8339134: Callers of Exceptions::fthrow should ensure exception message lengths avoid the INT_MAX limits of os::vsnprintf
Reviewed-by: coleenp, jsjolen
2024-11-25 19:55:26 +00:00
Roger Riggs
df2d4c1575 8344898: SM cleanup of java.base sun/util calendar, locale, cldr, and resources
Reviewed-by: naoto
2024-11-25 19:44:40 +00:00
Phil Race
4d898aa451 8344896: Remove obsolete checks for AWTPermission accessClipboard
Reviewed-by: azvegint
2024-11-25 19:31:22 +00:00
Christian Hagedorn
08dfc4a42e 8344213: Cleanup OpaqueLoop*Node verification code for Assertion Predicates
Reviewed-by: thartmann, epeter
2024-11-25 16:46:44 +00:00
Roger Riggs
593a5898f9 8344319: SM cleanup in jdk.dynalink module
Reviewed-by: attila
2024-11-25 16:46:19 +00:00
Naoto Sato
15ae8d02ee 8319993: Update Unicode Data Files to 16.0.0
8319992: Update ICU4J to Version 76.1

Reviewed-by: jlu, joehw, iris
2024-11-25 15:54:23 +00:00
Alan Bateman
a032de2904 8344577: Virtual thread tests are timing out on some macOS systems
Reviewed-by: jpai
2024-11-25 15:34:13 +00:00
Roger Riggs
4110d3925c 8344865: SM cleanup in sun/reflect/annotation
Reviewed-by: liach, jpai
2024-11-25 14:34:27 +00:00
Hamlin Li
133419177d 8334474: RISC-V: verify perf of ExpandBits/CompressBits (rvv)
Reviewed-by: fyang, rehn, luhenry
2024-11-25 13:54:44 +00:00
Kevin Walls
e29b0edc97 8344181: Remove SecurityManager and related calls from jdk.management and jdk.management.agent
Reviewed-by: amenkov, cjplummer
2024-11-25 13:50:58 +00:00
Roman Kennke
cb1c73663e 8344363: FullGCForwarding::initialize_flags is called after ObjLayout::initialize
Reviewed-by: stefank, shade, ayang
2024-11-25 13:48:02 +00:00
Adam Sotona
c6b14c62f6 8344841: ClassPrinter prints confusing value for null
Reviewed-by: liach
2024-11-25 13:45:34 +00:00
Sean Mullan
ddc8a9d5da 8344366: Remove Security Manager dependencies from javax.net.ssl and sun.security.ssl packages
Reviewed-by: coffeys, ascarpino, hchao
2024-11-25 13:10:59 +00:00
Alexander Zvegintsev
965aace297 8335468: [XWayland] JavaFX hangs when calling java.awt.Robot.getPixelColor
Reviewed-by: kcr, honkar
2024-11-25 11:11:28 +00:00
Emanuel Peter
811d08c0a4 8340010: Fix vectorization tests with compact headers
Reviewed-by: chagedorn, rkennke, mli
2024-11-25 10:39:36 +00:00
Daniel Fuchs
519bb268a0 8344217: Remove calls to SecurityManager and doPrivileged in java.net.DatagramSocket and java.net.NetMulticastSocket after JEP 486 integration
Reviewed-by: alanb, rriggs, jpai
2024-11-25 10:08:47 +00:00
Daniel Fuchs
d112f35d92 8344855: Remove calls to SecurityManager and doPrivileged in HTTP related implementation classes in the sun.net and sun.net.www.http packages after JEP 486 integration
Reviewed-by: jpai
2024-11-25 09:56:07 +00:00
Sebastian Lövdahl
da4b7a8c56 8341436: containers/docker/TestJcmdWithSideCar.java takes needlessly long to run
Reviewed-by: kevinw, lmesnik
2024-11-25 09:13:10 +00:00
Prasanta Sadhukhan
333a9973f1 8335231: [macos] Test java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java failed on macOS because the case didn't get the expected PrintAbortException
Reviewed-by: tr, abhiscxk
2024-11-25 08:57:54 +00:00
Matthias Baesken
9576546b9c 8343698: Linux x86_64 lto build gives a lot of warnings and fails lto-wrapper: fatal error: make returned 2 exit status
Reviewed-by: ihse, jwaters
2024-11-25 07:57:13 +00:00
Per Minborg
68ba7ee5c8 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout
Reviewed-by: jvernee, mcimadamore
2024-11-25 07:42:57 +00:00
Phil Race
6f622da7fb 8344923: Problem list on java/awt/Robot/ScreenCaptureRobotTest.java on macOS
Reviewed-by: dholmes
2024-11-25 03:33:17 +00:00
SendaoYan
8f08020fa4 8344903: Improve error handling TestJhsdbJstackPrintVMLocks.java
Reviewed-by: lmesnik, dholmes
2024-11-25 01:31:16 +00:00
Kim Barrett
a83cfe2658 8344917: Fix recent NULL usage backsliding
Reviewed-by: jsjolen
2024-11-24 17:10:31 +00:00
Damon Nguyen
6711e1327a 8344914: OOME in several tests since JDK-6672644 - JComboBox still scrolling
Reviewed-by: prr
2024-11-24 08:54:17 +00:00
Harshitha Onkar
a6220fa903 8344303: Remove usage of URLUtil.getConnectPermission from sun.awt.SunToolkit and sun.awt.image.URLImageSource
Reviewed-by: prr, azvegint
2024-11-24 06:22:45 +00:00
Phil Race
7be94d043d 8344891: Remove uses of sun.misc.ReflectUtil in java.desktop
Reviewed-by: kizune, azvegint
2024-11-23 23:20:15 +00:00
Stig Rohde Døssing
822a1554cb 8341427: JFR: Adjust object sampler span handling
Reviewed-by: egahlin
2024-11-23 15:58:39 +00:00
Jaikiran Pai
d00f31156a 8343150: Change URLClassLoader.getPermissions to return empty PermissionCollection
Reviewed-by: dfuchs, alanb, michaelm
2024-11-23 07:26:04 +00:00
Evgeny Nikitin
effee122dd 8344533: CTW: Add option to remove clinits before loading
Reviewed-by: thartmann, lmesnik
2024-11-23 03:55:58 +00:00
Alexey Semenyuk
70c4e2c0cc 8344587: Reduce number of "jdk.jpackage.internal" classes used from other packages
Reviewed-by: almatvee
2024-11-22 23:33:49 +00:00
Damon Nguyen
11147046aa 6672644: JComboBox still scrolling if switch to another window and return back
Reviewed-by: abhiscxk, psadhukhan
2024-11-22 19:29:41 +00:00
Leonid Mesnik
98b667834c 8343741: SA jstack --mixed should print information about VM locks
Reviewed-by: cjplummer
2024-11-22 19:21:09 +00:00
Harshitha Onkar
1b2d9cad53 8344881: Problemlist java/awt/Robot/InfiniteLoopException.java on Linux
Reviewed-by: prr, dnguyen
2024-11-22 19:16:54 +00:00
Sean Mullan
6aec2dcf76 8344788: Specify that the access control context parameters of Subject.doAsPrivileged are ignored
Reviewed-by: alanb
2024-11-22 19:14:02 +00:00
Sonia Zaldana Calles
079f503d96 8344568: Renaming ceil_log2 to log2i_ceil
Reviewed-by: kbarrett
2024-11-22 18:55:31 +00:00
Justin Lu
51763b6700 8344525: Fix leftover ExceptionOccurred in java.base
Reviewed-by: lbourges, alanb, naoto, iris
2024-11-22 18:18:22 +00:00
Phil Race
4b1653056d 8344795: Remove uses of AccessControlContext in java.desktop module
Reviewed-by: azvegint
2024-11-22 18:00:10 +00:00
Nizar Benalla
5154b71637 8343598: Since Checker can mark some preview elements as new even if bytecode reference is identical
Reviewed-by: hannesw
2024-11-22 17:59:12 +00:00
Ben Perez
8b98f958dc 8298387: Implement JEP 497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm
Reviewed-by: jnimeh
2024-11-22 17:48:08 +00:00
Chris Plummer
21e0fb8648 8343529: serviceability/sa/ClhsdbWhere.java fails AssertionFailure: Corrupted constant pool
8307318: Test serviceability/sa/ClhsdbCDSJstackPrintAll.java failed: ArrayIndexOutOfBoundsException

Reviewed-by: kevinw, amenkov
2024-11-22 17:26:37 +00:00
Ben Perez
13987b4244 8298390: Implement JEP 496: Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism
Co-authored-by: Ferenc Rakoczi <ferenc.r.rakoczi@oracle.com>
Reviewed-by: valeriep
2024-11-22 16:36:52 +00:00
Tobias Hartmann
6d3becb486 8344861: Disable CheckJNICalls in tests until JDK-8344802 is fixed
Reviewed-by: coleenp
2024-11-22 14:48:39 +00:00
Volkan Yazıcı
15dbb6a380 8344219: Remove calls to SecurityManager and doPrivileged in java.net.SocksSocketImpl after JEP 486 integration
Reviewed-by: dfuchs
2024-11-22 14:39:07 +00:00
Sean Mullan
9769ee8697 8344652: Remove access control context text from SSLEngine and SSLSession APIs
Reviewed-by: jnimeh
2024-11-22 13:18:26 +00:00
Aleksey Shipilev
82c3612d77 8344830: [BACKOUT] JDK-8341334: CDS: Parallel relocation
Reviewed-by: dholmes, jpai
2024-11-22 12:28:03 +00:00
Andrew Haley
64e4aa21a4 8339916: AIOOBE due to Math.abs(Integer.MIN_VALUE) in tests
Reviewed-by: shade
2024-11-22 12:09:30 +00:00
Raffaello Giulietti
bf374c33f5 8343453: Modernize FloatingDecimal tests
Reviewed-by: darcy
2024-11-22 11:41:04 +00:00
Tobias Hartmann
847f65c14a 8344844: ciReplay tests fail with -XX:+UseCompactObjectHeaders because CDS is disabled since JDK-8341553
Reviewed-by: epeter, rcastanedalo
2024-11-22 11:37:35 +00:00
Matthias Baesken
8903854e01 8344718: Test runtime/cds/appcds/jigsaw/addmods/AddmodsOption.java fails on Linuxppc64le after JDK-8344239
Reviewed-by: ccheung, mdoerr
2024-11-22 11:10:32 +00:00
Daniel Fuchs
a07b72bfcf 8344346: java/net/httpclient/ShutdownNow.java fails with java.lang.AssertionError: client was still running, but exited after further delay: timeout should be adjusted
Reviewed-by: jpai
2024-11-22 09:55:07 +00:00
Johan Sjölen
2ea0364b6e 8343893: Test jdk/jfr/event/runtime/TestNativeMemoryUsageEvents.java failed: heap should have grown and NMT should show that: expected 0 > 0
Reviewed-by: gziemski, mgronlun, lmesnik
2024-11-22 08:55:27 +00:00
Phil Race
50c099d69e 8344799: Remove permissions checks from java.awt.Desktop
Reviewed-by: azvegint
2024-11-22 04:00:46 +00:00
Prasanta Sadhukhan
e21d06f488 8344338: javax/swing/JTextArea/bug4265784.java fails on Ubuntu 24.04.1
Reviewed-by: achung, kizune
2024-11-22 03:07:26 +00:00
William Kemper
db44e97c5d 8344798: Shenandoah: Use more descriptive variable names in shPhaseTimings.cpp
Reviewed-by: ysr
2024-11-22 00:05:50 +00:00
Roger Riggs
c199f5326b 8344336: SM cleanup of java.lang.System, Runtime, String, StackWalker
Reviewed-by: dfuchs, alanb, lancea
2024-11-21 21:50:41 +00:00
Phil Race
0f458e2c3e 8342903: Deprecate for removal java.awt.Window.getWarningString()
Reviewed-by: kizune, erikj, azvegint
2024-11-21 21:24:46 +00:00
David Holmes
efeacfee01 8344646: The libjsig deprecation warning should go to stderr not stdout
Reviewed-by: mikael, cjplummer
2024-11-21 21:18:18 +00:00
Stuart Marks
2214906310 8272339: Update notes section from serialver man page
Reviewed-by: rriggs
2024-11-21 21:05:50 +00:00
Aleksei Efimov
cee74f9e67 8338536: Permanently disable remote code downloading in JNDI
Reviewed-by: dfuchs
2024-11-21 20:55:02 +00:00
Phil Race
7709d435d0 8344782: Cleanup left over doPrivileged calls and imports in java.desktop
Reviewed-by: honkar
2024-11-21 20:29:53 +00:00
Eirik Bjørsnøs
e03b1506d3 8178966: Don't swallow early bootstrap exceptions in Boolean.getBoolean, Integer.getInteger and Long.getLong
Co-authored-by: Peter Levart <plevart@openjdk.org>
Reviewed-by: jpai, rriggs
2024-11-21 20:04:39 +00:00
Volodymyr Paprotski
d6b40d3033 8344144: AES/CBC slow at big payloads
Reviewed-by: sviswanathan, abarashev, ascarpino
2024-11-21 19:17:57 +00:00
Coleen Phillimore
93d4ad4dd4 8344763: cpCache print_on doesn't handle nulls
Reviewed-by: matsaave
2024-11-21 18:26:23 +00:00
Jatin Bhateja
dc9a6ef610 8341137: Optimize long vector multiplication using x86 VPMUL[U]DQ instruction
Co-authored-by: Vladimir Ivanov <vlivanov@openjdk.org>
Reviewed-by: vlivanov, sviswanathan
2024-11-21 18:13:32 +00:00
Roger Riggs
191b38e712 8344549: Cleanup AccessController in sun.misc.Unsafe
Reviewed-by: alanb
2024-11-21 18:03:12 +00:00
Vladimir Ivanov
78e5008e91 8317542: Specjvm::xml have scalability issue for high vCPU numbers
Reviewed-by: joehw
2024-11-21 17:59:28 +00:00
Vladimir Ivanov
4956a76621 8317538: Potential bottleneck in Provider::getService: specjvm2008::crypto.rsa have scalability issue for high vCPU numbers
Reviewed-by: ascarpino
2024-11-21 17:54:45 +00:00
Sean Mullan
6113fa7503 8344248: Remove Security Manager dependencies from java.security.jgss and jdk.security.jgss modules
Reviewed-by: ascarpino
2024-11-21 17:45:04 +00:00
Abhishek Kumar
395e404666 8344066: Remove SecurityManager uses from the jdk.accessibility module
Reviewed-by: prr
2024-11-21 17:39:44 +00:00
Alan Bateman
dfa18fe6b3 8344328: (dc) DatagramChannelImpl.blockingReceive can now synchronize on packet
Reviewed-by: dfuchs, jpai
2024-11-21 16:25:43 +00:00
Brian Burkhalter
87be63f85d 8344659: Some uses of GetPropertyAction were not removed from java.io and java.nio
Reviewed-by: lancea, rriggs, iris, dfuchs
2024-11-21 16:18:16 +00:00
Brian Burkhalter
aaf3df7bb8 8343823: (fs) Files.createLink: inconsistent behavior when creating link to symbolic link
Reviewed-by: alanb
2024-11-21 16:17:58 +00:00
Phil Race
eef156180c 8344569: SwingUtilities2.makeIcon_Unprivileged is obsolete
Reviewed-by: psadhukhan
2024-11-21 16:02:28 +00:00
Artur Barashev
882d635807 8245545: Disable TLS_RSA cipher suites
Reviewed-by: mullan
2024-11-21 14:14:30 +00:00
Coleen Phillimore
8f22db23a5 8330606: Redefinition doesn't but should verify the new klass
Reviewed-by: dholmes, jsjolen
2024-11-21 12:14:23 +00:00
Daniel Fuchs
a62279ca0a 8344235: Revisit SecurityManager usage in java.logging after JEP 486 and JEP 491 integration
Reviewed-by: jpai
2024-11-21 11:54:28 +00:00
Doug Lea
18df6fd5ba 8336707: Contention of ForkJoinPool grows when stealing works
Reviewed-by: vklang
2024-11-21 11:50:46 +00:00
Axel Boldt-Christmas
f2b10c6c22 8340422: ZGC: TestAllocateHeapAt.java should not run with transparent hugepages
Reviewed-by: stefank, jsikstro
2024-11-21 09:54:25 +00:00
Galder Zamarreño
5ccd5106e0 8326369: Add test to verify bimorphic inlining happens after morphism changes
Reviewed-by: thartmann, epeter
2024-11-21 09:48:08 +00:00
Richard Reingruber
93aa7e2fcf 8328085: C2: Use after free in PhaseChaitin::Register_Allocate()
Reviewed-by: thartmann, mdoerr
2024-11-21 06:57:09 +00:00
Jaikiran Pai
10def484df 8344236: Revisit SecurityManager usage in jdk.net after JEP 486 integration
Reviewed-by: dfuchs
2024-11-21 05:01:52 +00:00
Phil Race
7105bb98cf 8344664: Remove some un-used java/sun.security imports in the java.desktop module
Reviewed-by: iris
2024-11-21 04:22:27 +00:00
Phil Race
a01aa22026 8342281: Deprecate for removal javax.sound.sampled.AudioPermission
Reviewed-by: honkar, kizune
2024-11-21 03:58:49 +00:00
SendaoYan
4fbf272017 8344526: RISC-V: implement -XX:+VerifyActivationFrameSize
Co-authored-by: Fei Yang <fyang@openjdk.org>
Reviewed-by: mli, fyang
2024-11-21 02:05:00 +00:00
Leonid Mesnik
13439113c3 8340334: Update jcmd VM.events max parameter to be INT
Reviewed-by: cjplummer, kevinw
2024-11-21 01:32:09 +00:00
Jaikiran Pai
400eb9b10a 8344524: Remove SecurityManager related code from jdk.jlink module
Reviewed-by: alanb, lancea, iris
2024-11-21 00:55:23 +00:00
Jaikiran Pai
a599c30171 8344471: Remove SecurityManager related code from java.compiler module
Reviewed-by: rriggs, jlahoda, jjg
2024-11-21 00:49:25 +00:00
Harshitha Onkar
b9bf447209 8344057: Remove doPrivileged calls from unix platform sources in the java.desktop module
Reviewed-by: prr
2024-11-20 20:28:12 +00:00
Dr Heinz M. Kabutz
da2d7a09f9 8344595: State transitions in internal VirtualThread comment needs to be updated
Reviewed-by: alanb
2024-11-20 20:01:37 +00:00
Phil Race
22a39dc858 8344064: Remove doPrivileged calls from print/imageio/media classes in the java.desktop module
Reviewed-by: kizune
2024-11-20 18:45:49 +00:00
Phil Race
27fda0ea1f 8344578: Clean up left over java.security and sun.security imports in Swing classes
Reviewed-by: psadhukhan
2024-11-20 18:38:08 +00:00
Alexey Semenyuk
080f1cc8cd 8289771: jpackage: ResourceEditor error when path is overly long on Windows
Reviewed-by: almatvee
2024-11-20 16:54:51 +00:00
Brian Burkhalter
c4c6b1fe06 8344562: Remove security manager dependency from module jdk.jdi
Reviewed-by: kevinw, lmesnik, cjplummer
2024-11-20 16:01:01 +00:00
Calvin Cheung
9be8ac6fbc 8344239: runtime/cds/appcds/jigsaw/addmods/AddmodsOption.java fails on x64 with -Xmixed
Reviewed-by: iklam
2024-11-20 15:41:26 +00:00
Daniel Lundén
7d4c3fd091 8331295: C2: Do not clone address computations that are indirect memory input to at least one load/store
Co-authored-by: Roberto Castañeda Lozano <rcastanedalo@openjdk.org>
Reviewed-by: thartmann, chagedorn
2024-11-20 15:37:43 +00:00
Emanuel Peter
75420e9314 8334431: C2 SuperWord: fix performance regression due to store-to-load-forwarding failures
Reviewed-by: chagedorn, qamai
2024-11-20 14:23:57 +00:00
David M. Lloyd
e11d126a8d 8333796: Add missing serialization functionality to sun.reflect.ReflectionFactory
Reviewed-by: liach, rriggs
2024-11-20 14:17:28 +00:00
Volkan Yazıcı
21f0ed50a2 8344215: Remove calls to SecurityManager and doPrivileged in java.net.Socket and java.net.ServerSocket after JEP 486 integration
Reviewed-by: dfuchs, alanb, jpai
2024-11-20 13:59:52 +00:00
Vlad Zahorodnii
4bc826ac1e 8342785: XWindowPeer::getNewLocation() adheres to ICCCM 4.1.5 only with some WMs
Reviewed-by: prr, azvegint
2024-11-20 13:38:08 +00:00
Jaikiran Pai
db7ee3dad1 8344223: Remove calls to SecurityManager and doPrivileged in java.net.URLClassLoader after JEP 486 integration
Reviewed-by: alanb, yzheng
2024-11-20 12:41:39 +00:00
Jaikiran Pai
6f4dfa6626 8344190: Cleanup code in sun.net.www.protocol.http and sun.net.www.protocol.https after JEP 486 integration
Reviewed-by: dfuchs
2024-11-20 12:29:32 +00:00
Coleen Phillimore
7bb4474d81 8344579: Clean up forward declarations and includes
Reviewed-by: stefank
2024-11-20 12:22:43 +00:00
Coleen Phillimore
21b8749bfd 8344479: Declare MetaspaceObj::operator delete to be deleted
Reviewed-by: stefank, kbarrett, jwaters
2024-11-20 12:21:41 +00:00
Robbin Ehn
ea7e722ca0 8344010: RISC-V: Zacas do not work with LW locking
Reviewed-by: fyang, mli
2024-11-20 12:05:53 +00:00
David Holmes
e2f8f1aded 8344621: ProblemList runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java
Reviewed-by: jpai
2024-11-20 11:51:52 +00:00
Xiaolong Peng
afee7405bd 8343541: C1: Plain memory accesses are emitted with membars with +AlwaysAtomicAccesses
Reviewed-by: shade, vlivanov
2024-11-20 10:34:07 +00:00
Aggelos Biboudis
3a4a9b7af7 8340145: Problem with generic pattern matching results in internal compiler error
Reviewed-by: jlahoda
2024-11-20 10:29:45 +00:00
Jan Lahoda
cf158bc6cd 8341631: JShell should auto-import java.io.IO.*
Reviewed-by: asotona, cstein
2024-11-20 09:24:05 +00:00
Prasanta Sadhukhan
5b12a87dcb 8344060: Remove doPrivileged calls from shared implementation code in the java.desktop module : part 1
Reviewed-by: aivanov, prr
2024-11-20 09:11:12 +00:00
Hamlin Li
587f2b4b4d 8343827: RISC-V: set AlignVector as false if applicable to enable SLP
Reviewed-by: fyang, luhenry
2024-11-20 08:49:35 +00:00
Amit Kumar
189fc8ddef 8344381: [s390x] Test failures with error: Register type is not known
Reviewed-by: mdoerr, lucy
2024-11-20 08:25:37 +00:00
Archie Cobbs
8a1f9f0a32 8343476: Remove unnecessary @SuppressWarnings annotations (client)
Reviewed-by: prr
2024-11-20 01:57:03 +00:00
SendaoYan
4ddd3dec2d 8344356: Aarch64: implement -XX:+VerifyActivationFrameSize
Reviewed-by: aph
2024-11-20 01:36:56 +00:00
Guoxiong Li
bc7eabd7e4 8344350: Add '.gdbinit' and '.lldbinit' to file '.gitignore'
Reviewed-by: ihse, erikj
2024-11-20 01:09:05 +00:00
Joe Darcy
f525290000 8341935: javac states that -proc:full is the default but the default as of 23 is -proc:none
Reviewed-by: jlahoda
2024-11-20 00:06:24 +00:00
Calvin Cheung
acdbf83325 8341553: Remove UseCompactObjectHeaders extra CDS archives
Reviewed-by: erikj, iklam, coleenp
2024-11-19 23:37:34 +00:00
Brian Burkhalter
81e43114ec 8344077: Remove security manager dependency in java.io
Reviewed-by: rriggs, alanb, naoto, lancea
2024-11-19 20:30:22 +00:00
Brian Burkhalter
f6f73ce70d 8344446: Remove security manager dependency from module jdk.sctp
Reviewed-by: mullan, alanb
2024-11-19 20:30:02 +00:00
Laurent Bourgès
aac1f9af01 8341793: Fix ExceptionOccurred in jdk.accessibility
Reviewed-by: prr, avu
2024-11-19 20:28:58 +00:00
Xiaolong Peng
cd45ba32f0 8342041: Test gc/shenandoah/oom/TestClassLoaderLeak.java slow on Windows after JDK-8340490
Reviewed-by: shade, wkemper
2024-11-19 20:18:54 +00:00
Phil Race
69c9f2566e 8344061: Remove doPrivileged calls from shared implementation code in the java.desktop module : part 2
Reviewed-by: aivanov
2024-11-19 19:35:28 +00:00
Sonia Zaldana Calles
3328b4ecf2 8343700: ceil_log2 should not loop endlessly
Reviewed-by: shade, kbarrett, aph, stuefe
2024-11-19 19:13:09 +00:00
Stuart Marks
6a5256ec04 8344149: Remove usage of Security Manager from java.rmi
Reviewed-by: rriggs, kevinw, aefimov
2024-11-19 18:58:23 +00:00
Chris Plummer
0b1f57105d 8253440: serviceability/sa/TestJhsdbJstackLineNumbers.java failed with "Didn't find enough line numbers"
Reviewed-by: kevinw, lmesnik
2024-11-19 18:58:00 +00:00
Larry Cable
93e889b48c 8342449: reimplement: JDK-8327114 Attach in Linux may have wrong behavior when pid == ns_pid
Reviewed-by: kevinw
2024-11-19 18:45:45 +00:00
Renjith Kannath Pariyangad
bb7a8403ba 8342541: Exclude List/KeyEventsTest/KeyEventsTest.java from running on macOS
Reviewed-by: aivanov, prr
2024-11-19 18:19:28 +00:00
Archie Cobbs
087a07b5ed 8343479: Remove unnecessary @SuppressWarnings annotations (hotspot)
Reviewed-by: chagedorn, epeter
2024-11-19 17:43:48 +00:00
Alexey Ivanov
02ec8ca2d6 8342508: Use latch in BasicMenuUI/bug4983388.java instead of delay
Reviewed-by: azvegint, abhiscxk, serb
2024-11-19 17:15:46 +00:00
naveen.n.narayanan
47ebf8d868 8342098: Write a test to compare the images
Reviewed-by: aivanov, abhiscxk
2024-11-19 17:15:24 +00:00
Andrey Turbanov
78602be1fe 8344024: Unnecessary Hashtable usage in RSAPSSSignature.DIGEST_LENGTHS
Reviewed-by: valeriep
2024-11-19 16:59:06 +00:00
Alexey Semenyuk
7f672eb266 8344550: Compilation error of jpackage test JPackageStringBundle.java source
Reviewed-by: rriggs
2024-11-19 16:56:11 +00:00
Alan Bateman
48223f7b9c 8344143: Test jdk/java/lang/Thread/virtual/stress/GetStackTraceALotWhenPinned.java timed out on macosx-x64
Reviewed-by: pchilanomate
2024-11-19 16:37:43 +00:00
Coleen Phillimore
d4cd27e875 8344445: MethodCounters don't need a vptr
Reviewed-by: kbarrett, dlong
2024-11-19 16:13:11 +00:00
Hamlin Li
dc940ec8af 8344387: RISC-V: C2: Improve encoding of LoadNKlass for compact headers
Reviewed-by: fyang, luhenry
2024-11-19 15:59:30 +00:00
Roger Riggs
ded01e4316 8344327: SM cleanup in jdk.unsupported ReflectionFactory
Reviewed-by: liach, mullan, alanb
2024-11-19 15:21:02 +00:00
SendaoYan
59fcfae630 8343129: Disable unstable check of ThreadsListHandle.sanity_vm ThreadList values
Reviewed-by: dholmes
2024-11-19 15:17:34 +00:00
Ivan Walulya
1717946c1b 8344302: G1: Refactor G1CMTask::do_marking_step to use smaller wrapper methods
Reviewed-by: tschatzl, ayang
2024-11-19 14:31:40 +00:00
Alexey Semenyuk
fea5f2b145 8344415: Restruct jpackage utility classes
Reviewed-by: almatvee
2024-11-19 13:54:57 +00:00
Alexey Semenyuk
a28e4d839c 8342299: Document that jpackage includes (possibly old) VC Redistributable MSVCP140.dll from JDK
Reviewed-by: almatvee
2024-11-19 13:54:02 +00:00
Alexey Semenyuk
0714114fe3 8344322: Improve capabilities of jpackage test lib to validate error output of jpackage
Reviewed-by: almatvee
2024-11-19 13:53:45 +00:00
Alexey Semenyuk
41436bb0e8 8336087: Doccheck: the jpackage command page doesn't show the correct command-line options
Reviewed-by: almatvee
2024-11-19 13:52:31 +00:00
Matthias Baesken
cc8bd63741 8344036: Tests tools/jlink/runtimeImage fail on AIX after JDK-8311302
Reviewed-by: sgehwolf
2024-11-19 13:44:11 +00:00
Eirik Bjørsnøs
235973615f 8344534: Remove leftover import of java.security.AccessControlContext in JavaLangAccess
Reviewed-by: alanb
2024-11-19 12:04:37 +00:00
Fei Yang
0d66689177 8344393: RISC-V: Remove option UseRVVForBigIntegerShiftIntrinsics
Reviewed-by: mli, fjiang
2024-11-19 10:20:58 +00:00
Amit Kumar
7540fa2147 8343884: [s390x] Disallow OptoScheduling
Reviewed-by: lucy
2024-11-19 10:16:22 +00:00
Tobias Hartmann
9d60300fee 8344199: Incorrect excluded field value set by getEventWriter intrinsic
Co-authored-by: Patricio Chilano Mateo <pchilanomate@openjdk.org>
Reviewed-by: syan, mgronlun
2024-11-19 10:01:49 +00:00
Jan Lahoda
8bd080bcc9 8341901: Using 'var' keyword switch pattern matching causes compiler error
Reviewed-by: vromero, abimpoudis
2024-11-19 09:13:37 +00:00
Aleksey Shipilev
76a55c3cb6 8341334: CDS: Parallel relocation
Reviewed-by: iklam, adinn, stuefe
2024-11-19 08:45:02 +00:00
Prasanta Sadhukhan
499186be0f 8343902: javax/swing/plaf/nimbus/8041642/bug8041642.java fails in ubuntu22.04
Reviewed-by: azvegint
2024-11-19 06:37:49 +00:00
Eirik Bjørsnøs
b12c5b4d18 8344218: Remove calls to SecurityManager and and doPrivileged in java.net.NetworkInterface after JEP 486 integration
Reviewed-by: dfuchs
2024-11-19 05:44:30 +00:00
Eirik Bjørsnøs
d85dd77edf 8344365: SecurityManager cleanups in java.sql and java.sql.rowset modules
Reviewed-by: rriggs, bchristi
2024-11-19 05:43:22 +00:00
Prasanta Sadhukhan
9e92a9e2ba 8344059: Remove doPrivileged calls from windows platform sources in the java.desktop module
Reviewed-by: kcr, prr
2024-11-19 03:11:31 +00:00
Fei Yang
37298844c9 8344371: RISC-V: compiler/intrinsics/chacha/TestChaCha20.java fails after JDK-8343555
Reviewed-by: mli
2024-11-19 01:49:33 +00:00
Alex Menkov
dd8636908c 8344262: Win32AttachOperationRequest objects are created by using global new
Reviewed-by: jwaters, dholmes
2024-11-19 00:08:06 +00:00
Christian Stein
5cb0d43823 8293040: Argfile documentation for java launcher tool is confusing regarding usage of wildcards
Reviewed-by: liach
2024-11-18 21:49:36 +00:00
Justin Lu
8d43e0d664 8344331: SM cleanup in java.scripting
Reviewed-by: naoto, lancea
2024-11-18 21:27:24 +00:00
Patricio Chilano Mateo
f636674889 8344247: Move objectWaiter field to VirtualThread instance
Reviewed-by: dholmes, coleenp
2024-11-18 20:48:09 +00:00
Sean Mullan
de6e013e0e 8344310: Remove Security Manager dependencies from javax.crypto and com.sun.crypto packages
Reviewed-by: jpai, ascarpino
2024-11-18 19:35:42 +00:00
Harshitha Onkar
92271af635 8344058: Remove doPrivileged calls from macos platform sources in the java.desktop module
Reviewed-by: prr, aivanov
2024-11-18 19:19:51 +00:00
Kevin Walls
70eb95f848 8344187: Remove SecurityManager and related calls from java.instrument
Reviewed-by: alanb, amenkov
2024-11-18 19:18:22 +00:00
Brian Burkhalter
922b12f30c 8344078: Remove security manager dependency in java.nio
Reviewed-by: alanb, rriggs
2024-11-18 19:17:14 +00:00
Aleksey Shipilev
2649406323 8344352: 32-bit builds crash after JDK-8305895
Reviewed-by: rkennke, coleenp
2024-11-18 18:38:56 +00:00
Naman Nigam
e9e4200a6a 8343125: Correct the documentation for TreeMap's getFloorEntry and getCeilingEntry
Reviewed-by: liach, acobbs
2024-11-18 18:30:24 +00:00
Naoto Sato
c59adf68d9 8344330: Remove AccessController.doPrivileged() from jdk.charsets module
Reviewed-by: lancea, bpb, rriggs, jlu
2024-11-18 18:22:18 +00:00
Aleksey Shipilev
c4e7dc7ff2 8344389: 32-bit builds fail at CDS build time after JDK-8331497
Reviewed-by: iklam
2024-11-18 18:08:20 +00:00
Viktor Klang
d76b5b888e 8344253: Test java/util/Spliterator/SpliteratorTraversingAndSplittingTest.java failed
Reviewed-by: alanb
2024-11-18 17:31:03 +00:00
Kevin Driver
3e78ff16d3 8320743: AEAD ciphers throw undocumented exceptions on overflow
Reviewed-by: ascarpino
2024-11-18 16:41:57 +00:00
Per Minborg
207832952b 8344134: Use static property in SystemLookup
Reviewed-by: alanb, rriggs
2024-11-18 16:20:06 +00:00
Ramkumar Sunderbabu
162d66adac 8318668: java/lang/management/MemoryMXBean/CollectionUsageThreshold.java fails with Xcomp
Reviewed-by: kevinw, lmesnik
2024-11-18 16:17:30 +00:00
Roger Riggs
9b0ab92b16 8344034: Remove security manager dependency in Serialization
Reviewed-by: mullan, alanb
2024-11-18 16:17:07 +00:00
Daniel Fuchs
d52d136486 8344221: Remove calls to SecurityManager and and doPrivileged in java.net.IDN, java.net.URL, java.net.URLConnection, sun.net.util.URLUtil, and java.net.URLStreamHandlerProvider after JEP 486 integration
Reviewed-by: alanb, rriggs
2024-11-18 15:17:40 +00:00
Coleen Phillimore
dfddbcaab8 8341916: Remove ProtectionDomain related hotspot code and tests
Reviewed-by: dholmes, iklam, jrose
2024-11-18 12:48:40 +00:00
Magnus Ihse Bursie
5eb0733f5f 8344383: Include ZipArchive and JarArchive directly
Reviewed-by: shade
2024-11-18 11:31:08 +00:00
Amit Kumar
b8b70c8b4e 8344379: [s390x] build failure due to missing change from JDK-8339466
Reviewed-by: lucy, shade
2024-11-18 10:40:52 +00:00
Antón Seoane Ampudia
5fc4322267 8288298: Resolve multiline message parsing ambiguities in UL
Reviewed-by: jsjolen, rcastanedalo, dholmes
2024-11-18 10:40:33 +00:00
Jan Lahoda
ea8f28980c 8344271: Comparison build fails due to difference in doc summary
Reviewed-by: hannesw
2024-11-18 10:38:45 +00:00
Tobias Holenstein
b9c6ce900b 8344122: IGV: Extend c2 IdealGraphPrinter to send subgraphs to IGV
Reviewed-by: chagedorn, epeter, rcastanedalo
2024-11-18 09:36:08 +00:00
Kevin Walls
00ff6a38ce 8344105: Remove SecurityManager and related calls from jdk.attach and jdk.hotspot.agent
Reviewed-by: amenkov, cjplummer
2024-11-18 09:24:11 +00:00
Magnus Ihse Bursie
475feb064b 8344056: Use markdown format for man pages
Reviewed-by: cstein, iris, dholmes
2024-11-18 09:23:50 +00:00
Tobias Holenstein
6c2ae44c05 8344204: IGV: Button to enable/disable cutting of long edges
Reviewed-by: rcastanedalo, chagedorn
2024-11-18 08:35:12 +00:00
Richard Reingruber
4a7ce1d7c1 8344205: [PPC]: failing assertion: sharedRuntime_ppc.cpp:1652: cookie not found
Reviewed-by: mdoerr
2024-11-18 08:18:15 +00:00
Prasanta Sadhukhan
b6c2122efb 8316151: [macos14] ActionListenerCalledTwiceTest.java fails on macOS 14
Reviewed-by: tr
2024-11-18 08:11:52 +00:00
Matthias Baesken
543e355bd9 8344298: Test tools/sincechecker/modules/jdk.hotspot.agent/JdkHotspotAgentCheckSince.java fails on platforms without sa
Reviewed-by: lucy
2024-11-18 07:42:58 +00:00
Sidraya Jayagond
92b26317d4 8327652: S390x: Implements SLP support
Reviewed-by: amitkumar, lucy, mdoerr
2024-11-18 06:51:11 +00:00
SendaoYan
a47d9ba98a 8344349: Problemlist jdk/jfr/jvm/TestVirtualThreadExclusion.java before JDK-8344199 resolved
Reviewed-by: lmesnik
2024-11-18 02:35:18 +00:00
Gui Cao
80e37a96bb 8344265: RISC-V: Remove unused function get_previous_sp_entry
Reviewed-by: fyang, mli
2024-11-18 00:48:24 +00:00
Justin Lu
e1c4b4977e 8343237: Improve the copying of the available set of Currencies
Reviewed-by: bpb
2024-11-18 00:16:02 +00:00
Alexey Semenyuk
41a627b789 8343876: Enhancements to jpackage test lib
Reviewed-by: almatvee
2024-11-17 23:46:49 +00:00
Prasanta Sadhukhan
aa10ec7c96 8343123: Nimbus: javax/swing/JInternalFrame/bug6726866.java does not have green undecorated window
Reviewed-by: tr, dnguyen
2024-11-17 08:52:48 +00:00
Nizar Benalla
fec0d1cf5b 8343777: Add since checker tests to Internationalisation modules
Reviewed-by: jlu, naoto
2024-11-16 20:27:26 +00:00
Eirik Bjørsnøs
d0b770c938 8344289: SM cleanup in jdk.internal.util
Reviewed-by: liach, rriggs, bpb
2024-11-16 13:31:06 +00:00
Jaikiran Pai
a91d4c022f 8344233: Remove calls to SecurityManager and doPrivileged in java.net.ProxySelector and sun.net.spi.DefaultProxySelector after JEP 486 integration
Reviewed-by: dfuchs
2024-11-16 11:39:20 +00:00
Jaikiran Pai
d2e4b51133 8344186: Cleanup sun.net.www.MimeTable after JEP 486 integration
Reviewed-by: dfuchs
2024-11-16 01:29:45 +00:00
Jaikiran Pai
da40388736 8344315: Clean up sun.net.www.protocol.jrt.JavaRuntimeURLConnection after JEP 486 integration
Reviewed-by: dfuchs, alanb
2024-11-16 01:23:29 +00:00
Alexey Semenyuk
2c509a158f 8344326: Move jpackage tests from "jdk.jpackage.tests" package to the default package
Reviewed-by: almatvee
2024-11-15 23:55:45 +00:00
Ioi Lam
41a2d49f0a 8331497: Implement JEP 483: Ahead-of-Time Class Loading & Linking
Reviewed-by: jrose, kvn, heidinga, asmehra, vlivanov
2024-11-15 22:28:54 +00:00
Roman Kennke
276251c44a 8342826: Improve performance of oopDesc::klass() after JDK-8305895
Reviewed-by: coleenp, shade, mli
2024-11-15 21:21:03 +00:00
Roger Riggs
c388455d0a 8344197: SM cleanup in java.util.concurrent
Reviewed-by: alanb, dl
2024-11-15 20:30:04 +00:00
Roger Riggs
c5b6ed8ca0 8344252: SM cleanup in java.util classes
Reviewed-by: naoto, smarks
2024-11-15 20:29:14 +00:00
Volkan Yazıcı
59ffac84d3 8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5
Reviewed-by: dfuchs
2024-11-15 19:56:48 +00:00
Eirik Bjørsnøs
f3168082b8 8344189: Cleanup code in sun.net.www.protocol.mailto.MailToURLConnection and sun.net.smtp after JEP 486 integration
Reviewed-by: dfuchs
2024-11-15 19:22:30 +00:00
Eirik Bjørsnøs
73fd8919f5 8344216: Remove calls to SecurityManager and and doPrivileged in java.net.Authenticator, java.net.CookieHandler, and java.net.ResponseCache after JEP 486 integration
Reviewed-by: dfuchs
2024-11-15 19:21:30 +00:00
Eirik Bjørsnøs
f62e05ee96 8344231: SecurityManager cleanup in java.lang.module and jdk.internal.module
Reviewed-by: alanb
2024-11-15 19:21:07 +00:00
Phil Race
1bb0d3baaa 8344062: Remove doPrivileged calls from awt and beans classes in the java.desktop module
Reviewed-by: serb
2024-11-15 19:02:29 +00:00
Sean Mullan
fc8fb34f3d 8344214: Remove Security Manager dependencies from jdk.crypto.mscapi module
Reviewed-by: rriggs, ascarpino
2024-11-15 19:02:13 +00:00
Roman Kennke
ff12ff534a 8340453: C2: Improve encoding of LoadNKlass for compact headers
Reviewed-by: rcastanedalo, mli
2024-11-15 18:10:30 +00:00
Paul Sandoz
1866c0c2ce 8344259: Annotate Float16 with jdk.internal.ValueBased
Reviewed-by: liach, darcy
2024-11-15 17:22:11 +00:00
Brian Burkhalter
0b9b82af03 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io
Reviewed-by: liach, alanb
2024-11-15 16:11:34 +00:00
Adam Sotona
3c38ed4128 8344314: Revert removal of jdk.internal.java.PreviewFeature.CLASSFILE_API
Reviewed-by: liach
2024-11-15 15:57:34 +00:00
Daniel Fuchs
40a055ebd2 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration
Reviewed-by: jpai
2024-11-15 15:05:33 +00:00
Adam Sotona
84ffb64cd7 8334714: Implement JEP 484: Class-File API
Reviewed-by: liach, vromero
2024-11-15 14:38:17 +00:00
Sonia Zaldana Calles
6cdebf0e4c 8343599: Kmem limit and max values swapped when printing container information
Reviewed-by: sjohanss, sgehwolf
2024-11-15 14:07:32 +00:00
Markus Grönlund
a672138aa7 8344161: Argument type mismatch for jfr_type_id
Reviewed-by: kbarrett
2024-11-15 13:38:52 +00:00
Amit Kumar
3245f56e53 8344164: [s390x] ProblemList hotspot/jtreg/runtime/NMT/VirtualAllocCommitMerge.java
Reviewed-by: lucy
2024-11-15 12:45:48 +00:00
Eirik Bjørsnøs
5e2760856c 8344188: Cleanup sun.net.www.protocol.jar.JarFileFactory after JEP 486 integration
Reviewed-by: jpai, dfuchs
2024-11-15 12:18:53 +00:00
Adam Sotona
ba39321902 8343881: java.lang.classfile.Attribute attributeName() method should return Utf8Entry
Reviewed-by: liach
2024-11-15 11:40:15 +00:00
Casper Norrbin
75c651f859 8327156: Avoid copying in StringTable::intern(oop, TRAPS)
8326865: Avoid copying in StringTable::intern(Symbol*, TRAPS)
8327825: StringTable::intern is slow

Reviewed-by: dholmes, coleenp, jsjolen
2024-11-15 11:28:02 +00:00
Pavel Rappo
3eece6e941 8341907: javac -Xlint should ignore /// on first line of source file
Reviewed-by: jjg
2024-11-15 10:20:08 +00:00
Maurizio Cimadamore
5b9932f8f3 8338288: Compiler Implementation for Flexible Constructor Bodies (Third Preview)
8322882: Null pointer error when compiling Static initializer in a local class
8334248: Invalid error for early construction local class constructor method reference
8330037: Compiler produces invalid bytecode for method class creation from static method

Reviewed-by: jlahoda, vromero
2024-11-15 10:07:18 +00:00
Eirik Bjørsnøs
0c191f6629 8344185: Remove calls to SecurityManager in sun.net.ftp
Reviewed-by: alanb, michaelm, dfuchs
2024-11-15 09:47:43 +00:00
Eirik Bjørsnøs
bfee766f03 8344183: (zipfs) SecurityManager cleanup in the ZipFS area
Reviewed-by: mullan, lancea
2024-11-15 07:48:15 +00:00
Eirik Bjørsnøs
857f68c60f 8344179: SecurityManager cleanup in the ZIP and JAR areas
Reviewed-by: lancea, rriggs, mullan, jpai
2024-11-15 07:47:11 +00:00
Emanuel Peter
21966942b6 8344104: TestMergeStores fails with ArrayIndexOutOfBoundException
Reviewed-by: shade, chagedorn, dlong
2024-11-15 07:31:55 +00:00
Alan Bateman
0ae5748f74 8343982: Remove usage of security manager from ClassLoader and related classes
Reviewed-by: jpai, yzheng, lancea
2024-11-15 07:16:34 +00:00
Phil Race
99070658fd 8344065: Remove SecurityManager uses from the java.datatransfer module
Reviewed-by: serb
2024-11-15 04:51:55 +00:00
9905 changed files with 257060 additions and 159955 deletions

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

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

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

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

View File

@@ -49,6 +49,6 @@ runs:
- name: 'Export path to where GTest is installed'
id: path-name
run: |
# Export the path
echo 'path=gtest' >> $GITHUB_OUTPUT
# Export the absolute path
echo "path=`pwd`/gtest" >> $GITHUB_OUTPUT
shell: bash

View File

@@ -49,6 +49,6 @@ runs:
- name: 'Export path to where JTReg is installed'
id: path-name
run: |
# Export the path
echo 'path=jtreg/installed' >> $GITHUB_OUTPUT
# Export the absolute path
echo "path=`pwd`/jtreg/installed" >> $GITHUB_OUTPUT
shell: bash

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

View File

@@ -32,6 +32,9 @@ inputs:
debug-suffix:
description: 'File name suffix denoting debug level, possibly empty'
required: false
bundle-suffix:
description: 'Bundle name suffix, possibly empty'
required: false
runs:
using: composite
@@ -75,7 +78,7 @@ runs:
- name: 'Upload bundles artifact'
uses: actions/upload-artifact@v4
with:
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.bundle-suffix }}
path: bundles
retention-days: 1
if: steps.bundles.outputs.bundles-found == 'true'

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

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

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

View File

@@ -61,6 +61,9 @@ on:
make-arguments:
required: false
type: string
bundle-suffix:
required: false
type: string
jobs:
build-linux:
@@ -71,10 +74,6 @@ jobs:
fail-fast: false
matrix:
debug-level: ${{ fromJSON(inputs.debug-levels) }}
include:
- debug-level: debug
flags: --with-debug-level=fastdebug
suffix: -debug
steps:
- name: 'Checkout the JDK source'
@@ -118,7 +117,7 @@ jobs:
run: >
bash configure
--with-conf-name=${{ inputs.platform }}
${{ matrix.flags }}
${{ matrix.debug-level == 'debug' && '--with-debug-level=fastdebug' || '' }}
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
--with-jtreg=${{ steps.jtreg.outputs.path }}
@@ -133,17 +132,14 @@ jobs:
- name: 'Build'
id: build
uses: ./.github/actions/do-build
env:
# Only build static-libs-bundles for release builds.
# For debug builds, building static-libs often exceeds disk space.
STATIC_LIBS: ${{ matrix.debug-level == 'release' && 'static-libs-bundles' }}
with:
make-target: '${{ inputs.make-target }} ${STATIC_LIBS} ${{ inputs.make-arguments }}'
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
platform: ${{ inputs.platform }}
debug-suffix: '${{ matrix.suffix }}'
debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
- name: 'Upload bundles'
uses: ./.github/actions/upload-bundles
with:
platform: ${{ inputs.platform }}
debug-suffix: '${{ matrix.suffix }}'
debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
bundle-suffix: ${{ inputs.bundle-suffix }}

View File

@@ -36,7 +36,7 @@ on:
platforms:
description: 'Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
required: true
default: 'linux-x64, linux-x86-hs, linux-x64-variants, linux-cross-compile, alpine-linux-x64, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
default: 'linux-x64, linux-x64-variants, linux-cross-compile, alpine-linux-x64, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
configure-arguments:
description: 'Additional configure arguments'
required: false
@@ -62,7 +62,6 @@ jobs:
EXCLUDED_PLATFORMS: 'alpine-linux-x64'
outputs:
linux-x64: ${{ steps.include.outputs.linux-x64 }}
linux-x86-hs: ${{ steps.include.outputs.linux-x86-hs }}
linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
linux-cross-compile: ${{ steps.include.outputs.linux-cross-compile }}
alpine-linux-x64: ${{ steps.include.outputs.alpine-linux-x64 }}
@@ -145,7 +144,6 @@ jobs:
}
echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
echo "linux-x86-hs=$(check_platform linux-x86-hs linux x86)" >> $GITHUB_OUTPUT
echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
echo "alpine-linux-x64=$(check_platform alpine-linux-x64 alpine-linux x64)" >> $GITHUB_OUTPUT
@@ -170,24 +168,6 @@ jobs:
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.prepare.outputs.linux-x64 == 'true'
build-linux-x86-hs:
name: linux-x86-hs
needs: prepare
uses: ./.github/workflows/build-linux.yml
with:
platform: linux-x86
make-target: 'hotspot'
gcc-major-version: '10'
gcc-package-suffix: '-multilib'
apt-architecture: 'i386'
# Some multilib libraries do not have proper inter-dependencies, so we have to
# install their dependencies manually.
apt-extra-packages: 'libfreetype-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libffi-dev:i386'
extra-conf-options: '--with-target-bits=32 --enable-fallback-linker --enable-libffi-bundling'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.prepare.outputs.linux-x86-hs == 'true'
build-linux-x64-hs-nopch:
name: linux-x64-hs-nopch
needs: prepare
@@ -245,6 +225,43 @@ jobs:
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.prepare.outputs.linux-x64-variants == 'true'
build-linux-x64-static:
name: linux-x64-static
needs: prepare
uses: ./.github/workflows/build-linux.yml
with:
platform: linux-x64
make-target: 'static-jdk-image'
# There are issues with fastdebug static build in GHA due to space limit.
# Only do release build for now.
debug-levels: '[ "release" ]'
gcc-major-version: '10'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
# It currently doesn't produce any bundles, but probably will do in
# the future.
bundle-suffix: "-static"
if: needs.prepare.outputs.linux-x64 == 'true'
build-linux-x64-static-libs:
name: linux-x64-static-libs
needs: prepare
uses: ./.github/workflows/build-linux.yml
with:
platform: linux-x64
make-target: 'static-libs-bundles'
# Only build static-libs-bundles for release builds.
# For debug builds, building static-libs often exceeds disk space.
debug-levels: '[ "release" ]'
gcc-major-version: '10'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
# Upload static libs bundles separately to avoid interference with normal linux-x64 bundle.
# This bundle is not used by testing jobs, but downstreams use it to check that
# dependent projects, e.g. libgraal, builds fine.
bundle-suffix: "-static-libs"
if: needs.prepare.outputs.linux-x64-variants == 'true'
build-linux-cross-compile:
name: linux-cross-compile
needs: prepare
@@ -345,17 +362,6 @@ jobs:
bootjdk-platform: linux-x64
runs-on: ubuntu-22.04
test-macos-x64:
name: macos-x64
needs:
- build-macos-x64
uses: ./.github/workflows/test.yml
with:
platform: macos-x64
bootjdk-platform: macos-x64
runs-on: macos-13
xcode-toolset-version: '14.3.1'
test-macos-aarch64:
name: macos-aarch64
needs:

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
@@ -66,7 +66,6 @@ jobs:
- 'hs/tier1 compiler part 1'
- 'hs/tier1 compiler part 2'
- 'hs/tier1 compiler part 3'
- 'hs/tier1 compiler not-xcomp'
- 'hs/tier1 gc'
- 'hs/tier1 runtime'
- 'hs/tier1 serviceability'
@@ -101,10 +100,6 @@ jobs:
test-suite: 'test/hotspot/jtreg/:tier1_compiler_3'
debug-suffix: -debug
- test-name: 'hs/tier1 compiler not-xcomp'
test-suite: 'test/hotspot/jtreg/:tier1_compiler_not_xcomp'
debug-suffix: -debug
- test-name: 'hs/tier1 gc'
test-suite: 'test/hotspot/jtreg/:tier1_gc'
debug-suffix: -debug

3
.gitignore vendored
View File

@@ -20,3 +20,6 @@ NashornProfile.txt
/.settings/
/compile_commands.json
/.cache
/.gdbinit
/.lldbinit
**/core.[0-9]*

View File

@@ -1,10 +1,10 @@
[general]
project=jdk
jbs=JDK
version=24
version=25
[checks]
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists,copyright
warning=issuestitle,binary
[repository]
@@ -34,3 +34,8 @@ pattern=^([124-8][0-9]{6}): (\S.*)$
[checks "problemlists"]
dirs=test/jdk|test/langtools|test/lib-test|test/hotspot/jtreg|test/jaxp
[checks "copyright"]
files=^(?!LICENSE|license\.txt|.*\.bin|.*\.gif|.*\.jpg|.*\.png|.*\.icon|.*\.tiff|.*\.dat|.*\.patch|.*\.wav|.*\.class|.*-header|.*\.jar).*
oracle_locator=.*Copyright \(c\)(.*)Oracle and/or its affiliates\. All rights reserved\.
oracle_validator=.*Copyright \(c\) (\d{4})(?:, (\d{4}))?, Oracle and/or its affiliates\. All rights reserved\.

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 2025, 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
@@ -24,8 +24,9 @@
#
###
### This file is just a very small wrapper needed to run the real make/Init.gmk.
### It also performs some sanity checks on make.
### This file is just a very small wrapper which will include make/PreInit.gmk,
### where the real work is done. This wrapper also performs some sanity checks
### on make that must be done before we can include another file.
###
# The shell code below will be executed on /usr/bin/make on Solaris, but not in GNU Make.
@@ -58,7 +59,7 @@ ifeq ($(filter /%, $(lastword $(MAKEFILE_LIST))),)
else
makefile_path := $(lastword $(MAKEFILE_LIST))
endif
topdir := $(strip $(patsubst %/, %, $(dir $(makefile_path))))
TOPDIR := $(strip $(patsubst %/, %, $(dir $(makefile_path))))
# ... and then we can include the real makefile
include $(topdir)/make/Init.gmk
# ... and then we can include the real makefile to bootstrap the build
include $(TOPDIR)/make/PreInit.gmk

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2009, 2025, 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
@@ -99,7 +99,7 @@ if [ "$VERBOSE" = "true" ] ; then
echo "idea template dir: $IDEA_TEMPLATE"
fi
cd $TOP ; make -f "$IDEA_MAKE/idea.gmk" -I $MAKE_DIR/.. idea MAKEOVERRIDES= OUT=$IDEA_OUTPUT/env.cfg MODULES="$*" $CONF_ARG || exit 1
cd $TOP ; make idea-gen-config ALLOW=IDEA_OUTPUT,MODULES IDEA_OUTPUT=$IDEA_OUTPUT MODULES="$*" $CONF_ARG || exit 1
cd $SCRIPT_DIR
. $IDEA_OUTPUT/env.cfg

View File

@@ -329,8 +329,8 @@ 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>
<p>Note: The 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
@@ -393,8 +393,7 @@ Build Platforms</a>. From time to time, this is updated by contributors
to list successes or failures of building on different platforms.</p>
<h3 id="windows">Windows</h3>
<p>Windows XP is not a supported platform, but all newer Windows should
be able to build the JDK. (Note: The Windows 32-bit x86 port is
deprecated and may be removed in a future release.)</p>
be able to build the JDK.</p>
<p>On Windows, it is important that you pay attention to the
instructions in the <a href="#special-considerations">Special
Considerations</a>.</p>
@@ -864,12 +863,12 @@ href="https://www.gnu.org/software/bash">GNU Bash</a>. No other shells
are supported.</p>
<p>At least version 3.2 of GNU Bash must be used.</p>
<h3 id="graphviz-and-pandoc">Graphviz and Pandoc</h3>
<p>In order to build the full docs (see the
<p>In order to build man pages and the full docs (see the
<code>--enable-full-docs</code> configure option) <a
href="https://www.graphviz.org">Graphviz</a> and <a
href="https://pandoc.org">Pandoc</a> are required. Any recent versions
should work. For reference, and subject to change, Oracle builds use
Graphviz 9.0.0 and Pandoc 2.19.2.</p>
href="https://pandoc.org">Pandoc</a> is required. For full docs also <a
href="https://www.graphviz.org">Graphviz</a> is required. Any recent
versions should work. For reference, and subject to change, Oracle
builds use Graphviz 9.0.0 and Pandoc 2.19.2.</p>
<h2 id="running-configure">Running Configure</h2>
<p>To build the JDK, you need a "configuration", which consists of a
directory where to store the build output, coupled with information

View File

@@ -134,8 +134,7 @@ 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.
Note: The 32-bit x86 port is deprecated and may be removed in a future release.
### Building on aarch64
@@ -191,8 +190,7 @@ on different platforms.
### Windows
Windows XP is not a supported platform, but all newer Windows should be able to
build the JDK. (Note: The Windows 32-bit x86 port is deprecated and may be
removed in a future release.)
build the JDK.
On Windows, it is important that you pay attention to the instructions in the
[Special Considerations](#special-considerations).
@@ -682,9 +680,9 @@ At least version 3.2 of GNU Bash must be used.
### Graphviz and Pandoc
In order to build the full docs (see the `--enable-full-docs`
configure option) [Graphviz](https://www.graphviz.org) and
[Pandoc](https://pandoc.org) are required. Any recent versions should
In order to build man pages and the full docs (see the `--enable-full-docs`
configure option) [Pandoc](https://pandoc.org) is required. For full docs also
[Graphviz](https://www.graphviz.org) is required. Any recent versions should
work. For reference, and subject to change, Oracle builds use Graphviz
9.0.0 and Pandoc 2.19.2.

View File

@@ -217,10 +217,10 @@ file as the first include line. Declarations needed by other files
should be put in the .hpp file, and not in the .inline.hpp file. This
rule exists to resolve problems with circular dependencies between
.inline.hpp files.</p></li>
<li><p>All .cpp files include precompiled.hpp as the first include
line.</p></li>
<li><p>precompiled.hpp is just a build time optimization, so don't rely
on it to resolve include problems.</p></li>
<li><p>Some build configurations use precompiled headers to speed up the
build times. The precompiled headers are included in the precompiled.hpp
file. Note that precompiled.hpp is just a build time optimization, so
don't rely on it to resolve include problems.</p></li>
<li><p>Keep the include lines alphabetically sorted.</p></li>
<li><p>Put conditional inclusions (<code>#if ...</code>) at the end of
the include list.</p></li>

View File

@@ -150,10 +150,10 @@ the first include line. Declarations needed by other files should be put
in the .hpp file, and not in the .inline.hpp file. This rule exists to
resolve problems with circular dependencies between .inline.hpp files.
* All .cpp files include precompiled.hpp as the first include line.
* precompiled.hpp is just a build time optimization, so don't rely on
it to resolve include problems.
* Some build configurations use precompiled headers to speed up the
build times. The precompiled headers are included in the precompiled.hpp
file. Note that precompiled.hpp is just a build time optimization, so
don't rely on it to resolve include problems.
* Keep the include lines alphabetically sorted.

View File

@@ -245,7 +245,7 @@ compare C string contents. There are also case-insensitive versions
<p>All GoogleTest asserts print compared expressions and their values,
so there is no need to have them in error messages. Asserts print only
compared values, they do not print any of interim variables, e.g.
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8)) || i == 18)</code>
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8))) || i == 18)</code>
prints only one value. If you use some complex predicates, please
consider <code>EXPECT_PRED*</code> or <code>EXPECT_FORMAT_PRED</code>
assertions family, they check that a predicate returns true/success and

View File

@@ -172,7 +172,7 @@ Provide informative, but not too verbose error messages.
All GoogleTest asserts print compared expressions and their values, so
there is no need to have them in error messages. Asserts print only
compared values, they do not print any of interim variables, e.g.
`ASSERT_TRUE((val1 == val2 && isFail(foo(8)) || i == 18)` prints only
`ASSERT_TRUE((val1 == val2 && isFail(foo(8))) || i == 18)` prints only
one value. If you use some complex predicates, please consider
`EXPECT_PRED*` or `EXPECT_FORMAT_PRED` assertions family, they check that
a predicate returns true/success and print out all parameters values.

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2025, 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
@@ -23,10 +23,9 @@
# questions.
#
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
################################################################################
include CopyFiles.gmk
include MakeIO.gmk
@@ -43,8 +42,6 @@ ifeq ($(call isBuildOs, windows), true)
TAR_IGNORE_EXIT_VALUE := || test "$$$$?" = "1"
endif
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Bundles-pre.gmk))
################################################################################
# BUNDLE : Name of bundle to create
# FILES : Files in BASE_DIRS to add to bundle
@@ -502,11 +499,6 @@ endif
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Bundles.gmk))
################################################################################
product-bundles: $(PRODUCT_TARGETS)
legacy-bundles: $(LEGACY_TARGETS)
test-bundles: $(TEST_TARGETS)
@@ -517,6 +509,10 @@ static-libs-bundles: $(STATIC_LIBS_TARGETS)
static-libs-graal-bundles: $(STATIC_LIBS_GRAAL_TARGETS)
jcov-bundles: $(JCOV_TARGETS)
.PHONY: all default product-bundles test-bundles \
.PHONY: product-bundles test-bundles \
docs-jdk-bundles docs-javase-bundles docs-reference-bundles \
static-libs-bundles static-libs-graal-bundles jcov-bundles
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2025, 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
@@ -23,10 +23,9 @@
# questions.
#
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
################################################################################
# When FIXPATH is set, let it process the file to make sure all paths are usable
# by system native tools. The FIXPATH tool assumes arguments preceded by an @
@@ -50,6 +49,6 @@ $(OUTPUTDIR)/compile_commands.json: $(wildcard $(MAKESUPPORT_OUTPUTDIR)/compile-
TARGETS += $(OUTPUTDIR)/compile_commands.json
all: $(TARGETS)
################################################################################
.PHONY: all
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -23,23 +23,17 @@
# questions.
#
include MakeFileStart.gmk
################################################################################
# Build demos for the JDK into $(SUPPORT_OUTPUTDIR)/demos/image.
################################################################################
default: all
include $(SPEC)
include MakeBase.gmk
include CopyFiles.gmk
include JavaCompilation.gmk
include TextFileProcessing.gmk
include ZipArchive.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, CompileDemos-pre.gmk))
# Prepare the find cache.
DEMO_SRC_DIRS += $(TOPDIR)/src/demo
@@ -132,12 +126,19 @@ define SetupBuildDemoBody
JARMAIN := $$($1_MAIN_CLASS), \
MANIFEST := $(DEMO_MANIFEST), \
EXTRA_MANIFEST_ATTR := $$($1_EXTRA_MANIFEST_ATTR), \
SRCZIP := $(SUPPORT_OUTPUTDIR)/demos/image/$$($1_DEMO_SUBDIR)/$1/src.zip, \
EXCLUDE_FILES := $$($1_EXCLUDE_FILES), \
DISABLED_WARNINGS := $$($1_DISABLED_WARNINGS), \
))
$1 += $$(BUILD_DEMO_$1)
$$(eval $$(call SetupZipArchive, ZIP_SRC_DEMO_$1, \
SRC := $$($1_MAIN_SRC) $$($1_EXTRA_SRC_DIR), \
ZIP := $(SUPPORT_OUTPUTDIR)/demos/image/$$($1_DEMO_SUBDIR)/$1/src.zip, \
EXCLUDE_FILES := $$($1_EXCLUDE_FILES), \
))
$1 += $$(ZIP_SRC_DEMO_$1)
endif
# Copy files. Sort is needed to remove duplicates.
@@ -257,11 +258,8 @@ ifneq ($(filter images, $(MAKECMDGOALS)), )
IMAGES_TARGETS := $(COPY_TO_TEST_IMAGE)
endif
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, CompileDemos-post.gmk))
all: $(TARGETS)
images: $(IMAGES_TARGETS)
.PHONY: all
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, 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
@@ -23,11 +23,9 @@
# questions.
#
# This must be the first rule
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
################################################################################
include CopyFiles.gmk
include JavaCompilation.gmk
@@ -148,5 +146,4 @@ TARGETS += $(BUILD_JAVAC_SERVER)
################################################################################
all: $(TARGETS)
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, 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
@@ -23,13 +23,12 @@
# questions.
#
# This must be the first rule
default: all
include MakeFileStart.gmk
################################################################################
include $(SPEC)
include MakeBase.gmk
include Modules.gmk
include JavaCompilation.gmk
include Modules.gmk
################################################################################
# If this is an imported module that has prebuilt classes, only compile
@@ -86,7 +85,15 @@ CreateHkTargets = \
################################################################################
# Include module specific build settings
-include Java.gmk
THIS_SNIPPET := modules/$(MODULE)/Java.gmk
ifneq ($(wildcard $(THIS_SNIPPET)), )
include MakeSnippetStart.gmk
include $(THIS_SNIPPET)
include MakeSnippetEnd.gmk
endif
################################################################################
# Setup the main compilation
@@ -148,6 +155,4 @@ endif
################################################################################
all: $(TARGETS)
.PHONY: all
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 2025, 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
@@ -23,14 +23,12 @@
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
include JavaCompilation.gmk
include MakeFileStart.gmk
################################################################################
include JavaCompilation.gmk
TOOLS_CLASSES_DIR := $(BUILDTOOLS_OUTPUTDIR)/tools_jigsaw_classes
# When using an external BUILDJDK, make it possible to shortcut building of
@@ -64,4 +62,4 @@ TARGETS += $(BUILD_JIGSAW_TOOLS)
################################################################################
all: $(TARGETS)
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2025, 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
@@ -23,19 +23,12 @@
# questions.
#
# This must be the first rule
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
################################################################################
include JavaCompilation.gmk
TARGETS :=
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, hotspot/CompileTools.gmk))
################################################################################
# Build tools needed for the JFR source code generation
@@ -51,7 +44,6 @@ $(eval $(call SetupJavaCompilation, BUILD_TOOLS_HOTSPOT, \
TARGETS += $(BUILD_TOOLS_HOTSPOT)
################################################################################
all: $(TARGETS)
.PHONY: all
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -23,21 +23,14 @@
# questions.
#
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
################################################################################
include CopyFiles.gmk
include JavaCompilation.gmk
include TextFileProcessing.gmk
################################################################################
$(eval $(call IncludeCustomExtension, CompileTools.gmk))
################################################################################
# Use += to be able to add to this from a custom extension
BUILD_TOOLS_SRC_DIRS += \
$(TOPDIR)/make/jdk/src/classes \
@@ -160,4 +153,6 @@ ifeq ($(ENABLE_PANDOC), true)
TARGETS += $(PANDOC_HTML_MANPAGE_FILTER_SETUP)
endif
all: $(TARGETS)
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, 2025, 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
@@ -23,13 +23,12 @@
# questions.
#
include MakeFileStart.gmk
################################################################################
# This makefile is called for every imported module to copy the non class
# contents into the exploded jdk image.
default: all
include $(SPEC)
include MakeBase.gmk
################################################################################
include CopyFiles.gmk
@@ -103,4 +102,6 @@ ifneq ($(CONF_DIR), )
TARGETS += $(COPY_CONF)
endif
all: $(TARGETS)
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2019, 2025, 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
@@ -23,15 +23,12 @@
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
include CopyFiles.gmk
include MakeFileStart.gmk
################################################################################
include CopyFiles.gmk
### TZDB tool needs files from java.time.zone package
define tzdb_copyfiles
@@ -51,3 +48,7 @@ $(eval $(call SetupCopyFiles, COPY_INTERIM_TZDB, \
################################################################################
all: $(COPY_INTERIM_TZDB)
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2025, 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
@@ -22,8 +22,7 @@
# or visit www.oracle.com if you need additional information or have any
# questions.
include $(SPEC)
include MakeBase.gmk
include MakeFileStart.gmk
################################################################################
@@ -47,7 +46,6 @@ $(JCOV_IMAGE_DIR)/release: $(JCOV_INPUT_IMAGE_DIR)/release
-t $(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR)/template.xml \
-rt $(JCOV_HOME)/lib/jcov_network_saver.jar \
-exclude 'java.lang.Object' \
-exclude 'jdk.internal.org.objectweb.**' \
-exclude jdk.test.Main -exclude '**\$Proxy*' \
$(JCOV_FILTERS) \
$(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR)
@@ -55,3 +53,7 @@ $(JCOV_IMAGE_DIR)/release: $(JCOV_INPUT_IMAGE_DIR)/release
$(RMDIR) $(JCOV_TEMP)
jcov-image: $(JCOV_IMAGE_DIR)/release
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, 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
@@ -23,10 +23,9 @@
# questions.
#
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
################################################################################
include CopyFiles.gmk
include Execute.gmk
@@ -36,8 +35,6 @@ ifeq ($(MODULE), )
$(error MODULE must be set when calling CreateJmods.gmk)
endif
$(eval $(call IncludeCustomExtension, CreateJmods.gmk))
################################################################################
JMODS_DIR := $(IMAGES_OUTPUTDIR)/jmods
@@ -187,7 +184,15 @@ endif
################################################################################
# Include module specific build settings
-include Jmod.gmk
THIS_SNIPPET := modules/$(MODULE)/Jmod.gmk
ifneq ($(wildcard $(THIS_SNIPPET)), )
include MakeSnippetStart.gmk
include $(THIS_SNIPPET)
include MakeSnippetEnd.gmk
endif
# Set main class
ifneq ($(JMOD_FLAGS_main_class), )
@@ -266,6 +271,4 @@ TARGETS += $(create_$(JMOD_FILE))
################################################################################
all: $(TARGETS)
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,4 +1,4 @@
# Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1997, 2025, 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
@@ -22,26 +22,7 @@
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
include CopyFiles.gmk
include Execute.gmk
include Modules.gmk
include ModuleTools.gmk
include ProcessMarkdown.gmk
include ToolsJdk.gmk
include ZipArchive.gmk
include TextFileProcessing.gmk
# This is needed to properly setup DOCS_MODULES.
$(eval $(call ReadImportMetaData))
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Docs.gmk))
include MakeFileStart.gmk
################################################################################
# This file generates all documentation for OpenJDK.
@@ -54,7 +35,19 @@ $(eval $(call IncludeCustomExtension, Docs.gmk))
#
# We will also generate separate, free-standing specifications from either
# markdown or existing html files.
#
################################################################################
include CopyFiles.gmk
include Execute.gmk
include Modules.gmk
include ProcessMarkdown.gmk
include TextFileProcessing.gmk
include ZipArchive.gmk
include $(TOPDIR)/make/ModuleTools.gmk
include $(TOPDIR)/make/ToolsJdk.gmk
# This is needed to properly setup DOCS_MODULES.
$(eval $(call ReadImportMetaData))
################################################################################
# Javadoc settings
@@ -105,17 +98,15 @@ JAVA_WARNINGS_ARE_ERRORS ?= -Werror
# The initial set of options for javadoc
JAVADOC_OPTIONS := -use -keywords -notimestamp \
-encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
-serialwarn -encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
-splitIndex --system none -javafx --expand-requires transitive \
--override-methods=summary \
--no-external-specs-page
--override-methods=summary
# The reference options must stay stable to allow for comparisons across the
# development cycle.
REFERENCE_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
-encoding ISO-8859-1 -breakiterator -splitIndex --system none \
-html5 -javafx --expand-requires transitive \
--no-external-specs-page
-serialwarn -encoding ISO-8859-1 -breakiterator -splitIndex --system none \
-html5 -javafx --expand-requires transitive
# Should we add DRAFT stamps to the generated javadoc?
ifeq ($(VERSION_IS_GA), true)
@@ -682,7 +673,7 @@ ifeq ($(ENABLE_PANDOC), true)
$(foreach m, $(ALL_MODULES), \
$(eval MAN_$m := $(call ApplySpecFilter, $(filter %.md, $(call FindFiles, \
$(call FindModuleManDirs, $m))))) \
$(call FindModuleManDirsForDocs, $m))))) \
$(if $(MAN_$m), \
$(eval $(call SetupProcessMarkdown, MAN_TO_HTML_$m, \
FILES := $(MAN_$m), \
@@ -763,10 +754,6 @@ $(eval $(call SetupZipArchive, BUILD_JAVADOC_ZIP, \
ZIP_TARGETS += $(BUILD_JAVADOC_ZIP)
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Docs-post.gmk))
################################################################################
# Bundles all generated specs into a zip archive, skipping javadocs.
@@ -808,7 +795,11 @@ all: docs-jdk-api-javadoc docs-jdk-api-graphs docs-javase-api-javadoc \
docs-reference-api-graphs docs-jdk-specs docs-jdk-index docs-zip \
docs-specs-zip
.PHONY: default all docs-jdk-api-javadoc docs-jdk-api-graphs \
.PHONY: docs-jdk-api-javadoc docs-jdk-api-graphs \
docs-javase-api-javadoc docs-javase-api-graphs \
docs-reference-api-javadoc docs-reference-api-graphs docs-jdk-specs \
docs-jdk-index docs-zip docs-specs-zip
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022, 2025, 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
@@ -23,18 +23,11 @@
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Doctor.gmk))
include MakeFileStart.gmk
################################################################################
#
# Help user diagnose possible errors and problems with the build environment.
#
################################################################################
prologue:
$(ECHO)
@@ -145,4 +138,8 @@ doctor: $(TARGETS)
all: doctor
.PHONY: default all doctor $(TARGETS)
.PHONY: doctor $(TARGETS)
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2025, 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
@@ -23,16 +23,14 @@
# questions.
#
# Runs a tool on the exploded image to improve performance
default: all
include $(SPEC)
include MakeBase.gmk
include Execute.gmk
include $(TOPDIR)/make/ModuleTools.gmk
include MakeFileStart.gmk
################################################################################
# Runs a tool on the exploded image to improve performance
################################################################################
include Execute.gmk
include $(TOPDIR)/make/ModuleTools.gmk
ALL_MODULEINFO_CLASSES := $(wildcard $(JDK_OUTPUTDIR)/modules/*/module-info.class)
@@ -47,6 +45,4 @@ TARGETS := $(optimize_image_TARGET)
################################################################################
all: $(TARGETS)
.PHONY: all default
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2025, 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
@@ -23,15 +23,12 @@
# questions.
#
include MakeFileStart.gmk
################################################################################
# Generate classlist
################################################################################
default: all
include $(SPEC)
include MakeBase.gmk
include CopyFiles.gmk
include JavaCompilation.gmk
@@ -148,4 +145,4 @@ TARGETS += $(COPY_JLI_TRACE)
################################################################################
all: $(TARGETS)
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, 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
@@ -23,12 +23,11 @@
# questions.
#
# Default target declared first
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
include ModuleTools.gmk
################################################################################
include $(TOPDIR)/make/ModuleTools.gmk
GENGRAPHS_DIR := $(IMAGES_OUTPUTDIR)/gengraphs
SPEC_DOTFILES_DIR := $(GENGRAPHS_DIR)/spec-dotfiles
@@ -50,3 +49,7 @@ $(GENGRAPHS_DIR)/module-summary.html: $(BUILD_JIGSAW_TOOLS) $(GENGRAPHS_DIR)/tec
$(TOOL_MODULESUMMARY) -o $@ --module-path $(IMAGES_OUTPUTDIR)/jmods
all: $(GENGRAPHS_DIR)/jdk.dot $(GENGRAPHS_DIR)/module-summary.html $(SPEC_DOTFILES_DIR)/java.se.dot
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 2025, 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
@@ -108,6 +108,7 @@ help:
$(info $(_) MICRO="OPT1=x;OPT2=y" # Control the MICRO test harness, use 'make test-only MICRO=help' to list)
$(info $(_) TEST_OPTS="OPT1=x;..." # Generic control of all test harnesses)
$(info $(_) TEST_VM_OPTS="ARG ..." # Same as setting TEST_OPTS to VM_OPTIONS="ARG ...")
$(info $(_) ALLOW="FOO,BAR" # Do not warn that FOO and BAR are non-control variables)
$(info )
$(if $(all_confs), $(info Available configurations in $(build_dir):) $(foreach var,$(all_confs),$(info * $(var))), \
$(info No configurations were found in $(build_dir).) $(info Run 'bash configure' to create a configuration.))
@@ -120,12 +121,12 @@ print-configurations:
@true
test-prebuilt:
@( cd $(topdir) && \
@( cd $(TOPDIR) && \
$(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) && \
@( 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)" )

View File

@@ -23,19 +23,14 @@
# questions.
#
# This makefile creates a jdk image overlaid with statically linked core
# libraries.
default: all
include $(SPEC)
include MakeBase.gmk
include CopyFiles.gmk
include MakeFileStart.gmk
################################################################################
# This makefile creates a jdk image overlaid with statically linked core
# libraries.
################################################################################
TARGETS :=
include CopyFiles.gmk
$(eval $(call SetupCopyFiles, COPY_JDK_IMG, \
SRC := $(JDK_IMAGE_DIR)/, \
@@ -54,6 +49,4 @@ TARGETS += $(COPY_STATIC_LIBS)
################################################################################
all: $(TARGETS)
.PHONY: all
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2020, 2025, 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
@@ -23,17 +23,14 @@
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
include JdkNativeCompilation.gmk
include MakeFileStart.gmk
################################################################################
# This makefile compiles and installs the hsdis library
#
################################################################################
include JdkNativeCompilation.gmk
HSDIS_OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/hsdis
REAL_HSDIS_NAME := hsdis-$(OPENJDK_TARGET_CPU_LEGACY_LIB)$(SHARED_LIBRARY_SUFFIX)
BUILT_HSDIS_LIB := $(HSDIS_OUTPUT_DIR)/$(REAL_HSDIS_NAME)
@@ -201,8 +198,8 @@ endif
TARGETS += install
.PHONY: build install
################################################################################
all: $(TARGETS)
.PHONY: all default build install
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, 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
@@ -23,12 +23,12 @@
# questions.
#
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
################################################################################
include CopyFiles.gmk
include DebugInfoUtils.gmk
include Execute.gmk
include Modules.gmk
include Utils.gmk
@@ -36,9 +36,6 @@ include Utils.gmk
JDK_TARGETS :=
JRE_TARGETS :=
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Images-pre.gmk))
################################################################################
# All modules for the current target platform.
@@ -281,27 +278,6 @@ else
endif
CMDS_TARGET_SUBDIR := bin
# Param 1 - dir to find debuginfo files in
FindDebuginfoFiles = \
$(wildcard $(addprefix $1/*, $(DEBUGINFO_SUFFIXES)) \
$(addprefix $1/*/*, $(DEBUGINFO_SUFFIXES)) \
$(addprefix $1/*/*/*, $(DEBUGINFO_SUFFIXES)))
# Pick the correct debug info files to copy, either zipped or not.
ifeq ($(ZIP_EXTERNAL_DEBUG_SYMBOLS), true)
DEBUGINFO_SUFFIXES += .diz
else
DEBUGINFO_SUFFIXES := .debuginfo .pdb .map
# On Macosx, if debug symbols have not been zipped, find all files inside *.dSYM
# dirs.
ifeq ($(call isTargetOs, macosx), true)
$(call FillFindCache, \
$(SUPPORT_OUTPUTDIR)/modules_libs $(SUPPORT_OUTPUTDIR)/modules_cmds)
FindDebuginfoFiles = \
$(if $(wildcard $1), $(call containing, .dSYM/, $(call FindFiles, $1)))
endif
endif
# Param 1 - either JDK or JRE
SetupCopyDebuginfo = \
$(foreach m, $(ALL_$1_MODULES), \
@@ -329,12 +305,6 @@ $(call SetupCopyDebuginfo,SYMBOLS)
################################################################################
# Include custom post hook here to make it possible to augment the target lists
# before actual target prerequisites are declared.
$(eval $(call IncludeCustomExtension, Images-post.gmk))
################################################################################
$(JRE_TARGETS): $(JLINK_JRE_TARGETS)
$(JDK_TARGETS): $(JLINK_JDK_TARGETS)
@@ -344,4 +314,8 @@ symbols: $(SYMBOLS_TARGETS)
all: jdk jre symbols
.PHONY: default all jdk jre symbols
.PHONY: jdk jre symbols
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 2025, 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
@@ -23,263 +23,84 @@
# questions.
#
include MakeFileStart.gmk
################################################################################
# This is the bootstrapping part of the build. This file is included from the
# top level Makefile, and is responsible for launching the Main.gmk file with
# the proper make and the proper make arguments.
# Init.gmk sits between PreInit.gmk and Main.gmk when bootstrapping the build.
# It is called from PreInit.gmk, and its main responsibility is to launch
# Main.gmk with the proper make and the proper make arguments.
# PreMain.gmk has provided us with a proper SPEC. This allows us to use the
# value of $(MAKE) for all further make calls.
################################################################################
# This must be the first rule
default:
.PHONY: default
# Our helper functions.
include $(TOPDIR)/make/InitSupport.gmk
include LogUtils.gmk
# Force early generation of module-deps.gmk and find-tests.gmk
GENERATE_MODULE_DEPS_FILE := true
include Modules.gmk
GENERATE_FIND_TESTS_FILE := true
include FindTests.gmk
# Inclusion of this pseudo-target will cause make to execute this file
# serially, regardless of -j.
.NOTPARALLEL:
ifeq ($(HAS_SPEC), )
##############################################################################
# This is the default mode. We have not been recursively called with a SPEC.
##############################################################################
# Parse COMPARE_BUILD (for makefile development)
$(eval $(call ParseCompareBuild))
# Include our helper functions.
include $(topdir)/make/InitSupport.gmk
# Setup reproducible build environment
$(eval $(call SetupReproducibleBuild))
# Here are "global" targets, i.e. targets that can be executed without having
# a configuration. This will define ALL_GLOBAL_TARGETS.
include $(topdir)/make/Global.gmk
# Targets provided by Init.gmk.
ALL_INIT_TARGETS := print-modules print-targets print-configuration \
print-tests reconfigure pre-compare-build post-compare-build
# CALLED_TARGETS is the list of targets that the user provided,
# or "default" if unspecified.
CALLED_TARGETS := $(if $(MAKECMDGOALS), $(MAKECMDGOALS), default)
# Extract non-global targets that require a spec file.
CALLED_SPEC_TARGETS := $(filter-out $(ALL_GLOBAL_TARGETS), $(CALLED_TARGETS))
# If we have only global targets, or if we are called with -qp (assuming an
# external part, e.g. bash completion, is trying to understand our targets),
# we will skip SPEC location and the sanity checks.
ifeq ($(CALLED_SPEC_TARGETS), )
ONLY_GLOBAL_TARGETS := true
endif
ifeq ($(findstring p, $(MAKEFLAGS))$(findstring q, $(MAKEFLAGS)), pq)
ONLY_GLOBAL_TARGETS := true
endif
ifeq ($(ONLY_GLOBAL_TARGETS), true)
############################################################################
# We have only global targets, or are called with -pq.
############################################################################
ifeq ($(wildcard $(SPEC)), )
# If we have no SPEC provided, we will just make a "best effort" target list.
# First try to grab any available pre-existing main-targets.gmk.
main_targets_file := $(firstword $(wildcard $(build_dir)/*/make-support/main-targets.gmk))
ifneq ($(main_targets_file), )
# Extract the SPEC that corresponds to this main-targets.gmk file.
SPEC := $(patsubst %/make-support/main-targets.gmk, %/spec.gmk, $(main_targets_file))
else
# None found, pick an arbitrary SPEC for which to generate a file
SPEC := $(firstword $(all_spec_files))
endif
endif
ifneq ($(wildcard $(SPEC)), )
$(eval $(call DefineMainTargets, LAZY, $(SPEC)))
else
# If we have no configurations we can not provide any main targets.
ALL_MAIN_TARGETS :=
endif
ALL_TARGETS := $(sort $(ALL_GLOBAL_TARGETS) $(ALL_MAIN_TARGETS) $(ALL_INIT_TARGETS))
# Just list all our targets.
$(ALL_TARGETS):
.PHONY: $(ALL_TARGETS)
else
############################################################################
# This is the normal case, we have been called from the command line by the
# user and we need to call ourself back with a proper SPEC.
# We have at least one non-global target, so we need to find a spec file.
############################################################################
# Basic checks on environment and command line.
$(eval $(call CheckControlVariables))
$(eval $(call CheckDeprecatedEnvironment))
$(eval $(call CheckInvalidMakeFlags))
# Check that CONF_CHECK is valid.
$(eval $(call ParseConfCheckOption))
# Check that the LOG given is valid, and set LOG_LEVEL, LOG_NOFILE, MAKE_LOG_VARS and MAKE_LOG_FLAGS.
# If no LOG= was given on command line, but we have a non-standard default
# value, use that instead and re-parse log level.
ifeq ($(LOG), )
ifneq ($(DEFAULT_LOG), )
override LOG := $(DEFAULT_LOG)
$(eval $(call ParseLogLevel))
# After this SPECS contain 1..N spec files (otherwise ParseConfAndSpec fails).
$(eval $(call ParseConfAndSpec))
# Extract main targets from Main.gmk using the spec(s) provided. In theory,
# with multiple specs, we should find the intersection of targets provided
# by all specs, but we approximate this by an arbitrary spec from the list.
# This will setup ALL_MAIN_TARGETS.
$(eval $(call DefineMainTargets, FORCE, $(firstword $(SPECS))))
# Separate called targets depending on type.
INIT_TARGETS := $(filter $(ALL_INIT_TARGETS), $(CALLED_SPEC_TARGETS))
MAIN_TARGETS := $(filter $(ALL_MAIN_TARGETS), $(CALLED_SPEC_TARGETS))
SEQUENTIAL_TARGETS := $(filter dist-clean clean%, $(MAIN_TARGETS))
PARALLEL_TARGETS := $(filter-out $(SEQUENTIAL_TARGETS), $(MAIN_TARGETS))
# 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)/*)) \
$(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 $@)))'."
$(call PrintConfCheckFailed)
@exit 2
else ifeq ($(CONF_CHECK), auto)
@echo Note: The configuration is not up to date for \
"'$(lastword $(subst /, , $(dir $@)))'."
@( cd $(topdir) && \
$(MAKE) $(MFLAGS) $(MAKE_LOG_FLAGS) -r -R -f $(topdir)/make/Init.gmk \
SPEC=$@ HAS_SPEC=true ACTUAL_TOPDIR=$(topdir) \
reconfigure )
else ifeq ($(CONF_CHECK), ignore)
# Do nothing
endif
# Do not let make delete spec files even if aborted while doing a reconfigure
.PRECIOUS: $(SPECS)
# Unless reconfigure is explicitly called, let all main targets depend on
# the spec files to be up to date.
ifeq ($(findstring reconfigure, $(INIT_TARGETS)), )
$(MAIN_TARGETS): $(SPECS)
endif
make-info:
ifneq ($(findstring $(LOG_LEVEL), info debug trace), )
$(info Running make as '$(strip $(MAKE) $(MFLAGS) \
$(COMMAND_LINE_VARIABLES) $(MAKECMDGOALS))')
endif
MAKE_INIT_WITH_SPEC_ARGUMENTS := ACTUAL_TOPDIR=$(topdir) \
USER_MAKE_VARS="$(USER_MAKE_VARS)" MAKE_LOG_FLAGS=$(MAKE_LOG_FLAGS) \
$(MAKE_LOG_VARS) \
INIT_TARGETS="$(INIT_TARGETS)" \
SEQUENTIAL_TARGETS="$(SEQUENTIAL_TARGETS)" \
PARALLEL_TARGETS="$(PARALLEL_TARGETS)"
# Now the init and main targets will be called, once for each SPEC. The
# recipe will be run once for every target specified, but we only want to
# execute the recipe a single time, hence the TARGET_DONE with a dummy
# command if true.
# The COMPARE_BUILD part implements special support for makefile development.
$(ALL_INIT_TARGETS) $(ALL_MAIN_TARGETS): make-info
@$(if $(TARGET_DONE), \
true \
, \
( cd $(topdir) && \
$(foreach spec, $(SPECS), \
$(MAKE) $(MFLAGS) $(MAKE_LOG_FLAGS) -r -R -j 1 -f $(topdir)/make/Init.gmk \
SPEC=$(spec) HAS_SPEC=true $(MAKE_INIT_WITH_SPEC_ARGUMENTS) \
main && \
$(if $(and $(COMPARE_BUILD), $(PARALLEL_TARGETS)), \
$(MAKE) $(MFLAGS) $(MAKE_LOG_FLAGS) -r -R -f $(topdir)/make/Init.gmk \
SPEC=$(spec) HAS_SPEC=true ACTUAL_TOPDIR=$(topdir) \
COMPARE_BUILD="$(COMPARE_BUILD)" pre-compare-build && \
$(MAKE) $(MFLAGS) $(MAKE_LOG_FLAGS) -r -R -j 1 -f $(topdir)/make/Init.gmk \
SPEC=$(spec) HAS_SPEC=true $(MAKE_INIT_WITH_SPEC_ARGUMENTS) \
COMPARE_BUILD="$(COMPARE_BUILD):NODRYRUN=true" main && \
$(MAKE) $(MFLAGS) $(MAKE_LOG_FLAGS) -r -R -f $(topdir)/make/Init.gmk \
SPEC=$(spec) HAS_SPEC=true ACTUAL_TOPDIR=$(topdir) \
COMPARE_BUILD="$(COMPARE_BUILD):NODRYRUN=true" post-compare-build && \
) \
) true ) \
$(eval TARGET_DONE=true) \
)
.PHONY: $(ALL_MAIN_TARGETS) $(ALL_INIT_TARGETS)
endif # $(ONLY_GLOBAL_TARGETS)!=true
else # HAS_SPEC=true
##############################################################################
# Now we have a spec. This part provides the "main" target that acts as a
# trampoline to call the Main.gmk with the value of $(MAKE) found in the spec
# file.
##############################################################################
include $(SPEC)
# Our helper functions.
include $(TOPDIR)/make/InitSupport.gmk
# Parse COMPARE_BUILD (for makefile development)
$(eval $(call ParseCompareBuild))
# Setup reproducible build environment
$(eval $(call SetupReproducibleBuild))
# If no LOG= was given on command line, but we have a non-standard default
# value, use that instead and re-parse log level.
ifeq ($(LOG), )
ifneq ($(DEFAULT_LOG), )
override LOG := $(DEFAULT_LOG)
$(eval $(call ParseLogLevel))
endif
endif
endif
ifeq ($(LOG_NOFILE), true)
# Disable build log if LOG=[level,]nofile was given
override BUILD_LOG_PIPE :=
override BUILD_LOG_PIPE_SIMPLE :=
endif
ifeq ($(LOG_NOFILE), true)
# Disable build log if LOG=[level,]nofile was given
override BUILD_LOG_PIPE :=
override BUILD_LOG_PIPE_SIMPLE :=
endif
ifeq ($(filter dist-clean, $(SEQUENTIAL_TARGETS)), dist-clean)
# We can't have a log file if we're about to remove it.
override BUILD_LOG_PIPE :=
override BUILD_LOG_PIPE_SIMPLE :=
endif
ifeq ($(filter dist-clean, $(SEQUENTIAL_TARGETS)), dist-clean)
# We can't have a log file if we're about to remove it.
override BUILD_LOG_PIPE :=
override BUILD_LOG_PIPE_SIMPLE :=
endif
ifeq ($(OUTPUT_SYNC_SUPPORTED), true)
OUTPUT_SYNC_FLAG := -O$(OUTPUT_SYNC)
endif
ifeq ($(OUTPUT_SYNC_SUPPORTED), true)
OUTPUT_SYNC_FLAG := -O$(OUTPUT_SYNC)
endif
##############################################################################
# Init targets
##############################################################################
##############################################################################
# Init targets. These are handled fully, here and now.
##############################################################################
print-modules:
print-modules:
( cd $(TOPDIR) && \
$(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
NO_RECIPES=true print-modules )
print-targets:
print-targets:
( cd $(TOPDIR) && \
$(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
NO_RECIPES=true print-targets )
print-tests:
print-tests:
( cd $(TOPDIR) && \
$(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
NO_RECIPES=true print-tests )
print-configuration:
$(ECHO) $(CONFIGURE_COMMAND_LINE)
print-configuration:
$(ECHO) $(CONFIGURE_COMMAND_LINE)
reconfigure:
reconfigure:
ifneq ($(REAL_CONFIGURE_COMMAND_EXEC_FULL), )
$(ECHO) "Re-running configure using original command line '$(REAL_CONFIGURE_COMMAND_EXEC_SHORT) $(REAL_CONFIGURE_COMMAND_LINE)'"
$(eval RECONFIGURE_COMMAND := $(REAL_CONFIGURE_COMMAND_EXEC_FULL) $(REAL_CONFIGURE_COMMAND_LINE))
@@ -295,25 +116,27 @@ else # HAS_SPEC=true
CUSTOM_CONFIG_DIR="$(CUSTOM_CONFIG_DIR)" \
$(RECONFIGURE_COMMAND) )
##############################################################################
# The main target, for delegating into Main.gmk
##############################################################################
.PHONY: print-modules print-targets print-tests print-configuration reconfigure
MAIN_TARGETS := $(SEQUENTIAL_TARGETS) $(PARALLEL_TARGETS) $(COMPARE_BUILD_MAKE)
# If building the default target, add what they are to the description.
DESCRIPTION_TARGETS := $(strip $(MAIN_TARGETS))
ifeq ($(DESCRIPTION_TARGETS), default)
DESCRIPTION_TARGETS += ($(DEFAULT_MAKE_TARGET))
endif
TARGET_DESCRIPTION := target$(if $(word 2, $(MAIN_TARGETS)),s) \
'$(strip $(DESCRIPTION_TARGETS))' in configuration '$(CONF_NAME)'
##############################################################################
# The main target. This will delegate all other targets into Main.gmk.
##############################################################################
# MAKEOVERRIDES is automatically set and propagated by Make to sub-Make calls.
# We need to clear it of the init-specific variables. The user-specified
# variables are explicitly propagated using $(USER_MAKE_VARS).
main: MAKEOVERRIDES :=
MAIN_TARGETS := $(SEQUENTIAL_TARGETS) $(PARALLEL_TARGETS) $(COMPARE_BUILD_MAKE)
# If building the default target, add what they are to the description.
DESCRIPTION_TARGETS := $(strip $(MAIN_TARGETS))
ifeq ($(DESCRIPTION_TARGETS), default)
DESCRIPTION_TARGETS += ($(DEFAULT_MAKE_TARGET))
endif
TARGET_DESCRIPTION := target$(if $(word 2, $(MAIN_TARGETS)),s) \
'$(strip $(DESCRIPTION_TARGETS))' in configuration '$(CONF_NAME)'
main: $(INIT_TARGETS)
# MAKEOVERRIDES is automatically set and propagated by Make to sub-Make calls.
# We need to clear it of the init-specific variables. The user-specified
# variables are explicitly propagated using $(USER_MAKE_VARS).
main: MAKEOVERRIDES :=
main: $(INIT_TARGETS)
ifneq ($(SEQUENTIAL_TARGETS)$(PARALLEL_TARGETS), )
$(call RotateLogFiles)
$(PRINTF) "Building $(TARGET_DESCRIPTION)\n" $(BUILD_LOG_PIPE_SIMPLE)
@@ -333,14 +156,14 @@ else # HAS_SPEC=true
# treat it as NOT using jobs at all.
( cd $(TOPDIR) && \
$(NICE) $(MAKE) $(MAKE_ARGS) $(OUTPUT_SYNC_FLAG) \
$(if $(JOBS), -j $(JOBS)) \
$(if $(JOBS), -j $(JOBS)) \
-f make/Main.gmk $(USER_MAKE_VARS) \
$(PARALLEL_TARGETS) $(COMPARE_BUILD_MAKE) $(BUILD_LOG_PIPE) || \
( exitcode=$$? && \
$(PRINTF) "\nERROR: Build failed for $(TARGET_DESCRIPTION) (exit code $$exitcode) \n" \
$(BUILD_LOG_PIPE_SIMPLE) && \
cd $(TOPDIR) && $(MAKE) $(MAKE_ARGS) -j 1 -f make/Init.gmk \
HAS_SPEC=true on-failure ; \
on-failure ; \
exit $$exitcode ) )
$(call CleanupJavacServer)
$(call StopGlobalTimer)
@@ -353,7 +176,7 @@ else # HAS_SPEC=true
$(call ReportProfileTimes)
endif
on-failure:
on-failure:
$(call CleanupJavacServer)
$(call StopGlobalTimer)
$(call ReportBuildTimes)
@@ -365,15 +188,18 @@ else # HAS_SPEC=true
$(call CleanupCompareBuild)
endif
# Support targets for COMPARE_BUILD, used for makefile development
pre-compare-build:
# Support targets for COMPARE_BUILD, used for makefile development
pre-compare-build:
$(call WaitForJavacServerFinish)
$(call PrepareCompareBuild)
post-compare-build:
post-compare-build:
$(call WaitForJavacServerFinish)
$(call CleanupCompareBuild)
$(call CompareBuildDoComparison)
.PHONY: print-targets print-modules reconfigure main on-failure
endif
.PHONY: main on-failure pre-compare-build post-compare-build
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -23,396 +23,114 @@
# questions.
#
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
################################################################################
# This file contains helper functions for Init.gmk.
# It is divided in two parts, depending on if a SPEC is present or not
# (HAS_SPEC is true or not).
################################################################################
ifndef _INITSUPPORT_GMK
_INITSUPPORT_GMK := 1
# Define basic logging setup
BUILD_LOG := $(OUTPUTDIR)/build.log
BUILD_PROFILE_LOG := $(OUTPUTDIR)/build-profile.log
ifeq ($(HAS_SPEC), )
BUILD_LOG_PIPE := > >($(TEE) -a $(BUILD_LOG)) 2> >($(TEE) -a $(BUILD_LOG) >&2) && wait
# Use this for simple echo/printf commands that are never expected to print
# to stderr.
BUILD_LOG_PIPE_SIMPLE := | $(TEE) -a $(BUILD_LOG)
# COMMA is defined in spec.gmk, but that is not included yet
COMMA := ,
# Include the corresponding closed file, if present.
ifneq ($(CUSTOM_MAKE_DIR), )
-include $(CUSTOM_MAKE_DIR)/InitSupport.gmk
# Setup the build environment to match the requested specification on
# level of reproducible builds
define SetupReproducibleBuild
ifeq ($$(SOURCE_DATE), updated)
# For static values of SOURCE_DATE (not "updated"), these are set in spec.gmk
export SOURCE_DATE_EPOCH := $$(shell $$(DATE) +"%s")
export SOURCE_DATE_ISO_8601 := $$(call EpochToISO8601, $$(SOURCE_DATE_EPOCH))
endif
endef
##############################################################################
# Helper functions for the initial part of Init.gmk, before the spec file is
# loaded. Most of these functions provide parsing and setting up make options
# from the command-line.
##############################################################################
# Parse COMPARE_BUILD into COMPARE_BUILD_*
# Syntax: COMPARE_BUILD=CONF=<configure options>:PATCH=<patch file>:
# MAKE=<make targets>:COMP_OPTS=<compare script options>:
# COMP_DIR=<compare script base dir>|<default>:
# FAIL=<bool>
# If neither CONF or PATCH is given, assume <default> means CONF if it
# begins with "--", otherwise assume it means PATCH.
# MAKE and COMP_OPTS can only be used with CONF and/or PATCH specified.
# If any value contains "+", it will be replaced by space.
# FAIL can be set to false to have the return value of compare be ignored.
define ParseCompareBuild
ifneq ($$(COMPARE_BUILD), )
COMPARE_BUILD_OUTPUTDIR := $(WORKSPACE_ROOT)/build/compare-build/$(CONF_NAME)
COMPARE_BUILD_FAIL := true
# Make control variables, handled by Init.gmk
INIT_CONTROL_VARIABLES += LOG CONF CONF_NAME SPEC JOBS TEST_JOBS CONF_CHECK \
COMPARE_BUILD JTREG GTEST MICRO TEST_OPTS TEST_VM_OPTS TEST_DEPS
# All known make control variables
MAKE_CONTROL_VARIABLES := $(INIT_CONTROL_VARIABLES) TEST JDK_FILTER SPEC_FILTER
# Define a simple reverse function.
# Should maybe move to MakeBase.gmk, but we can't include that file now.
reverse = \
$(if $(strip $(1)), $(call reverse, $(wordlist 2, $(words $(1)), $(1)))) \
$(firstword $(1))
# The variable MAKEOVERRIDES contains variable assignments from the command
# line, but in reverse order to what the user entered.
# The '§' <=> '\ 'dance is needed to keep values with space in them connected.
COMMAND_LINE_VARIABLES := $(subst §,\ , $(call reverse, $(subst \ ,§,$(MAKEOVERRIDES))))
# A list like FOO="val1" BAR="val2" containing all user-supplied make
# variables that we should propagate.
# The '§' <=> '\ 'dance is needed to keep values with space in them connected.
USER_MAKE_VARS := $(subst §,\ , $(filter-out $(addsuffix =%, $(INIT_CONTROL_VARIABLES)), \
$(subst \ ,§,$(MAKEOVERRIDES))))
# Setup information about available configurations, if any.
ifneq ($(CUSTOM_ROOT), )
build_dir = $(CUSTOM_ROOT)/build
else
build_dir = $(topdir)/build
endif
all_spec_files = $(wildcard $(build_dir)/*/spec.gmk)
# Extract the configuration names from the path
all_confs = $(patsubst %/spec.gmk, %, $(patsubst $(build_dir)/%, %, $(all_spec_files)))
# Check for unknown command-line variables
define CheckControlVariables
command_line_variables := $$(strip $$(foreach var, \
$$(subst \ ,_,$$(MAKEOVERRIDES)), \
$$(firstword $$(subst =, , $$(var)))))
unknown_command_line_variables := $$(strip \
$$(filter-out $$(MAKE_CONTROL_VARIABLES), $$(command_line_variables)))
ifneq ($$(unknown_command_line_variables), )
$$(info Note: Command line contains non-control variables:)
$$(foreach var, $$(unknown_command_line_variables), $$(info * $$(var)=$$($$(var))))
$$(info Make sure it is not mistyped, and that you intend to override this variable.)
$$(info 'make help' will list known control variables.)
$$(info )
endif
endef
# Check for deprecated ALT_ variables
define CheckDeprecatedEnvironment
defined_alt_variables := $$(filter ALT_%, $$(.VARIABLES))
ifneq ($$(defined_alt_variables), )
$$(info Warning: You have the following ALT_ variables set:)
$$(foreach var, $$(defined_alt_variables), $$(info * $$(var)=$$($$(var))))
$$(info ALT_ variables are deprecated, and may result in a failed build.)
$$(info Please clean your environment.)
$$(info )
endif
endef
# Check for invalid make flags like -j
define CheckInvalidMakeFlags
# This is a trick to get this rule to execute before any other rules
# MAKEFLAGS only indicate -j if read in a recipe (!)
$$(topdir)/make/Init.gmk: .FORCE
$$(if $$(findstring --jobserver, $$(MAKEFLAGS)), \
$$(info Error: 'make -jN' is not supported, use 'make JOBS=N') \
$$(error Cannot continue) \
)
.FORCE:
.PHONY: .FORCE
endef
# Check that the CONF_CHECK option is valid and set up handling
define ParseConfCheckOption
ifeq ($$(CONF_CHECK), )
# Default behavior is fail
CONF_CHECK := fail
else ifneq ($$(filter-out auto fail ignore, $$(CONF_CHECK)), )
$$(info Error: CONF_CHECK must be one of: auto, fail or ignore.)
$$(error Cannot continue)
endif
endef
define ParseConfAndSpec
ifneq ($$(origin SPEC), undefined)
# We have been given a SPEC, check that it works out properly
ifneq ($$(origin CONF), undefined)
# We also have a CONF argument. We can't have both.
$$(info Error: Cannot use CONF=$$(CONF) and SPEC=$$(SPEC) at the same time. Choose one.)
$$(error Cannot continue)
endif
ifneq ($$(origin CONF_NAME), undefined)
# We also have a CONF_NAME argument. We can't have both.
$$(info Error: Cannot use CONF_NAME=$$(CONF_NAME) and SPEC=$$(SPEC) at the same time. Choose one.)
$$(error Cannot continue)
endif
ifeq ($$(wildcard $$(SPEC)), )
$$(info Error: Cannot locate spec.gmk, given by SPEC=$$(SPEC).)
$$(error Cannot continue)
endif
ifeq ($$(filter /%, $$(SPEC)), )
# If given with relative path, make it absolute
SPECS := $$(CURDIR)/$$(strip $$(SPEC))
else
SPECS := $$(SPEC)
endif
# For now, unset this SPEC variable.
override SPEC :=
ifneq ($$(findstring :, $$(COMPARE_BUILD)), )
$$(foreach part, $$(subst :, , $$(COMPARE_BUILD)), \
$$(if $$(filter PATCH=%, $$(part)), \
$$(eval COMPARE_BUILD_PATCH = $$(strip $$(patsubst PATCH=%, %, $$(part)))) \
) \
$$(if $$(filter CONF=%, $$(part)), \
$$(eval COMPARE_BUILD_CONF = $$(strip $$(subst +, , $$(patsubst CONF=%, %, $$(part))))) \
) \
$$(if $$(filter MAKE=%, $$(part)), \
$$(eval COMPARE_BUILD_MAKE = $$(strip $$(subst +, , $$(patsubst MAKE=%, %, $$(part))))) \
) \
$$(if $$(filter COMP_OPTS=%, $$(part)), \
$$(eval COMPARE_BUILD_COMP_OPTS = $$(strip $$(subst +, , $$(patsubst COMP_OPTS=%, %, $$(part))))) \
) \
$$(if $$(filter COMP_DIR=%, $$(part)), \
$$(eval COMPARE_BUILD_COMP_DIR = $$(strip $$(subst +, , $$(patsubst COMP_DIR=%, %, $$(part))))) \
) \
$$(if $$(filter FAIL=%, $$(part)), \
$$(eval COMPARE_BUILD_FAIL = $$(strip $$(subst +, , $$(patsubst FAIL=%, %, $$(part))))) \
) \
$$(if $$(filter NODRYRUN=%, $$(part)), \
$$(eval COMPARE_BUILD_NODRYRUN = $$(strip $$(subst +, , $$(patsubst NODRYRUN=%, %, $$(part))))) \
) \
)
else
# Use spec.gmk files in the build output directory
ifeq ($$(all_spec_files), )
ifneq ($(CUSTOM_ROOT), )
$$(info Error: No configurations found for $$(CUSTOM_ROOT).)
else
$$(info Error: No configurations found for $$(topdir).)
endif
$$(info Please run 'bash configure' to create a configuration.)
$$(info )
$$(error Cannot continue)
endif
ifneq ($$(origin CONF_NAME), undefined)
ifneq ($$(origin CONF), undefined)
# We also have a CONF argument. We can't have both.
$$(info Error: Cannot use CONF=$$(CONF) and CONF_NAME=$$(CONF_NAME) at the same time. Choose one.)
$$(error Cannot continue)
endif
matching_conf := $$(strip $$(filter $$(CONF_NAME), $$(all_confs)))
ifeq ($$(matching_conf), )
$$(info Error: No configurations found matching CONF_NAME=$$(CONF_NAME).)
$$(info Available configurations in $$(build_dir):)
$$(foreach var, $$(all_confs), $$(info * $$(var)))
$$(error Cannot continue)
else ifneq ($$(words $$(matching_conf)), 1)
$$(info Error: Matching more than one configuration CONF_NAME=$$(CONF_NAME).)
$$(info Available configurations in $$(build_dir):)
$$(foreach var, $$(all_confs), $$(info * $$(var)))
$$(error Cannot continue)
else
$$(info Building configuration '$$(matching_conf)' (matching CONF_NAME=$$(CONF_NAME)))
endif
# Create a SPEC definition. This will contain the path to exactly one spec file.
SPECS := $$(build_dir)/$$(matching_conf)/spec.gmk
else ifneq ($$(origin CONF), undefined)
# User have given a CONF= argument.
ifeq ($$(CONF), )
# If given CONF=, match all configurations
matching_confs := $$(strip $$(all_confs))
else
# Otherwise select those that contain the given CONF string
ifeq ($$(patsubst !%,,$$(CONF)), )
# A CONF starting with ! means we should negate the search term
matching_confs := $$(strip $$(foreach var, $$(all_confs), \
$$(if $$(findstring $$(subst !,,$$(CONF)), $$(var)), ,$$(var))))
else
matching_confs := $$(strip $$(foreach var, $$(all_confs), \
$$(if $$(findstring $$(CONF), $$(var)), $$(var))))
endif
ifneq ($$(filter $$(CONF), $$(matching_confs)), )
# If we found an exact match, use that
matching_confs := $$(CONF)
# Don't repeat this output on make restarts caused by including
# generated files.
ifeq ($$(MAKE_RESTARTS), )
$$(info Using exact match for CONF=$$(CONF) (other matches are possible))
endif
endif
endif
ifeq ($$(matching_confs), )
$$(info Error: No configurations found matching CONF=$$(CONF).)
$$(info Available configurations in $$(build_dir):)
$$(foreach var, $$(all_confs), $$(info * $$(var)))
$$(error Cannot continue)
else
# Don't repeat this output on make restarts caused by including
# generated files.
ifeq ($$(MAKE_RESTARTS), )
ifeq ($$(words $$(matching_confs)), 1)
ifneq ($$(findstring $$(LOG_LEVEL), info debug trace), )
$$(info Building configuration '$$(matching_confs)' (matching CONF=$$(CONF)))
endif
else
$$(info Building these configurations (matching CONF=$$(CONF)):)
$$(foreach var, $$(matching_confs), $$(info * $$(var)))
endif
endif
endif
# Create a SPEC definition. This will contain the path to one or more spec.gmk files.
SPECS := $$(addsuffix /spec.gmk, $$(addprefix $$(build_dir)/, $$(matching_confs)))
# Separate handling for single field case, to allow for spaces in values.
ifneq ($$(filter PATCH=%, $$(COMPARE_BUILD)), )
COMPARE_BUILD_PATCH = $$(strip $$(patsubst PATCH=%, %, $$(COMPARE_BUILD)))
else ifneq ($$(filter CONF=%, $$(COMPARE_BUILD)), )
COMPARE_BUILD_CONF = $$(strip $$(subst +, , $$(patsubst CONF=%, %, $$(COMPARE_BUILD))))
else ifneq ($$(filter --%, $$(COMPARE_BUILD)), )
# Assume CONF if value begins with --
COMPARE_BUILD_CONF = $$(strip $$(subst +, , $$(COMPARE_BUILD)))
else
# No CONF or SPEC given, check the available configurations
ifneq ($$(words $$(all_spec_files)), 1)
$$(info Error: No CONF given, but more than one configuration found.)
$$(info Available configurations in $$(build_dir):)
$$(foreach var, $$(all_confs), $$(info * $$(var)))
$$(info Please retry building with CONF=<config pattern> (or SPEC=<spec file>).)
$$(info )
$$(error Cannot continue)
# Otherwise assume patch file
COMPARE_BUILD_PATCH = $$(strip $$(COMPARE_BUILD))
endif
endif
ifneq ($$(COMPARE_BUILD_PATCH), )
ifneq ($$(wildcard $$(WORKSPACE_ROOT)/$$(COMPARE_BUILD_PATCH)), )
# Assume relative path, if file exists
COMPARE_BUILD_PATCH := $$(wildcard $$(WORKSPACE_ROOT)/$$(COMPARE_BUILD_PATCH))
else ifeq ($$(wildcard $$(COMPARE_BUILD_PATCH)), )
$$(error Patch file $$(COMPARE_BUILD_PATCH) does not exist)
endif
ifneq ($$(COMPARE_BUILD_NODRYRUN), true)
PATCH_DRY_RUN := $$(shell cd $$(WORKSPACE_ROOT) && $$(PATCH) --dry-run -p1 < $$(COMPARE_BUILD_PATCH) > /dev/null 2>&1 || $$(ECHO) FAILED)
ifeq ($$(PATCH_DRY_RUN), FAILED)
$$(error Patch file $$(COMPARE_BUILD_PATCH) does not apply cleanly)
endif
# We found exactly one configuration, use it
SPECS := $$(strip $$(all_spec_files))
endif
endif
endef
# Extract main targets from Main.gmk using the spec provided in $2.
#
# Param 1: FORCE = force generation of main-targets.gmk or LAZY = do not force.
# Param 2: The SPEC file to use.
define DefineMainTargets
# We will start by making sure the main-targets.gmk file is removed, if
# make has not been restarted. By the -include, we will trigger the
# rule for generating the file (which is never there since we removed it),
# thus generating it fresh, and make will restart, incrementing the restart
# count.
main_targets_file := $$(dir $(strip $2))make-support/main-targets.gmk
ifeq ($$(MAKE_RESTARTS), )
# Only do this if make has not been restarted, and if we do not force it.
ifeq ($(strip $1), FORCE)
$$(shell rm -f $$(main_targets_file))
endif
ifneq ($$(COMPARE_BUILD_FAIL), true)
COMPARE_BUILD_IGNORE_RESULT := || true
endif
$$(main_targets_file):
@( cd $$(topdir) && \
$$(MAKE) $$(MAKE_LOG_FLAGS) -r -R -f $$(topdir)/make/Main.gmk \
-I $$(topdir)/make/common SPEC=$(strip $2) NO_RECIPES=true \
$$(MAKE_LOG_VARS) \
create-main-targets-include )
# Now include main-targets.gmk. This will define ALL_MAIN_TARGETS.
-include $$(main_targets_file)
endef
define PrintConfCheckFailed
@echo ' '
@echo "Please rerun configure! Easiest way to do this is by running"
@echo "'make reconfigure'."
@echo "This behavior may also be changed using CONF_CHECK=<ignore|auto>."
@echo ' '
endef
else # $(HAS_SPEC)=true
##############################################################################
# Helper functions for the 'main' target. These functions assume a single,
# proper and existing SPEC is included.
##############################################################################
include $(TOPDIR)/make/common/MakeBase.gmk
# Define basic logging setup
BUILD_LOG := $(OUTPUTDIR)/build.log
BUILD_PROFILE_LOG := $(OUTPUTDIR)/build-profile.log
BUILD_LOG_PIPE := > >($(TEE) -a $(BUILD_LOG)) 2> >($(TEE) -a $(BUILD_LOG) >&2) && wait
# Use this for simple echo/printf commands that are never expected to print
# to stderr.
BUILD_LOG_PIPE_SIMPLE := | $(TEE) -a $(BUILD_LOG)
ifneq ($(CUSTOM_ROOT), )
topdir = $(CUSTOM_ROOT)
else
topdir = $(TOPDIR)
endif
endef
# Setup the build environment to match the requested specification on
# level of reproducible builds
define SetupReproducibleBuild
ifeq ($$(SOURCE_DATE), updated)
# For static values of SOURCE_DATE (not "updated"), these are set in spec.gmk
export SOURCE_DATE_EPOCH := $$(shell $$(DATE) +"%s")
export SOURCE_DATE_ISO_8601 := $$(call EpochToISO8601, $$(SOURCE_DATE_EPOCH))
endif
endef
# Parse COMPARE_BUILD into COMPARE_BUILD_*
# Syntax: COMPARE_BUILD=CONF=<configure options>:PATCH=<patch file>:
# MAKE=<make targets>:COMP_OPTS=<compare script options>:
# COMP_DIR=<compare script base dir>|<default>:
# FAIL=<bool>
# If neither CONF or PATCH is given, assume <default> means CONF if it
# begins with "--", otherwise assume it means PATCH.
# MAKE and COMP_OPTS can only be used with CONF and/or PATCH specified.
# If any value contains "+", it will be replaced by space.
# FAIL can be set to false to have the return value of compare be ignored.
define ParseCompareBuild
ifneq ($$(COMPARE_BUILD), )
COMPARE_BUILD_OUTPUTDIR := $(topdir)/build/compare-build/$(CONF_NAME)
COMPARE_BUILD_FAIL := true
ifneq ($$(findstring :, $$(COMPARE_BUILD)), )
$$(foreach part, $$(subst :, , $$(COMPARE_BUILD)), \
$$(if $$(filter PATCH=%, $$(part)), \
$$(eval COMPARE_BUILD_PATCH = $$(strip $$(patsubst PATCH=%, %, $$(part)))) \
) \
$$(if $$(filter CONF=%, $$(part)), \
$$(eval COMPARE_BUILD_CONF = $$(strip $$(subst +, , $$(patsubst CONF=%, %, $$(part))))) \
) \
$$(if $$(filter MAKE=%, $$(part)), \
$$(eval COMPARE_BUILD_MAKE = $$(strip $$(subst +, , $$(patsubst MAKE=%, %, $$(part))))) \
) \
$$(if $$(filter COMP_OPTS=%, $$(part)), \
$$(eval COMPARE_BUILD_COMP_OPTS = $$(strip $$(subst +, , $$(patsubst COMP_OPTS=%, %, $$(part))))) \
) \
$$(if $$(filter COMP_DIR=%, $$(part)), \
$$(eval COMPARE_BUILD_COMP_DIR = $$(strip $$(subst +, , $$(patsubst COMP_DIR=%, %, $$(part))))) \
) \
$$(if $$(filter FAIL=%, $$(part)), \
$$(eval COMPARE_BUILD_FAIL = $$(strip $$(subst +, , $$(patsubst FAIL=%, %, $$(part))))) \
) \
$$(if $$(filter NODRYRUN=%, $$(part)), \
$$(eval COMPARE_BUILD_NODRYRUN = $$(strip $$(subst +, , $$(patsubst NODRYRUN=%, %, $$(part))))) \
) \
)
else
# Separate handling for single field case, to allow for spaces in values.
ifneq ($$(filter PATCH=%, $$(COMPARE_BUILD)), )
COMPARE_BUILD_PATCH = $$(strip $$(patsubst PATCH=%, %, $$(COMPARE_BUILD)))
else ifneq ($$(filter CONF=%, $$(COMPARE_BUILD)), )
COMPARE_BUILD_CONF = $$(strip $$(subst +, , $$(patsubst CONF=%, %, $$(COMPARE_BUILD))))
else ifneq ($$(filter --%, $$(COMPARE_BUILD)), )
# Assume CONF if value begins with --
COMPARE_BUILD_CONF = $$(strip $$(subst +, , $$(COMPARE_BUILD)))
else
# Otherwise assume patch file
COMPARE_BUILD_PATCH = $$(strip $$(COMPARE_BUILD))
endif
endif
ifneq ($$(COMPARE_BUILD_PATCH), )
ifneq ($$(wildcard $$(topdir)/$$(COMPARE_BUILD_PATCH)), )
# Assume relative path, if file exists
COMPARE_BUILD_PATCH := $$(wildcard $$(topdir)/$$(COMPARE_BUILD_PATCH))
else ifeq ($$(wildcard $$(COMPARE_BUILD_PATCH)), )
$$(error Patch file $$(COMPARE_BUILD_PATCH) does not exist)
endif
ifneq ($$(COMPARE_BUILD_NODRYRUN), true)
PATCH_DRY_RUN := $$(shell cd $$(topdir) && $$(PATCH) --dry-run -p1 < $$(COMPARE_BUILD_PATCH) > /dev/null 2>&1 || $$(ECHO) FAILED)
ifeq ($$(PATCH_DRY_RUN), FAILED)
$$(error Patch file $$(COMPARE_BUILD_PATCH) does not apply cleanly)
endif
endif
endif
ifneq ($$(COMPARE_BUILD_FAIL), true)
COMPARE_BUILD_IGNORE_RESULT := || true
endif
endif
endef
# Prepare for a comparison rebuild
define PrepareCompareBuild
# Prepare for a comparison rebuild
define PrepareCompareBuild
$(ECHO) "Preparing for comparison rebuild"
# Apply patch, if any
$(if $(COMPARE_BUILD_PATCH), cd $(topdir) && $(PATCH) -p1 < $(COMPARE_BUILD_PATCH))
$(if $(COMPARE_BUILD_PATCH), cd $(WORKSPACE_ROOT) && $(PATCH) -p1 < $(COMPARE_BUILD_PATCH))
# Move the first build away temporarily
$(RM) -r $(topdir)/build/.compare-build-temp
$(MKDIR) -p $(topdir)/build/.compare-build-temp
$(MV) $(OUTPUTDIR) $(topdir)/build/.compare-build-temp
$(RM) -r $(WORKSPACE_ROOT)/build/.compare-build-temp
$(MKDIR) -p $(WORKSPACE_ROOT)/build/.compare-build-temp
$(MV) $(OUTPUTDIR) $(WORKSPACE_ROOT)/build/.compare-build-temp
# Restore an old compare-build, or create a new compare-build directory.
if test -d $(COMPARE_BUILD_OUTPUTDIR); then \
$(MV) $(COMPARE_BUILD_OUTPUTDIR) $(OUTPUTDIR); \
@@ -422,23 +140,23 @@ else # $(HAS_SPEC)=true
# Re-run configure with the same arguments (and possibly some additional),
# must be done after patching.
( cd $(CONFIGURE_START_DIR) && PATH="$(ORIGINAL_PATH)" \
$(BASH) $(topdir)/configure $(CONFIGURE_COMMAND_LINE) $(COMPARE_BUILD_CONF))
endef
$(BASH) $(WORKSPACE_ROOT)/configure $(CONFIGURE_COMMAND_LINE) $(COMPARE_BUILD_CONF))
endef
# Cleanup after a compare build
define CleanupCompareBuild
# Cleanup after a compare build
define CleanupCompareBuild
# If running with a COMPARE_BUILD patch, reverse-apply it, but continue
# even if that fails (can happen with removed files).
$(if $(COMPARE_BUILD_PATCH), cd $(topdir) && $(PATCH) -R -p1 < $(COMPARE_BUILD_PATCH) || true)
$(if $(COMPARE_BUILD_PATCH), cd $(WORKSPACE_ROOT) && $(PATCH) -R -p1 < $(COMPARE_BUILD_PATCH) || true)
# Move this build away and restore the original build
$(MKDIR) -p $(topdir)/build/compare-build
$(MKDIR) -p $(WORKSPACE_ROOT)/build/compare-build
$(MV) $(OUTPUTDIR) $(COMPARE_BUILD_OUTPUTDIR)
$(MV) $(topdir)/build/.compare-build-temp/$(CONF_NAME) $(OUTPUTDIR)
$(RM) -r $(topdir)/build/.compare-build-temp
endef
$(MV) $(WORKSPACE_ROOT)/build/.compare-build-temp/$(CONF_NAME) $(OUTPUTDIR)
$(RM) -r $(WORKSPACE_ROOT)/build/.compare-build-temp
endef
# Do the actual comparison of two builds
define CompareBuildDoComparison
# Do the actual comparison of two builds
define CompareBuildDoComparison
# Compare first and second build. Ignore any error code from compare.sh.
$(ECHO) "Comparing between comparison rebuild (this/new) and baseline (other/old)"
$(if $(COMPARE_BUILD_COMP_DIR), \
@@ -448,9 +166,9 @@ else # $(HAS_SPEC)=true
+(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
-o $(OUTPUTDIR) $(COMPARE_BUILD_IGNORE_RESULT)) \
)
endef
endef
define PrintFailureReports
define PrintFailureReports
$(if $(filter none, $(LOG_REPORT)), , \
$(RM) $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log ; \
$(if $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log), \
@@ -472,9 +190,9 @@ else # $(HAS_SPEC)=true
) >> $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log \
) \
)
endef
endef
define PrintBuildLogFailures
define PrintBuildLogFailures
$(if $(filter none, $(LOG_REPORT)), , \
if $(GREP) -q "recipe for target .* failed" $(BUILD_LOG) 2> /dev/null; then \
$(PRINTF) "\n=== Make failed targets repeated here ===\n" ; \
@@ -487,96 +205,96 @@ else # $(HAS_SPEC)=true
fi >> $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log ; \
$(CAT) $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log \
)
endef
endef
define RotateLogFiles
define RotateLogFiles
$(RM) $(BUILD_LOG).old 2> /dev/null && \
$(MV) $(BUILD_LOG) $(BUILD_LOG).old 2> /dev/null || true
$(if $(findstring true, $(LOG_PROFILE_TIMES_FILE)), \
$(RM) $(BUILD_PROFILE_LOG).old 2> /dev/null && \
$(MV) $(BUILD_PROFILE_LOG) $(BUILD_PROFILE_LOG).old 2> /dev/null || true \
)
endef
endef
# Failure logs are only supported for "parallel" main targets, not the
# (trivial) sequential make targets (such as clean and reconfigure),
# since the failure-logs directory creation will conflict with clean.
# We also make sure the javatmp directory exists, which is needed if a java
# process (like javac) is using java.io.tmpdir.
define PrepareFailureLogs
# Failure logs are only supported for "parallel" main targets, not the
# (trivial) sequential make targets (such as clean and reconfigure),
# since the failure-logs directory creation will conflict with clean.
# We also make sure the javatmp directory exists, which is needed if a java
# process (like javac) is using java.io.tmpdir.
define PrepareFailureLogs
$(RM) -r $(MAKESUPPORT_OUTPUTDIR)/failure-logs 2> /dev/null && \
$(MKDIR) -p $(MAKESUPPORT_OUTPUTDIR)/failure-logs
$(MKDIR) -p $(JAVA_TMP_DIR)
$(RM) $(MAKESUPPORT_OUTPUTDIR)/exit-with-error 2> /dev/null
endef
endef
# Remove any javac server logs and port files. This
# prevents a new make run to reuse the previous servers.
define PrepareJavacServer
# Remove any javac server logs and port files. This
# prevents a new make run to reuse the previous servers.
define PrepareJavacServer
$(if $(JAVAC_SERVER_DIR), \
$(RM) -r $(JAVAC_SERVER_DIR) 2> /dev/null && \
$(MKDIR) -p $(JAVAC_SERVER_DIR) \
)
endef
endef
define CleanupJavacServer
define CleanupJavacServer
[ -f $(JAVAC_SERVER_DIR)/server.port ] && $(ECHO) Stopping javac server && \
$(TOUCH) $(JAVAC_SERVER_DIR)/server.port.stop; true
endef
endef
ifeq ($(call isBuildOs, windows), true)
# On windows we need to synchronize with the javac server to be able to
# move or remove the build output directory. Since we have no proper
# synchronization process, wait for a while and hope it helps. This is only
# used by build comparisons.
ifeq ($(call isBuildOs, windows), true)
# On windows we need to synchronize with the javac server to be able to
# move or remove the build output directory. Since we have no proper
# synchronization process, wait for a while and hope it helps. This is only
# used by build comparisons.
define WaitForJavacServerFinish
$(if $(JAVAC_SERVER_DIR), \
sleep 5 \
)
endef
else
define WaitForJavacServerFinish
endef
endif
endef
else
define WaitForJavacServerFinish
endef
endif
##############################################################################
# Functions for timers
##############################################################################
##############################################################################
# Functions for timers
##############################################################################
# Store the build times in this directory.
BUILDTIMESDIR = $(OUTPUTDIR)/make-support/build-times
# Store the build times in this directory.
BUILDTIMESDIR := $(OUTPUTDIR)/make-support/build-times
# Record starting time for build of a sub repository.
define RecordStartTime
# Record starting time for build of a sub repository.
define RecordStartTime
$(DATE) '+%Y %m %d %H %M %S' | $(AWK) '{ print $$1,$$2,$$3,$$4,$$5,$$6,($$4*3600+$$5*60+$$6) }' > $(BUILDTIMESDIR)/build_time_start_$(strip $1) && \
$(DATE) '+%Y-%m-%d %H:%M:%S' > $(BUILDTIMESDIR)/build_time_start_$(strip $1)_human_readable
endef
endef
# Record ending time and calculate the difference and store it in a
# easy to read format. Handles builds that cross midnight. Expects
# that a build will never take 24 hours or more.
define RecordEndTime
# Record ending time and calculate the difference and store it in a
# easy to read format. Handles builds that cross midnight. Expects
# that a build will never take 24 hours or more.
define RecordEndTime
$(DATE) '+%Y %m %d %H %M %S' | $(AWK) '{ print $$1,$$2,$$3,$$4,$$5,$$6,($$4*3600+$$5*60+$$6) }' > $(BUILDTIMESDIR)/build_time_end_$(strip $1)
$(DATE) '+%Y-%m-%d %H:%M:%S' > $(BUILDTIMESDIR)/build_time_end_$(strip $1)_human_readable
$(ECHO) `$(CAT) $(BUILDTIMESDIR)/build_time_start_$(strip $1)` `$(CAT) $(BUILDTIMESDIR)/build_time_end_$(strip $1)` $1 | \
$(AWK) '{ F=$$7; T=$$14; if (F > T) { T+=3600*24 }; D=T-F; H=int(D/3600); \
M=int((D-H*3600)/60); S=D-H*3600-M*60; printf("%02d:%02d:%02d %s\n",H,M,S,$$15); }' \
> $(BUILDTIMESDIR)/build_time_diff_$(strip $1)
endef
endef
define StartGlobalTimer
define StartGlobalTimer
$(RM) -r $(BUILDTIMESDIR) 2> /dev/null && \
$(MKDIR) -p $(BUILDTIMESDIR) && \
$(call RecordStartTime,TOTAL)
endef
endef
define StopGlobalTimer
define StopGlobalTimer
$(call RecordEndTime,TOTAL)
endef
endef
# Find all build_time_* files and print their contents in a list sorted
# on the name of the sub repository.
define ReportBuildTimes
# Find all build_time_* files and print their contents in a list sorted
# on the name of the sub repository.
define ReportBuildTimes
$(PRINTF) $(LOG_INFO) -- \
"----- Build times -------\nStart %s\nEnd %s\n%s\n%s\n-------------------------\n" \
"`$(CAT) $(BUILDTIMESDIR)/build_time_start_TOTAL_human_readable`" \
@@ -585,119 +303,20 @@ else # $(HAS_SPEC)=true
$(XARGS) $(CAT) | $(SORT) -k 2`" \
"`$(CAT) $(BUILDTIMESDIR)/build_time_diff_TOTAL`" \
$(BUILD_LOG_PIPE_SIMPLE)
endef
define ReportProfileTimes
$(if $(findstring true, $(LOG_PROFILE_TIMES_LOG)), \
[ ! -f $(BUILD_PROFILE_LOG) ] || \
{ $(ECHO) Begin $(notdir $(BUILD_PROFILE_LOG)) && \
$(CAT) $(BUILD_PROFILE_LOG) && \
$(ECHO) End $(notdir $(BUILD_PROFILE_LOG)); \
} \
$(BUILD_LOG_PIPE_SIMPLE)
)
endef
endif # HAS_SPEC
# Look for a given option in the LOG variable, and if found, set a variable
# and remove the option from the LOG variable
# $1: The option to look for
# $2: The variable to set to "true" if the option is found
define ParseLogOption
ifneq ($$(findstring $1, $$(LOG)), )
override $2 := true
# First try to remove ",<option>" if it exists, otherwise just remove "<option>"
LOG_STRIPPED := $$(subst $1,, $$(subst $$(COMMA)$$(strip $1),, $$(LOG)))
# We might have ended up with a leading comma. Remove it. Need override
# since LOG is set from the command line.
override LOG := $$(strip $$(patsubst $$(COMMA)%, %, $$(LOG_STRIPPED)))
endif
endef
# Look for a given option with an assignment in the LOG variable, and if found,
# set a variable to that value and remove the option from the LOG variable
# $1: The option to look for
# $2: The variable to set to the value of the option, if found
define ParseLogValue
ifneq ($$(findstring $1=, $$(LOG)), )
# Make words of out comma-separated list and find the one with opt=val
value := $$(strip $$(subst $$(strip $1)=,, $$(filter $$(strip $1)=%, $$(subst $$(COMMA), , $$(LOG)))))
override $2 := $$(value)
# First try to remove ",<option>" if it exists, otherwise just remove "<option>"
LOG_STRIPPED := $$(subst $$(strip $1)=$$(value),, \
$$(subst $$(COMMA)$$(strip $1)=$$(value),, $$(LOG)))
# We might have ended up with a leading comma. Remove it. Need override
# since LOG is set from the command line.
override LOG := $$(strip $$(patsubst $$(COMMA)%, %, $$(LOG_STRIPPED)))
endif
define ReportProfileTimes
$(if $(findstring true, $(LOG_PROFILE_TIMES_LOG)), \
[ ! -f $(BUILD_PROFILE_LOG) ] || \
{ $(ECHO) Begin $(notdir $(BUILD_PROFILE_LOG)) && \
$(CAT) $(BUILD_PROFILE_LOG) && \
$(ECHO) End $(notdir $(BUILD_PROFILE_LOG)); \
} \
$(BUILD_LOG_PIPE_SIMPLE)
)
endef
################################################################################
define ParseLogLevel
# Catch old-style VERBOSE= command lines.
ifneq ($$(origin VERBOSE), undefined)
$$(info Error: VERBOSE is deprecated. Use LOG=<warn|info|debug|trace> instead.)
$$(error Cannot continue)
endif
# Setup logging according to LOG
# If "nofile" is present, do not log to a file
$$(eval $$(call ParseLogOption, nofile, LOG_NOFILE))
# If "cmdline" is present, print all executes "important" command lines.
$$(eval $$(call ParseLogOption, cmdlines, LOG_CMDLINES))
# If "report" is present, use non-standard reporting options at build failure.
$$(eval $$(call ParseLogValue, report, LOG_REPORT))
ifneq ($$(LOG_REPORT), )
ifeq ($$(filter $$(LOG_REPORT), none all default), )
$$(info Error: LOG=report has invalid value: $$(LOG_REPORT).)
$$(info Valid values: LOG=report=<none>|<all>|<default>)
$$(error Cannot continue)
endif
endif
# If "profile-to-log" is present, write shell times in build log
$$(eval $$(call ParseLogOption, profile-to-log, LOG_PROFILE_TIMES_LOG))
# If "profile" is present, write shell times in separate log file
# IMPORTANT: $(ParseLogOption profile-to-log) should go first. Otherwise
# parsing of 'LOG=debug,profile-to-log,nofile' ends up in the following error:
# Error: LOG contains unknown option or log level: debug-to-log.
$$(eval $$(call ParseLogOption, profile, LOG_PROFILE_TIMES_FILE))
# Treat LOG=profile-to-log as if it were LOG=profile,profile-to-log
LOG_PROFILE_TIMES_FILE := $$(firstword $$(LOG_PROFILE_TIMES_FILE) $$(LOG_PROFILE_TIMES_LOG))
override LOG_LEVEL := $$(LOG)
ifeq ($$(LOG_LEVEL), )
# Set LOG to "warn" as default if not set
override LOG_LEVEL := warn
endif
ifeq ($$(LOG_LEVEL), warn)
override MAKE_LOG_FLAGS := -s
else ifeq ($$(LOG_LEVEL), info)
override MAKE_LOG_FLAGS := -s
else ifeq ($$(LOG_LEVEL), debug)
override MAKE_LOG_FLAGS :=
else ifeq ($$(LOG_LEVEL), trace)
override MAKE_LOG_FLAGS :=
else
$$(info Error: LOG contains unknown option or log level: $$(LOG).)
$$(info LOG can be <level>[,<opt>[...]] where <opt> is nofile | cmdlines | profile | profile-to-log)
$$(info and <level> is warn | info | debug | trace)
$$(error Cannot continue)
endif
endef
MAKE_LOG_VARS = $(foreach v, \
LOG_LEVEL LOG_NOFILE LOG_CMDLINES LOG_REPORT LOG_PROFILE_TIMES_LOG \
LOG_PROFILE_TIMES_FILE, \
$v=$($v) \
)
endif # _INITSUPPORT_GMK
endif # include guard
include MakeIncludeEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2025, 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
@@ -23,10 +23,9 @@
# questions.
#
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
################################################################################
include Execute.gmk
include Modules.gmk
@@ -58,6 +57,4 @@ TARGETS += $(jlink_interim_image)
################################################################################
all: $(TARGETS)
.PHONY: all
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, 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
@@ -23,14 +23,13 @@
# questions.
#
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
################################################################################
include CopyFiles.gmk
include JavaCompilation.gmk
include JarArchive.gmk
include JavaCompilation.gmk
include TextFileProcessing.gmk
# This rule will be depended on due to the MANIFEST line
@@ -78,3 +77,7 @@ $(eval $(call SetupJarArchive, BUILD_JRTFS_JAR, \
))
all: $(BUILD_JRTFS_JAR)
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -23,8 +23,9 @@
# questions.
#
include $(SPEC)
include MakeBase.gmk
include MakeFileStart.gmk
################################################################################
include CopyFiles.gmk
include TextFileProcessing.gmk
@@ -118,3 +119,7 @@ else # Not macosx
endif # macosx
.PHONY: jdk-bundle jre-bundle bundles
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -24,44 +24,35 @@
#
################################################################################
# This is the main makefile containing most actual top level targets. It needs
# to be called with a SPEC file defined.
# This is the main makefile containing most actual top level targets.
################################################################################
# Declare default target
default:
# Declare ALL_TARGETS as an immediate variable. This variable is a list of all
# valid top level targets. It's used to declare them all as PHONY and to
# generate the -only targets.
ifeq ($(wildcard $(SPEC)), )
$(error Main.gmk needs SPEC set to a proper spec.gmk)
endif
ALL_TARGETS :=
# Now load the spec
include $(SPEC)
DEFAULT_TARGET := default-target
# Load the vital tools for all the makefiles.
include $(TOPDIR)/make/common/MakeBase.gmk
include $(TOPDIR)/make/common/Modules.gmk
include $(TOPDIR)/make/common/FindTests.gmk
include MakeFileStart.gmk
################################################################################
include $(TOPDIR)/make/MainSupport.gmk
include FindTests.gmk
include Modules.gmk
# Are we requested to ignore dependencies?
ifneq ($(findstring -only, $(MAKECMDGOALS)), )
DEPS := none
endif
# Declare ALL_TARGETS as an immediate variable. This variable is a list of all
# valid top level targets. It's used to declare them all as PHONY and to
# generate the -only targets.
ALL_TARGETS :=
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Main.gmk))
# All modules for the current target platform.
ALL_MODULES := $(call FindAllModules)
################################################################################
################################################################################
#
# Recipes for all targets. Only recipes, dependencies are declared later.
@@ -356,6 +347,14 @@ $(eval $(call SetupTarget, vscode-project-ccls, \
DEPS := compile-commands, \
))
################################################################################
# IDEA IntelliJ projects
$(eval $(call SetupTarget, idea-gen-config, \
MAKEFILE := ide/idea/jdk/IdeaGenConfig, \
ARGS := IDEA_OUTPUT="$(IDEA_OUTPUT)" MODULES="$(MODULES)", \
))
################################################################################
# Build demos targets
@@ -454,6 +453,18 @@ $(eval $(call SetupTarget, symbols-image, \
TARGET := symbols, \
))
$(eval $(call SetupTarget, static-launcher, \
MAKEFILE := StaticLibs, \
TARGET := static-launcher, \
DEPS := hotspot-static-libs static-libs, \
))
$(eval $(call SetupTarget, static-jdk-image, \
MAKEFILE := StaticLibs, \
TARGET := static-jdk-image, \
DEPS := static-exploded-image jdk-image, \
))
$(eval $(call SetupTarget, static-libs-image, \
MAKEFILE := StaticLibsImage, \
TARGET := static-libs-image, \
@@ -742,6 +753,17 @@ $(eval $(call SetupTarget, test-image-lib, \
DEPS := build-test-lib, \
))
$(eval $(call SetupTarget, build-test-setup-aot, \
MAKEFILE := test/BuildTestSetupAOT, \
DEPS := interim-langtools exploded-image, \
))
$(eval $(call SetupTarget, test-image-setup-aot, \
MAKEFILE := test/BuildTestSetupAOT, \
TARGET := images, \
DEPS := build-test-setup-aot, \
))
ifeq ($(BUILD_FAILURE_HANDLER), true)
# Builds the failure handler jtreg extension
$(eval $(call SetupTarget, build-test-failure-handler, \
@@ -1086,9 +1108,9 @@ else
symbols-image: $(LIBS_TARGETS) $(LAUNCHER_TARGETS)
static-libs-image: hotspot-static-libs $(STATIC_LIBS_TARGETS)
static-libs-image: hotspot-static-libs static-libs
static-libs-graal-image: $(STATIC_LIBS_TARGETS)
static-libs-graal-image: static-libs
bootcycle-images: jdk-image
@@ -1254,6 +1276,8 @@ ifeq ($(call isTargetOs, macosx), true)
legacy-images: mac-legacy-jre-bundle
endif
static-exploded-image: static-launcher exploded-image
# These targets build the various documentation images
docs-jdk-image: docs-jdk
docs-javase-image: docs-javase
@@ -1268,7 +1292,8 @@ all-docs-bundles: docs-jdk-bundles docs-javase-bundles docs-reference-bundles
# This target builds the test image
test-image: prepare-test-image test-image-jdk-jtreg-native \
test-image-demos-jdk test-image-libtest-jtreg-native \
test-image-lib test-image-lib-native
test-image-lib test-image-lib-native \
test-image-setup-aot
ifneq ($(JVM_TEST_IMAGE_TARGETS), )
# If JVM_TEST_IMAGE_TARGETS is externally defined, use it instead of the
@@ -1297,6 +1322,9 @@ endif
# all-images builds all our deliverables as images.
all-images: product-images test-image all-docs-images
ifeq ($(call isTargetOs, linux macosx windows), true)
all-images: static-jdk-image
endif
# all-bundles packages all our deliverables as tar.gz bundles.
all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
@@ -1309,7 +1337,7 @@ ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-static-libs \
create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
docs-image docs-javase-image docs-reference-image all-docs-images \
docs-bundles all-docs-bundles test-image all-images \
docs-bundles all-docs-bundles test-image all-images static-exploded-image \
all-bundles
################################################################################
@@ -1317,7 +1345,7 @@ ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-static-libs \
# Traditional targets typically run by users.
# These can be considered aliases for the targets now named by a more
# "modern" naming scheme.
default: $(DEFAULT_MAKE_TARGET)
default-target: $(DEFAULT_MAKE_TARGET)
jdk: exploded-image
images: product-images
docs: docs-image
@@ -1344,11 +1372,14 @@ test-hotspot-jtreg-native: test-hotspot_native_sanity
test-hotspot-gtest: exploded-test-gtest
test-jdk-jtreg-native: test-jdk_native_sanity
# Set dependencies for doc tests
$(eval $(call AddTestDependency, docs_all, docs-jdk))
test-docs: test-docs_all
ALL_TARGETS += $(RUN_TEST_TARGETS) run-test exploded-run-test check \
test-hotspot-jtreg test-hotspot-jtreg-native test-hotspot-gtest \
test-jdk-jtreg-native
test-jdk-jtreg-native test-docs
################################################################################
################################################################################
#
# Clean targets
@@ -1454,13 +1485,12 @@ print-tests:
create-main-targets-include:
$(call LogInfo, Generating main target list)
$(call MakeDir, $(MAKESUPPORT_OUTPUTDIR))
@$(ECHO) ALL_MAIN_TARGETS := $(sort $(ALL_TARGETS)) > \
$(MAKESUPPORT_OUTPUTDIR)/main-targets.gmk
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Main-post.gmk))
.PHONY: $(ALL_TARGETS)
FRC: # Force target
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -23,13 +23,13 @@
# questions.
#
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
################################################################################
# This file contains helper functions for Main.gmk.
################################################################################
ifndef _MAINSUPPORT_GMK
_MAINSUPPORT_GMK := 1
# Setup make rules for creating a top-level target.
# Parameter 1 is the name of the rule. This name is used as variable prefix.
#
@@ -137,6 +137,15 @@ define CleanModule
$(call Clean-include, $1)
endef
define AddTestDependency
test-$(strip $1): $2
exploded-test-$(strip $1): $2
ifneq ($(filter $(TEST), $1), )
TEST_DEPS += $2
endif
endef
################################################################################
@@ -209,4 +218,5 @@ endef
################################################################################
endif # _MAINSUPPORT_GMK
endif # include guard
include MakeIncludeEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 2025, 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
@@ -23,8 +23,10 @@
# questions.
#
ifndef _MODULE_TOOLS_GMK
_MODULE_TOOLS_GMK := 1
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
################################################################################
include JavaCompilation.gmk
@@ -49,4 +51,7 @@ TOOL_ADD_PACKAGES_ATTRIBUTE := $(BUILD_JAVA) $(JAVA_FLAGS_SMALL_BUILDJDK) \
--add-exports java.base/jdk.internal.module=ALL-UNNAMED \
build.tools.jigsaw.AddPackagesAttribute
endif # _MODULE_TOOLS_GMK
################################################################################
endif # include guard
include MakeIncludeEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, 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
@@ -23,27 +23,46 @@
# questions.
#
include MakeFileStart.gmk
################################################################################
# This makefile is called from Main.gmk, through a macro in MakeHelpers.gmk
# and wraps calls to makefiles for specific modules and build phases. Having
# this wrapper reduces the need for boilerplate code. It also provides
# opportunity for automatic copying of files to an interim exploded runnable
# image.
default: all
include $(SPEC)
include MakeBase.gmk
################################################################################
include CopyFiles.gmk
MODULE_SRC := $(TOPDIR)/src/$(MODULE)
# All makefiles should add the targets to be built to this variable.
TARGETS :=
# Define the snippet for MakeSnippetStart/End
THIS_SNIPPET := modules/$(MODULE)/$(MAKEFILE_PREFIX).gmk
include MakeSnippetStart.gmk
# Include the file being wrapped.
include $(MAKEFILE_PREFIX).gmk
include $(THIS_SNIPPET)
include MakeSnippetEnd.gmk
ifeq ($(MAKEFILE_PREFIX), Lib)
# We need to keep track of what libraries are generated/needed by this
# module. This information is required when doing static linking, to know
# which static library files to include. The variable $(MODULE)_INCLUDED_LIBS is
# added to for each call to SetupJdkLibrary. The file module-included-libs.txt is then
# read in StaticLibs.gmk.
ifneq ($($(MODULE)_INCLUDED_LIBS), )
LIBLIST := $(SUPPORT_OUTPUTDIR)/modules_static-libs/$(MODULE)/module-included-libs.txt
$(LIBLIST): $(TARGETS)
$(call MakeDir, $(@D))
$(ECHO) $($(MODULE)_INCLUDED_LIBS) > $@
TARGETS += $(LIBLIST)
endif
endif
# Setup copy rules from the modules directories to the jdk image directory.
ifeq ($(call isTargetOs, windows), true)
@@ -111,8 +130,12 @@ $(eval $(call SetupCopyFiles, COPY_CONF, \
))
ifeq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
all: $(filter $(MAKESUPPORT_OUTPUTDIR)/compile-commands/%, $(TARGETS))
TARGETS := $(filter $(MAKESUPPORT_OUTPUTDIR)/compile-commands/%, $(TARGETS))
else
all: $(TARGETS) $(COPY_LIBS_TO_BIN) $(COPY_LIBS_TO_LIB) \
TARGETS += $(COPY_LIBS_TO_BIN) $(COPY_LIBS_TO_LIB) \
$(COPY_INCLUDE) $(COPY_CMDS) $(COPY_MAN) $(COPY_CONF) $(LINK_LIBS_TO_LIB)
endif
################################################################################
include MakeFileEnd.gmk

224
make/PreInit.gmk Normal file
View File

@@ -0,0 +1,224 @@
#
# Copyright (c) 2012, 2025, 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.
#
################################################################################
# This file is the earliest part of the build bootstrap process (not counting
# Makefile that includes it). Its main responsibility is to figure out what
# configuration to use and pick up the corresponding SPEC file. It will then
# call Init.gmk with this SPEC for further bootstrapping.
################################################################################
# This must be the first rule
default:
.PHONY: default
# Inclusion of this pseudo-target will cause make to execute this file
# serially, regardless of -j.
.NOTPARALLEL:
IS_PREINIT_ENV := true
# Include our helper functions.
include $(TOPDIR)/make/PreInitSupport.gmk
include $(TOPDIR)/make/common/LogUtils.gmk
# Here are "global" targets, i.e. targets that can be executed without having
# a configuration. This will define ALL_GLOBAL_TARGETS.
include $(TOPDIR)/make/Global.gmk
# CALLED_TARGETS is the list of targets that the user provided,
# or "default" if unspecified.
CALLED_TARGETS := $(if $(MAKECMDGOALS), $(MAKECMDGOALS), default)
# Extract non-global targets that require a spec file.
CALLED_SPEC_TARGETS := $(filter-out $(ALL_GLOBAL_TARGETS), $(CALLED_TARGETS))
# If we have only global targets, or if we are called with -qp (assuming an
# external part, e.g. bash completion, is trying to understand our targets),
# we will skip SPEC location and the sanity checks.
ifeq ($(CALLED_SPEC_TARGETS), )
SKIP_SPEC := true
endif
ifeq ($(findstring p, $(MAKEFLAGS))$(findstring q, $(MAKEFLAGS)), pq)
SKIP_SPEC := true
endif
ifneq ($(SKIP_SPEC), true)
############################################################################
# This is the common case: we have been called from the command line by the
# user with a target that should be delegated to Main.gmk, so we need to
# figure out a proper SPEC and call Init.gmk with it.
############################################################################
# Basic checks on environment and command line.
$(eval $(call CheckControlVariables))
$(eval $(call CheckDeprecatedEnvironment))
$(eval $(call CheckInvalidMakeFlags))
# Check that CONF_CHECK is valid.
$(eval $(call ParseConfCheckOption))
# Check that the LOG given is valid, and set LOG_LEVEL, LOG_NOFILE,
# MAKE_LOG_VARS and MAKE_LOG_FLAGS.
$(eval $(call ParseLogLevel))
# After this SPECS contain 1..N spec files (otherwise ParseConfAndSpec fails).
$(eval $(call ParseConfAndSpec))
# Extract main targets from Main.gmk using the spec(s) provided. In theory,
# with multiple specs, we should find the intersection of targets provided
# by all specs, but we approximate this by an arbitrary spec from the list.
# This will setup ALL_MAIN_TARGETS.
$(eval $(call DefineMainTargets, FORCE, $(firstword $(SPECS))))
# Targets provided by Init.gmk.
ALL_INIT_TARGETS := print-modules print-targets print-configuration \
print-tests reconfigure pre-compare-build post-compare-build
# Separate called targets depending on type.
INIT_TARGETS := $(filter $(ALL_INIT_TARGETS), $(CALLED_SPEC_TARGETS))
MAIN_TARGETS := $(filter $(ALL_MAIN_TARGETS), $(CALLED_SPEC_TARGETS))
SEQUENTIAL_TARGETS := $(filter dist-clean clean%, $(MAIN_TARGETS))
PARALLEL_TARGETS := $(filter-out $(SEQUENTIAL_TARGETS), $(MAIN_TARGETS))
MAKE_INIT_ARGS := $(MFLAGS) $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common
# 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)/*)) \
$(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 $@)))'."
$(call PrintConfCheckFailed)
@exit 2
else ifeq ($(CONF_CHECK), auto)
@echo Note: The configuration is not up to date for \
"'$(lastword $(subst /, , $(dir $@)))'."
@( cd $(TOPDIR) && \
$(MAKE) $(MAKE_INIT_ARGS) -f $(TOPDIR)/make/Init.gmk SPEC=$@ \
reconfigure )
else ifeq ($(CONF_CHECK), ignore)
# Do nothing
endif
# Do not let make delete spec files even if aborted while doing a reconfigure
.PRECIOUS: $(SPECS)
# Unless reconfigure is explicitly called, let all main targets depend on
# the spec files to be up to date.
ifeq ($(findstring reconfigure, $(INIT_TARGETS)), )
$(MAIN_TARGETS): $(SPECS)
endif
make-info:
ifneq ($(findstring $(LOG_LEVEL), info debug trace), )
$(info Running make as '$(strip $(MAKE) $(MFLAGS) \
$(COMMAND_LINE_VARIABLES) $(MAKECMDGOALS))')
endif
MAKE_INIT_MAIN_TARGET_ARGS := \
USER_MAKE_VARS="$(USER_MAKE_VARS)" MAKE_LOG_FLAGS=$(MAKE_LOG_FLAGS) \
$(MAKE_LOG_VARS) \
INIT_TARGETS="$(INIT_TARGETS)" \
SEQUENTIAL_TARGETS="$(SEQUENTIAL_TARGETS)" \
PARALLEL_TARGETS="$(PARALLEL_TARGETS)"
# Now the init and main targets will be called, once for each SPEC. The
# recipe will be run once for every target specified, but we only want to
# execute the recipe a single time, hence the TARGET_DONE with a dummy
# command if true.
# The COMPARE_BUILD part implements special support for makefile development.
$(ALL_INIT_TARGETS) $(ALL_MAIN_TARGETS): make-info
@$(if $(TARGET_DONE), \
true \
, \
( cd $(TOPDIR) && \
$(foreach spec, $(SPECS), \
$(MAKE) $(MAKE_INIT_ARGS) -j 1 -f $(TOPDIR)/make/Init.gmk \
SPEC=$(spec) $(MAKE_INIT_MAIN_TARGET_ARGS) \
main && \
$(if $(and $(COMPARE_BUILD), $(PARALLEL_TARGETS)), \
$(MAKE) $(MAKE_INIT_ARGS) -f $(TOPDIR)/make/Init.gmk \
SPEC=$(spec) \
COMPARE_BUILD="$(COMPARE_BUILD)" \
pre-compare-build && \
$(MAKE) $(MAKE_INIT_ARGS) -j 1 -f $(TOPDIR)/make/Init.gmk \
SPEC=$(spec) $(MAKE_INIT_MAIN_TARGET_ARGS) \
COMPARE_BUILD="$(COMPARE_BUILD):NODRYRUN=true" \
main && \
$(MAKE) $(MAKE_INIT_ARGS) -f $(TOPDIR)/make/Init.gmk \
SPEC=$(spec) \
COMPARE_BUILD="$(COMPARE_BUILD):NODRYRUN=true" \
post-compare-build && \
) \
) true ) \
$(eval TARGET_DONE=true) \
)
.PHONY: $(ALL_MAIN_TARGETS) $(ALL_INIT_TARGETS)
else # SKIP_SPEC=true
############################################################################
# We have only global targets, or are called with -pq (from command
# completion). In this case we might not even have a configuration at all, but
# still need to handle the situation gracefully even if there is no SPEC file.
############################################################################
ifeq ($(wildcard $(SPEC)), )
# If we have no SPEC provided, we will just make a "best effort" target list.
# First try to grab any available pre-existing main-targets.gmk.
main_targets_file := $(firstword $(wildcard $(build_dir)/*/make-support/main-targets.gmk))
ifneq ($(main_targets_file), )
# Extract the SPEC that corresponds to this main-targets.gmk file.
SPEC := $(patsubst %/make-support/main-targets.gmk, %/spec.gmk, $(main_targets_file))
else
# None found, pick an arbitrary SPEC for which to generate a file
SPEC := $(firstword $(all_spec_files))
endif
endif
ifneq ($(wildcard $(SPEC)), )
$(eval $(call DefineMainTargets, LAZY, $(SPEC)))
else
# If we have no configurations we can not provide any main targets.
ALL_MAIN_TARGETS :=
endif
ALL_TARGETS := $(sort $(ALL_GLOBAL_TARGETS) $(ALL_MAIN_TARGETS) $(ALL_INIT_TARGETS))
# Just list all our targets.
$(ALL_TARGETS):
.PHONY: $(ALL_TARGETS)
endif # $(SKIP_SPEC)!=true
################################################################################

299
make/PreInitSupport.gmk Normal file
View File

@@ -0,0 +1,299 @@
#
# Copyright (c) 2011, 2025, 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.
#
################################################################################
# Helper functions for PreInit.gmk, the initial part of initialization before
# the SPEC file is loaded. Most of these functions provide parsing and setting
# up make options from the command-line.
################################################################################
# Include the corresponding closed file, if present.
ifneq ($(CUSTOM_MAKE_DIR), )
-include $(CUSTOM_MAKE_DIR)/PreInitSupport-pre.gmk
endif
# COMMA is defined in spec.gmk, but that is not included yet
COMMA := ,
# Essential control variables that are handled by PreInit.gmk or Init.gmk
INIT_CONTROL_VARIABLES := LOG CONF CONF_NAME SPEC JOBS CONF_CHECK ALLOW \
COMPARE_BUILD
# All known make control variables; these are handled in other makefiles
MAKE_CONTROL_VARIABLES += JDK_FILTER SPEC_FILTER \
TEST TEST_JOBS JTREG GTEST MICRO TEST_OPTS TEST_VM_OPTS TEST_DEPS
ALL_CONTROL_VARIABLES := $(INIT_CONTROL_VARIABLES) $(MAKE_CONTROL_VARIABLES)
# Define a simple reverse function.
# Should maybe move to MakeBase.gmk, but we can't include that file now.
reverse = \
$(if $(strip $(1)), $(call reverse, $(wordlist 2, $(words $(1)), $(1)))) \
$(firstword $(1))
# The variable MAKEOVERRIDES contains variable assignments from the command
# line, but in reverse order to what the user entered.
# The '§' <=> '\ 'dance is needed to keep values with space in them connected.
COMMAND_LINE_VARIABLES := $(subst §,\ , $(call reverse, $(subst \ ,§,$(MAKEOVERRIDES))))
# A list like FOO="val1" BAR="val2" containing all user-supplied make
# variables that we should propagate.
# The '§' <=> '\ 'dance is needed to keep values with space in them connected.
# This explicit propagation is needed to avoid problems with characters that needs
# escaping.
USER_MAKE_VARS := $(subst §,\ , $(filter-out $(addsuffix =%, $(ALL_CONTROL_VARIABLES)), \
$(subst \ ,§,$(MAKEOVERRIDES))))
# Setup information about available configurations, if any.
ifneq ($(CUSTOM_ROOT), )
build_dir := $(CUSTOM_ROOT)/build
else
build_dir := $(TOPDIR)/build
endif
all_spec_files := $(wildcard $(build_dir)/*/spec.gmk)
# Extract the configuration names from the path
all_confs := $(patsubst %/spec.gmk, %, $(patsubst $(build_dir)/%, %, $(all_spec_files)))
# Check for unknown command-line variables
define CheckControlVariables
command_line_variables := $$(strip $$(foreach var, \
$$(subst \ ,_,$$(MAKEOVERRIDES)), \
$$(firstword $$(subst =, , $$(var)))))
allowed_command_line_variables := $$(strip $$(subst $$(COMMA), , $$(ALLOW)))
unknown_command_line_variables := $$(strip \
$$(filter-out $$(ALL_CONTROL_VARIABLES) $$(allowed_command_line_variables), \
$$(command_line_variables)))
ifneq ($$(unknown_command_line_variables), )
$$(info Note: Command line contains non-control variables:)
$$(foreach var, $$(unknown_command_line_variables), $$(info * $$(var)=$$($$(var))))
$$(info Make sure it is not mistyped, and that you intend to override this variable.)
$$(info 'make help' will list known control variables.)
$$(info )
endif
endef
# Check for deprecated ALT_ variables
define CheckDeprecatedEnvironment
defined_alt_variables := $$(filter ALT_%, $$(.VARIABLES))
ifneq ($$(defined_alt_variables), )
$$(info Warning: You have the following ALT_ variables set:)
$$(foreach var, $$(defined_alt_variables), $$(info * $$(var)=$$($$(var))))
$$(info ALT_ variables are deprecated, and may result in a failed build.)
$$(info Please clean your environment.)
$$(info )
endif
endef
# Check for invalid make flags like -j
define CheckInvalidMakeFlags
# This is a trick to get this rule to execute before any other rules
# MAKEFLAGS only indicate -j if read in a recipe (!)
$$(TOPDIR)/make/PreInit.gmk: .FORCE
$$(if $$(findstring --jobserver, $$(MAKEFLAGS)), \
$$(info Error: 'make -jN' is not supported, use 'make JOBS=N') \
$$(error Cannot continue) \
)
.FORCE:
.PHONY: .FORCE
endef
# Check that the CONF_CHECK option is valid and set up handling
define ParseConfCheckOption
ifeq ($$(CONF_CHECK), )
# Default behavior is fail
CONF_CHECK := fail
else ifneq ($$(filter-out auto fail ignore, $$(CONF_CHECK)), )
$$(info Error: CONF_CHECK must be one of: auto, fail or ignore.)
$$(error Cannot continue)
endif
endef
define ParseConfAndSpec
ifneq ($$(origin SPEC), undefined)
# We have been given a SPEC, check that it works out properly
ifneq ($$(origin CONF), undefined)
# We also have a CONF argument. We can't have both.
$$(info Error: Cannot use CONF=$$(CONF) and SPEC=$$(SPEC) at the same time. Choose one.)
$$(error Cannot continue)
endif
ifneq ($$(origin CONF_NAME), undefined)
# We also have a CONF_NAME argument. We can't have both.
$$(info Error: Cannot use CONF_NAME=$$(CONF_NAME) and SPEC=$$(SPEC) at the same time. Choose one.)
$$(error Cannot continue)
endif
ifeq ($$(wildcard $$(SPEC)), )
$$(info Error: Cannot locate spec.gmk, given by SPEC=$$(SPEC).)
$$(error Cannot continue)
endif
ifeq ($$(filter /%, $$(SPEC)), )
# If given with relative path, make it absolute
SPECS := $$(CURDIR)/$$(strip $$(SPEC))
else
SPECS := $$(SPEC)
endif
# For now, unset this SPEC variable.
override SPEC :=
else
# Use spec.gmk files in the build output directory
ifeq ($$(all_spec_files), )
ifneq ($(CUSTOM_ROOT), )
$$(info Error: No configurations found for $$(CUSTOM_ROOT).)
else
$$(info Error: No configurations found for $$(TOPDIR).)
endif
$$(info Please run 'bash configure' to create a configuration.)
$$(info )
$$(error Cannot continue)
endif
ifneq ($$(origin CONF_NAME), undefined)
ifneq ($$(origin CONF), undefined)
# We also have a CONF argument. We can't have both.
$$(info Error: Cannot use CONF=$$(CONF) and CONF_NAME=$$(CONF_NAME) at the same time. Choose one.)
$$(error Cannot continue)
endif
matching_conf := $$(strip $$(filter $$(CONF_NAME), $$(all_confs)))
ifeq ($$(matching_conf), )
$$(info Error: No configurations found matching CONF_NAME=$$(CONF_NAME).)
$$(info Available configurations in $$(build_dir):)
$$(foreach var, $$(all_confs), $$(info * $$(var)))
$$(error Cannot continue)
else ifneq ($$(words $$(matching_conf)), 1)
$$(info Error: Matching more than one configuration CONF_NAME=$$(CONF_NAME).)
$$(info Available configurations in $$(build_dir):)
$$(foreach var, $$(all_confs), $$(info * $$(var)))
$$(error Cannot continue)
else
$$(info Building configuration '$$(matching_conf)' (matching CONF_NAME=$$(CONF_NAME)))
endif
# Create a SPEC definition. This will contain the path to exactly one spec file.
SPECS := $$(build_dir)/$$(matching_conf)/spec.gmk
else ifneq ($$(origin CONF), undefined)
# User have given a CONF= argument.
ifeq ($$(CONF), )
# If given CONF=, match all configurations
matching_confs := $$(strip $$(all_confs))
else
# Otherwise select those that contain the given CONF string
ifeq ($$(patsubst !%,,$$(CONF)), )
# A CONF starting with ! means we should negate the search term
matching_confs := $$(strip $$(foreach var, $$(all_confs), \
$$(if $$(findstring $$(subst !,,$$(CONF)), $$(var)), ,$$(var))))
else
matching_confs := $$(strip $$(foreach var, $$(all_confs), \
$$(if $$(findstring $$(CONF), $$(var)), $$(var))))
endif
ifneq ($$(filter $$(CONF), $$(matching_confs)), )
ifneq ($$(word 2, $$(matching_confs)), )
# Don't repeat this output on make restarts caused by including
# generated files.
ifeq ($$(MAKE_RESTARTS), )
$$(info Using exact match for CONF=$$(CONF) (other matches are possible))
endif
endif
# If we found an exact match, use that
matching_confs := $$(CONF)
endif
endif
ifeq ($$(matching_confs), )
$$(info Error: No configurations found matching CONF=$$(CONF).)
$$(info Available configurations in $$(build_dir):)
$$(foreach var, $$(all_confs), $$(info * $$(var)))
$$(error Cannot continue)
else
# Don't repeat this output on make restarts caused by including
# generated files.
ifeq ($$(MAKE_RESTARTS), )
ifeq ($$(words $$(matching_confs)), 1)
ifneq ($$(findstring $$(LOG_LEVEL), info debug trace), )
$$(info Building configuration '$$(matching_confs)' (matching CONF=$$(CONF)))
endif
else
$$(info Building these configurations (matching CONF=$$(CONF)):)
$$(foreach var, $$(matching_confs), $$(info * $$(var)))
endif
endif
endif
# Create a SPEC definition. This will contain the path to one or more spec.gmk files.
SPECS := $$(addsuffix /spec.gmk, $$(addprefix $$(build_dir)/, $$(matching_confs)))
else
# No CONF or SPEC given, check the available configurations
ifneq ($$(words $$(all_spec_files)), 1)
$$(info Error: No CONF given, but more than one configuration found.)
$$(info Available configurations in $$(build_dir):)
$$(foreach var, $$(all_confs), $$(info * $$(var)))
$$(info Please retry building with CONF=<config pattern> (or SPEC=<spec file>).)
$$(info )
$$(error Cannot continue)
endif
# We found exactly one configuration, use it
SPECS := $$(strip $$(all_spec_files))
endif
endif
endef
# Extract main targets from Main.gmk using the spec provided in $2.
#
# Param 1: FORCE = force generation of main-targets.gmk or LAZY = do not force.
# Param 2: The SPEC file to use.
define DefineMainTargets
# We will start by making sure the main-targets.gmk file is removed, if
# make has not been restarted. By the -include, we will trigger the
# rule for generating the file (which is never there since we removed it),
# thus generating it fresh, and make will restart, incrementing the restart
# count.
main_targets_file := $$(dir $(strip $2))make-support/main-targets.gmk
ifeq ($$(MAKE_RESTARTS), )
# Only do this if make has not been restarted, and if we do not force it.
ifeq ($(strip $1), FORCE)
$$(shell rm -f $$(main_targets_file))
endif
endif
$$(main_targets_file):
@( cd $$(TOPDIR) && \
$$(MAKE) $$(MAKE_LOG_FLAGS) -r -R -f $$(TOPDIR)/make/Main.gmk \
-I $$(TOPDIR)/make/common SPEC=$(strip $2) NO_RECIPES=true \
$$(MAKE_LOG_VARS) \
create-main-targets-include )
# Now include main-targets.gmk. This will define ALL_MAIN_TARGETS.
-include $$(main_targets_file)
endef
define PrintConfCheckFailed
@echo ' '
@echo "Please rerun configure! Easiest way to do this is by running"
@echo "'make reconfigure'."
@echo "This behavior may also be changed using CONF_CHECK=<ignore|auto>."
@echo ' '
endef
################################################################################

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2025, 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
@@ -23,16 +23,12 @@
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
include MakeFileStart.gmk
################################################################################
# This makefile generates the "release" file into the exploded image. Jlink is
# then responsible for using this as the base for release files in each linked
# image.
#
################################################################################
BASE_RELEASE_FILE := $(JDK_OUTPUTDIR)/release
@@ -85,10 +81,4 @@ TARGETS += $(BASE_RELEASE_FILE)
################################################################################
$(eval $(call IncludeCustomExtension, ReleaseFile.gmk))
################################################################################
all: $(TARGETS)
.PHONY: all default
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2025, 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
@@ -23,10 +23,10 @@
# questions.
#
default: all
include MakeFileStart.gmk
################################################################################
include $(SPEC)
include MakeBase.gmk
include FindTests.gmk
# We will always run multiple tests serially
@@ -45,7 +45,7 @@ ifneq ($(TEST_VM_OPTS), )
endif
$(eval $(call ParseKeywordVariable, TEST_OPTS, \
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR JCOV JCOV_DIFF_CHANGESET, \
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR JCOV JCOV_DIFF_CHANGESET AOT_JDK, \
STRING_KEYWORDS := VM_OPTIONS JAVA_OPTIONS, \
))
@@ -71,13 +71,13 @@ ifeq ($(call isTargetOs, windows), true)
endif
endif
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, RunTests.gmk))
################################################################################
# This is the JDK that we will test
JDK_UNDER_TEST := $(JDK_IMAGE_DIR)
# The JDK used to compile jtreg test code. By default it is the same as
# JDK_UNDER_TEST.
JDK_FOR_COMPILE := $(JDK_IMAGE_DIR)
TEST_RESULTS_DIR := $(OUTPUTDIR)/test-results
TEST_SUPPORT_DIR := $(OUTPUTDIR)/test-support
@@ -108,8 +108,8 @@ ifneq ($(wildcard $(JTREG_FAILURE_HANDLER)), )
#
endif
GTEST_LAUNCHER_DIRS := $(patsubst %/gtestLauncher, %, \
$(wildcard $(TEST_IMAGE_DIR)/hotspot/gtest/*/gtestLauncher))
GTEST_LAUNCHER_DIRS := $(patsubst %/gtestLauncher$(EXECUTABLE_SUFFIX), %, \
$(wildcard $(TEST_IMAGE_DIR)/hotspot/gtest/*/gtestLauncher$(EXECUTABLE_SUFFIX)))
GTEST_VARIANTS := $(strip $(patsubst $(TEST_IMAGE_DIR)/hotspot/gtest/%, %, \
$(GTEST_LAUNCHER_DIRS)))
@@ -202,11 +202,12 @@ $(eval $(call SetTestOpt,JOBS,JTREG))
$(eval $(call SetTestOpt,TIMEOUT_FACTOR,JTREG))
$(eval $(call SetTestOpt,FAILURE_HANDLER_TIMEOUT,JTREG))
$(eval $(call SetTestOpt,REPORT,JTREG))
$(eval $(call SetTestOpt,AOT_JDK,JTREG))
$(eval $(call ParseKeywordVariable, JTREG, \
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR FAILURE_HANDLER_TIMEOUT \
TEST_MODE ASSERT VERBOSE RETAIN TEST_THREAD_FACTORY MAX_MEM RUN_PROBLEM_LISTS \
RETRY_COUNT REPEAT_COUNT MAX_OUTPUT REPORT $(CUSTOM_JTREG_SINGLE_KEYWORDS), \
RETRY_COUNT REPEAT_COUNT MAX_OUTPUT REPORT AOT_JDK $(CUSTOM_JTREG_SINGLE_KEYWORDS), \
STRING_KEYWORDS := OPTIONS JAVA_OPTIONS VM_OPTIONS KEYWORDS \
EXTRA_PROBLEM_LISTS LAUNCHER_OPTIONS \
$(CUSTOM_JTREG_STRING_KEYWORDS), \
@@ -529,21 +530,34 @@ define SetupRunGtestTestBody
$$(call LogWarn, Test report is stored in $$(strip \
$$(subst $$(TOPDIR)/, , $$($1_TEST_RESULTS_DIR))))
$$(if $$(wildcard $$($1_RESULT_FILE)), \
$$(eval $1_TOTAL := $$(shell $$(AWK) '/==========.* tests? from .* \
test (cases?|suites?) ran/ { print $$$$2 }' $$($1_RESULT_FILE))) \
$$(if $$($1_TOTAL), , $$(eval $1_TOTAL := 0)) \
$$(eval $1_RUN := $$(shell $$(AWK) \
'/==========.* tests? from .* test (cases?|suites?) ran/ { print $$$$2 }' \
$$($1_RESULT_FILE))) \
$$(if $$($1_RUN), , $$(eval $1_RUN := 0)) \
$$(eval $1_PASSED := $$(shell $$(AWK) '/\[ PASSED \] .* tests?./ \
{ print $$$$4 }' $$($1_RESULT_FILE))) \
$$(if $$($1_PASSED), , $$(eval $1_PASSED := 0)) \
$$(eval $1_SKIPPED := $$(shell $$(AWK) \
'/YOU HAVE [0-9]+ DISABLED TEST/ { \
if (match($$$$0, /[0-9]+/, arr)) { \
print arr[0]; \
found=1; \
} \
if (!found) { print 0; } \
}' \
$$($1_RESULT_FILE))) \
$$(eval $1_FAILED := $$(shell $$(AWK) '/\[ FAILED \] .* tests?, \
listed below/ { print $$$$4 }' $$($1_RESULT_FILE))) \
$$(if $$($1_FAILED), , $$(eval $1_FAILED := 0)) \
$$(eval $1_ERROR := $$(shell \
$$(EXPR) $$($1_TOTAL) - $$($1_PASSED) - $$($1_FAILED))) \
$$(EXPR) $$($1_RUN) - $$($1_PASSED) - $$($1_FAILED))) \
$$(eval $1_TOTAL := $$(shell \
$$(EXPR) $$($1_RUN) + $$($1_SKIPPED))) \
, \
$$(eval $1_PASSED := 0) \
$$(eval $1_FAILED := 0) \
$$(eval $1_ERROR := 1) \
$$(eval $1_SKIPPED := 0) \
$$(eval $1_TOTAL := 1) \
)
@@ -667,6 +681,7 @@ define SetupRunMicroTestBody
$$(eval $1_ERROR := 1) \
$$(eval $1_TOTAL := 1) \
)
$$(eval $1_SKIPPED := 0)
$1: run-test-$1 parse-test-$1
@@ -702,6 +717,60 @@ define SetJtregValue
endif
endef
################################################################################
# Helper function for creating a customized AOT cache for running tests
################################################################################
# Parameter 1 is the name of the rule.
#
# Remaining parameters are named arguments.
# VM_OPTIONS List of JVM arguments to use when creating AOT cache
#
# After calling this, the following variables are defined
# $1_AOT_TARGETS List of all targets that the test rule will need to depend on
# $1_AOT_JDK_CACHE The AOT cache file to be used to run the test with
#
SetupAOT = $(NamedParamsMacroTemplate)
define SetupAOTBody
$1_AOT_JDK_CONF := $$($1_TEST_SUPPORT_DIR)/aot/jdk.aotconf
$1_AOT_JDK_CACHE := $$($1_TEST_SUPPORT_DIR)/aot/jdk.aotcache
$1_AOT_JDK_LOG := $$($1_TEST_SUPPORT_DIR)/aot/TestSetupAOT.log
# We execute the training run with $(TEST_IMAGE_DIR)/setup_aot/TestSetupAOT.class
# to touch a fair number of classes inside the JDK. Note that we can't specify a classpath,
# or else the AOT cache cannot be used with jtreg test cases that use a different value
# for their classpaths. Instead, we run in the $(TEST_IMAGE_DIR)/setup_aot/ directory.
# The "java" launcher will have an implicit classpath of ".", so it can pick up the TestSetupAOT
# class from the JVM's current directory.
#
# The TestSetupAOT class (or any other classes that are loaded from ".") will be excluded
# from the the AOT cache as "." is an unsupported location. As a result, the AOT cache will contain
# only classes from the JDK.
$$($1_AOT_JDK_CACHE): $$(JDK_IMAGE_DIR)/release
$$(call MakeDir, $$($1_TEST_SUPPORT_DIR)/aot)
$$(call LogWarn, AOT: Create cache configuration) \
$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/aot, ( \
$(CD) $(TEST_IMAGE_DIR)/setup_aot; \
$$(FIXPATH) $(JDK_UNDER_TEST)/bin/java $$($1_VM_OPTIONS) \
-Xlog:cds,cds+class=debug:file=$$($1_AOT_JDK_CONF).log -Xlog:cds*=error \
-XX:AOTMode=record -XX:AOTConfiguration=$$($1_AOT_JDK_CONF) \
TestSetupAOT > $$($1_AOT_JDK_LOG) \
))
$$(call LogWarn, AOT: Generate AOT cache $$($1_AOT_JDK_CACHE) with flags: $$($1_VM_OPTIONS))
$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/aot, ( \
$$(FIXPATH) $(JDK_UNDER_TEST)/bin/java \
$$($1_VM_OPTIONS) -Xlog:cds,cds+class=debug:file=$$($1_AOT_JDK_CACHE).log -Xlog:cds*=error \
-XX:ExtraSharedClassListFile=$(JDK_UNDER_TEST)/lib/classlist \
-XX:AOTMode=create -XX:AOTConfiguration=$$($1_AOT_JDK_CONF) -XX:AOTCache=$$($1_AOT_JDK_CACHE) \
))
$1_AOT_TARGETS += $$($1_AOT_JDK_CACHE)
endef
SetupRunJtregTest = $(NamedParamsMacroTemplate)
define SetupRunJtregTestBody
$1_TEST_RESULTS_DIR := $$(TEST_RESULTS_DIR)/$1
@@ -762,6 +831,7 @@ define SetupRunJtregTestBody
JTREG_RETRY_COUNT ?= 0
JTREG_REPEAT_COUNT ?= 0
JTREG_REPORT ?= files
JTREG_AOT_JDK ?= false
ifneq ($$(JTREG_RETRY_COUNT), 0)
ifneq ($$(JTREG_REPEAT_COUNT), 0)
@@ -891,6 +961,16 @@ define SetupRunJtregTestBody
endif
endif
ifeq ($$(JTREG_AOT_JDK), true)
$$(call LogWarn, Add AOT target for $1)
$$(eval $$(call SetupAOT, $1, VM_OPTIONS := $$(JTREG_ALL_OPTIONS) ))
$$(call LogWarn, AOT_JDK_CACHE=$$($1_AOT_JDK_CACHE))
$1_JTREG_BASIC_OPTIONS += -vmoption:-XX:AOTCache="$$($1_AOT_JDK_CACHE)"
endif
$$(eval $$(call SetupRunJtregTestCustom, $1))
# SetupRunJtregTestCustom might also adjust JTREG_AUTO_ variables
@@ -906,6 +986,7 @@ define SetupRunJtregTestBody
JTREG_TIMEOUT_FACTOR ?= $$(JTREG_AUTO_TIMEOUT_FACTOR)
clean-outputdirs-$1:
$$(call LogWarn, Clean up dirs for $1)
$$(RM) -r $$($1_TEST_SUPPORT_DIR)
$$(RM) -r $$($1_TEST_RESULTS_DIR)
@@ -913,6 +994,7 @@ define SetupRunJtregTestBody
$$(JTREG_JAVA) $$($1_JTREG_LAUNCHER_OPTIONS) \
-Dprogram=jtreg -jar $$(JT_HOME)/lib/jtreg.jar \
$$($1_JTREG_BASIC_OPTIONS) \
-compilejdk:$$(JDK_FOR_COMPILE) \
-testjdk:$$(JDK_UNDER_TEST) \
-dir:$$(JTREG_TOPDIR) \
-reportDir:$$($1_TEST_RESULTS_DIR) \
@@ -953,7 +1035,7 @@ define SetupRunJtregTestBody
done
endif
run-test-$1: pre-run-test clean-outputdirs-$1
run-test-$1: clean-outputdirs-$1 pre-run-test $$($1_AOT_TARGETS)
$$(call LogWarn)
$$(call LogWarn, Running test '$$($1_TEST)')
$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR) \
@@ -968,23 +1050,64 @@ define SetupRunJtregTestBody
$$(call LogWarn, Finished running test '$$($1_TEST)')
$$(call LogWarn, Test report is stored in $$(strip \
$$(subst $$(TOPDIR)/, , $$($1_TEST_RESULTS_DIR))))
# Read jtreg documentation to learn on the test stats categories:
# https://github.com/openjdk/jtreg/blob/master/src/share/doc/javatest/regtest/faq.md#what-do-all-those-numbers-in-the-test-results-line-mean
# In jtreg, "skipped:" category accounts for tests that threw jtreg.SkippedException at runtime.
# At the same time these tests contribute to "passed:" tests.
# In here we don't want that and so we substract number of "skipped:" from "passed:".
$$(if $$(wildcard $$($1_RESULT_FILE)), \
$$(eval $1_PASSED := $$(shell $$(AWK) '{ gsub(/[,;]/, ""); \
$$(eval $1_PASSED_AND_RUNTIME_SKIPPED := $$(shell $$(AWK) '{ gsub(/[,;]/, ""); \
for (i=1; i<=NF; i++) { if ($$$$i == "passed:") \
print $$$$(i+1) } }' $$($1_RESULT_FILE))) \
$$(if $$($1_PASSED), , $$(eval $1_PASSED := 0)) \
$$(if $$($1_PASSED_AND_RUNTIME_SKIPPED), , $$(eval $1_PASSED_AND_RUNTIME_SKIPPED := 0)) \
$$(eval $1_FAILED := $$(shell $$(AWK) '{gsub(/[,;]/, ""); \
for (i=1; i<=NF; i++) { if ($$$$i == "failed:") \
print $$$$(i+1) } }' $$($1_RESULT_FILE))) \
$$(if $$($1_FAILED), , $$(eval $1_FAILED := 0)) \
$$(eval $1_RUNTIME_SKIPPED := $$(shell $$(AWK) '{gsub(/[,;]/, ""); \
for (i=1; i<=NF; i++) { if ($$$$i == "skipped:") \
print $$$$(i+1) } }' $$($1_RESULT_FILE))) \
$$(if $$($1_RUNTIME_SKIPPED), , $$(eval $1_RUNTIME_SKIPPED := 0)) \
$$(eval $1_SKIPPED := $$(shell \
$$(AWK) \
'BEGIN { \
overall_skipped = 0; \
patterns[1] = "skipped"; \
patterns[2] = "excluded"; \
patterns[3] = "not in match-list"; \
patterns[4] = "did not match keywords"; \
patterns[5] = "did not meet module requirements"; \
patterns[6] = "did not meet platform requirements"; \
patterns[7] = "did not match prior status"; \
patterns[8] = "did not meet time-limit requirements"; \
} { \
split($$$$0, arr, ";"); \
for (item in arr) { \
for (p in patterns) { \
if (match(arr[item], patterns[p] ": [0-9]+")) { \
overall_skipped += substr(arr[item], RSTART + length(patterns[p]) + 2, RLENGTH); \
} \
} \
} \
print overall_skipped; \
}' \
$$($1_RESULT_FILE) \
)) \
$$(eval $1_ERROR := $$(shell $$(AWK) '{gsub(/[,;]/, ""); \
for (i=1; i<=NF; i++) { if ($$$$i == "error:") \
print $$$$(i+1) } }' $$($1_RESULT_FILE))) \
$$(if $$($1_ERROR), , $$(eval $1_ERROR := 0)) \
\
$$(eval $1_PASSED := $$(shell \
$$(EXPR) $$($1_PASSED_AND_RUNTIME_SKIPPED) - $$($1_RUNTIME_SKIPPED))) \
$$(eval $1_TOTAL := $$(shell \
$$(EXPR) $$($1_PASSED) + $$($1_FAILED) + $$($1_ERROR))) \
$$(EXPR) $$($1_PASSED) + $$($1_FAILED) + $$($1_ERROR) + $$($1_SKIPPED))) \
, \
$$(eval $1_PASSED := 0) \
$$(eval $1_PASSED_AND_RUNTIME_SKIPPED := 0) \
$$(eval $1_RUNTIME_SKIPPED := 0) \
$$(eval $1_SKIPPED := 0) \
$$(eval $1_FAILED := 0) \
$$(eval $1_ERROR := 1) \
$$(eval $1_TOTAL := 1) \
@@ -1043,8 +1166,6 @@ define SetupRunSpecialTestBody
|| $$(ECHO) $$$$? > $$($1_EXITCODE) \
))
$1_RESULT_FILE := $$($1_TEST_RESULTS_DIR)/gtest.txt
# We can not parse the various "special" tests.
parse-test-$1: run-test-$1
$$(call LogWarn, Finished running test '$$($1_TEST)')
@@ -1054,6 +1175,7 @@ define SetupRunSpecialTestBody
$$(eval $1_PASSED := $$(shell \
if [ `$(CAT) $$($1_EXITCODE)` = "0" ]; then $(ECHO) 1; else $(ECHO) 0; fi \
))
$$(eval $1_SKIPPED := 0)
$$(eval $1_FAILED := $$(shell \
if [ `$(CAT) $$($1_EXITCODE)` = "0" ]; then $(ECHO) 0; else $(ECHO) 1; fi \
))
@@ -1163,8 +1285,8 @@ run-test-report: post-run-test
$(ECHO) >> $(TEST_SUMMARY) ==============================
$(ECHO) >> $(TEST_SUMMARY) Test summary
$(ECHO) >> $(TEST_SUMMARY) ==============================
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5s %5s %5s %5s %2s\n" " " \
TEST TOTAL PASS FAIL ERROR " "
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5s %5s %5s %5s %5s %2s\n" " " \
TEST TOTAL PASS FAIL ERROR SKIP " "
$(foreach test, $(TESTS_TO_RUN), \
$(eval TEST_ID := $(shell $(ECHO) $(strip $(test)) | \
$(TR) -cs '[a-z][A-Z][0-9]\n' '[_*1000]')) \
@@ -1176,15 +1298,15 @@ run-test-report: post-run-test
, \
$(eval TEST_NAME := $(test)) \
) \
$(if $(filter $($(TEST_ID)_PASSED), $($(TEST_ID)_TOTAL)), \
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5d %5d %5d %5d %2s\n" \
" " "$(TEST_NAME)" $($(TEST_ID)_TOTAL) $($(TEST_ID)_PASSED) \
$($(TEST_ID)_FAILED) $($(TEST_ID)_ERROR) " " $(NEWLINE) \
, \
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5d %5d %5d %5d %2s\n" \
$(if $(filter-out 0, $($(TEST_ID)_FAILED) $($(TEST_ID)_ERROR)), \
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5d %5d %5d %5d %5d %2s\n" \
">>" "$(TEST_NAME)" $($(TEST_ID)_TOTAL) $($(TEST_ID)_PASSED) \
$($(TEST_ID)_FAILED) $($(TEST_ID)_ERROR) "<<" $(NEWLINE) \
$($(TEST_ID)_FAILED) $($(TEST_ID)_ERROR) $($(TEST_ID)_SKIPPED) "<<" $(NEWLINE) \
$(eval TEST_FAILURE := true) \
, \
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5d %5d %5d %5d %5d %2s\n" \
" " "$(TEST_NAME)" $($(TEST_ID)_TOTAL) $($(TEST_ID)_PASSED) \
$($(TEST_ID)_FAILED) $($(TEST_ID)_ERROR) $($(TEST_ID)_SKIPPED) " " $(NEWLINE) \
) \
)
$(ECHO) >> $(TEST_SUMMARY) ==============================
@@ -1287,4 +1409,8 @@ endif
all: run-test
.PHONY: default all $(TARGETS)
.PHONY: $(TARGETS)
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2017, 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
@@ -24,9 +24,11 @@
#
################################################################################
# Initial bootstrapping, copied and stripped down from Makefile and Init.gmk
# Initial bootstrapping, copied and stripped down from Makefile and PreInit.gmk.
################################################################################
IS_PREINIT_ENV := true
# In Cygwin, the MAKE variable gets prepended with the current directory if the
# make executable is called using a Windows mixed path (c:/cygwin/bin/make.exe).
ifneq ($(findstring :, $(MAKE)), )
@@ -57,7 +59,7 @@ TOPDIR := $(strip $(patsubst %/make/, %, $(dir $(makefile_path))))
define SetupVariable
ifeq ($$($1), )
ifeq ($2, )
$$(info Error: Prebuilt variable $1 is missing, needed for run-tests-prebuilt)
$$(info Error: Prebuilt variable $1 is missing, needed for test-prebuilt)
$$(error Cannot continue.)
else ifeq ($2, OPTIONAL)
ifneq ($$(findstring $$(LOG), info debug trace), )
@@ -135,8 +137,8 @@ $(eval $(call SetupVariable,JIB_JAR,OPTIONAL))
# can include the prebuilt spec file ourselves, without an ephemeral spec
# wrapper. This is required so we can include MakeBase which is needed for
# CreateNewSpec.
HAS_SPEC :=
include $(TOPDIR)/make/InitSupport.gmk
include $(TOPDIR)/make/PreInitSupport.gmk
include $(TOPDIR)/make/common/LogUtils.gmk
$(eval $(call CheckDeprecatedEnvironment))
$(eval $(call CheckInvalidMakeFlags))
@@ -245,7 +247,7 @@ endif
# Now we can include additional custom support.
# This might define CUSTOM_NEW_SPEC_LINE
ifneq ($(CUSTOM_MAKE_DIR), )
include $(CUSTOM_MAKE_DIR)/RunTestsPrebuilt.gmk
include $(CUSTOM_MAKE_DIR)/RunTestsPrebuilt-pre.gmk
endif
NEW_SPEC := $(OUTPUTDIR)/run-test-spec.gmk
@@ -295,13 +297,10 @@ test-prebuilt:
# is unfortunately not available at this point.
$(call MakeDir, $(MAKESUPPORT_OUTPUTDIR)/failure-logs)
@$(RM) -f $(MAKESUPPORT_OUTPUTDIR)/exit-with-error
# The lazy initialization of the cache file in FindTests.gmk does not
# always work with RunTests.gmk. To guarantee that the jtreg test groups
# are always found and parsed, call FindTests.gmk stand alone once
# before calling RunTests.gmk.
@cd $(TOPDIR) && $(MAKE) $(MAKE_ARGS) -f make/common/FindTests.gmk \
SPEC=$(SPEC) FINDTESTS_STAND_ALONE=true
@cd $(TOPDIR) && $(MAKE) $(MAKE_ARGS) -f make/RunTests.gmk run-test \
# We need to fill the FindTest cache before entering RunTests.gmk.
@cd $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) SPEC=$(SPEC) \
-f RunTestsPrebuiltFindTests.gmk
@cd $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f RunTests.gmk run-test \
TEST="$(TEST)"
test-prebuilt-with-exit-code: test-prebuilt

View File

@@ -0,0 +1,38 @@
#
# Copyright (c) 2025, 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.
#
include MakeFileStart.gmk
################################################################################
# This makefile is a thin wrapper around FindTests.gmk, just to make FindTest
# fill the cache.
################################################################################
GENERATE_FIND_TESTS_FILE := true
include FindTests.gmk
################################################################################
include MakeFileEnd.gmk

View File

@@ -63,7 +63,7 @@ TEST_JOBS ?= 0
# Use hard-coded values for java flags (one size, fits all!)
JAVA_FLAGS := -Duser.language=en -Duser.country=US
JAVA_FLAGS_BIG := -Xms64M -Xmx1600M
JAVA_FLAGS_BIG := -Xms64M -Xmx2048M
JAVA_FLAGS_SMALL := -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
BUILDJDK_JAVA_FLAGS_SMALL := -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
BUILD_JAVA_FLAGS := $(JAVA_FLAGS_BIG)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2025, 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
@@ -23,10 +23,7 @@
# questions.
#
include $(SPEC)
include MakeBase.gmk
$(eval $(call IncludeCustomExtension, SourceRevision-pre.gmk))
include MakeFileStart.gmk
################################################################################
# Keep track of what source revision is used to create the build, by creating
@@ -38,6 +35,7 @@ $(eval $(call IncludeCustomExtension, SourceRevision-pre.gmk))
# bundle. As a part of creating this source bundle, the current SCM revisions of
# all repos will be stored in a file in the top dir, which is then used when
# creating the tracker file.
################################################################################
STORED_SOURCE_REVISION := $(TOPDIR)/.src-rev
@@ -156,10 +154,6 @@ endif
################################################################################
$(eval $(call IncludeCustomExtension, SourceRevision-post.gmk))
################################################################################
store-source-revision: $(STORE_SOURCE_REVISION_TARGET)
create-source-revision-tracker: $(CREATE_SOURCE_REVISION_TRACKER_TARGET)
@@ -167,3 +161,7 @@ create-source-revision-tracker: $(CREATE_SOURCE_REVISION_TRACKER_TARGET)
FRC: # Force target
.PHONY: store-source-revision create-source-revision-tracker
################################################################################
include MakeFileEnd.gmk

191
make/StaticLibs.gmk Normal file
View File

@@ -0,0 +1,191 @@
#
# Copyright (c) 2024, 2025, 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.
#
include MakeFileStart.gmk
################################################################################
include CopyFiles.gmk
include DebugInfoUtils.gmk
include Modules.gmk
include modules/LauncherCommon.gmk
################################################################################
#
# Create the static java launcher
#
################################################################################
STATIC_JDK_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/static-jdk
STATIC_LAUNCHER_OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/static-native/launcher
HOTSPOT_STATIC_LIB_PATH := $(HOTSPOT_OUTPUTDIR)/*/libjvm/objs/static
ifneq ($(word 2, $(wildcard $(HOTSPOT_STATIC_LIB_PATH))), )
$(error Cannot perform static linking when building more than one JVM library)
endif
# Find all modules with static libraries
STATIC_LIB_MODULES := $(patsubst $(SUPPORT_OUTPUTDIR)/modules_static-libs/%, \
%, $(wildcard $(SUPPORT_OUTPUTDIR)/modules_static-libs/*))
# Filter out known broken libraries. This is a temporary measure until
# proper support for these libraries can be provided.
ifeq ($(call isTargetOs, linux), true)
# libsplashscreen has a name conflict with libawt in the function
# BitmapToYXBandedRectangles, so we exclude it for now.
BROKEN_STATIC_LIBS += splashscreen
else ifeq ($(call isTargetOs, macosx), true)
# libosxsecurity has a name conflict with libosxapp in the function
# JavaStringToNSString, so we exclude it for now.
BROKEN_STATIC_LIBS += osxsecurity
else ifeq ($(call isTargetOs, windows), true)
# libsplashscreen has a name conflict with libawt in the function
# BitmapToYXBandedRectangles, so we exclude it for now.
BROKEN_STATIC_LIBS += splashscreen
# libsspi_bridge has name conflicts with sunmscapi
BROKEN_STATIC_LIBS += sspi_bridge
# dt_shmem define jdwpTransport_OnLoad which conflict with dt_socket
BROKEN_STATIC_LIBS += dt_shmem
endif
$(foreach module, $(STATIC_LIB_MODULES), \
$(eval LIBS_$(module) := $(filter-out $(BROKEN_STATIC_LIBS), $(shell cat \
$(SUPPORT_OUTPUTDIR)/modules_static-libs/$(module)/module-included-libs.txt))) \
)
STATIC_LIB_FILES := $(foreach module, $(STATIC_LIB_MODULES), \
$(foreach lib, $(LIBS_$(module)), \
$(SUPPORT_OUTPUTDIR)/native/$(module)/lib$(lib)/static/$(LIBRARY_PREFIX)$(lib)$(STATIC_LIBRARY_SUFFIX)))
# Add Hotspot
STATIC_LIB_FILES += $(wildcard $(HOTSPOT_STATIC_LIB_PATH)/$(LIBRARY_PREFIX)jvm$(STATIC_LIBRARY_SUFFIX))
# Figure out what external libraries are required to link these static JDK
# libraries.
LIB_FLAGS_FILES := $(addsuffix .lib-flags.txt, $(STATIC_LIB_FILES))
# Gather the lib flags from all individual libraries. There are many duplicates,
# so sort and just keep unique instances. On macOS, a common pattern is
# "-framework FooFramework", so we must make sure we keep the two words together.
EXTERNAL_LIBS := $(strip $(shell $(CAT) $(LIB_FLAGS_FILES) | \
$(SED) -e 's/-framework /-framework_/g' | $(TR) ' ' '\n' | $(SORT) -u | \
$(SED) -e 's/-framework_/-framework /g'))
ifeq ($(call isTargetOs, macosx), true)
STATIC_LIBS := $(addprefix -force_load$(SPACE), $(STATIC_LIB_FILES))
else ifeq ($(call isTargetOs, linux), true)
STATIC_LIBS := -Wl,--export-dynamic -Wl,--whole-archive $(STATIC_LIB_FILES) -Wl,--no-whole-archive
else ifeq ($(call isTargetOs, windows), true)
STATIC_LIBS := $(addprefix -wholearchive:, $(STATIC_LIB_FILES))
else
$(error Unsupported platform)
endif
$(eval $(call SetupBuildLauncher, java, \
ENABLE_ARG_FILES := true, \
EXPAND_CLASSPATH_WILDCARDS := true, \
EXTRA_RCFLAGS := $(JAVA_RCFLAGS), \
VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
OPTIMIZATION := HIGH, \
STATIC_LAUNCHER := true, \
LDFLAGS := $(LDFLAGS_STATIC_JDK), \
LIBS := $(STATIC_LIBS) $(EXTERNAL_LIBS), \
LINK_TYPE := C++, \
OUTPUT_DIR := $(STATIC_LAUNCHER_OUTPUT_DIR), \
OBJECT_DIR := $(STATIC_LAUNCHER_OUTPUT_DIR), \
))
$(java): $(STATIC_LIB_FILES)
TARGETS += $(java)
JAVA_LAUNCHER := $(BUILD_LAUNCHER_java_TARGET)
static-launcher: $(java)
################################################################################
#
# Create the static-jdk image with the statically built java launcher
#
################################################################################
# Until we get proper support in jlink for generating an image with static
# builds, we need to create the image ourselves. We base it on a normal
# dynamically linked JDK image.
# All these files/dirs should be copied as-is
JDK_IMAGE_COPY_FILES := $(addprefix $(JDK_IMAGE_DIR)/, conf demo include jmods \
legal man/man1/java.1 release README)
# We need to copy some files from lib, but not the dynamic libraries themselves
ALL_LIB_FILES := $(call FindFiles, $(JDK_IMAGE_DIR)/lib)
# Remove all dynamic libraries from the list
JDK_IMAGE_COPY_LIB_FILES := $(filter-out %$(SHARED_LIBRARY_SUFFIX), $(ALL_LIB_FILES))
# Remove all debug files from the list
ifeq ($(call isTargetOs, macosx), true)
JDK_IMAGE_COPY_LIB_FILES := $(call not-containing, .dSYM, $(JDK_IMAGE_COPY_LIB_FILES))
else
JDK_IMAGE_COPY_LIB_FILES := $(filter-out %.debuginfo %.pdb %.map, $(JDK_IMAGE_COPY_LIB_FILES))
endif
static-jdk-info:
$(call LogWarn, Creating static-jdk image)
$(eval $(call SetupCopyFiles, copy-from-jdk-image, \
SRC := $(JDK_IMAGE_DIR), \
DEST := $(STATIC_JDK_IMAGE_DIR), \
FILES := $(call FindFiles, $(JDK_IMAGE_COPY_FILES)) \
$(JDK_IMAGE_COPY_LIB_FILES), \
))
TARGETS += $(copy-from-jdk-image)
$(copy-from-jdk-image): | static-jdk-info
$(eval $(call SetupCopyFiles, copy-static-launcher, \
FILES := $(JAVA_LAUNCHER), \
DEST := $(STATIC_JDK_IMAGE_DIR)/bin, \
))
TARGETS += $(copy-static-launcher)
$(eval $(call SetupCopyFiles, copy-static-launcher-debuginfo, \
SRC := $(STATIC_LAUNCHER_OUTPUT_DIR), \
DEST := $(STATIC_JDK_IMAGE_DIR)/bin, \
FILES := $(call FindDebuginfoFiles, $(STATIC_LAUNCHER_OUTPUT_DIR)), \
))
TARGETS += $(copy-static-launcher-debuginfo)
static-jdk-image: $(copy-from-jdk-image) $(copy-static-launcher) $(copy-static-launcher-debuginfo)
TARGETS += static-jdk-image
.PHONY: static-launcher static-jdk-image
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2019, 2025, 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
@@ -23,13 +23,12 @@
# questions.
#
include MakeFileStart.gmk
################################################################################
# This makefile creates an image of the optional static versions of certain JDK
# libraries.
default: all
include $(SPEC)
include MakeBase.gmk
################################################################################
include CopyFiles.gmk
include Modules.gmk
@@ -38,8 +37,6 @@ ALL_MODULES = $(call FindAllModules)
################################################################################
TARGETS :=
ifneq ($(filter static-libs-image, $(MAKECMDGOALS)), )
IMAGE_DEST_DIR = $(STATIC_LIBS_IMAGE_DIR)/lib
else ifneq ($(filter static-libs-graal-image, $(MAKECMDGOALS)), )
@@ -72,11 +69,9 @@ ifneq ($(filter static-libs-image, $(MAKECMDGOALS)), )
)
endif
################################################################################
static-libs-image: $(HOTSPOT_VARIANT_STATIC_LIBS_TARGETS) $(STATIC_LIBS_TARGETS)
static-libs-graal-image: $(STATIC_LIBS_TARGETS)
all: $(TARGETS)
################################################################################
.PHONY: all
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2017, 2025, 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
@@ -23,13 +23,7 @@
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, TestImage-pre.gmk))
include MakeFileStart.gmk
################################################################################
@@ -54,4 +48,8 @@ TARGETS += $(BUILD_INFO_PROPERTIES) $(README)
prepare-test-image: $(TARGETS)
all: prepare-test-image
.PHONY: default all prepare-test-image
.PHONY: prepare-test-image
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2020, 2025, 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
@@ -23,8 +23,10 @@
# questions.
#
ifndef _TOOLS_HOTSPOT_GMK
_TOOLS_HOTSPOT_GMK := 1
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
################################################################################
include JavaCompilation.gmk
@@ -44,4 +46,5 @@ TOOL_JFR_GEN := $(JAVA_SMALL) -cp $(HOTSPOT_TOOLS_OUTPUTDIR) \
################################################################################
endif # _TOOLS_HOTSPOT_GMK
endif # include guard
include MakeIncludeEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -23,14 +23,13 @@
# questions.
#
ifndef _TOOLS_GMK
_TOOLS_GMK := 1
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
################################################################################
include JavaCompilation.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Tools.gmk))
################################################################################
# To avoid reevaluating the compilation setup for the tools each time this file
# is included, the actual compilation is handled by CompileTools.gmk. The
@@ -137,7 +136,5 @@ PANDOC_HTML_MANPAGE_FILTER := $(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-html-manpa
################################################################################
# Hook to include the corresponding custom post file, if present.
$(eval $(call IncludeCustomExtension, ToolsJdk-post.gmk))
endif # _TOOLS_GMK
endif # include guard
include MakeIncludeEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, 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
@@ -23,11 +23,10 @@
# questions.
#
# This must be the first rule
default: all
include MakeFileStart.gmk
################################################################################
include $(SPEC)
include MakeBase.gmk
include JavaCompilation.gmk
################################################################################
@@ -43,3 +42,7 @@ $(eval $(call SetupJavaCompilation, BUILD_TOOLS_LANGTOOLS, \
))
all: $(BUILD_TOOLS_LANGTOOLS)
################################################################################
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2017, 2025, 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
@@ -23,17 +23,14 @@
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
include ProcessMarkdown.gmk
include MakeFileStart.gmk
################################################################################
# This makefile updates the generated build html documentation.
#
################################################################################
include ProcessMarkdown.gmk
ifeq ($(ENABLE_PANDOC), false)
$(info No pandoc executable was detected by configure)
$(error Cannot continue)
@@ -55,10 +52,4 @@ TARGETS += $(md_docs)
################################################################################
$(eval $(call IncludeCustomExtension, UpdateBuildDocs.gmk))
################################################################################
all: $(TARGETS)
.PHONY: all default
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2024, 2025, 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
@@ -23,15 +23,7 @@
# questions.
#
################################################################################
default: all
include $(SPEC)
include MakeBase.gmk
include CopyFiles.gmk
include Execute.gmk
include MakeFileStart.gmk
################################################################################
# This file is responsible for updating the generated sleef source code files
@@ -40,6 +32,9 @@ include Execute.gmk
# updated from upstream.
################################################################################
include CopyFiles.gmk
include Execute.gmk
ifneq ($(COMPILE_TYPE), cross)
$(error Only cross-compilation of libsleef is currently supported)
endif
@@ -148,6 +143,4 @@ TARGETS := $(copy_generated_sleef_source)
################################################################################
all: $(TARGETS)
.PHONY: all default
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 2025, 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
@@ -23,15 +23,7 @@
# questions.
#
################################################################################
default: all
include $(SPEC)
include MakeBase.gmk
include Execute.gmk
include JdkNativeCompilation.gmk
include ToolsJdk.gmk
include MakeFileStart.gmk
################################################################################
# This file is responsible for extracting the x11 native struct offsets to
@@ -43,6 +35,10 @@ include ToolsJdk.gmk
# GensrcX11Wrappers.gmk to generate the Java code during the build.
################################################################################
include Execute.gmk
include JdkNativeCompilation.gmk
include $(TOPDIR)/make/ToolsJdk.gmk
ifeq ($(COMPILE_TYPE), cross)
$(error It is not possible to update the x11wrappers when cross-compiling)
endif
@@ -108,6 +104,4 @@ TARGETS += $(run_wrappergen) wrapper-information
################################################################################
all: $(TARGETS)
.PHONY: all default
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, 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
@@ -23,11 +23,11 @@
# questions.
#
default: all
include MakeFileStart.gmk
include $(SPEC)
include MakeBase.gmk
include JavaCompilation.gmk
################################################################################
include ZipArchive.gmk
################################################################################
#
@@ -100,6 +100,4 @@ endif
################################################################################
all: $(TARGETS)
.PHONY: default all
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, 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
@@ -23,19 +23,16 @@
# questions.
#
default: all
include MakeFileStart.gmk
################################################################################
include $(SPEC)
include MakeBase.gmk
include JavaCompilation.gmk
include Modules.gmk
include ZipArchive.gmk
SRC_ZIP_WORK_DIR := $(SUPPORT_OUTPUTDIR)/src
$(if $(filter $(TOPDIR)/%, $(SUPPORT_OUTPUTDIR)), $(eval SRC_ZIP_BASE := $(TOPDIR)), $(eval SRC_ZIP_BASE := $(SUPPORT_OUTPUTDIR)))
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, ZipSource.gmk))
################################################################################
# Create the directory structure for src.zip using symlinks.
# <module>/<package>/<file>.java
@@ -95,8 +92,8 @@ zip: $(SRC_ZIP_SRCS)
TARGETS += zip
.PHONY: zip
################################################################################
all: $(TARGETS)
.PHONY: default all zip
include MakeFileEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2014, 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

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -84,9 +84,15 @@ AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
# We get the top-level directory from the supporting wrappers.
BASIC_WINDOWS_VERIFY_DIR($TOPDIR, source)
orig_topdir="$TOPDIR"
UTIL_FIXUP_PATH(TOPDIR)
AC_MSG_CHECKING([for top-level directory])
AC_MSG_RESULT([$TOPDIR])
if test "x$TOPDIR" != "x$orig_topdir"; then
AC_MSG_WARN([Your top dir was originally represented as $orig_topdir,])
AC_MSG_WARN([but after rewriting it became $TOPDIR.])
AC_MSG_WARN([This typically means you have characters like space in the path, which can cause all kind of trouble.])
fi
AC_SUBST(TOPDIR)
if test "x$CUSTOM_ROOT" != x; then
@@ -618,4 +624,10 @@ AC_DEFUN_ONCE([BASIC_POST_CONFIG_OUTPUT],
# Make the compare script executable
$CHMOD +x $OUTPUTDIR/compare.sh
# Copy the linker wrapper script for clang on AIX and make it executable
if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
$CP -f "$TOPDIR/make/scripts/aix/ld.sh" "$OUTPUTDIR/ld.sh"
$CHMOD +x "$OUTPUTDIR/ld.sh"
fi
])

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
@@ -470,7 +470,7 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK_ARGUMENTS],
# Maximum amount of heap memory.
JVM_HEAP_LIMIT_32="768"
# Running a 64 bit JVM allows for and requires a bigger heap
JVM_HEAP_LIMIT_64="1600"
JVM_HEAP_LIMIT_64="2048"
JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2`
if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then
JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2020, 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

View File

@@ -1,7 +1,7 @@
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
#
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 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

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -235,9 +235,10 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
# Additional warnings that are not activated by -Wall and -Wextra
WARNINGS_ENABLE_ADDITIONAL="-Wpointer-arith -Wreturn-type -Wsign-compare \
-Wtrampolines -Wundef -Wunused-const-variable=1 -Wunused-function \
-Wunused-result -Wunused-value"
WARNINGS_ENABLE_ADDITIONAL="-Winvalid-pch -Wpointer-arith -Wreturn-type \
-Wsign-compare -Wtrampolines -Wtype-limits -Wundef -Wuninitialized \
-Wunused-const-variable=1 -Wunused-function -Wunused-result \
-Wunused-value"
WARNINGS_ENABLE_ADDITIONAL_CXX="-Woverloaded-virtual -Wreorder"
WARNINGS_ENABLE_ALL_CFLAGS="-Wall -Wextra -Wformat=2 $WARNINGS_ENABLE_ADDITIONAL"
WARNINGS_ENABLE_ALL_CXXFLAGS="$WARNINGS_ENABLE_ALL_CFLAGS $WARNINGS_ENABLE_ADDITIONAL_CXX"
@@ -277,7 +278,7 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
AC_DEFUN([FLAGS_SETUP_QUALITY_CHECKS],
[
# bounds, memory and behavior checking options
if test "x$TOOLCHAIN_TYPE" = xgcc; then
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
case $DEBUG_LEVEL in
release )
# no adjustment
@@ -302,7 +303,7 @@ AC_DEFUN([FLAGS_SETUP_QUALITY_CHECKS],
AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
[
if test "x$TOOLCHAIN_TYPE" = xgcc; then
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
C_O_FLAG_HIGHEST_JVM="-O3"
C_O_FLAG_HIGHEST="-O3"
C_O_FLAG_HI="-O3"
@@ -311,6 +312,13 @@ AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
C_O_FLAG_DEBUG="-O0"
C_O_FLAG_DEBUG_JVM="-O0"
C_O_FLAG_NONE="-O0"
if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
C_O_FLAG_HIGHEST_JVM="${C_O_FLAG_HIGHEST_JVM} -finline-functions"
C_O_FLAG_HIGHEST="${C_O_FLAG_HIGHEST} -finline-functions"
C_O_FLAG_HI="${C_O_FLAG_HI} -finline-functions"
fi
# -D_FORTIFY_SOURCE=2 hardening option needs optimization (at least -O1) enabled
# set for lower O-levels -U_FORTIFY_SOURCE to overwrite previous settings
if test "x$OPENJDK_TARGET_OS" = xlinux -a "x$DEBUG_LEVEL" = "xfastdebug"; then
@@ -331,21 +339,6 @@ AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
C_O_FLAG_DEBUG_JVM="${C_O_FLAG_DEBUG_JVM} ${DISABLE_FORTIFY_CFLAGS}"
C_O_FLAG_NONE="${C_O_FLAG_NONE} ${DISABLE_FORTIFY_CFLAGS}"
fi
elif test "x$TOOLCHAIN_TYPE" = xclang; then
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"
C_O_FLAG_DEBUG="-O0"
C_O_FLAG_NONE="-O0"
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
C_O_FLAG_HIGHEST_JVM="-O2 -Oy-"
C_O_FLAG_HIGHEST="-O2"
@@ -354,7 +347,7 @@ AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
C_O_FLAG_DEBUG="-Od"
C_O_FLAG_DEBUG_JVM=""
C_O_FLAG_NONE="-Od"
C_O_FLAG_SIZE="-Os"
C_O_FLAG_SIZE="-O1"
fi
# Now copy to C++ flags
@@ -489,6 +482,16 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
else
DEBUG_CFLAGS_JDK="-DDEBUG"
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang ; then
INIT_PATTERN_FLAG="-ftrivial-auto-var-init=pattern"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$INIT_PATTERN_FLAG],
IF_TRUE: [
DEBUG_CFLAGS_JDK="$DEBUG_CFLAGS_JDK $INIT_PATTERN_FLAG"
DEBUG_CFLAGS_JVM="$INIT_PATTERN_FLAG"
]
)
fi
if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
DEBUG_CFLAGS_JVM="-fpic -mcmodel=large"
fi
@@ -524,12 +527,6 @@ 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="-fvisibility=hidden -pipe -fstack-protector"
@@ -549,7 +546,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
# Restrict the debug information created by Clang to avoid
# too big object files and speed the build up a little bit
# (see http://llvm.org/bugs/show_bug.cgi?id=7554)
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -flimit-debug-info"
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -flimit-debug-info -fstack-protector"
# In principle the stack alignment below is cpu- and ABI-dependent and
# should agree with values of StackAlignmentInBytes in various
@@ -567,13 +564,19 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
TOOLCHAIN_CFLAGS_JDK="-pipe"
TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing" # technically NOT for CXX
fi
TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK -fvisibility=hidden"
if test "x$OPENJDK_TARGET_OS" = xaix; then
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -ffunction-sections -ftls-model -fno-math-errno"
TOOLCHAIN_CFLAGS_JDK="-ffunction-sections -fsigned-char"
fi
TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK -fvisibility=hidden -fstack-protector"
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
# The -utf-8 option sets source and execution character sets to UTF-8 to enable correct
# compilation of all source files regardless of the active code page on Windows.
TOOLCHAIN_CFLAGS_JVM="-nologo -MD -Zc:preprocessor -Zc:inline -permissive- -utf-8 -MP"
TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:preprocessor -Zc:inline -permissive- -utf-8 -Zc:wchar_t-"
TOOLCHAIN_CFLAGS_JVM="-nologo -MD -Zc:preprocessor -Zc:inline -Zc:throwingNew -permissive- -utf-8 -MP"
TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:preprocessor -Zc:inline -Zc:throwingNew -permissive- -utf-8 -Zc:wchar_t-"
fi
# CFLAGS C language level for JDK sources (hotspot only uses C++)
@@ -648,23 +651,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
# Linking is different on macOS
JVM_PICFLAG=""
fi
# Extra flags needed when building optional static versions of certain
# JDK libraries.
STATIC_LIBS_CFLAGS="-DSTATIC_BUILD=1"
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -ffunction-sections -fdata-sections \
-DJNIEXPORT='__attribute__((visibility(\"default\")))'"
else
STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -DJNIEXPORT="
fi
if test "x$TOOLCHAIN_TYPE" = xgcc; then
# Disable relax-relocation to enable compatibility with older linkers
RELAX_RELOCATIONS_FLAG="-Xassembler -mrelax-relocations=no"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [${RELAX_RELOCATIONS_FLAG}],
IF_TRUE: [STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS ${RELAX_RELOCATIONS_FLAG}"])
fi
AC_SUBST(STATIC_LIBS_CFLAGS)
])
################################################################################
@@ -739,11 +725,13 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
if test "x$FLAGS_CPU" = xppc64; then
# -mminimal-toc fixes `relocation truncated to fit' error for gcc 4.1.
# Use ppc64 instructions, but schedule for power5
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -mminimal-toc -mcpu=powerpc64 -mtune=power5"
$1_CFLAGS_CPU="-mcpu=powerpc64 -mtune=power5"
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -mminimal-toc"
elif test "x$FLAGS_CPU" = xppc64le; then
# Little endian machine uses ELFv2 ABI.
# Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power8"
$1_CFLAGS_CPU="-mcpu=power8 -mtune=power10"
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2"
fi
elif test "x$FLAGS_CPU" = xs390x; then
$1_CFLAGS_CPU="-mbackchain -march=z10"
@@ -761,6 +749,11 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
# for all archs except arm and ppc, prevent gcc to omit frame pointer
$1_CFLAGS_CPU_JDK="${$1_CFLAGS_CPU_JDK} -fno-omit-frame-pointer"
fi
if test "x$FLAGS_CPU" = xppc64le; then
# Little endian machine uses ELFv2 ABI.
# Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power10"
fi
fi
if test "x$OPENJDK_TARGET_OS" = xaix; then
$1_CFLAGS_CPU="-mcpu=pwr8"
@@ -779,10 +772,9 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
fi
if test "x$TOOLCHAIN_TYPE" = xgcc; then
FLAGS_SETUP_GCC6_COMPILER_FLAGS($1, $3)
$1_TOOLCHAIN_CFLAGS="${$1_GCC6_CFLAGS}"
$1_WARNING_CFLAGS_JVM="-Wno-format-zero-length -Wtype-limits -Wuninitialized"
# This flag is required since GCC 6 as undefined behavior in OpenJDK code
# runs afoul of the more aggressive versions of this optimization.
$1_TOOLCHAIN_CFLAGS="-fno-lifetime-dse"
fi
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
@@ -856,6 +848,22 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
FLAGS_SETUP_BRANCH_PROTECTION
if test "x$FLAGS_CPU" = xriscv64; then
AC_MSG_CHECKING([if RVV/vector sigcontext supported])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <linux/ptrace.h>],
[
return (int)sizeof(struct __riscv_v_ext_state);
])],
[
AC_MSG_RESULT([yes])
],
[
$1_DEFINES_CPU_JVM="${$1_DEFINES_CPU_JVM} -DNO_RVV_SIGCONTEXT"
AC_MSG_RESULT([no])
]
)
fi
# EXPORT to API
CFLAGS_JVM_COMMON="$ALWAYS_CFLAGS_JVM $ALWAYS_DEFINES_JVM \
$TOOLCHAIN_CFLAGS_JVM ${$1_TOOLCHAIN_CFLAGS_JVM} \
@@ -944,20 +952,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
AC_SUBST($2SVE_CFLAGS)
])
# FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
# Arguments:
# $1 - Prefix for each variable defined.
# $2 - Prefix for compiler variables (either BUILD_ or nothing).
AC_DEFUN([FLAGS_SETUP_GCC6_COMPILER_FLAGS],
[
# This flag is required for GCC 6 builds as undefined behavior in OpenJDK code
# runs afoul of the more aggressive versions of this optimization.
NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$NO_LIFETIME_DSE_CFLAG],
PREFIX: $2, IF_FALSE: [NO_LIFETIME_DSE_CFLAG=""])
$1_GCC6_CFLAGS="${NO_LIFETIME_DSE_CFLAG}"
])
AC_DEFUN_ONCE([FLAGS_SETUP_BRANCH_PROTECTION],
[
# Is branch protection available?

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -79,7 +79,7 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
fi
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"
-Wl,-bernotok -Wl,-bdatapsize:64k -Wl,-btextpsize:64k -Wl,-bstackpsize:64k -fuse-ld=$OUTPUTDIR/ld.sh"
BASIC_LDFLAGS_JVM_ONLY="$BASIC_LDFLAGS_JVM_ONLY -Wl,-lC_r -Wl,-bbigtoc"
fi
@@ -192,18 +192,23 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_CPU_DEP],
# Export variables according to old definitions, prefix with $2 if present.
LDFLAGS_JDK_COMMON="$BASIC_LDFLAGS $BASIC_LDFLAGS_JDK_ONLY \
$OS_LDFLAGS $DEBUGLEVEL_LDFLAGS_JDK_ONLY ${$2EXTRA_LDFLAGS}"
$2LDFLAGS_JDKLIB="$LDFLAGS_JDK_COMMON $BASIC_LDFLAGS_JDK_LIB_ONLY \
$2LDFLAGS_JDKLIB="$LDFLAGS_JDK_COMMON \
$SHARED_LIBRARY_FLAGS $REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
$2LDFLAGS_JDKEXE="$LDFLAGS_JDK_COMMON $EXECUTABLE_LDFLAGS \
${$1_CPU_EXECUTABLE_LDFLAGS} $REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
$2LDFLAGS_STATIC_JDK="$BASIC_LDFLAGS $OS_LDFLAGS ${$2EXTRA_LDFLAGS} \
$REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
$2JVM_LDFLAGS="$BASIC_LDFLAGS $BASIC_LDFLAGS_JVM_ONLY $OS_LDFLAGS $OS_LDFLAGS_JVM_ONLY \
$DEBUGLEVEL_LDFLAGS $DEBUGLEVEL_LDFLAGS_JVM_ONLY $BASIC_LDFLAGS_ONLYCXX \
$DEBUGLEVEL_LDFLAGS $DEBUGLEVEL_LDFLAGS_JVM_ONLY \
${$1_CPU_LDFLAGS} ${$1_CPU_LDFLAGS_JVM_ONLY} ${$2EXTRA_LDFLAGS} \
$REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
AC_SUBST($2LDFLAGS_JDKLIB)
AC_SUBST($2LDFLAGS_JDKEXE)
AC_SUBST($2LDFLAGS_STATIC_JDK)
AC_SUBST($2JVM_LDFLAGS)
])

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

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -121,7 +121,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
if test "x$DOT" != "x"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no, cannot generate full docs])
AC_MSG_RESULT([no, cannot generate full docs or man pages])
FULL_DOCS_AVAILABLE=false
fi
@@ -129,7 +129,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
if test "x$ENABLE_PANDOC" = "xtrue"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no, cannot generate full docs])
AC_MSG_RESULT([no, cannot generate full docs or man pages])
FULL_DOCS_AVAILABLE=false
fi
@@ -369,6 +369,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE],
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS"
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS"
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS"
LDFLAGS_STATIC_JDK="$LDFLAGS_STATIC_JDK $GCOV_LDFLAGS"
])
AC_SUBST(GCOV_ENABLED)
@@ -445,6 +446,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_ADDRESS_SANITIZER],
fi
if test "x$TOOLCHAIN_TYPE" = "xclang"; then
ASAN_CFLAGS="$ASAN_CFLAGS -fsanitize-address-use-after-return=never"
ASAN_LDFLAGS="$ASAN_LDFLAGS -shared-libasan"
fi
elif test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then
# -Oy- is equivalent to -fno-omit-frame-pointer in GCC/Clang.
@@ -463,6 +465,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_ADDRESS_SANITIZER],
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $ASAN_CFLAGS"
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $ASAN_LDFLAGS"
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $ASAN_LDFLAGS"
LDFLAGS_STATIC_JDK="$LDFLAGS_STATIC_JDK $ASAN_LDFLAGS"
])
AC_SUBST(ASAN_ENABLED)
])
@@ -496,6 +499,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_LEAK_SANITIZER],
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $LSAN_CFLAGS"
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $LSAN_LDFLAGS"
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $LSAN_LDFLAGS"
LDFLAGS_STATIC_JDK="$LDFLAGS_STATIC_JDK $LSAN_LDFLAGS"
])
AC_SUBST(LSAN_ENABLED)
])
@@ -512,10 +516,11 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
OPTIONAL: true)
# GCC reports lots of likely false positives for stringop-truncation and format-overflow.
# GCC 13 also for array-bounds and stringop-overflow
# Silence them for now.
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment \
$ADDITIONAL_UBSAN_CHECKS"
UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-stringop-truncation -Wno-format-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-stringop-truncation -Wno-format-overflow -Wno-array-bounds -Wno-stringop-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
UBSAN_LDFLAGS="$UBSAN_CHECKS"
UTIL_ARG_ENABLE(NAME: ubsan, DEFAULT: false, RESULT: UBSAN_ENABLED,
DESC: [enable UndefinedBehaviorSanitizer],
@@ -538,6 +543,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $UBSAN_CFLAGS"
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $UBSAN_LDFLAGS"
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $UBSAN_LDFLAGS"
LDFLAGS_STATIC_JDK="$LDFLAGS_STATIC_JDK $UBSAN_LDFLAGS"
])
if test "x$UBSAN_ENABLED" = xfalse; then
UBSAN_CFLAGS=""

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, 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

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2015, 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

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

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2020, 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

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2021, 2025, 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,6 +40,9 @@ AC_DEFUN([LIB_SETUP_HSDIS_CAPSTONE],
HSDIS_CFLAGS="-I${CAPSTONE}/include/capstone"
if test "x$OPENJDK_TARGET_OS" != xwindows; then
HSDIS_LDFLAGS="-L${CAPSTONE}/lib"
if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" ; then
HSDIS_LDFLAGS="-L${CAPSTONE}/lib64 $HSDIS_LDFLAGS"
fi
HSDIS_LIBS="-lcapstone"
else
HSDIS_LDFLAGS="-nodefaultlib:libcmt.lib"

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2025, 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,7 +28,7 @@
################################################################################
# Minimum supported versions
JTREG_MINIMUM_VERSION=7.4
JTREG_MINIMUM_VERSION=7.5.1
GTEST_MINIMUM_VERSION=1.14.0
################################################################################

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

View File

@@ -666,14 +666,17 @@ 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_CPU" = xx86; then
# if test "x$enable_deprecated_ports" = "xyes"; then
# AC_MSG_WARN([The x86 port is deprecated and may be removed in a future release.])
# else
# AC_MSG_ERROR(m4_normalize([The 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
# Unfortunately, variants have not been parsed yet, so we have to check the configure option
# directly. Allow only the directly specified Zero variant, treat any other mix as containing
# something non-Zero.
if test "x$OPENJDK_TARGET_CPU" = xx86 && test "x$with_jvm_variants" != xzero; then
if test "x$enable_deprecated_ports" = "xyes"; then
AC_MSG_WARN([The 32-bit x86 port is deprecated and may be removed in a future release.])
else
AC_MSG_ERROR(m4_normalize([The 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

@@ -429,8 +429,6 @@ LIBFFI_LIB_FILE := @LIBFFI_LIB_FILE@
FILE_MACRO_CFLAGS := @FILE_MACRO_CFLAGS@
REPRODUCIBLE_CFLAGS := @REPRODUCIBLE_CFLAGS@
STATIC_LIBS_CFLAGS := @STATIC_LIBS_CFLAGS@
JMH_CORE_JAR := @JMH_CORE_JAR@
JMH_GENERATOR_JAR := @JMH_GENERATOR_JAR@
JMH_JOPT_SIMPLE_JAR := @JMH_JOPT_SIMPLE_JAR@
@@ -559,6 +557,9 @@ LDFLAGS_JDKLIB := @LDFLAGS_JDKLIB@
# LDFLAGS used to link the jdk native launchers (C-code)
LDFLAGS_JDKEXE := @LDFLAGS_JDKEXE@
# LDFLAGS used to link the static jdk library
LDFLAGS_STATIC_JDK := @LDFLAGS_STATIC_JDK@
# LDFLAGS specific to C++ linking.
LDFLAGS_CXX_JDK := @LDFLAGS_CXX_JDK@

View File

@@ -575,7 +575,7 @@ AC_DEFUN([UTIL_CHECK_TYPE_directory],
if test "[x]ARG_CHECK_FOR_FILES" != "x:"; then
for file in ARG_CHECK_FOR_FILES; do
found_files=$($ECHO $(ls $1/$file 2> /dev/null))
found_files=$($ECHO $($LS -d $1/$file 2> /dev/null))
if test "x$found_files" = x; then
FAILURE="Directory $1 does not contain $file"
break

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
@@ -77,7 +77,10 @@ AC_DEFUN([UTIL_FIXUP_PATH],
imported_path=""
fi
fi
if test "x$imported_path" != "x$path"; then
[ imported_path_lower=`$ECHO $imported_path | $TR '[:upper:]' '[:lower:]'` ]
[ orig_path_lower=`$ECHO $path | $TR '[:upper:]' '[:lower:]'` ]
# If only case differs, keep original path
if test "x$imported_path_lower" != "x$orig_path_lower"; then
$1="$imported_path"
fi
else
@@ -357,6 +360,8 @@ AC_DEFUN([UTIL_SETUP_TOOL],
fi
$1="$tool_command"
fi
# Make sure we add fixpath if needed
UTIL_FIXUP_EXECUTABLE($1)
if test "x$tool_args" != x; then
# If we got arguments, re-append them to the command after the fixup.
$1="[$]$1 $tool_args"

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -23,14 +23,11 @@
# questions.
#
ifeq ($(_MAKEBASE_GMK), )
$(error You must include MakeBase.gmk prior to including CopyFiles.gmk)
endif
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
################################################################################
#
# Code for handling the SetupCopyFiles macro.
#
################################################################################
define AddFileToCopy
@@ -110,3 +107,8 @@ define SetupCopyFilesBody
)
endef
################################################################################
endif # include guard
include MakeIncludeEnd.gmk

View File

@@ -0,0 +1,58 @@
#
# Copyright (c) 2024, 2025, 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.
#
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
################################################################################
# Common debuginfo utility functions
################################################################################
################################################################################
# Find native debuginfo files in a directory
#
# Param 1 - dir to find debuginfo files in
FindDebuginfoFiles = \
$(wildcard $(addprefix $1/*, $(DEBUGINFO_SUFFIXES)) \
$(addprefix $1/*/*, $(DEBUGINFO_SUFFIXES)) \
$(addprefix $1/*/*/*, $(DEBUGINFO_SUFFIXES)))
# Pick the correct debug info files to copy, either zipped or not.
ifeq ($(ZIP_EXTERNAL_DEBUG_SYMBOLS), true)
DEBUGINFO_SUFFIXES += .diz
else
DEBUGINFO_SUFFIXES := .debuginfo .pdb .map
# On Macosx, if debug symbols have not been zipped, find all files inside *.dSYM
# dirs.
ifeq ($(call isTargetOs, macosx), true)
$(call FillFindCache, \
$(SUPPORT_OUTPUTDIR)/modules_libs $(SUPPORT_OUTPUTDIR)/modules_cmds)
FindDebuginfoFiles = \
$(if $(wildcard $1), $(call containing, .dSYM/, $(call FindFiles, $1)))
endif
endif
endif # include guard
include MakeIncludeEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2019, 2025, 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
@@ -23,17 +23,13 @@
# questions.
#
ifeq ($(_MAKEBASE_GMK), )
$(error You must include MakeBase.gmk prior to including Execute.gmk)
endif
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
################################################################################
#
# Code for handling the SetupExecute macro.
#
################################################################################
################################################################################
# Setup make rules for executing an arbitrary command.
#
@@ -196,3 +192,8 @@ define SetupExecuteBody
$1_TARGET := $$($1_FINAL_RESULT)
endef
################################################################################
endif # include guard
include MakeIncludeEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -23,14 +23,11 @@
# questions.
#
ifeq ($(_MAKEBASE_GMK), )
$(error You must include MakeBase.gmk prior to including FileUtils.gmk)
endif
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
################################################################################
#
# Common file utility functions
#
################################################################################
################################################################################
@@ -307,3 +304,8 @@ ifeq ($(DISABLE_CACHE_FIND), true)
else
FindFiles = $(CacheFindFiles)
endif
################################################################################
include MakeIncludeEnd.gmk
endif # include guard

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2017, 2025, 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
@@ -23,21 +23,10 @@
# questions.
#
ifndef _FIND_TESTS_GMK
_FIND_TESTS_GMK := 1
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
# This makefile can be called directly to just trigger generation of the cache
# makefile. If so, SPEC and MakeBase.gmk need to be included.
ifeq ($(FINDTESTS_STAND_ALONE), true)
include $(SPEC)
include MakeBase.gmk
endif
# Make sure this variable is not lazy evaled.
ALL_NAMED_TESTS :=
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, common/FindTests.gmk))
################################################################################
# TEST_BASEDIRS might have been set by a custom extension
TEST_BASEDIRS += $(TOPDIR)/test $(TOPDIR)
@@ -62,10 +51,11 @@ $(foreach root, $(JTREG_TESTROOTS), \
# Cache the expensive to calculate test names in a generated makefile.
FIND_TESTS_CACHE_FILE := $(MAKESUPPORT_OUTPUTDIR)/find-tests.gmk
# If this file is deemed outdated, it will automatically get regenerated
# by this rule before being included below.
$(FIND_TESTS_CACHE_FILE): $(JTREG_ROOT_FILES) $(JTREG_GROUP_FILES) \
$(TOPDIR)/test/make/TestMake.gmk
ifeq ($(GENERATE_FIND_TESTS_FILE), true)
# If this file is deemed outdated, it will automatically get regenerated
# by this rule before being included below.
$(FIND_TESTS_CACHE_FILE): $(JTREG_ROOT_FILES) $(JTREG_GROUP_FILES) \
$(TOPDIR)/test/make/TestMake.gmk
$(call MakeTargetDir)
( $(foreach root, $(JTREG_TESTROOTS), \
$(PRINTF) "\n$(root)_JTREG_TEST_GROUPS := " ; \
@@ -78,6 +68,7 @@ $(FIND_TESTS_CACHE_FILE): $(JTREG_ROOT_FILES) $(JTREG_GROUP_FILES) \
$(MAKE) -s --no-print-directory $(MAKE_ARGS) \
SPEC=$(SPEC) -f $(TOPDIR)/test/make/TestMake.gmk print-targets \
TARGETS_FILE=$@
endif
-include $(FIND_TESTS_CACHE_FILE)
@@ -103,4 +94,5 @@ ALL_NAMED_TESTS += failure-handler make
################################################################################
endif # _FIND_TESTS_GMK
endif # include guard
include MakeIncludeEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -23,12 +23,10 @@
# questions.
#
ifndef _JAR_ARCHIVE_GMK
_JAR_ARCHIVE_GMK := 1
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
ifeq ($(_MAKEBASE_GMK), )
$(error You must include MakeBase.gmk prior to including JarArchive.gmk)
endif
################################################################################
include MakeIO.gmk
@@ -283,4 +281,7 @@ define SetupJarArchiveBody
$1 += $$($1_JAR)
endef
endif # _JAR_ARCHIVE_GMK
################################################################################
endif # include guard
include MakeIncludeEnd.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, 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
@@ -23,19 +23,15 @@
# questions.
#
ifndef _JAVA_COMPILATION_GMK
_JAVA_COMPILATION_GMK := 1
include MakeIncludeStart.gmk
ifeq ($(INCLUDE), true)
ifeq ($(_MAKEBASE_GMK), )
$(error You must include MakeBase.gmk prior to including JavaCompilation.gmk)
endif
################################################################################
include MakeIO.gmk
# Java compilation needs SetupJarArchive and/or SetupZipArchive, if we're
# generating a jar file or a source zip.
# Java compilation needs SetupJarArchive if we're generating a jar file
include JarArchive.gmk
include ZipArchive.gmk
###
### Definitions for common release targets
@@ -156,7 +152,6 @@ endef
# COPY_FILES myapp/foo/setting.txt means copy this file over to the package myapp/foo
# CLEAN .properties means copy and clean all properties file to the corresponding package in BIN.
# CLEAN_FILES myapp/foo/setting.txt means clean this file over to the package myapp/foo
# SRCZIP Create a src.zip based on the found sources and copied files.
# INCLUDE_FILES "com/sun/SolarisFoobar.java" means only compile this file!
# EXCLUDE_FILES "com/sun/SolarisFoobar.java" means do not compile this particular file!
# "SolarisFoobar.java" means do not compile SolarisFoobar, wherever it is found.
@@ -529,19 +524,6 @@ define SetupJavaCompilationBody
# Add jar to target list
$1 += $$($1_JAR)
endif
# Check if a srczip was specified, then setup the rules for the srczip.
ifneq ($$($1_SRCZIP), )
$$(eval $$(call SetupZipArchive, ZIP_ARCHIVE_$1, \
SRC := $$($1_SRC), \
ZIP := $$($1_SRCZIP), \
INCLUDES := $$($1_INCLUDES), \
EXCLUDES := $$($1_EXCLUDES), \
EXCLUDE_FILES := $$($1_EXCLUDE_FILES)))
# Add zip to target list
$1 += $$($1_SRCZIP)
endif
endif # Source files found
endef
@@ -556,4 +538,7 @@ SetupJavaCompilationCompileTarget = \
SetupJavaCompilationApiTarget = \
$(strip $2)/_the.$(strip $1)_pubapi
endif # _JAVA_COMPILATION_GMK
################################################################################
endif # include guard
include MakeIncludeEnd.gmk

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