Compare commits

...

1252 Commits

Author SHA1 Message Date
Patricio Chilano Mateo
c59e44a7aa 8357914: TestEmptyBootstrapMethodsAttr.java fails when run with TEST_THREAD_FACTORY=Virtual
Reviewed-by: lmesnik, dholmes, sspitsyn, syan
2025-06-05 15:02:02 +00:00
Dmitry Chuyko
23f1d4f9a9 8337666: AArch64: SHA3 GPR intrinsic
Reviewed-by: aph
2025-06-05 14:28:27 +00:00
Erik Gahlin
33ed7c1842 8358689: test/micro/org/openjdk/bench/java/net/SocketEventOverhead.java does not build after JDK-8351594
Reviewed-by: alanb
2025-06-05 13:08:48 +00:00
Viktor Klang
782bbca439 8358633: Test ThreadPoolExecutorTest::testTimedInvokeAnyNullTimeUnit is broken by JDK-8347491
Reviewed-by: alanb
2025-06-05 12:04:57 +00:00
Erik Gahlin
6cdfd36ac8 8358590: JFR: Include min and max in MethodTiming event
Reviewed-by: mgronlun
2025-06-05 11:42:31 +00:00
Erik Gahlin
eb770a060a 8351594: JFR: Rate-limited sampling of Java events
Reviewed-by: mgronlun, alanb
2025-06-05 11:36:08 +00:00
Nizar Benalla
c5daf89053 8349369: test/docs/jdk/javadoc/doccheck/checks/jdkCheckLinks.java did not report on missing man page files
Reviewed-by: hannesw
2025-06-05 11:05:52 +00:00
Nizar Benalla
bd08932d5b 8356633: Incorrect use of {@link} in jdk.jshell
Reviewed-by: rgiulietti, vyazici
2025-06-05 10:31:23 +00:00
Markus Grönlund
d450e341c7 8357962: JFR Cooperative Sampling reveals inconsistent interpreter frames as part of JVMTI PopFrame
Reviewed-by: dholmes, eosterlund
2025-06-05 10:14:41 +00:00
Magnus Ihse Bursie
66feb490bd 8358543: Remove CommentChecker.java and DirDiff.java
Reviewed-by: erikj
2025-06-05 09:30:44 +00:00
Aleksey Shipilev
dc949003de 8358588: ThreadSnapshot.ThreadLock should be static nested class
Reviewed-by: alanb, sspitsyn, amenkov
2025-06-05 09:02:23 +00:00
Johannes Bechberger
ace70a6d6a 8358666: [REDO] Implement JEP 509: JFR CPU-Time Profiling
Reviewed-by: mgronlun
2025-06-05 08:18:18 +00:00
Dingli Zhang
48b97ac0e0 8358634: RISC-V: Fix several broken documentation web-links
Reviewed-by: fyang
2025-06-05 07:34:48 +00:00
Jaikiran Pai
08023481ed 8358558: (zipfs) Reorder the listing of "accessMode" property in the ZIP file system's documentation
Reviewed-by: dfuchs, vyazici, alanb, lancea
2025-06-05 04:24:05 +00:00
Vladimir Kozlov
849655a145 8358632: [asan] reports heap-buffer-overflow in AOTCodeCache::copy_bytes
Reviewed-by: vlivanov, iveresov
2025-06-05 03:25:46 +00:00
Hannes Greule
575806c0e5 8358078: javap crashes with NPE on preview class file
Reviewed-by: liach
2025-06-05 01:41:21 +00:00
David Holmes
8f8b367ae3 8350029: Illegal invokespecial interface not caught by verification
Reviewed-by: coleenp, matsaave
2025-06-05 00:35:26 +00:00
Markus Grönlund
9186cc7310 8358628: [BACKOUT] 8342818: Implement JEP 509: JFR CPU-Time Profiling
Reviewed-by: pchilanomate, dholmes
2025-06-04 23:55:18 +00:00
Magnus Ihse Bursie
b787ff6def 8358538: Update GHA Windows runner to 2025
Reviewed-by: shade
2025-06-04 23:19:33 +00:00
Johannes Bechberger
5b27e9c2df 8342818: Implement JEP 509: JFR CPU-Time Profiling
Reviewed-by: mgronlun, mdoerr, pchilanomate, apangin, shade
2025-06-04 22:08:58 +00:00
Aleksey Shipilev
3cf3e4bbec 8358339: Handle MethodCounters::_method backlinks after JDK-8355003
Reviewed-by: coleenp, kvn, iveresov
2025-06-04 21:32:29 +00:00
Joe Darcy
77c110c309 8357000: Write overview documentation for start of release changes
Reviewed-by: erikj, iris, ihse, dholmes
2025-06-04 20:03:48 +00:00
Ian Graves
901144ee0d 8358217: jdk/incubator/vector/PreferredSpeciesTest.java#id0 failures - expected [128] but found [256]
Co-authored-by: Paul Sandoz <psandoz@openjdk.org>
Co-authored-by: Jaikiran Pai <jpai@openjdk.org>
Reviewed-by: syan, psandoz
2025-06-04 19:46:30 +00:00
Justin Lu
8f821175cc 8358170: Repurpose testCompat in test/jdk/java/util/TimeZone/Bug8167143.java
Reviewed-by: naoto
2025-06-04 18:46:31 +00:00
Matthew Donovan
5ed246d17d 8357592: Update output parsing in test/jdk/sun/security/tools/jarsigner/compatibility/Compatibility.java
Reviewed-by: rhalade
2025-06-04 18:07:07 +00:00
Sergey Bylokhov
8939acc8ab 8358057: Update validation of ICC_Profile header data
Reviewed-by: honkar
2025-06-04 17:53:17 +00:00
Ashutosh Mehra
fd0ab04367 8358330: AsmRemarks and DbgStrings clear() method may not get called before their destructor
Reviewed-by: kvn
2025-06-04 16:52:38 +00:00
Justin Lu
8a79ac8863 8358449: Locale.getISOCountries does not specify the returned set is unmodifiable
Reviewed-by: naoto
2025-06-04 16:40:22 +00:00
Stuart Marks
ef47635d5a 8358015: Fix SequencedMap sequenced view method specifications
Reviewed-by: jpai, bchristi
2025-06-04 16:14:31 +00:00
Stefan Karlsson
c909216446 8357443: ZGC: Optimize old page iteration in remap remembered phase
Reviewed-by: aboldtch, eosterlund
2025-06-04 14:56:20 +00:00
Aleksey Shipilev
4e314cb9e0 8356000: C1/C2-only modes use 2 compiler threads on low CPU count machines
Reviewed-by: kvn, dfenacci, galder
2025-06-04 14:21:34 +00:00
Matias Saavedra Silva
a2723d91df 8345347: Test runtime/cds/TestDefaultArchiveLoading.java should accept VM flags or be marked as flagless
Reviewed-by: lmesnik, stefank, ccheung
2025-06-04 14:16:20 +00:00
Igor Veresov
ae1892fb0f 8358003: KlassTrainingData initializer reads garbage holder
Reviewed-by: coleenp, shade, vlivanov
2025-06-04 14:07:49 +00:00
Tom Shull
0352477ff5 8357660: [JVMCI] Add support for retrieving all BootstrapMethodInvocations directly from ConstantPool
Reviewed-by: dnsimon, yzheng
2025-06-04 13:50:36 +00:00
Erik Gahlin
a653ff4893 8358536: jdk/jfr/api/consumer/TestRecordingFileWrite.java times out
Reviewed-by: mgronlun
2025-06-04 13:39:31 +00:00
Emanuel Peter
248341d372 8344942: Template-Based Testing Framework
Co-authored-by: Tobias Hartmann <thartmann@openjdk.org>
Co-authored-by: Tobias Holenstein <tholenstein@openjdk.org>
Co-authored-by: Theo Weidmann <tweidmann@openjdk.org>
Co-authored-by: Roberto Castañeda Lozano <rcastanedalo@openjdk.org>
Co-authored-by: Christian Hagedorn <chagedorn@openjdk.org>
Co-authored-by: Manuel Hässig <mhaessig@openjdk.org>
Reviewed-by: chagedorn, mhaessig, rcastanedalo
2025-06-04 13:16:24 +00:00
Archie Cobbs
09ec4de74d 8358066: Non-ascii package names gives compilation error "import requires canonical name"
Reviewed-by: jlahoda, naoto
2025-06-04 12:56:18 +00:00
Robbin Ehn
dc961609f8 8356159: RISC-V: Add Zabha
Reviewed-by: fyang, fjiang
2025-06-04 12:43:23 +00:00
Alan Bateman
7838321b74 8358496: Concurrent reading from Socket with timeout executes sequentially
Reviewed-by: dfuchs
2025-06-04 09:52:45 +00:00
Sean Coffey
42f48a39e8 8350689: Turn on timestamp and thread metadata by default for java.security.debug
Reviewed-by: mullan
2025-06-04 09:41:51 +00:00
Matthias Baesken
cd16b68962 8357155: [asan] ZGC does not work (x86_64 and ppc64)
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: mdoerr, aboldtch
2025-06-04 09:06:46 +00:00
Martin Doerr
ab23500034 8354636: [PPC64] Clean up comments regarding frame manager
Reviewed-by: amitkumar, rrich
2025-06-04 08:31:37 +00:00
He-Pin(kerr)
f141674d16 8347491: IllegalArgumentationException thrown by ThreadPoolExecutor doesn't have a useful message
Reviewed-by: vklang, liach, pminborg
2025-06-04 08:28:29 +00:00
Markus Grönlund
b6d60280e7 8358429: JFR: minimize the time the Threads_lock is held for sampling
Reviewed-by: egahlin
2025-06-04 08:20:48 +00:00
Markus Grönlund
955bfcd550 8357671: JFR: Remove JfrTraceIdEpoch synchronizing
Reviewed-by: egahlin
2025-06-04 08:19:24 +00:00
Magnus Ihse Bursie
edf92721c2 8356977: UTF-8 cleanups
Reviewed-by: naoto, prr
2025-06-04 08:10:42 +00:00
Jaikiran Pai
b5cfd76c04 8358456: ZipFile.getInputStream(ZipEntry) throws unspecified IllegalArgumentException
Reviewed-by: lancea
2025-06-04 06:38:06 +00:00
Aleksey Shipilev
683319f25c 8357798: ReverseOrderListView uses Boolean boxes after JDK-8356080
Reviewed-by: liach, smarks
2025-06-04 06:04:05 +00:00
Aleksey Shipilev
b918dc84ec 8357434: x86: Simplify Interpreter::profile_taken_branch
Reviewed-by: kvn, vlivanov
2025-06-04 06:02:49 +00:00
Alan Bateman
f17b2bc06a 8356870: HotSpotDiagnosticMXBean.dumpThreads and jcmd Thread.dump_to_file updates
Reviewed-by: sspitsyn, kevinw
2025-06-04 04:10:10 +00:00
Vladimir Kozlov
ebd85288ce 8358289: [asan] runtime/cds/appcds/aotCode/AOTCodeFlags.java reports heap-buffer-overflow in ArchiveBuilder
Reviewed-by: shade, iklam, asmehra
2025-06-04 02:14:17 +00:00
Anjian Wen
939521b8e4 8358105: RISC-V: Optimize interpreter profile updates
Reviewed-by: fjiang, fyang
2025-06-04 02:03:22 +00:00
Cesar Soares Lucas
2345065166 8357600: Patch nmethod flushing message to include more details
Reviewed-by: shade, kvn
2025-06-03 23:39:32 +00:00
Naoto Sato
9c74d54514 8358158: test/jdk/java/io/Console/CharsetTest.java failing with NoClassDefFoundError: jtreg/SkippedException
Reviewed-by: joehw, jlu, iris
2025-06-03 23:28:00 +00:00
Daniel Gredler
939753579b 8356803: Test TextLayout/TestControls fails on windows & linux: line and paragraph separator show non-zero advance
8356812: Create an automated version of TextLayout/TestControls

Reviewed-by: prr, honkar
2025-06-03 23:27:44 +00:00
Alex Menkov
da49fa5e15 8354460: Streaming output for attach API should be turned on by default
Reviewed-by: sspitsyn, kevinw
2025-06-03 20:47:17 +00:00
Cesar Soares Lucas
704b5990a7 8358534: Bailout in Conv2B::Ideal when type of cmp input is not supported
Reviewed-by: shade
2025-06-03 20:15:20 +00:00
Tom Shull
e235b61a8b 8357987: [JVMCI] Add support for retrieving all methods of a ResolvedJavaType
Reviewed-by: dnsimon, yzheng, never
2025-06-03 19:38:58 +00:00
Magnus Ihse Bursie
a44a470052 8358515: make cmp-baseline is broken after JDK-8349665
Reviewed-by: erikj
2025-06-03 19:23:29 +00:00
Stefan Lobbenmeier
cc11b7d1f5 8356128: Correct documentation for --linux-package-deps
Reviewed-by: asemenyuk, almatvee
2025-06-03 19:22:52 +00:00
Alex Menkov
406f1bc5b9 8357650: ThreadSnapshot to take snapshot of thread for thread dumps
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Alex Menkov <amenkov@openjdk.org>
Reviewed-by: sspitsyn, kevinw
2025-06-03 18:46:55 +00:00
Daniel D. Daugherty
e984fa7997 8358539: ProblemList jdk/jfr/api/consumer/TestRecordingFileWrite.java
Reviewed-by: ayang, bpb
2025-06-03 18:41:05 +00:00
Alisen Chung
461cb84277 8345538: Robot.mouseMove doesn't clamp bounds on macOS when trying to move mouse off screen
Reviewed-by: honkar, prr
2025-06-03 18:02:47 +00:00
Chris Plummer
c382da5798 8358178: Some nsk/jdi tests should be run with includevirtualthreads=y even though they pass without
Reviewed-by: sspitsyn, lmesnik
2025-06-03 17:19:31 +00:00
Larry Cable
44d62c8e21 8358077: sun.tools.attach.VirtualMachineImpl::checkCatchesAndSendQuitTo on Linux leaks file handles after JDK-8327114
Reviewed-by: kevinw, sspitsyn, syan
2025-06-03 17:13:22 +00:00
Jatin Bhateja
d7e58ac480 8351635: C2 ROR/ROL: assert failed: Long constant expected
Reviewed-by: thartmann, chagedorn
2025-06-03 17:00:54 +00:00
Brian Burkhalter
57862005f9 8354450: A File should be invalid if an element of its name sequence ends with a space
Reviewed-by: alanb
2025-06-03 16:32:12 +00:00
Justin Lu
04c15466f6 8358095: Cleanup tests with explicit locale provider set to only CLDR
Reviewed-by: bpb, naoto
2025-06-03 16:13:14 +00:00
Patricio Chilano Mateo
16e120b008 8357910: LoaderConstraintsTest.java fails when run with TEST_THREAD_FACTORY=Virtual
Reviewed-by: dholmes, coleenp
2025-06-03 16:12:53 +00:00
Erik Gahlin
d7def20afa 8358448: JFR: Incorrect time unit for MethodTiming event
Reviewed-by: mgronlun, ayang
2025-06-03 16:02:14 +00:00
Brian Burkhalter
4604c86d2f 8357425: (fs) SecureDirectoryStream setPermissions should use fchmodat
Reviewed-by: alanb
2025-06-03 15:43:26 +00:00
Michael McMahon
b6f827ef05 8348986: Improve coverage of enhanced exception messages
Reviewed-by: dfuchs
2025-06-03 15:36:29 +00:00
Igor Veresov
01f01b6f7b 8358283: Inconsistent failure mode for MetaspaceObj::operator new(size_t, MemTag)
Reviewed-by: kvn, kbarrett
2025-06-03 15:31:07 +00:00
Yudi Zheng
faf19abd31 8358333: Use VEX2 prefix in Assembler::psllq
Reviewed-by: jbhateja, thartmann
2025-06-03 15:10:53 +00:00
Archie Cobbs
e2f736658f 8329951: var emits deprecation warnings that do not point to the file or position
Reviewed-by: vromero
2025-06-03 14:35:17 +00:00
Erik Österlund
d3f54dae30 8357954: G1: No SATB barriers applied for runtime IN_NATIVE atomics
Reviewed-by: shade, kbarrett, tschatzl
2025-06-03 14:27:41 +00:00
Axel Boldt-Christmas
4618374269 8358310: ZGC: riscv, ppc ZPlatformAddressOffsetBits may return a too large value
Reviewed-by: eosterlund, mdoerr, fyang
2025-06-03 12:15:08 +00:00
Joel Sikström
78a392aa3b 8356880: ZGC: Backoff in ZLiveMap::reset spin-loop
Reviewed-by: stefank, eosterlund, aboldtch
2025-06-03 11:42:10 +00:00
Kim Barrett
c1a81cfb51 8358284: doc/testing.html is not up to date after JDK-8355003
Reviewed-by: jwaters, dholmes, erikj
2025-06-03 10:08:32 +00:00
Axel Boldt-Christmas
def7355cc9 8356716: ZGC: Cleanup Uncommit Logic
Reviewed-by: eosterlund, jsikstro
2025-06-03 09:36:21 +00:00
Martin Doerr
457d9de81d 8358013: [PPC64] VSX has poor performance on Power8
Reviewed-by: dbriemann, clanger
2025-06-03 09:24:13 +00:00
Chad Rakoczy
4402527683 8357223: AArch64: Optimize interpreter profile updates
Reviewed-by: shade, aph
2025-06-03 08:55:34 +00:00
Aleksey Shipilev
8674f49127 8358318: JFR: Tighten up PlatformTracer initialization
Reviewed-by: egahlin
2025-06-03 08:30:17 +00:00
Aleksey Shipilev
6f783e5fab 8358319: Pem.decode should cache the Pattern
Reviewed-by: ascarpino
2025-06-03 08:14:23 +00:00
Aleksey Shipilev
cff75eb606 8358316: PKCS8Key.getEncoded() can throw NPE after JDK-8298420
Reviewed-by: ascarpino
2025-06-03 08:14:05 +00:00
Marc Chevalier
be923a8b72 8353266: C2: Wrong execution with Integer.bitCount(int) intrinsic on AArch64
Reviewed-by: aph, thartmann
2025-06-03 08:06:43 +00:00
Albert Mingkun Yang
dbf562c725 8358313: G1: Refactor G1CollectedHeap::is_maximal_no_gc
Reviewed-by: jsikstro, tschatzl
2025-06-03 07:25:54 +00:00
Doug Simon
6cfd4057dc 8357619: [JVMCI] Revisit phantom_ref parameter in JVMCINMethodData::get_nmethod_mirror
Reviewed-by: eosterlund, never
2025-06-03 06:20:29 +00:00
Doug Simon
497a1822ca 8358254: [AOT] runtime/cds/appcds/applications/JavacBench.java#aot crashes with SEGV in ClassLoaderData::holder
Reviewed-by: never
2025-06-03 06:19:23 +00:00
Roman Marchenko
c5f235c000 8347826: Introspector shows wrong method list after 8071693
Reviewed-by: azvegint, serb, aivanov
2025-06-03 06:00:28 +00:00
David Beaumont
832c5b06e8 8350880: (zipfs) Add support for read-only zip file systems
Reviewed-by: lancea, alanb, jpai
2025-06-03 04:01:09 +00:00
Manuel Hässig
24edd3b2c1 8354930: IGV: dump C2 graph before and after live range stretching
Reviewed-by: rcastanedalo, chagedorn
2025-06-03 03:19:19 +00:00
Qizheng Xing
c96803dc8b 8358035: Remove unused compute_fingerprint declaration in ClassFileStream
Reviewed-by: ccheung, iklam
2025-06-03 03:09:18 +00:00
Harshitha Onkar
e490b4f04d 8357082: Stabilize and add debug logs to CopyAreaOOB.java
Reviewed-by: serb
2025-06-02 21:52:08 +00:00
Sergey Bylokhov
0418b3295a 8357696: Enhance code consistency: java.desktop/unix
Reviewed-by: prr
2025-06-02 20:23:14 +00:00
Chris Plummer
5243f3851b 8357924: Remove runtime/ErrorHandling/CreateCoredumpOnCrash.java from problem list for macosx-x64
Reviewed-by: syan, dholmes
2025-06-02 19:07:29 +00:00
Erik Gahlin
1373ceb7f3 8356698: JFR: @Contextual
Reviewed-by: mgronlun
2025-06-02 18:22:35 +00:00
Alex Menkov
ec02a87aee 8345745: Update mode of the Attach API communication pipe.
Reviewed-by: sspitsyn, kevinw
2025-06-02 18:13:24 +00:00
Magnus Ihse Bursie
a7671e7360 8358337: JDK-8357991 was committed with incorrect indentation
Reviewed-by: shade
2025-06-02 17:06:45 +00:00
Ioi Lam
bce2bd24ef 8356308: Assert with -Xlog:class+path when classpath has an empty element
Reviewed-by: dholmes, ccheung
2025-06-02 16:52:05 +00:00
Calvin Cheung
8b6a11f7e0 8352187: Don't start management agent during AOT cache creation
Reviewed-by: shade, iklam, kvn
2025-06-02 16:51:44 +00:00
Magnus Ihse Bursie
ab5de45636 8357991: make bootcycle-images is broken after JDK-8349665
Reviewed-by: erikj
2025-06-02 16:50:10 +00:00
William Kemper
99a4b22ae7 8358102: GenShen: Age tables could be seeded with cumulative values
Reviewed-by: ysr
2025-06-02 16:48:16 +00:00
Matias Saavedra Silva
1b6ae2059b 8357576: FieldInfo::_index is not initialized by the constructor
Reviewed-by: coleenp, dholmes
2025-06-02 15:29:30 +00:00
Hannes Wallnöfer
daab7b5cee 8357796: Stylesheet adjustments after JDK-8357452
Reviewed-by: rriggs
2025-06-02 15:27:14 +00:00
Phil Race
a4eb15195c 8357672: Extreme font sizes can cause font substitution
Reviewed-by: dmarkov, jdv
2025-06-02 15:24:09 +00:00
Aleksey Shipilev
b3594c9e55 8357481: Excessive CompileTask wait/notify monitor creation
Reviewed-by: vlivanov, kvn
2025-06-02 13:08:41 +00:00
Erik Österlund
83b15da2eb 8351997: AArch64: Interpreter volatile reference stores with G1 are not sequentially consistent
Reviewed-by: shade, aph, fbredberg
2025-06-02 12:26:08 +00:00
Coleen Phillimore
c22af0c29e 8358205: Remove unused JFR array allocation code
Reviewed-by: kbarrett, mgronlun
2025-06-02 11:50:50 +00:00
Viktor Klang
83cb0c6de5 8358151: Harden JSR166 Test case testShutdownNow_delayedTasks
Reviewed-by: alanb, shade
2025-06-02 09:22:37 +00:00
Martin Doerr
612f2c0c0b 8357981: [PPC64] Remove old instructions from VM_Version::determine_features()
Reviewed-by: dbriemann, mbaesken
2025-06-02 09:21:31 +00:00
Roman Kennke
eb9badd8a4 8358169: Shenandoah/JVMCI: Export GC state constants
Reviewed-by: dnsimon, shade
2025-06-02 08:57:16 +00:00
Guoxiong Li
a9e7a74d00 8357109: Parallel: Fix typo in YoungedGeneration
Reviewed-by: ayang, zgu, tschatzl
2025-06-02 08:47:36 +00:00
Martin Doerr
ba9f44c90f 8357793: [PPC64] VM crashes with -XX:-UseSIGTRAP -XX:-ImplicitNullChecks
Reviewed-by: shade, dbriemann
2025-06-02 08:31:10 +00:00
Martin Doerr
40ce05d408 8358231: Template interpreter generator crashes with ShouldNotReachHere on some platforms after 8353686
Reviewed-by: shade, amitkumar, mbaesken, kvn
2025-06-02 08:28:10 +00:00
Albert Mingkun Yang
6418306211 8357944: Remove unused CollectedHeap::is_maximal_no_gc
Reviewed-by: jsikstro, tschatzl
2025-06-02 08:23:06 +00:00
Thomas Schatzl
3f59bfd2e1 8334759: gc/g1/TestMixedGCLiveThreshold.java fails on Windows with JTREG_TEST_THREAD_FACTORY=Virtual due to extra memory allocation
Reviewed-by: ayang, iwalulya
2025-06-02 07:59:10 +00:00
Robbin Ehn
c5a1543ee3 8357968: RISC-V: Interpreter volatile reference stores with G1 are not sequentially consistent
Reviewed-by: eosterlund, fbredberg, shade, fyang
2025-06-02 05:43:20 +00:00
Prasanta Sadhukhan
90d6ad0157 8356594: JSplitPane loses divider location when reopened via JOptionPane.createDialog()
Reviewed-by: kizune
2025-06-02 02:06:06 +00:00
David Holmes
3193a28c53 8358259: ProblemList compiler/startup/StartupOutput.java on Windows
Reviewed-by: darcy
2025-06-01 23:36:25 +00:00
Igor Veresov
85e36d7924 8358236: [AOT] Graal crashes when trying to use persisted MDOs
Reviewed-by: kvn
2025-06-01 21:21:27 +00:00
Matthias Baesken
c1b5f62a8c 8358136: Make langtools/jdk/javadoc/doclet/testLinkOption/TestRedirectLinks.java intermittent
Reviewed-by: jpai, nbenalla, syan
2025-06-01 09:06:04 +00:00
Alan Bateman
ac9af69eee 8357637: Native resources cached in thread locals not released when FJP common pool threads clears thread locals
Reviewed-by: vklang
2025-06-01 06:17:50 +00:00
Vladimir Kozlov
e3eb089d47 8357175: Failure to generate or load AOT code should be handled gracefully
Reviewed-by: iveresov, asmehra
2025-06-01 03:57:28 +00:00
Mikhail Yankelevich
470ffeedda 8230016: re-visit test sun/security/pkcs11/Serialize/SerializeProvider.java
Reviewed-by: rhalade
2025-06-01 03:50:39 +00:00
Ashutosh Mehra
59dc849909 8358230: Incorrect location for the assert for blob != nullptr in CodeBlob::create
Reviewed-by: kvn
2025-06-01 01:04:54 +00:00
Srinivas Vamsi Parasa
fc3d3d9b30 8351994: Enable Extended EVEX to REX2/REX demotion when src and dst are the same
Reviewed-by: sviswanathan, jbhateja, epeter
2025-05-31 23:07:55 +00:00
Jaikiran Pai
a3f9e22263 8358218: Problemlist jdk/incubator/vector/PreferredSpeciesTest.java#id0
Reviewed-by: psandoz
2025-05-31 16:31:24 +00:00
Jaikiran Pai
84002d12ed 8228773: URLClassLoader constructors should include API note warning that the parent should not be null
Reviewed-by: alanb, mullan
2025-05-31 13:02:58 +00:00
Sergey Bylokhov
3a3ea7e17f 8357598: Toolkit.removeAWTEventListener should handle null listener in AWTEventListenerProxy
Reviewed-by: aivanov, dnguyen
2025-05-31 07:06:08 +00:00
Chad Rakoczy
19360a904b 8356949: AArch64: Tighten up template interpreter method entry code
Reviewed-by: aph, shade
2025-05-31 02:48:33 +00:00
David Briemann
061b24d4f9 8357304: [PPC64] C2: Implement MinV, MaxV and Reduction nodes
Reviewed-by: mdoerr, varadam
2025-05-31 02:47:26 +00:00
Ian Graves
c62223a5af 8358215: ProblemList jdk/incubator/vector/PreferredSpeciesTest.java
Reviewed-by: psandoz
2025-05-31 00:41:16 +00:00
Serguei Spitsyn
c67fc73595 8320189: vmTestbase/nsk/jvmti/scenarios/bcinstr/BI02/bi02t001 memory corruption when using -Xcheck:jni
Reviewed-by: lmesnik, amenkov
2025-05-31 00:40:23 +00:00
Sergey Bylokhov
d9d00d33a6 8358107: Rollback JDK-8357299 changeset
Reviewed-by: psadhukhan
2025-05-31 00:26:50 +00:00
Sergey Bylokhov
5ad02c98f1 8355004: Apply java.io.Serial annotations in java.compiler
Reviewed-by: liach, darcy
2025-05-31 00:16:40 +00:00
Bradford Wetmore
2926435d22 8341346: Add support for exporting TLS Keying Material
Reviewed-by: hchao, jnimeh, weijun
2025-05-30 23:06:36 +00:00
Mohamed Issa
0df8c9684b 8353686: Optimize Math.cbrt for x86 64 bit platforms
Reviewed-by: sviswanathan, sparasa, jbhateja
2025-05-30 21:47:20 +00:00
Alex Menkov
db340e54f8 8356222: Thread.print command reports waiting on the Class initialization monitor for both carrier and virtual threads
Reviewed-by: alanb, sspitsyn
2025-05-30 21:11:58 +00:00
Ian Graves
09301c1dc0 8356634: VectorShape#largestShapeFor should have public access
Reviewed-by: psandoz
2025-05-30 21:11:38 +00:00
Alex Menkov
abbffc0103 8358202: ProblemList vmTestbase/nsk/jvmti/AttachOnDemand/attach045/TestDescription.java
Reviewed-by: sspitsyn, cjplummer
2025-05-30 21:00:34 +00:00
Chris Plummer
14e41ab055 8357172: Extend try block in nsk/jdi tests to capture exceptions thrown by Debuggee.classByName()
Reviewed-by: lmesnik, sspitsyn
2025-05-30 20:14:14 +00:00
Anthony Scarpino
c9d6e01233 8358076: KeyFactory.getInstance("EdDSA").generatePublic(null) throws NPE
Reviewed-by: weijun
2025-05-30 20:13:00 +00:00
Daniel Gredler
94039e22bb 8353230: Emoji rendering regression after JDK-8208377
Reviewed-by: prr, honkar
2025-05-30 19:16:17 +00:00
Ashutosh Mehra
b7ca672d5c 8357047: [ubsan] AdapterFingerPrint::AdapterFingerPrint runtime error: index 3 out of bounds
Reviewed-by: kvn, adinn
2025-05-30 18:26:19 +00:00
Chris Plummer
82807d43f8 8357184: Test vmTestbase/nsk/jdi/ExceptionEvent/_itself_/exevent008/TestDescription.java fails with unreported exception
Reviewed-by: lmesnik, sspitsyn
2025-05-30 17:58:46 +00:00
Chris Plummer
3cc630985d 8353955: nsk/jdi tests should be fixed to not always require includevirtualthreads=y
Reviewed-by: sspitsyn, amenkov, lmesnik
2025-05-30 17:36:03 +00:00
Naoto Sato
4fa4f15122 8357882: Use UTF-8 encoded data in LocaleDataTest
Reviewed-by: jlu, joehw
2025-05-30 17:23:52 +00:00
Naoto Sato
eaf7815ea6 8357886: Remove TimeZoneNames_* of the COMPAT locale data provider
Reviewed-by: joehw, jlu
2025-05-30 17:22:51 +00:00
Justin Lu
81464cd114 8358089: Remove the GenerateKeyList.java test tool
Reviewed-by: naoto
2025-05-30 17:13:04 +00:00
Artur Barashev
99048c3d4a 8357033: Reduce stateless session ticket size
Reviewed-by: wetmore, djelinski, ascarpino
2025-05-30 16:03:13 +00:00
Archie Cobbs
26275a10b2 8355753: @SuppressWarnings("this-escape") not respected for indirect leak via field
Reviewed-by: vromero
2025-05-30 14:42:36 +00:00
Thomas Stuefe
ae3d96a4ec 8357683: (process) SIGQUIT still blocked after JDK-8234262 with jdk.lang.Process.launchMechanism=FORK or VFORK
Reviewed-by: rriggs
2025-05-30 13:40:25 +00:00
Alexey Ivanov
12ee80cac7 8357675: Amend headless message
Reviewed-by: prr, shade
2025-05-30 13:31:35 +00:00
Anjian Wen
acd64ba24a 8357626: RISC-V: Tighten up template interpreter method entry code
Reviewed-by: fyang, fjiang
2025-05-30 10:56:37 +00:00
Qizheng Xing
a0eb1900c9 8358104: Fix ZGC compilation error on GCC 10.2
Reviewed-by: kbarrett, jsikstro
2025-05-30 09:41:08 +00:00
nibjen
566e3b21ed 8357253: Test test/jdk/sun/security/ssl/SSLSessionImpl/ResumeClientTLS12withSNI.java writes in src dir
Reviewed-by: coffeys
2025-05-30 09:22:16 +00:00
Abhishek Kumar
e33eeeea04 8341311: [Accessibility,macOS,VoiceOver] VoiceOver announces incorrect number of items in submenu of JPopupMenu
Reviewed-by: asemenov, kizune
2025-05-30 06:25:08 +00:00
Daniel Skantz
6f9e1175a9 8356246: C2: Compilation fails with "assert(bol->is_Bool()) failed: unexpected if shape" in StringConcat::eliminate_unneeded_control
Reviewed-by: rcastanedalo, kvn
2025-05-30 06:23:11 +00:00
Amit Kumar
20005511e3 8353500: [s390x] Intrinsify Unsafe::setMemory
Reviewed-by: lucy, mdoerr
2025-05-30 03:50:43 +00:00
Alexander Matveev
fd51b03910 8351369: [macos] Use --install-dir option with DMG packaging
Reviewed-by: asemenyuk
2025-05-30 03:07:04 +00:00
Prasanta Sadhukhan
64503c784b 8357299: Graphics copyArea doesn't copy any pixels when there is overflow
Reviewed-by: achung, kizune, prr
2025-05-30 02:06:56 +00:00
Alexey Semenyuk
a05f9dea18 8358017: Various enhancements of jpackage test helpers
Reviewed-by: almatvee
2025-05-29 21:44:47 +00:00
Dean Long
648c337bea 8356648: runtime/Thread/AsyncExceptionTest.java fails with +StressCompiledExceptionHandlers
Reviewed-by: thartmann, kvn
2025-05-29 21:41:49 +00:00
Boris Ulasevich
cb8eea4ecd 8356095: AArch64: Obsolete -XX:+NearCPool option
Reviewed-by: aph
2025-05-29 21:29:35 +00:00
Shaojin Wen
727412d1b5 8357690: Add @Stable and final to java.lang.CharacterDataLatin1 and other CharacterData classes
Reviewed-by: naoto
2025-05-29 20:09:58 +00:00
Shaojin Wen
d922e318bc 8349400: Improve startup speed via eliminating nested classes
Reviewed-by: valeriep, rriggs
2025-05-29 20:09:01 +00:00
Justin Lu
e509997fe8 8357275: Locale.Builder.setLanguageTag should mention conversions made on language tag
Reviewed-by: naoto
2025-05-29 17:39:08 +00:00
Ioi Lam
e306367813 8357693: AOTCodeCompressedOopsTest.java failed with -XX:+UseLargePages
Reviewed-by: kvn, shade
2025-05-29 17:06:42 +00:00
Justin Lu
f318868268 8348328: Update IANA Language Subtag Registry to Version 2025-05-15
Reviewed-by: iris, naoto
2025-05-29 17:01:28 +00:00
Brian Burkhalter
79aff26c28 8354724: Methods in java.io.Reader to read all characters and all lines
Reviewed-by: rriggs, smarks, jpai, alanb
2025-05-29 15:20:39 +00:00
Aleksey Shipilev
d8a783020d 8357999: SA: FileMapInfo.metadataTypeArray initialization issue after JDK-8355003
Reviewed-by: ayang, iklam, kvn, sspitsyn
2025-05-29 15:06:51 +00:00
Thomas Stuefe
4cf729cfac 8323497: On x64, use 32-bit immediate moves for narrow klass base if possible
Reviewed-by: shade, kvn, rkennke
2025-05-29 10:42:50 +00:00
Hannes Wallnöfer
a2743bab4f 8357458: Missing Highlight.js license file
Reviewed-by: jlahoda
2025-05-29 09:19:02 +00:00
Erik Gahlin
07f5b762a0 8352738: Implement JEP 520: JFR Method Timing and Tracing
Co-authored-by: Markus Grönlund <mgronlun@openjdk.org>
Reviewed-by: shade, mgronlun
2025-05-29 08:31:17 +00:00
Adam Sotona
d43f588db1 8357955: java.lang.classfile.Signature.ArrayTypeSig.of IAE not thrown for dims > 255
Reviewed-by: jlahoda
2025-05-29 07:03:26 +00:00
Phil Race
04e0fe00ab 8356049: Need a simple way to play back a sound clip
Reviewed-by: serb, aivanov, kizune
2025-05-29 05:52:12 +00:00
Lei Zhu
83a2804858 8357408: runtime/interpreter/CountBytecodesTest.java should be flagless
Reviewed-by: shade, syan, lmesnik
2025-05-29 05:40:36 +00:00
Ioi Lam
2ec6ab347a 8357525: Default CDS archive becomes non-deterministic after JDK-8305895
Reviewed-by: shade, coleenp
2025-05-28 22:58:34 +00:00
Ioi Lam
dede3532f7 8355798: Implement JEP 514: Ahead-of-Time Command Line Ergonomics
Reviewed-by: erikj, kvn, asmehra
2025-05-28 22:12:14 +00:00
Shaojin Wen
b7f0f480ce 8357681: Fixed the DigitList::toString method causing incorrect results during debugging
Reviewed-by: jlu, naoto
2025-05-28 20:36:44 +00:00
Anthony Scarpino
bb2c80c0e9 8298420: Implement JEP 470: PEM Encodings of Cryptographic Objects (Preview)
Reviewed-by: weijun, mr, mullan, jnimeh
2025-05-28 19:52:18 +00:00
Gerard Ziemski
28f509317d 8356233: NMT: tty->print_cr should not be used in VirtualMemoryTracker::add_reserved_region()
Reviewed-by: jsjolen, dholmes
2025-05-28 19:14:36 +00:00
Henry Jen
cd052c72cd 8345431: Improve jar --validate to detect duplicate or invalid entries
Reviewed-by: lancea, jpai
2025-05-28 17:22:41 +00:00
Naoto Sato
b2a61a9972 8356985: Use "stdin.encoding" in Console's read*() methods
Reviewed-by: jlu, smarks, alanb, vyazici
2025-05-28 16:24:04 +00:00
Alexey Semenyuk
8949c07484 8357930: Amendment for JDK-8333664
Reviewed-by: almatvee
2025-05-28 16:18:46 +00:00
PAWAN CHAWDHARY
e579cca619 8354475: TestDockerMemoryMetricsSubgroup.java fails with exitValue = 1
Reviewed-by: lmesnik, mseledtsov
2025-05-28 15:59:37 +00:00
Thomas Schatzl
2e6838a20d 8357307: VM GC operations should have a public gc_succeeded()
Reviewed-by: ayang, iwalulya
2025-05-28 15:49:34 +00:00
gauthamkrishnanibm
4ced4e73fc 8334742: Change java.time month/day field types to 'byte'
Reviewed-by: rriggs
2025-05-28 15:38:00 +00:00
Igor Veresov
e3f85c961b 8355003: Implement JEP 515: Ahead-of-Time Method Profiling
Co-authored-by: John R Rose <jrose@openjdk.org>
Co-authored-by: Vladimir Ivanov <vlivanov@openjdk.org>
Co-authored-by: Ioi Lam <iklam@openjdk.org>
Co-authored-by: Vladimir Kozlov <kvn@openjdk.org>
Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Reviewed-by: kvn, ihse, cjplummer, iklam
2025-05-28 15:15:03 +00:00
Magnus Ihse Bursie
63d0e7ff11 8355725: SPEC_FILTER stopped working
Reviewed-by: erikj
2025-05-28 14:42:35 +00:00
Magnus Ihse Bursie
a4f870df55 8357510: [REDO] RunTest variables should always be assigned
Reviewed-by: erikj
2025-05-28 14:42:21 +00:00
Magnus Ihse Bursie
7bd8375fe4 8357920: Add .rej and .orig to .gitignore
Reviewed-by: syan, erikj
2025-05-28 14:25:12 +00:00
Viktor Klang
18285fc136 8356553: Incorrect uses of {@link} in AbstractQueuedLongSynchronizer and AbstractQueuedSynchronizer
Reviewed-by: alanb
2025-05-28 14:23:23 +00:00
Markus Grönlund
1a65719ab3 8357911: JFR: Fix subtle xor method tagging bug
Reviewed-by: egahlin
2025-05-28 13:51:40 +00:00
Markus Grönlund
016cc4f333 8357830: JfrVframeStream::_cont_entry shadows super-class field
Reviewed-by: egahlin
2025-05-28 13:51:24 +00:00
Marc Chevalier
4b9290af0a 8356647: C2: Excessively strict assert in PhaseIdealLoop::do_unroll
Reviewed-by: chagedorn, epeter, dlong
2025-05-28 13:26:15 +00:00
Fabio Romano
c9e6c4d017 8356891: Some code simplifications in BigInteger
Reviewed-by: rgiulietti
2025-05-28 12:48:47 +00:00
Casper Norrbin
6ebae6cded 8241678: Remove PerfData sampling via StatSampler
Reviewed-by: jsjolen, ayang
2025-05-28 12:00:15 +00:00
Serguei Spitsyn
f30e15411f 8357673: remove test serviceability/jvmti/vthread/TestPinCaseWithCFLH
Reviewed-by: amenkov, lmesnik
2025-05-28 11:38:20 +00:00
Per Minborg
0671309de5 8357919: Arena::allocate returns segments with address zero if the segment length is zero after JDK-8345687
Reviewed-by: mcimadamore
2025-05-28 10:57:57 +00:00
Mikhail Yankelevich
627ef34498 8304065: HttpServer.stop should terminate immediately if no exchanges are in progress
Co-authored-by: Eirik Bjørsnøs <eirbjo@openjdk.org>
Reviewed-by: dfuchs, michaelm
2025-05-28 10:34:50 +00:00
Hannes Wallnöfer
39714b6030 8357869: Remove PreviewNote taglet in its current form
Reviewed-by: erikj
2025-05-28 09:46:49 +00:00
Andrew Haley
4e1878ca45 8355022: Implement JEP 506: Scoped Values
Reviewed-by: liach, alanb
2025-05-28 09:41:37 +00:00
Markus Grönlund
f02190bc30 8357829: Commented out sample limit in JfrSamplerThread::task_stacktrace
Reviewed-by: shade
2025-05-28 08:57:04 +00:00
Albert Mingkun Yang
1e0caedb9a 8357854: Parallel: Inline args of PSOldGen::initialize_performance_counters
Reviewed-by: tschatzl, jsikstro
2025-05-28 08:47:36 +00:00
Axel Boldt-Christmas
f74fbfe5de 8357449: ZGC: Multiple medium page sizes
Reviewed-by: stefank, jsikstro
2025-05-28 08:20:48 +00:00
Raffaello Giulietti
efeb050e00 8357808: Add a command line option for specifying a counter in TestRandomFloatingDecimal
Reviewed-by: liach
2025-05-28 08:13:02 +00:00
Marc Chevalier
1d57ff8ad4 8357781: Deep recursion in PhaseCFG::set_next_call leads to stack overflow
Reviewed-by: thartmann, kvn, mhaessig
2025-05-28 07:52:17 +00:00
Thomas Schatzl
db51556687 8354428: [ubsan] g1BiasedArray.hpp: pointer overflow in address calculation
Reviewed-by: ayang, kbarrett, mbaesken
2025-05-28 06:55:20 +00:00
Matthias Baesken
670ef8cc52 8357561: BootstrapLoggerTest does not work on Ubuntu 24 with LANG de_DE.UTF-8
Reviewed-by: dfuchs
2025-05-28 05:54:10 +00:00
Ioi Lam
72b9aafd5a 8357917: Assert in MetaspaceShared::preload_and_dump() when printing exception
Reviewed-by: kvn, jrose
2025-05-28 02:39:59 +00:00
Dingli Zhang
96fb31e2db 8357695: RISC-V: Move vector intrinsic condition checks into match_rule_supported_vector
Reviewed-by: fyang, fjiang
2025-05-28 02:27:06 +00:00
Steffen Nießing
4cad437956 8357597: Proxy.getInvocationHandler throws NullPointerException instead of IllegalArgumentException for null
Reviewed-by: rriggs, jpai, liach
2025-05-28 01:54:48 +00:00
Alex Menkov
c110623d38 8357282: Test vmTestbase/nsk/jvmti/AttachOnDemand/attach045/TestDescription.java fails after ClassNotFoundException
Reviewed-by: lmesnik, sspitsyn
2025-05-27 23:23:26 +00:00
Magnus Ihse Bursie
f25f4a3eb2 8349665: Make clean removes module-deps.gmk
Reviewed-by: erikj
2025-05-27 22:41:39 +00:00
William Kemper
2e8b195a96 8354078: Implement JEP 521: Generational Shenandoah
Reviewed-by: ysr
2025-05-27 21:40:27 +00:00
Andrey Turbanov
11ad1733f8 8354944: Remove unnecessary PartiallyOrderedSet.nodes
Reviewed-by: serb, aivanov
2025-05-27 20:43:09 +00:00
Brian Burkhalter
4755276f36 8357912: (fs) Remove @since tag from java.nio.file.FileSystems.newFileSystem(Path,ClassLoader)
Reviewed-by: lancea, alanb
2025-05-27 19:47:56 +00:00
Per Minborg
da228e0693 8357145: CRC/Inflater/Deflater/Adler32 methods that take a ByteBuffer throw UOE if backed by shared memory segment
Reviewed-by: alanb
2025-05-27 19:15:40 +00:00
Per Minborg
d4b923d175 8357268: Use JavaNioAccess.getBufferAddress rather than DirectBuffer.address()
Reviewed-by: alanb, valeriep
2025-05-27 19:11:12 +00:00
Brian Burkhalter
c1f066e17e 8356888: (fs) FileSystems.newFileSystem that take an env must specify IllegalArgumentException
Reviewed-by: lancea, alanb, jpai
2025-05-27 17:11:24 +00:00
Aleksey Shipilev
c29537740e 8357800: Initialize JvmtiThreadState bool fields with bool literals
Reviewed-by: alanb, stefank
2025-05-27 14:44:40 +00:00
Albert Mingkun Yang
cdff7b963c 8357801: Parallel: Remove deprecated PSVirtualSpace methods
Reviewed-by: tschatzl, iwalulya
2025-05-27 14:33:35 +00:00
Magnus Ihse Bursie
72a3022dc6 8357842: PandocFilter misses copyright header
Reviewed-by: syan, erikj
2025-05-27 12:35:31 +00:00
Serhiy Sachkov
b4b11d7771 8356443: Update open/test/jdk/TEST.groups manual test groups definitions with missing manual test
Reviewed-by: msheppar
2025-05-27 11:38:08 +00:00
Ivan Walulya
67d4ed173a 8357559: G1HeapRegionManager refactor rename functions related to the number of regions in different states
Reviewed-by: ayang, tschatzl
2025-05-27 10:43:16 +00:00
Jan Lahoda
9c191cc0fa 8356245: stdin.encoding and stdout.encoding in jshell don't respect console code pages
Reviewed-by: asotona, cstein, liach
2025-05-27 09:49:26 +00:00
Aleksey Shipilev
b9db99d7f7 8357797: Use StructuredTaskScopeImpl.ST_NEW for state init
Reviewed-by: alanb
2025-05-27 09:43:07 +00:00
Viktor Klang
aea32ec506 8357647: Stream gatherers forward upstream size information to downstream
Reviewed-by: liach, alanb
2025-05-27 09:17:29 +00:00
Arno Zeller
f62b9780c3 8357448: AOT crashes on linux musl with AddReads.java
Reviewed-by: mbaesken, shade, mdoerr
2025-05-27 09:11:00 +00:00
Michael McMahon
7cb6e5eb3e 8353124: java/lang/Thread/virtual/stress/Skynet.java#Z times out on macosx-x64-debug
Reviewed-by: alanb
2025-05-27 08:37:32 +00:00
Jatin Bhateja
5924c2d6c7 8357267: ZGC: Handle APX EGPRs spilling in ZRuntimeCallSpill
Reviewed-by: rcastanedalo, sviswanathan
2025-05-27 08:28:55 +00:00
Bhavana Kilambi
7bc315fa6a 8355585: Aarch64: Add aarch64 backend for Float16 vector operations
Reviewed-by: epeter, haosun, xgong, aph
2025-05-27 08:17:02 +00:00
Joel Sikström
85af573cb6 8356848: Separate Metaspace and GC printing
Reviewed-by: stefank, stuefe
2025-05-27 06:58:57 +00:00
Feilong Jiang
78d0dc7502 8357460: RISC-V: Optimize array fill stub for small size
Reviewed-by: wenanjian, fyang
2025-05-27 03:39:28 +00:00
Jasmine Karthikeyan
37d04a1e36 8355512: Test compiler/vectorization/TestVectorZeroCount.java times out with -XX:TieredStopAtLevel=3
Reviewed-by: chagedorn, epeter
2025-05-27 02:05:46 +00:00
Doug Lea
2c034f57d6 8357146: ForkJoinPool:schedule(*) does not throw RejectedExecutionException when pool is shutdown
Reviewed-by: alanb
2025-05-26 22:37:42 +00:00
Markus Grönlund
bbceab0725 8352251: Implement JEP 518: JFR Cooperative Sampling
Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Co-authored-by: Erik Österlund <eosterlund@openjdk.org>
Co-authored-by: Boris Ulasevich <bulasevich@openjdk.org>
Co-authored-by: Patricio Chilano Mateo <pchilanomate@openjdk.org>
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Co-authored-by: Fei Yang <fyang@openjdk.org>
Co-authored-by: Amit Kumar <amitkumar@openjdk.org>
Reviewed-by: eosterlund, egahlin
2025-05-26 18:37:55 +00:00
Emanuel Peter
e8eff4d25b 8357530: C2 SuperWord: Diagnostic flag AutoVectorizationOverrideProfitability
Reviewed-by: thartmann, kvn
2025-05-26 18:31:19 +00:00
Daniel Skantz
a300c35655 8357105: C2: compilation fails with "assert(false) failed: empty program detected during loop optimization"
Reviewed-by: syan, rcastanedalo
2025-05-26 14:22:12 +00:00
Nizar Benalla
bd095896dd 8356632: Fix remaining {@link/@linkplain} tags with refer to private/protected types in java.base
Reviewed-by: weijun, liach
2025-05-26 12:40:49 +00:00
Robbin Ehn
daa8eda530 8357056: RISC-V: Asm fixes - load/store width
Reviewed-by: fjiang, mli, luhenry, fyang
2025-05-26 11:52:32 +00:00
Jatin Bhateja
7002233ed9 8351950: C2: AVX512 vector assembler routines causing SIGFPE / no valid evex tuple_table entry
Reviewed-by: epeter, sviswanathan
2025-05-26 11:16:59 +00:00
Kieran Farrell
f825a51198 7046003: Default value of Authenticator.getRequestingURL() is not specified
Reviewed-by: michaelm, jpai
2025-05-26 11:12:49 +00:00
Roland Westrelin
ed4cd2acd2 8356989: Unexpected null in C2 compiled code
Reviewed-by: chagedorn, kvn, thartmann
2025-05-26 08:33:37 +00:00
Thomas Schatzl
9946c85e2f 8357621: G1: Clean up G1BiasedArray
Reviewed-by: sjohanss, ayang
2025-05-26 08:27:30 +00:00
Suchismith Roy
5cdeef81dd 8331859: [PPC64] Remove support for Power7 and older
Reviewed-by: mdoerr
2025-05-26 08:25:46 +00:00
Manuel Hässig
a37e8265b5 8357649: IGV: add block index to the supplemental node properties
Co-authored-by: Roberto Castañeda Lozano <rcastanedalo@openjdk.org>
Reviewed-by: rcastanedalo, chagedorn
2025-05-26 07:51:23 +00:00
Magnus Ihse Bursie
3dbd2d3d2d 8347570: Configure fails on macOS if directory name do not have correct case
Reviewed-by: erikj
2025-05-26 07:40:51 +00:00
Christian Hagedorn
99f33b4d9b 8357568: IGV: Show NULL and numbers up to 4 characters in "Condense graph" filter
Reviewed-by: thartmann, mchevalier, mhaessig
2025-05-26 07:24:25 +00:00
Jayathirth D V
a50d3bee12 8312198: [macos] metal pipeline - window rendering stops after display sleep
Reviewed-by: serb, avu, prr
2025-05-26 06:03:28 +00:00
Jan Lahoda
aac287ebac 8353581: Support for import module in JShell's code completion
Reviewed-by: asotona
2025-05-26 04:41:02 +00:00
Shaojin Wen
4a4209ffef 8357685: Change the type of Integer::digits from char[] to byte[]
Reviewed-by: rgiulietti, liach
2025-05-25 17:39:53 +00:00
Nizar Benalla
b034710b2a 8356629: Incorrect use of {@linkplain} in java.sql
Reviewed-by: lancea
2025-05-25 12:56:55 +00:00
Shaojin Wen
b037353734 8357081: Removed unused methods of HexDigits
Reviewed-by: rriggs, jpai
2025-05-24 17:08:03 +00:00
Sorna Sarathi N
1f24a5414d 8357644: Add missing CPE statements
Reviewed-by: asemenyuk
2025-05-24 15:06:25 +00:00
Thomas Stuefe
e89330579d 8334513: New test gc/TestAlwaysPreTouchBehavior.java is failing on MacOS aarch64
Reviewed-by: mbaesken, aph
2025-05-24 09:51:53 +00:00
Chen Liang
070c84cd22 8357178: Simplify Class::componentType
Reviewed-by: rriggs
2025-05-23 22:58:09 +00:00
Dean Long
66747710a4 8357468: [asan] heap buffer overflow reported in PcDesc::pc_offset() pcDesc.hpp:57
Reviewed-by: kvn, thartmann
2025-05-23 19:29:09 +00:00
Sergey Bylokhov
236e1b6d52 8357401: BigDecimal: Constants ONE_TENTH and ONE_HALF are unused after JDK-8341402
Reviewed-by: bpb, liach, darcy
2025-05-23 18:17:40 +00:00
Harshitha Onkar
85ca0813f1 8354316: clang/linux build fails with -Wunused-result warning at XToolkit.c:695:9
Reviewed-by: aivanov, ihse, serb, kizune, syan, erikj
2025-05-23 17:59:47 +00:00
Justin Lu
2f530f89e0 8357281: sun.util.Locale.LanguageTag should be immutable
Reviewed-by: naoto, liach
2025-05-23 17:44:39 +00:00
Tejesh R
917c1546f3 8139228: JFileChooser renders file names as HTML document
Reviewed-by: prr, serb, aivanov
2025-05-23 16:59:17 +00:00
Doug Simon
2b6b7661b9 8357581: [JVMCI] Add HotSpotProfilingInfo
Reviewed-by: kvn, never
2025-05-23 16:29:57 +00:00
Aleksey Shipilev
a58bfb93ff 8357638: Problemlist more Hotspot tests for static JDK
Reviewed-by: kvn
2025-05-23 16:20:19 +00:00
Aggelos Biboudis
90e076b2a1 8357654: [BACKOUT] JDK-8343580: Type error with inner classes of generic classes in functions generic by outer
Reviewed-by: mcimadamore, liach, vromero
2025-05-23 14:55:57 +00:00
Viktor Klang
6a07820483 8357285: JSR166 Test case testShutdownNow_delayedTasks failed
Reviewed-by: alanb
2025-05-23 14:53:44 +00:00
Alexey Semenyuk
b07da7bcdc 8357171: Test tools/jpackage/windows/WinOSConditionTest.java fails for non administrator
Reviewed-by: erikj
2025-05-23 13:53:07 +00:00
Archie Cobbs
d0402ddad7 8355323: JShell LocalExecutionControl should add stopCheck() at method entry
Reviewed-by: liach, jlahoda
2025-05-23 13:34:32 +00:00
Thomas Schatzl
48df41b699 8357306: G1: Remove _gc_succeeded from VM_G1CollectForAllocation because it is always true
Reviewed-by: ayang, sjohanss
2025-05-23 12:01:45 +00:00
Renjith Kannath Pariyangad
f5e6d2c93c 8334016: Make PrintNullString.java automatic
Reviewed-by: aivanov, prr, dnguyen
2025-05-23 11:57:35 +00:00
Manukumar V S
84a67e83e3 8341370: Test java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java fails intermittently on macOS-aarch64
Reviewed-by: kizune, dnguyen
2025-05-23 11:56:25 +00:00
Daniel Jeliński
488e4ea5c6 8357539: TimeSource.now() is not monotonic
Reviewed-by: dfuchs, jpai
2025-05-23 11:55:21 +00:00
Stefan Karlsson
68ee06f0c9 8357563: Shenandoah headers leak un-prefixed defines
Reviewed-by: shade, kbarrett
2025-05-23 09:42:25 +00:00
Aggelos Biboudis
02995887b2 8343580: Type error with inner classes of generic classes in functions generic by outer
Reviewed-by: vromero
2025-05-23 09:07:58 +00:00
Albert Mingkun Yang
36f6d155e3 8354517: Parallel: JDK-8339668 causes up to 3.7x slowdown in openjdk.bench.vm.gc.systemgc
Reviewed-by: tschatzl, aboldtch, zgu
2025-05-23 08:22:50 +00:00
Kim Barrett
ae7ae847d4 8356016: Build fails by clang(XCode 16.3) on macOS after JDK-8347719
Reviewed-by: shade, mgronlun
2025-05-23 06:54:51 +00:00
Doug Simon
d6e4c5f659 8357506: [JVMCI] Consolidate eager JVMCI initialization code
Reviewed-by: kvn, yzheng
2025-05-23 06:32:56 +00:00
Jan Lahoda
9d9e41f5b4 8356894: Adjust CreateSymbols to properly handle the newly added @jdk.internal.RequiresIdentity
Reviewed-by: vromero, liach
2025-05-23 04:35:29 +00:00
Abhishek Kumar
99e01301cd 8356145: ListEnterExitTest.java fails on macos
Reviewed-by: aivanov, jdv, kizune
2025-05-23 04:35:11 +00:00
Anjian-Wen
1fd65b7a7b 8351140: RISC-V: Intrinsify Unsafe::setMemory
Reviewed-by: fjiang, fyang
2025-05-23 03:48:09 +00:00
jeremy
4193d052c0 8356061: [macos] com/apple/laf/RootPane/RootPaneDefaultButtonTest.java test fails on macosx-aarch64 machine
Reviewed-by: jdv, serb
2025-05-23 02:25:12 +00:00
Manukumar V S
a94d1a0407 8357305: Compilation failure in javax/swing/JMenuItem/bug6197830.java
Reviewed-by: aivanov
2025-05-23 02:24:09 +00:00
Ioi Lam
8402469565 8355236: AOT Assembly crash with unregistered class and -Xlog:cds+resolve=trace
Reviewed-by: shade, kvn
2025-05-23 00:21:29 +00:00
Shaojin Wen
796ec5e7cf 8353741: Eliminate table lookup in UUID.toString
Reviewed-by: rriggs
2025-05-22 23:35:13 +00:00
Daniel Gredler
fdda766190 8356814: LineBreakMeasurer.nextLayout() slower than necessary when no break needed
Reviewed-by: prr, dnguyen, honkar
2025-05-22 21:25:33 +00:00
Phil Race
139a05d059 8357176: java.awt javadoc code examples still use Applet API
Reviewed-by: aivanov, serb
2025-05-22 19:19:45 +00:00
Vladimir Kozlov
b1b786a3be 8357402: Crash in AdapterHandlerLibrary::lookup
Reviewed-by: shade, iveresov
2025-05-22 18:59:37 +00:00
pawan chawdhary
9ca1004e76 8352926: New test TestDockerMemoryMetricsSubgroup.java fails
Reviewed-by: mseledtsov, lmesnik
2025-05-22 17:08:08 +00:00
Doug Simon
1258af42be 8357135: java.lang.OutOfMemoryError: Error creating or attaching to libjvmci after JDK-8356447
Reviewed-by: never, yzheng
2025-05-22 17:01:48 +00:00
Jiangli Zhou
16d4551134 8355452: GHA: Test jtreg tier1 on linux-x64 static-jdk
Reviewed-by: ihse, shade
2025-05-22 15:34:12 +00:00
Brian Burkhalter
72e440d06e 8357303: (fs) UnixSecureDirectoryStream.implDelete has unused haveFlags parameter
Reviewed-by: alanb, shade
2025-05-22 15:17:34 +00:00
Chen Liang
12efc1fe33 8357165: test java/lang/invoke/ClassValueTest.java fails intermittently
Reviewed-by: jpai
2025-05-22 14:24:59 +00:00
Serhiy Sachkov
428d33ef3c 8357462: Amend open/test/jdk//java/foreign/TestMatrix.java test scenario to run as manual
Reviewed-by: jvernee, syan
2025-05-22 12:30:26 +00:00
Roman Kennke
1e57648abd 8350457: Implement JEP 519: Compact Object Headers
Reviewed-by: mdoerr, coleenp, zgu
2025-05-22 10:48:50 +00:00
Jaikiran Pai
26053fe783 8357406: Remove usages of jdk.tracePinnedThreads system property from httpclient tests
Reviewed-by: vyazici, djelinski, dfuchs, syan
2025-05-22 10:44:21 +00:00
Aggelos Biboudis
c0665efd4f 8354323: Safeguard SwitchBootstraps.typeSwitch when used outside the compiler
Reviewed-by: jlahoda, liach
2025-05-22 08:36:47 +00:00
Anton Artemov
85b24c3c4e 8350869: os::stat doesn't follow symlinks on Windows
Reviewed-by: dholmes, mgronlun
2025-05-22 07:56:34 +00:00
Jason Zaugg
d9b6e4b132 8352642: Set zipinfo-time=false when constructing zipfs FileSystem in com.sun.tools.javac.file.JavacFileManager$ArchiveContainer for better performance
Reviewed-by: liach, jpai, jlahoda, lancea
2025-05-22 07:25:43 +00:00
Marc Chevalier
e348aa071d 8351958: Some compile commands should be made diagnostic
Reviewed-by: thartmann, kvn
2025-05-22 06:55:48 +00:00
Stefan Karlsson
a919f6d04e 8356372: JVMTI heap sampling not working properly with outside TLAB allocations
Co-authored-by: Stefan Johansson <sjohanss@openjdk.org>
Reviewed-by: sjohanss, sspitsyn
2025-05-22 06:39:55 +00:00
Vladimir Kozlov
8184ce39a8 8357514: Disable AOT caching for runtime stubs
Reviewed-by: iveresov, iklam
2025-05-22 06:09:34 +00:00
Jan Lahoda
061b5cc6b9 8347050: Console.readLine() drops '\' when reading through JLine
Reviewed-by: naoto
2025-05-22 05:59:19 +00:00
Jan Lahoda
ec6706520b 8357361: Exception when compiling switch expression with inferred type
Reviewed-by: vromero
2025-05-22 05:56:17 +00:00
Sergey Bylokhov
68c1d305e7 8357287: Unify usage of ICC profile "header size" constants in CMM-related code
Reviewed-by: honkar, prr
2025-05-22 04:31:46 +00:00
Ioi Lam
3bebb1fa76 8357504: Refactor the assignment of loader bits in InstanceKlassFlags
Reviewed-by: matsaave, ccheung
2025-05-22 04:04:54 +00:00
Zdenek Zambersky
ee6891456e 8343618: Stack smashing in awt_InputMethod.c on Linux s390x
Co-authored-by: Ichiroh Takiguchi <itakiguchi@openjdk.org>
Reviewed-by: prr, aph, amitkumar
2025-05-22 03:39:47 +00:00
Mikael Vidstedt
b685ea5408 8357511: [BACKOUT] 8357048: RunTest variables should always be assigned
Reviewed-by: dholmes, erikj
2025-05-22 00:37:54 +00:00
Shaojin Wen
07871cd78a 8357063: Document preconditions for DecimalDigits methods
Reviewed-by: vyazici, liach, rriggs
2025-05-21 22:39:11 +00:00
Calvin Cheung
f687cac889 8353504: CDS archives are not found when JVM is in non-variant location
Reviewed-by: iklam, shade
2025-05-21 22:13:07 +00:00
Alexey Semenyuk
3ee14471e1 8357503: gcbasher fails with java.lang.IllegalArgumentException: Unknown constant pool type
Reviewed-by: dholmes
2025-05-21 21:56:41 +00:00
Ian Graves
4d7068923c 8351993: VectorShuffle access to and from MemorySegments
Reviewed-by: psandoz
2025-05-21 21:11:34 +00:00
Erik Joelsson
afcbf6b2f4 8357173: Split jtreg test group jdk tier3
Reviewed-by: mikael
2025-05-21 19:49:51 +00:00
Doug Simon
81536830ed 8345826: Do not automatically resolve jdk.internal.vm.ci when libgraal is used
Reviewed-by: iklam, never, kvn
2025-05-21 19:21:20 +00:00
Jiangli Zhou
400c935082 8356904: Skip jdk/test/lib/process/TestNativeProcessBuilder on static-jdk
Reviewed-by: henryjen, rriggs
2025-05-21 18:55:56 +00:00
Alexander Zvegintsev
2dfbf41d2a 8351907: [XWayland] [OL10] Robot.mousePress() is delivered to wrong place
Reviewed-by: honkar, prr
2025-05-21 17:21:05 +00:00
Hannes Wallnöfer
f1eead6035 8357452: Remove code span highlight in JavaDoc default stylesheet
Reviewed-by: nbenalla, jjg, liach
2025-05-21 17:20:46 +00:00
Alexey Semenyuk
6546de1d3a 8357478: Fix copyright header in src/jdk.jpackage/share/classes/jdk/jpackage/internal/AppImageDesc.java
Reviewed-by: jpai
2025-05-21 16:32:36 +00:00
Brian Burkhalter
275cfd323b 8357280: (bf) Remove @requires tags from java/nio/Buffer/LimitDirectMemory[NegativeTest].java
Reviewed-by: alanb
2025-05-21 15:21:49 +00:00
Hannes Wallnöfer
254713ab59 8338833: Error on reference not found for a snippet target
Reviewed-by: prappo
2025-05-21 14:37:30 +00:00
Alexey Semenyuk
21c1282207 8333664: Decouple command line parsing and package building in jpackage
Reviewed-by: almatvee
2025-05-21 14:37:14 +00:00
Chihiro Ito
b63ec0ab58 8356945: jdk/jfr/event/os/TestProcessStart failed on Windows Subsystem for Linux
Reviewed-by: egahlin
2025-05-21 14:05:33 +00:00
Hannes Wallnöfer
a07150af11 8357376: Disable syntax highlighting for JDK API docs
Reviewed-by: erikj
2025-05-21 13:24:39 +00:00
Thomas Schatzl
a175767ccf 8357018: Guidance for ParallelRefProcEnabled is wrong in the man pages
Reviewed-by: kbarrett, iwalulya
2025-05-21 12:54:05 +00:00
Dingli Zhang
108e454a04 8356924: RISC-V: Clean up cost for vector instructions
Reviewed-by: fjiang, fyang, gcao
2025-05-21 11:43:13 +00:00
Vicente Romero
a4f66f5439 8325859: Potential information loss during type inference
Reviewed-by: mcimadamore
2025-05-21 11:27:05 +00:00
Roman Kennke
2c126f1954 8357370: Export supported GCs in JVMCI
Reviewed-by: dnsimon
2025-05-21 11:11:58 +00:00
Aleksey Shipilev
b8057cf103 8357436: Change jspawnhelper warning recommendation from VFORK to FORK
Reviewed-by: stuefe, alanb
2025-05-21 10:54:40 +00:00
Magnus Ihse Bursie
7c82e09b50 8357048: RunTest variables should always be assigned
Reviewed-by: erikj
2025-05-21 09:23:23 +00:00
Sergey Bylokhov
5f38d1bb94 8357193: [VS 2022 17.14] Warning C5287 in debugInit.c: enum type mismatch during build
Reviewed-by: sspitsyn
2025-05-21 08:57:55 +00:00
Yudi Zheng
735c7899d1 8334717: Add JVMCI support for APX EGPRs
Reviewed-by: dnsimon
2025-05-21 08:54:19 +00:00
Andrey Turbanov
a0cdf36bdf 8357224: Avoid redundant WeakHashMap.get in Toolkit.removeAWTEventListener
Reviewed-by: liach, aivanov, serb
2025-05-21 08:39:43 +00:00
Ivan Walulya
91194517c7 8355756: G1HeapSizingPolicy::full_collection_resize_amount should consider allocation size
Reviewed-by: ayang, tschatzl
2025-05-21 08:07:17 +00:00
Aggelos Biboudis
50a7755fa4 8347530: Improve error message with invalid permits clauses
Reviewed-by: jlahoda
2025-05-21 06:44:54 +00:00
Axel Boldt-Christmas
50e873f0e8 8356455: ZGC: Replace ZIntrusiveRBTree with IntrusiveRBTree
Reviewed-by: stefank, eosterlund, jsikstro
2025-05-21 05:59:52 +00:00
Thomas Stuefe
74fc4e4ee7 8357179: Deprecate VFORK launch mechanism from Process implementation (linux)
Reviewed-by: rriggs
2025-05-21 04:39:35 +00:00
Vladimir Kozlov
cedd1a5343 8357250: assert(shift >= 0 && shift < 4) failed: unexpected compressd klass shift!
Reviewed-by: asmehra, mdoerr
2025-05-20 20:11:56 +00:00
Ferenc Rakoczi
972f2ebe97 8351412: Add AVX-512 intrinsics for ML-KEM
Reviewed-by: sviswanathan
2025-05-20 19:06:22 +00:00
Patrick Strawderman
e9d1d87b34 8357013: HttpURLConnection#getResponseCode can avoid substring call when parsing to int
Reviewed-by: dfuchs
2025-05-20 17:20:49 +00:00
Brian Burkhalter
bcf5cd6941 8355954: File.delete removes read-only files (win)
Reviewed-by: alanb
2025-05-20 15:49:51 +00:00
Weijun Wang
6162e2c521 8357062: Update Public Suffix List to 823beb1
Reviewed-by: mullan
2025-05-20 14:50:46 +00:00
Roland Westrelin
62d155e8c3 8355230: Crash in fuzzer tests: assert(n != nullptr) failed: must not be null
Reviewed-by: thartmann, epeter
2025-05-20 14:18:41 +00:00
Emanuel Peter
277bb208a2 8355094: Performance drop in auto-vectorized kernel due to split store
Reviewed-by: vlivanov, thartmann
2025-05-20 13:51:47 +00:00
Albert Mingkun Yang
e6750a5bb0 8357218: G1: Remove loop in G1CollectedHeap::try_collect_fullgc
Reviewed-by: kbarrett, tschatzl
2025-05-20 13:15:43 +00:00
Manukumar V S
1a97eb429b 8355515: Clarify the purpose of forcePass() and forceFail() methods
Reviewed-by: aivanov, kizune
2025-05-20 12:06:35 +00:00
Anton Artemov
ab985a7c5d 8341544: Restore fence() in Mutex
Reviewed-by: eosterlund, dholmes
2025-05-20 10:44:34 +00:00
Anton Artemov
0db5511ce6 8354969: Add strdup function for ResourceArea
Reviewed-by: dholmes, iklam
2025-05-20 10:20:59 +00:00
Arno Zeller
f8fc7eeb24 8357052: java/io/File/GetXSpace.java prints wrong values in exception
Reviewed-by: bpb
2025-05-20 10:19:22 +00:00
Jan Lahoda
e961b13cd6 8356165: System.in in jshell replace supplementary characters with ??
Reviewed-by: cstein, asotona
2025-05-20 06:04:33 +00:00
Ioi Lam
f8d7f663c1 8356998: Convert -Xlog:cds to -Xlog:aot (step 2)
Reviewed-by: ccheung, matsaave
2025-05-20 05:46:34 +00:00
Ioi Lam
7077535c0b 8356595: Convert -Xlog:cds to -Xlog:aot (step1)
Reviewed-by: ccheung, dholmes, jsjolen, matsaave
2025-05-20 03:44:25 +00:00
Jan Lahoda
39d8d109dd 8348906: InstanceOfTree#getType doesn't specify when it returns null
Reviewed-by: liach
2025-05-20 02:40:05 +00:00
Sergey Bylokhov
890456f0f7 8355078: java.awt.Color.createContext() uses unnecessary synchronization
Reviewed-by: prr
2025-05-19 23:43:19 +00:00
Vicente Romero
637e9d16dd 8354556: Expand value-based class warnings to java.lang.ref API
Co-authored-by: Archie Cobbs <acobbs@openjdk.org>
Reviewed-by: jlahoda
2025-05-19 22:47:13 +00:00
Sergey Bylokhov
fbeea1daef 8356844: Missing @Serial annotation for sun.print.CustomOutputBin#serialVersionUID
Reviewed-by: aivanov, prr
2025-05-19 21:33:22 +00:00
Yannik Stradmann
27a4243561 8354560: Exponentially delay subsequent native thread creation in case of EAGAIN
Reviewed-by: dholmes, fbredberg
2025-05-19 21:28:02 +00:00
Leonid Mesnik
bd99525633 8356193: Remove tests from ProblemList-enable-preview.txt fixed by JDK-8344706
Reviewed-by: rriggs
2025-05-19 17:09:15 +00:00
Stuart Marks
6818dcc08e 8351230: Collections.synchronizedList returns a list that is not thread-safe
Reviewed-by: jpai
2025-05-19 16:53:13 +00:00
Vladimir Kozlov
6a58af310a 8357143: New test AOTCodeCompressedOopsTest.java fails on platforms without AOT Code Cache support
Reviewed-by: asmehra, fyang, shade, mdoerr
2025-05-19 15:00:54 +00:00
Vladimir Kozlov
84a98ab43f 8357166: Many AOT tests failed with VM crash
Reviewed-by: thartmann, shade
2025-05-19 14:53:52 +00:00
Mikhail Yankelevich
fbc12be732 8349151: Refactor test/java/security/cert/CertificateFactory/slowstream.sh to java test
Reviewed-by: weijun
2025-05-19 14:33:12 +00:00
Erik Gahlin
265d630125 8357187: JFR: User-defined defaults should be respected when an incorrect setting is set
Reviewed-by: mgronlun
2025-05-19 13:38:38 +00:00
Hamlin Li
92fd44992b 8350960: RISC-V: Add riscv backend for Float16 operations - vectorization
Reviewed-by: fyang, dzhang, luhenry
2025-05-19 13:32:17 +00:00
Hamlin Li
2e26b43158 8356875: RISC-V: extension flag UseZvfh should depends on UseZfh
Reviewed-by: fyang, luhenry
2025-05-19 13:32:03 +00:00
Daniel Gredler
3acfa9e4e7 8356966: java/awt/Graphics2D/DrawString/IgnoredWhitespaceTest.java fails on Linux after JDK-8350203
Reviewed-by: honkar, aivanov
2025-05-19 11:28:54 +00:00
Roland Westrelin
26cb016b75 8350329: C2: Div looses dependency on condition that guarantees divisor not zero in counted loop after peeling
Reviewed-by: thartmann, chagedorn
2025-05-19 11:06:03 +00:00
Johan Sjölen
7f7add1e56 8355608: Async UL should take the file lock of stream when outputting
Reviewed-by: aboldtch, iklam
2025-05-19 10:52:41 +00:00
Sorna Sarathi N
afcaf84022 8357106: Add missing classpath exception copyright headers
Reviewed-by: jpai
2025-05-19 10:17:13 +00:00
Manuel Hässig
36c9be70e2 8356974: tools/launcher/ToolsOpts.java fails if the build id contains "-J"
Reviewed-by: jpai, thartmann
2025-05-19 10:15:56 +00:00
Johan Sjölen
133c6fb4f3 8355481: Clean up MHN_copyOutBootstrapArguments
Reviewed-by: dholmes, coleenp
2025-05-19 10:04:32 +00:00
Serhiy Sachkov
effe40a24c 8351843: change test/jdk/com/sun/net/httpserver/simpleserver/RootDirPermissionsTest.java to a manual test
Reviewed-by: dfuchs
2025-05-19 09:08:33 +00:00
Andrey Turbanov
2fb3329d71 8356846: Remove unnecessary List.contains key from TIFFDirectory.removeTagSet
Reviewed-by: aivanov, serb
2025-05-19 08:08:09 +00:00
Aleksey Shipilev
67fb1ee7f1 8356946: x86: Optimize interpreter profile updates
Reviewed-by: kvn, jsjolen
2025-05-19 08:04:44 +00:00
Manuel Hässig
50a7c61d28 8355970: C2: Add command line option to print the compile phases
Reviewed-by: chagedorn, kvn, mchevalier
2025-05-19 07:39:42 +00:00
Jan Lahoda
77a3e04ffc 8357016: Candidate main methods not computed properly
Reviewed-by: jpai, vromero
2025-05-19 07:29:25 +00:00
Albert Mingkun Yang
969708bd8f 8356157: Remove retry loop in collect of SerialHeap and ParallelScavengeHeap
Reviewed-by: tschatzl, zgu
2025-05-19 05:17:05 +00:00
Kuai Wei
9927ec0b91 8356328: Some C2 IR nodes miss size_of() function
Reviewed-by: thartmann, chagedorn
2025-05-18 23:28:01 +00:00
Matthias Baesken
6c42856b8d 8356778: Compiler add event logging in case of failures
Reviewed-by: lucy
2025-05-18 11:32:37 +00:00
Calvin Cheung
76570c627d 8357149: Test runtime/cds/appcds/aotCode/AOTCodeFlags.java is broken after JDK-8354887
Reviewed-by: kvn, iklam
2025-05-16 22:12:59 +00:00
Chris Plummer
10258dc56e 8356811: Some nsk/jdi tests can fetch ThreadReference from static field in the debuggee: part 4
Reviewed-by: sspitsyn, amenkov
2025-05-16 20:45:21 +00:00
Naoto Sato
3dd3451700 8357075: Remove leftover COMPAT locale data tests
Reviewed-by: joehw, iris, jlu
2025-05-16 18:02:42 +00:00
Ashutosh Mehra
63ef90be97 8357084: Zero build fails after JDK-8354887
Reviewed-by: ccheung, kvn
2025-05-16 17:21:16 +00:00
Evgeny Nikitin
d524509224 8356702: CTW: Update modules
Reviewed-by: lmesnik
2025-05-16 16:20:52 +00:00
Evgeny Nikitin
413843cf8e 8356649: Update JCStress test suite
Reviewed-by: lmesnik
2025-05-16 16:20:37 +00:00
Timofei Pushkin
46a12e781e 8315130: java.lang.IllegalAccessError when processing classlist to create CDS archive
Reviewed-by: iklam, ccheung
2025-05-16 13:51:58 +00:00
Christian Stein
bca293d012 8336470: Source launcher should work with service loader SPI in unnamed module
Reviewed-by: alanb
2025-05-16 13:19:01 +00:00
Weijun Wang
079fccfa9a 8353888: Implement JEP 510: Key Derivation Function API
Reviewed-by: valeriep, mullan, liach
2025-05-16 12:25:04 +00:00
Marc Chevalier
0d8675780f 8355488: Add stress mode for C2 loop peeling
Reviewed-by: thartmann, chagedorn
2025-05-16 11:32:01 +00:00
Marc Chevalier
a0a3060709 8353638: C2: deoptimization and re-execution cycle with StringBuilder
Reviewed-by: thartmann, chagedorn
2025-05-16 11:31:37 +00:00
Andrew Haley
a6ebcf61eb 8354674: AArch64: Intrinsify Unsafe::setMemory
Reviewed-by: adinn
2025-05-16 09:28:35 +00:00
kieran-farrell
a8d8ffa8ad 8356395: Spec needs to be clarified for InterfaceAddress class level API documentation and getBroadcast() method
Reviewed-by: dfuchs
2025-05-16 07:33:17 +00:00
Paul H
f6b0f016f6 8332947: [macos] OpenURIHandler events not received when AWT is embedded in another toolkit
Reviewed-by: kcr, honkar, prr
2025-05-15 22:35:48 +00:00
Calvin Cheung
efdbb6afce 8354083: Support --add-reads with -XX:+AOTClassLinking
Reviewed-by: iklam, alanb
2025-05-15 21:14:42 +00:00
Alex Menkov
fe790cb319 8356177: Regression after JDK-8352180
Reviewed-by: sspitsyn, cjplummer, lmesnik
2025-05-15 20:39:48 +00:00
Chen Liang
9223ed788a 8351996: Behavioral updates for ClassValue::remove
Co-authored-by: John R Rose <jrose@openjdk.org>
Reviewed-by: vklang, jrose
2025-05-15 20:32:02 +00:00
Ashutosh Mehra
c59debb384 8354887: Preserve runtime blobs in AOT code cache
Co-authored-by: Andrew Dinn <adinn@openjdk.org>
Reviewed-by: kvn, adinn
2025-05-15 17:18:56 +00:00
Archie Cobbs
850c789a82 8349754: Invalid "early reference" error when class extends an outer class
Reviewed-by: mcimadamore
2025-05-15 16:35:16 +00:00
Johannes Graham
1e61352b54 8356709: Avoid redundant String formatting in BigDecimal.valueOf(double)
Reviewed-by: rgiulietti
2025-05-15 16:33:35 +00:00
Naoto Sato
e056bbec92 8356822: Refactor HTML anchor tags to javadoc in Charset
Reviewed-by: iris, liach
2025-05-15 16:14:13 +00:00
Leo Korinth
b3e856f9b3 8356847: Problem list two test cases for JDK-8284234
Reviewed-by: tschatzl
2025-05-15 16:03:43 +00:00
Amit Kumar
a1c7e494c8 8350482: [s390x] Relativize esp in interpreter frames
Reviewed-by: lucy, rrich
2025-05-15 15:38:56 +00:00
Volkan Yazici
8fcfddb2d2 8353197: Document preconditions for JavaLangAccess methods
Reviewed-by: pminborg, liach
2025-05-15 14:54:27 +00:00
Brian Burkhalter
3df8ca1eba 8356678: (fs) Files.readAttributes should map ENOTDIR to NoSuchFileException where possible (unix)
Reviewed-by: alanb, cstein
2025-05-15 14:47:02 +00:00
Jiangli Zhou
073af3bbaa 8356892: runtime/jni/CalleeSavedRegisters/FPRegs.java fails on static-jdk
Reviewed-by: dholmes, shade
2025-05-15 14:39:52 +00:00
Volkan Yazici
81e8e670ce 8351347: HttpClient Improve logging of response headers
Reviewed-by: dfuchs, michaelm
2025-05-15 14:10:16 +00:00
Daniel Lundén
5cb231714f 8351568: Improve source code documentation for PhaseCFG::insert_anti_dependences
Reviewed-by: rcastanedalo, chagedorn
2025-05-15 12:54:49 +00:00
Adam Sotona
1d36f173c4 8351232: NPE: Cannot invoke "getDeclarationAttributes" because "sym" is null
Reviewed-by: liach
2025-05-15 12:04:17 +00:00
Aleksei Voitylov
883e52aa10 8353237: [AArch64] Incorrect result of VectorizedHashCode intrinsic on Cortex-A53
Reviewed-by: aph
2025-05-15 11:06:22 +00:00
Leo Korinth
13b3541467 8356866: Cleanup hotspot/jtreg/ProblemList.txt
Reviewed-by: syan, tschatzl
2025-05-15 09:20:56 +00:00
Thomas Schatzl
b8d2bdb465 8355743: G1: Collection set clearing is not recorded as part of "Free Collection Set Time"
Reviewed-by: iwalulya, shade
2025-05-15 08:03:44 +00:00
Andrey Turbanov
e557b6956b 8356843: Avoid redundant HashMap.get to obtain old value in Toolkit.setDesktopProperty
Reviewed-by: aivanov, serb
2025-05-15 07:57:14 +00:00
Arno Zeller
dc881ee369 8354530: AIX: sporadic unexpected errno when calling setsockopt in Net.joinOrDrop
Reviewed-by: alanb, clanger
2025-05-15 07:50:28 +00:00
Ioi Lam
5e50a58474 8356838: AOT incorrectly sets a cached class's loader type to boot
Reviewed-by: ccheung, iveresov
2025-05-14 23:11:46 +00:00
Ioi Lam
b66ab8ebe2 8356693: AOT assembly phase fails with -javaagent
Reviewed-by: asmehra, ccheung, shade
2025-05-14 22:00:46 +00:00
Yudi Zheng
948ade8e70 8356971: [JVMCI] Export VM_Version::supports_avx512_simd_sort to JVMCI compiler
Reviewed-by: dnsimon
2025-05-14 19:47:38 +00:00
Ben Perez
ecabea6cd3 8347608: Optimize Java implementation of ML-KEM
Reviewed-by: weijun
2025-05-14 19:38:34 +00:00
Alisen Chung
e91088a9e8 8343739: Test java/awt/event/KeyEvent/ExtendedKeyCode/ExtendedKeyCodeTest.java failed: Wrong extended key code
Reviewed-by: serb, prr
2025-05-14 18:47:42 +00:00
Chris Plummer
75504a35ee 8356588: Some nsk/jdi tests can fetch ThreadReference from static field in the debuggee: part 3
Reviewed-by: amenkov, sspitsyn
2025-05-14 18:12:35 +00:00
Naoto Sato
7c8e273fde 8356420: Provide examples on wrapping System.in
Reviewed-by: liach, smarks, alanb, bpb, iris
2025-05-14 17:41:42 +00:00
Chris Plummer
a2628357a9 8356641: Test com/sun/jdi/EarlyThreadGroupChildrenTest.java fails sometimes on macOS
Reviewed-by: kevinw, amenkov, sspitsyn
2025-05-14 17:07:28 +00:00
Srinivas Vamsi Parasa
10436c1e1d 8356281: Fix for TestFPComparison failure due to incorrect result
Reviewed-by: sviswanathan, thartmann, jbhateja
2025-05-14 15:39:09 +00:00
Jiangli Zhou
1afd887b13 8356102: TestJcmdOutput, JcmdWithNMTDisabled and DumpSharedDictionary hs/tier1 tests fail on static-jdk
Reviewed-by: dholmes
2025-05-14 14:58:29 +00:00
Manuel Hässig
97b0dd2167 8336906: C2: assert(bb->is_reachable()) failed: getting result from unreachable basicblock
Co-authored-by: Emanuel Peter <epeter@openjdk.org>
Co-authored-by: Dean Long <dlong@openjdk.org>
Reviewed-by: epeter, dlong
2025-05-14 14:12:10 +00:00
Jaikiran Pai
a989245a24 8327466: ct.sym zip not reproducible across build environment timezones
Reviewed-by: erikj, jlahoda
2025-05-14 12:38:40 +00:00
Coleen Phillimore
3270b00957 8356173: Remove ThreadCritical
Reviewed-by: dholmes, kbarrett, jsjolen
2025-05-14 12:00:23 +00:00
Aleksey Shipilev
5c73dfc28c 8352533: Report useful IOExceptions when jspawnhelper fails
Reviewed-by: simonis, rriggs, stuefe
2025-05-14 09:05:49 +00:00
Fernando Guallini
86f39ab5bb 8249825: Tests sun/security/ssl/SSLSocketImpl/SetClientMode.java and NonAutoClose.java marked with @ignore
Reviewed-by: abarashev, rhalade
2025-05-14 08:39:21 +00:00
Martin Doerr
fc6f4da8e7 8351666: [PPC64] Make non-volatile VectorRegisters available for C2 register allocation
Reviewed-by: rrich
2025-05-14 08:38:01 +00:00
Anjian-Wen
b76b610788 8356869: RISC-V: Improve tail handling of array fill stub
Reviewed-by: fyang, fjiang, mli
2025-05-14 08:28:11 +00:00
Serguei Spitsyn
265bc5f47d 8353496: SuspendResume1.java and SuspendResume2.java timeout after JDK-8319447
Reviewed-by: cjplummer, alanb
2025-05-14 08:21:54 +00:00
Raffaello Giulietti
d1032d71bf 8343829: Unify decimal and hexadecimal parsing in FloatingDecimal
Reviewed-by: darcy
2025-05-14 07:59:19 +00:00
Marc Chevalier
3b27198166 8325647: [IR framework] Only prints stdout if exitCode is 134
Reviewed-by: chagedorn, thartmann
2025-05-14 07:57:53 +00:00
Magnus Ihse Bursie
a3e094e1a0 8354968: Replace unicode sequences in comment text with UTF-8 characters
Reviewed-by: naoto
2025-05-14 06:42:07 +00:00
Magnus Ihse Bursie
dd2515993b 8356644: Update encoding declaration to UTF-8
Reviewed-by: prr, naoto
2025-05-14 06:32:54 +00:00
Alexander Zuev
e07c65b892 8323545: java/awt/GraphicsDevice/CheckDisplayModes.java fails with "exit code: 133"
Reviewed-by: achung, serb
2025-05-14 04:59:44 +00:00
Jaikiran Pai
2c4e8d211a 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset
8355975: ZipFile uses incorrect Charset if another instance for the same ZIP file was constructed with a different Charset

Co-authored-by: Eirik Bjørsnøs <eirbjo@openjdk.org>
Reviewed-by: eirbjo, lancea, redestad, alanb
2025-05-14 01:53:19 +00:00
Kim Barrett
530d14a16e 8356686: doc/building.html is not up to date after JDK-8301971
Reviewed-by: jwaters, shade, erikj
2025-05-14 00:51:49 +00:00
Kim Barrett
dd2aba98f5 8356689: Make HotSpot Style Guide change process more prominent
Reviewed-by: dholmes, shade, stefank, kvn
2025-05-14 00:50:38 +00:00
Chihiro Ito
0c4bc48928 8356820: fixpath should allow + in paths on Windows
Reviewed-by: erikj
2025-05-14 00:25:59 +00:00
Chen Liang
a96424b24c 8356694: Removed unused subclass audits in ObjectInput/OutputStream
Reviewed-by: alanb, rriggs
2025-05-14 00:03:20 +00:00
Valerie Peng
4c0a0ab6bc 8353578: Refactor existing usage of internal HKDF impl to use the KDF API
Co-authored-by: Kevin Driver <kdriver@openjdk.org>
Reviewed-by: djelinski, wetmore, mullan, kdriver, weijun
2025-05-13 22:43:31 +00:00
Ben Perez
10dcdf1b47 8347606: Optimize Java implementation of ML-DSA
Reviewed-by: weijun
2025-05-13 22:31:55 +00:00
Shaojin Wen
1bded7188f 8356605: JRSUIControl.hashCode and JRSUIState.hashCode can use Long.hashCode
Reviewed-by: prr, serb
2025-05-13 22:16:42 +00:00
Igor Veresov
89242eecd2 8356885: Don't emit C1 profiling for casts if TypeProfileCasts is off
Reviewed-by: vlivanov, kvn
2025-05-13 21:49:46 +00:00
Justin Lu
e149bd3a0c 8352755: Misconceptions about j.text.DecimalFormat digits during parsing
Reviewed-by: naoto
2025-05-13 20:23:10 +00:00
Kelvin Nilsen
e7ce661adb 8356667: GenShen: Eliminate races with ShenandoahFreeSet::available()
Reviewed-by: wkemper
2025-05-13 18:08:10 +00:00
Alexander Matveev
1569925af4 8356819: [macos] MacSign should use "openssl" and "faketime" from Homebrew by default
Reviewed-by: asemenyuk
2025-05-13 18:06:32 +00:00
Brent Christian
d1543429ff 8356107: [java.lang] Use @requires tag instead of exiting based on os.name or separatorChar property
Reviewed-by: naoto, bpb
2025-05-13 17:05:15 +00:00
Doug Simon
08b2df80c6 8356447: Change default for EagerJVMCI to true
Reviewed-by: yzheng, kvn, never
2025-05-13 15:58:59 +00:00
Brian Burkhalter
0318e49500 8351415: (fs) Path::toAbsolutePath should specify if an absolute path has a root component
Reviewed-by: alanb
2025-05-13 15:21:30 +00:00
Archie Cobbs
b8c69dfb2a 8356551: Javac rejects receiver parameter in constructor of local class in early construction context
Reviewed-by: mcimadamore
2025-05-13 14:31:17 +00:00
Raffaello Giulietti
64a858c7b8 8355992: Add unsignedMultiplyExact and *powExact methods to Math and StrictMath
Reviewed-by: darcy
2025-05-13 14:04:53 +00:00
Per Minborg
066477de80 8356080: Address post-integration comments for Stable Values
Reviewed-by: liach
2025-05-13 13:40:48 +00:00
Alan Bateman
fa419489d3 8350765: Need to pin when accessing thread container from virtual thread
Reviewed-by: vklang, jpai
2025-05-13 13:35:40 +00:00
Aleksey Shipilev
48d2acb386 8356783: CompilerTask hot_method is redundant
Reviewed-by: kvn, cslucas
2025-05-13 13:17:12 +00:00
Aleksey Shipilev
de10644721 8356631: OopHandle replacement methods should not be called on empty handles
Reviewed-by: coleenp, eosterlund
2025-05-13 12:46:52 +00:00
Erik Gahlin
14d372b15b 8356816: JFR: Move printing of metadata into separate class
Reviewed-by: mgronlun
2025-05-13 12:40:14 +00:00
Marc Chevalier
d930dc5df3 8356275: TestCodeEntryAlignment fails with "Alignment must be <= CodeEntryAlignment"
Reviewed-by: thartmann
2025-05-13 11:26:36 +00:00
Volkan Yazici
7dcc386af9 8354024: [JMH] Create ephemeral UnixDomainSocketAddress provider with thread-safe close semantics
Reviewed-by: michaelm
2025-05-13 11:08:16 +00:00
Daniel Gredler
85db4631ae 8350203: [macos] Newlines and tabs are not ignored when drawing text to a Graphics2D object
8353187: Test TextLayout/TestControls fails on macOS: width of 0x9, 0xa, 0xd isn't zero

Reviewed-by: honkar, aivanov, prr
2025-05-13 10:37:57 +00:00
Severin Gehwolf
38bb8adf4f 8354941: Build failure with glibc 2.42 due to uabs() name collision
Reviewed-by: kbarrett, thartmann
2025-05-13 09:59:49 +00:00
Andrew Dinn
8ffc121b2f 8356774: AArch64: StubGen final stubs buffer too small for ZGC on Cavium CPU
Reviewed-by: shade
2025-05-13 09:42:44 +00:00
Alan Bateman
132a890a9b 8342486: Implement JEP 505: Structured Concurrency (Fifth Preview)
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Viktor Klang <vklang@openjdk.org>
Reviewed-by: vklang
2025-05-13 08:43:26 +00:00
Andrey Turbanov
522c7b446f 8356175: Remove unnecessary Map.get from XWM.getInsets
Reviewed-by: tr, aivanov, serb
2025-05-13 08:10:11 +00:00
Volkan Yazici
ad161a4ef8 8355360: -d option of jwebserver command should accept relative paths
Reviewed-by: dfuchs, michaelm
2025-05-13 07:58:36 +00:00
Stefan Johansson
526f543adf 8353184: ZGC: Simplify and correct tlab_used() tracking
Reviewed-by: stefank, aboldtch
2025-05-13 07:44:30 +00:00
Jan Lahoda
03dca0323d 8354908: javac mishandles supplementary character in character literal
Reviewed-by: naoto, vromero
2025-05-13 06:16:34 +00:00
Per Minborg
6e0846918c 8356658: java/foreign/TestBufferStackStress2.java failed again with junit action timed out
Reviewed-by: jpai, alanb
2025-05-13 05:47:17 +00:00
Jan Lahoda
24d77adee9 8356057: PrintingProcessor (-Xprint) does not print type variable bounds and type annotations for Object supertypes
Reviewed-by: darcy, vromero
2025-05-13 04:44:07 +00:00
Valerie Peng
4fc10a1e7e 8356087: Problematic KeyInfo check using key algorithm in P11SecretKeyFactory class
Reviewed-by: weijun
2025-05-13 03:46:30 +00:00
Anjian-Wen
adebfa7ffd 8356700: RISC-V: Declare incompressible scope in fill_words / zero_memory assembler routines
Reviewed-by: fyang, fjiang
2025-05-13 03:06:36 +00:00
Bhavana Kilambi
303f4101d4 8355708: Two Float16 IR tests fail after JDK-8345125
Reviewed-by: jbhateja, haosun, mhaessig
2025-05-12 23:21:17 +00:00
Kelvin Nilsen
c23469df16 8355340: GenShen: Remove unneeded log messages related to remembered set write table
Reviewed-by: wkemper, ysr
2025-05-12 23:14:27 +00:00
Justin Lu
b6b5ac1ef9 8348351: Improve lazy initialization of the available currencies set
Reviewed-by: liach, naoto
2025-05-12 20:35:13 +00:00
Vladimir Kozlov
2595fcc7cc 8356192: Enable AOT code caching only on supported platforms
Reviewed-by: shade, mdoerr, fyang
2025-05-12 20:29:42 +00:00
Roger Riggs
0f5c608143 8356695: java/lang/StringBuilder/HugeCapacity.java failing with OOME
Reviewed-by: liach, lancea, rgiulietti
2025-05-12 20:01:43 +00:00
Daniel Fuchs
45dfc2c6d6 8353642: Deprecate URL::getPermission method and networking permission classes for removal
Reviewed-by: djelinski, iris, mullan, michaelm
2025-05-12 16:49:42 +00:00
Brian Burkhalter
8d7866ef5f 8356606: (fs) PosixFileAttributes.permissions() implementations should return an EnumSet
Reviewed-by: liach, alanb
2025-05-12 16:48:13 +00:00
Mikael Vidstedt
50dced88ff 8356656: Drop unused DEVKIT_HOME from jib-profiles.js
Reviewed-by: erikj
2025-05-12 16:31:24 +00:00
Mikael Vidstedt
e463895428 8356657: Use stable source-date for cmp-baseline jib profiles
Reviewed-by: liach, iris, alanb, jpai, erikj
2025-05-12 16:31:12 +00:00
Joel Sikström
8128f638fa 8355692: Refactor stream indentation
Reviewed-by: stefank, cnorrbin
2025-05-12 15:49:38 +00:00
Archie Cobbs
f5525ecf58 8348410: Preview flag not checked during compilation resulting in runtime crash
Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Reviewed-by: jlahoda, mcimadamore
2025-05-12 14:42:27 +00:00
Johan Sjölen
7ae52ce572 8356390: Rename ResolvedIndyEntry::set_flags to set_has_appendix
Co-authored-by: John R Rose <jrose@openjdk.org>
Reviewed-by: coleenp, dholmes
2025-05-12 12:34:28 +00:00
Hamlin Li
8545e13571 8356642: RISC-V: enable hotspot/jtreg/compiler/vectorapi/VectorFusedMultiplyAddSubTest.java
Reviewed-by: fyang, fjiang, mhaessig
2025-05-12 12:25:13 +00:00
Abhishek Kumar
ab8c808ed8 8356752: Log mouse enter and exit events for debugging
Reviewed-by: jdv, tr
2025-05-12 09:15:13 +00:00
Daniel Lundén
2b32541609 8354767: Test crashed: assert(increase < max_live_nodes_increase_per_iteration) failed: excessive live node increase in single iteration of IGVN: 4470 (should be at most 4000)
Reviewed-by: chagedorn, dfenacci, rcastanedalo, epeter
2025-05-12 09:02:25 +00:00
Saranya Natarajan
0258d9998e 8347515: C2: assert(!success || (C->macro_count() == (old_macro_count - 1))) failed: elimination must have deleted one node from macro list
Reviewed-by: thartmann, chagedorn
2025-05-12 08:50:01 +00:00
Fredrik Bredberg
39a28ffe4e 8355646: Optimize ObjectMonitor::exit
Reviewed-by: pchilanomate, coleenp
2025-05-12 08:16:15 +00:00
Ivan Walulya
a3afc9f7ce 8308854: G1 archive region allocation may expand/shrink the heap above/below -Xms
Reviewed-by: tschatzl, ayang
2025-05-12 08:15:53 +00:00
Per Minborg
43008b42cf 8356486: ReverseOrderListView should override reversed() to return base
Reviewed-by: liach, smarks
2025-05-12 07:12:19 +00:00
Per Minborg
45cf32bd2c 8347408: Create an internal method handle adapter for system calls with errno
Reviewed-by: mcimadamore
2025-05-12 06:59:41 +00:00
Hannes Greule
de801fea76 8353551: C2: Constant folding for ReverseBytes nodes
Reviewed-by: epeter, vlivanov
2025-05-12 06:43:52 +00:00
Anjian-Wen
d7cb933b89 8356593: RISC-V: Small improvement to array fill stub
Reviewed-by: fyang
2025-05-12 03:01:46 +00:00
Erik Gahlin
74f047b84d 8356224: JFR: Default value of @Registered is ignored
Reviewed-by: mgronlun
2025-05-11 22:40:29 +00:00
Sergey Bylokhov
97d2a37927 8355790: Enhance code consistency: java.desktop/unix:sun.awt
Reviewed-by: achung, prr
2025-05-11 07:39:15 +00:00
Ioi Lam
436960308c 8356597: AOT cache and CDS archive should not be created in read-only mode
Reviewed-by: shade, kvn
2025-05-10 15:16:19 +00:00
Alexander Matveev
fa7c5a65ba 8356664: [macos] AppContentTest fails after JDK-8352480
Reviewed-by: asemenyuk
2025-05-10 02:59:05 +00:00
Jatin Bhateja
3b336a9da0 8352675: Support Intel AVX10 converged vector ISA feature detection
Reviewed-by: sviswanathan, vlivanov, yzheng
2025-05-09 23:33:32 +00:00
Chen Liang
0f2a6c266b 8356577: Migrate ClassFileVersionTest to be feature-agnostic
Reviewed-by: dholmes, alanb
2025-05-09 21:58:24 +00:00
Roger Riggs
8fadf295b0 8351443: Improve robustness of StringBuilder
Reviewed-by: liach, rgiulietti, bchristi, jpai
2025-05-09 21:48:16 +00:00
Koushik Thirupattur
68a118509a 8310003: Improve logging when default truststore is inaccessible
Reviewed-by: mullan
2025-05-09 19:20:17 +00:00
Calvin Cheung
3b20bed6e2 8356229: cmp-baseline build fail due to lib/modules difference
Reviewed-by: iklam, erikj, liach
2025-05-09 18:22:45 +00:00
Phil Race
30cb94d6b0 8346683: Problem list automated tests that fail on macOS15
Reviewed-by: dmarkov
2025-05-09 18:10:18 +00:00
Sergey Bylokhov
375f3dc9ed 8356053: Test java/awt/Toolkit/Headless/HeadlessToolkit.java fails by timeout
Reviewed-by: prr, kizune
2025-05-09 17:50:51 +00:00
Joe Wang
66f0442713 8353232: Standardizing and Unifying XML Component Configurations
Reviewed-by: lancea
2025-05-09 17:12:53 +00:00
Fabio Romano
1c5eb370b7 8355719: Reduce memory consumption of BigInteger.pow()
Reviewed-by: rgiulietti
2025-05-09 17:06:33 +00:00
Alexander Matveev
601f05e06d 8352480: Don't follow symlinks in additional content for app images
Reviewed-by: asemenyuk
2025-05-09 16:47:06 +00:00
Shaojin Wen
2661f62ca2 8356036: (fs) FileKey.hashCode and UnixFileStore.hashCode implementations can use Long.hashCode
Reviewed-by: liach, bpb
2025-05-09 16:42:49 +00:00
Joe Darcy
bed29a03d1 8356555: Incorrect use of {@link} in BigDecimal
Reviewed-by: bpb, nbenalla, liach, iris
2025-05-09 16:35:51 +00:00
Calvin Cheung
dd25799c21 8356212: runtime/cds/appcds/LotsOfSyntheticClasses.java timed out with -XX:+AOTClassLinking
Reviewed-by: iklam, shade, syan
2025-05-09 16:17:14 +00:00
Naoto Sato
5f00c877e2 8356450: NPE in CLDRTimeZoneNameProviderImpl for tzdata downgrades after JDK-8342550
Reviewed-by: bpb, jlu, joehw
2025-05-09 16:16:56 +00:00
Liam Miller-Cushon
0e0bd642ab 8356441: IllegalStateException in RichDiagnosticFormatter after JDK-8355065
Reviewed-by: liach, mcimadamore
2025-05-09 15:45:25 +00:00
Patricio Chilano Mateo
9ebb5d42d4 8346255: java/lang/management/ThreadMXBean/VirtualThreadDeadlocks.java finds no deadlock
Reviewed-by: kevinw, dholmes, alanb
2025-05-09 15:05:09 +00:00
Serguei Spitsyn
411a63ea1b 8356251: Need minor cleanup for interp_only_mode
Reviewed-by: lmesnik, cjplummer
2025-05-09 12:24:28 +00:00
Magnus Ihse Bursie
568dcc15cb 8334391: JDK build should exclude *-files directories for Java source
Reviewed-by: erikj
2025-05-09 10:05:23 +00:00
Magnus Ihse Bursie
a091e2f281 8351029: IncludeCustomExtension does not work on cygwin with source code below /home
Reviewed-by: erikj
2025-05-09 09:10:06 +00:00
Magnus Ihse Bursie
3aa2ea7e67 8301971: Make JDK source code UTF-8
8338973: Document need to have UTF-8 locale available to build the JDK

Reviewed-by: erikj, naoto, mbaesken
2025-05-09 09:05:10 +00:00
Yudi Zheng
74e981e855 8353735: [JVMCI] Allow specifying storage kind of the callee save register
Reviewed-by: dnsimon, cslucas
2025-05-09 08:39:16 +00:00
Matthias Baesken
c88f94c9d7 8356394: Remove USE_LIBRARY_BASED_TLS_ONLY macro
Reviewed-by: dholmes, kbarrett, lucy
2025-05-09 07:12:51 +00:00
Ioi Lam
591e71ebe5 8354890: AOT-initialize j.l.i.MethodHandleImpl and inner classes
Reviewed-by: liach, vlivanov
2025-05-09 06:00:23 +00:00
Jatin Bhateja
53ad4b2ad2 8355364: [REDO] Missing REX2 prefix accounting in ZGC barriers leads to incorrect encoding
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: aboldtch, sviswanathan
2025-05-09 05:28:56 +00:00
Sergey Bylokhov
9a0e6f338f 8356571: Re-enable -Wtype-limits for GCC in LCMS
Reviewed-by: jwaters, prr
2025-05-09 02:08:29 +00:00
Alexey Semenyuk
cc3a366e2a 8333568: Test that jpackage doesn't modify R/O files/directories
Reviewed-by: almatvee
2025-05-09 00:06:26 +00:00
Alexey Semenyuk
8a8893ec03 8356562: SigningAppImageTwoStepsTest test fails
Reviewed-by: almatvee
2025-05-08 22:18:56 +00:00
Julian Waters
c2a4fa1d83 8355573: Remove kludge_c++11.h from jpackage code
Reviewed-by: asemenyuk, almatvee
2025-05-08 22:11:37 +00:00
Ioi Lam
4379e2d26b 8356125: Interned strings are omitted from AOT cache
Reviewed-by: shade, ccheung
2025-05-08 17:54:47 +00:00
Vladimir Ivanov
b7b437d5bd 8356453: C2: assert(!vbox->is_Phi()) during vector box expansion
Reviewed-by: thartmann, kvn
2025-05-08 17:53:27 +00:00
Naoto Sato
e4ecda2b25 8356221: Clarify Console.charset() method description
Reviewed-by: bpb
2025-05-08 17:52:05 +00:00
Chris Plummer
9273094538 8356023: Some nsk/jdi tests can fetch ThreadReference from static field in the debuggee: part 2
Reviewed-by: amenkov, sspitsyn, lmesnik
2025-05-08 17:48:26 +00:00
Joe Darcy
24d84cf66a 8354091: Update RELEASE_25 description for Flexible Constructor Bodies
Reviewed-by: iris, liach, vromero
2025-05-08 16:30:01 +00:00
Casper Norrbin
1e8927dded 8354433: Assert in AbstractRBTree::visit_range_in_order(const K& from, const K& to, F f) is wrong
Reviewed-by: jsjolen, aboldtch
2025-05-08 16:21:14 +00:00
Casper Norrbin
7f3191a630 8354878: File Leak in CgroupSubsystemFactory::determine_type of cgroupSubsystem_linux.cpp:300
Reviewed-by: sgehwolf, jsjolen, dholmes
2025-05-08 16:20:53 +00:00
Roman Kennke
6b1e88a946 8356329: Report compact object headers in hs_err
Reviewed-by: stuefe, lmesnik, zgu
2025-05-08 16:07:25 +00:00
Maurizio Cimadamore
c6ffacb575 8344703: Compiler Implementation for Flexible Constructor Bodies
Reviewed-by: vromero, liach, jlahoda
2025-05-08 15:14:35 +00:00
Eirik Bjørsnøs
2ea629f3f2 8353440: Disable FTP fallback for non-local file URLs by default
Reviewed-by: dfuchs
2025-05-08 14:52:53 +00:00
Magnus Ihse Bursie
57297e60de 8354278: Revert use of non-POSIX echo -n introduced in JDK-8301197
Reviewed-by: iris
2025-05-08 13:33:57 +00:00
Kevin Walls
900b3ff7ee 8351359: OperatingSystemMXBean: values from getCpuLoad and getProcessCpuLoad are stale after 24.8 days (Windows)
Reviewed-by: amenkov, sspitsyn
2025-05-08 13:18:02 +00:00
Christian Hagedorn
ad07426fab 8356084: C2: Data is wrongly rewired to Initialized Assertion Predicates instead of Template Assertion Predicates
Reviewed-by: epeter, kvn
2025-05-08 11:34:46 +00:00
Christian Hagedorn
b47b2062a2 8355674: C2: Partial Peeling should not introduce Phi nodes above OpaqueInitializedAssertionPredicate nodes
Reviewed-by: epeter, thartmann
2025-05-08 11:33:31 +00:00
Amit Kumar
5df7089c3e 8350398: [s390x] Relativize initial_sp/monitors in interpreter frames
Reviewed-by: lucy, aph
2025-05-08 10:56:01 +00:00
nibjen
2c1eb339d6 8350830: Values converted incorrectly when reading TLS session tickets
Reviewed-by: djelinski, ascarpino
2025-05-08 09:06:19 +00:00
Andrew Dinn
daf6fa1e61 8356085: AArch64: compiler stub buffer size wrongly depends on ZGC
Reviewed-by: shade, kvn
2025-05-08 07:44:42 +00:00
Anass Baya
223eec5501 8354219: Automate javax/swing/JComboBox/ComboPopupBug.java
Reviewed-by: aivanov, achung
2025-05-08 07:30:40 +00:00
Jaikiran Pai
52a5583d69 8356154: Respecify java.net.Socket constructors that allow creating UDP sockets to throw IllegalArgumentException
Reviewed-by: dfuchs, alanb
2025-05-08 03:56:45 +00:00
Ioi Lam
3e258cbddf 8356407: Part of class verification is skipped in AOT training run
Co-authored-by: Vladimir Ivanov <vlivanov@openjdk.org>
Reviewed-by: matsaave, coleenp
2025-05-08 01:08:52 +00:00
Markus KARG
7642556a5a 8343110: Add getChars(int, int, char[], int) to CharSequence and CharBuffer
Reviewed-by: liach, jpai, rriggs
2025-05-08 00:58:10 +00:00
Magnus Ihse Bursie
493ac93606 8244533: Configure should abort on missing short names in Windows
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Magnus Ihse Bursie <ihse@openjdk.org>
Reviewed-by: erikj
2025-05-07 21:33:39 +00:00
Chen Liang
8c1b915c7e 8356126: Duplication handling and optimization of CaptureCallState
Reviewed-by: jvernee
2025-05-07 18:11:03 +00:00
Chen Liang
3f6b17777f 8332934: Do loop with continue with subsequent switch leads to incorrect stack maps
Reviewed-by: vromero
2025-05-07 18:09:23 +00:00
Alex Menkov
cb02158090 8354461: Update tests to disable streaming output for attach tools
Reviewed-by: sspitsyn, cjplummer
2025-05-07 18:05:48 +00:00
Ioi Lam
28e6b7cb74 8351313: VM crashes when AOTMode/AOTCache/AOTConfiguration are empty
Reviewed-by: ccheung, shade, kvn
2025-05-07 17:40:44 +00:00
Ioi Lam
40f696dbe4 8356318: Unexpected VerifyError in AOT training run
Reviewed-by: shade, kvn
2025-05-07 17:36:37 +00:00
Thomas Stuefe
da5dc5287b 8356025: Provide a PrintVMInfoAtExit diagnostic switch
Reviewed-by: mbaesken, jsikstro
2025-05-07 16:52:45 +00:00
Leonid Mesnik
c8a30c2aab 8347004: vmTestbase/metaspace/shrink_grow/ShrinkGrowTest/ShrinkGrowTest.java fails with CDS disabled
Reviewed-by: coleenp
2025-05-07 15:42:00 +00:00
Gergö Barany
90f0f1b88b 8354443: [Graal] crash after deopt in TestG1BarrierGeneration.java
Reviewed-by: dnsimon, yzheng
2025-05-07 14:49:37 +00:00
Chen Liang
d7e648bb27 8355775: Improve symbolic sharing in dynamic constant pool entries
Reviewed-by: asotona
2025-05-07 14:08:21 +00:00
Magnus Ihse Bursie
ca5e0b1848 8282493: Add --with-jcov-modules convenience option
Reviewed-by: erikj
2025-05-07 13:28:46 +00:00
Magnus Ihse Bursie
a72f7506bf 8356379: Need a proper way to test existence of binary from configure
Reviewed-by: erikj
2025-05-07 13:23:28 +00:00
Magnus Ihse Bursie
fa765e7d34 8356335: Remove linux-x86 from jib profiles
Reviewed-by: erikj
2025-05-07 13:23:16 +00:00
Volkan Yazici
60a4594b9f 8355578: [java.net] Use @requires tag instead of exiting based on "os.name" property value
Reviewed-by: dfuchs
2025-05-07 12:07:47 +00:00
Sergey Bylokhov
0844745e7b 8339561: The test/jdk/java/awt/Paint/ListRepaint.java may fail after JDK-8327401
Reviewed-by: azvegint
2025-05-07 09:21:58 +00:00
Per Minborg
1bdff3ccd0 8356114: java/foreign/TestBufferStackStress2.java failed with junit action timed out
Reviewed-by: djelinski, alanb
2025-05-07 09:12:44 +00:00
Hamlin Li
50554fa198 8355704: RISC-V: enable TestIRFma.java
Reviewed-by: rehn, luhenry
2025-05-07 08:34:03 +00:00
Hamlin Li
1a4bbb0027 8355699: RISC-V: support SUADD/SADD/SUSUB/SSUB
Reviewed-by: fyang, luhenry
2025-05-07 08:33:49 +00:00
Hamlin Li
da004cb657 8356030: RISC-V: enable (part of) BasicDoubleOpTest.java
Reviewed-by: fyang, luhenry
2025-05-07 08:33:35 +00:00
Manuel Hässig
b5fd289f53 8356310: compiler/print/TestPrintAssemblyDeoptRace.java fails with Improperly specified VM option 'DeoptimizeALot'
Reviewed-by: epeter, mchevalier, thartmann, chagedorn, rcastanedalo
2025-05-07 08:16:35 +00:00
Ivan Bereziuk
328715d84c 8356187: TestJcmd.java may incorrectly parse podman version
Reviewed-by: sgehwolf
2025-05-07 08:06:29 +00:00
Aleksey Shipilev
50895835e0 8356259: Lift basic -Xlog:jit* logging to "info" level
Reviewed-by: kvn
2025-05-07 07:44:05 +00:00
Matthias Baesken
21f01e0c89 8356269: Fix broken web-links after JDK-8295470
Reviewed-by: chagedorn, epeter
2025-05-07 07:19:42 +00:00
Christian Stein
910d77d39e 8354260: Launcher help text is wrong for -Xms
Reviewed-by: jsikstro, jlahoda
2025-05-07 06:55:29 +00:00
Daishi Tabata
4458719a10 8355249: Remove the use of WMIC from the entire source code
Reviewed-by: erikj, ihse, asemenyuk
2025-05-07 06:19:56 +00:00
Galder Zamarreño
772c97039e 8354257: xctracenorm profiler not working with JDK JMH benchmarks
Reviewed-by: ihse
2025-05-07 06:17:50 +00:00
Phil Race
4e3ec3c04c 8356208: Remove obsolete code in PSPrinterJob for plugin printing
Reviewed-by: serb
2025-05-07 05:36:00 +00:00
Amit Kumar
0eb680ca46 8350308: [s390x] Relativize last_sp (and top_frame_sp) in interpreter frames
Reviewed-by: lucy, rrich
2025-05-07 04:12:56 +00:00
Sergey Bylokhov
762423d64d 8355561: [macos] Build failure with Xcode 16.3
Reviewed-by: kizune, prr
2025-05-07 02:54:41 +00:00
Dingli Zhang
acad0b4968 8356188: RISC-V: Cleanup effect of vmaskcmp_fp
Reviewed-by: fyang, gcao
2025-05-07 00:58:19 +00:00
Alexey Semenyuk
cbbab07d23 8356309: Fix issues uncovered after running jpackage tests locally with installing test packages
Reviewed-by: almatvee
2025-05-06 23:40:48 +00:00
Patricio Chilano Mateo
9a23f721c7 8316682: serviceability/jvmti/vthread/SelfSuspendDisablerTest timed out
Reviewed-by: lmesnik, pchilanomate
2025-05-06 22:08:51 +00:00
Jiangli Zhou
bed5114e3a 8356209: Problemlist failed gtests on static-jdk
Reviewed-by: alanb
2025-05-06 19:38:39 +00:00
Alexandre Iline
e2df9cdeb0 8356226: JCov Grabber server didn't respond
Reviewed-by: erikj
2025-05-06 19:19:10 +00:00
Coleen Phillimore
4977588d5e 8330022: Failure test/hotspot/jtreg/vmTestbase/nsk/sysdict/share/BTreeTest.java: Could not initialize class java.util.concurrent.ThreadLocalRandom
Co-authored-by: David Leopoldseder <davleopo@openjdk.org>
Reviewed-by: tschatzl, matsaave
2025-05-06 19:00:06 +00:00
Brent Christian
fe29cad5e0 8298783: java/lang/ref/FinalizerHistogramTest.java failed with "RuntimeException: MyObject is not found in test output"
Reviewed-by: kbarrett, jpai
2025-05-06 18:40:33 +00:00
Justin Lu
0cb355ee92 8356096: ISO 4217 Amendment 179 Update
Reviewed-by: naoto, iris
2025-05-06 18:27:20 +00:00
Koushik Thirupattur
5d17a28c4e 8353001: Remove leftover Security Manager parsing code in sun.security.util.Debug
Reviewed-by: mullan
2025-05-06 18:10:46 +00:00
Magnus Ihse Bursie
08dd4a75c5 8354273: Replace even more Unicode characters with ASCII
Reviewed-by: naoto
2025-05-06 18:00:57 +00:00
Alexey Semenyuk
9c43871fd1 8356219: jpackage places libapplauncher.so in incorrect location in the app image
Reviewed-by: almatvee
2025-05-06 17:57:23 +00:00
Jiangli Zhou
064b036ebd 8356050: Problemlist jdk, langtools & lib-test tier1 tests requiring runtime usages of <jdk>/bin/tools for static-jdk
Reviewed-by: ihse
2025-05-06 17:56:03 +00:00
Raffaello Giulietti
052e2522b6 8356152: String.concat can throw StringIndexOutOfBoundsException
Reviewed-by: liach, aturbanov, redestad, rriggs
2025-05-06 17:32:36 +00:00
Harshitha Onkar
b21b3a38a5 8355528: Update HarfBuzz to 11.2.0
Reviewed-by: dnguyen, prr
2025-05-06 16:50:14 +00:00
Volodymyr Paprotski
a6995a3d42 8354473: Incorrect results for compress/expand tests with -XX:+EnableX86ECoreOpts
Reviewed-by: jbhateja, sviswanathan, epeter
2025-05-06 16:26:21 +00:00
Hannes Wallnöfer
9477c42215 8356276: JavaScript error in script.js after JDK-8348282
Reviewed-by: liach
2025-05-06 16:01:44 +00:00
Matthias Baesken
088825ed88 8355979: ATTRIBUTE_NO_UBSAN needs to be extended to handle float divisions by zero on AIX
Reviewed-by: jkern, lucy
2025-05-06 14:15:37 +00:00
Roman Kennke
bfdafb7626 8356266: Fix non-Shenandoah build after JDK-8356075
Reviewed-by: dnsimon, shade
2025-05-06 13:25:07 +00:00
Coleen Phillimore
ddd07b107e 8356172: IdealGraphPrinter doesn't need ThreadCritical
Reviewed-by: rcastanedalo, chagedorn
2025-05-06 11:48:02 +00:00
Roman Kennke
614ba9fc41 8356075: Support Shenandoah GC in JVMCI
Reviewed-by: shade, dnsimon, cslucas
2025-05-06 11:08:51 +00:00
Joel Sikström
ecfaf354d7 8356083: ZGC: Duplicate ZTestEntry symbols in gtests
Reviewed-by: aboldtch, tschatzl
2025-05-06 09:50:44 +00:00
Manuel Hässig
1eee15eea6 8258229: Crash in nmethod::reloc_string_for
Reviewed-by: galder, thartmann
2025-05-06 09:05:37 +00:00
Harald Eilertsen
8c4f2ff21e 8356182: Build fails on aarch64 without ZGC
This work was sponsored by The FreeBSD Foundation

Reviewed-by: stefank, chagedorn
2025-05-06 08:28:31 +00:00
Roberto Castañeda Lozano
def907ab89 8354520: IGV: dump contextual information
Reviewed-by: epeter, dfenacci
2025-05-06 08:16:09 +00:00
Emanuel Peter
9f8fbf2922 8352869: Verify.checkEQ: extension for NaN, VectorAPI and arbitrary Objects
Reviewed-by: chagedorn, thartmann
2025-05-06 06:26:09 +00:00
Manukumar V S
e09d2e275b 8288471: java/awt/ScrollPane/bug8077409Test.java is unstable and fails intermittently in CI
Reviewed-by: abhiscxk, serb
2025-05-06 02:51:23 +00:00
Leonid Mesnik
64b58f6a54 8356089: java/lang/IO/IO.java fails with -XX:+AOTClassLinking
Reviewed-by: epavlova, iklam
2025-05-06 01:59:33 +00:00
Calvin Cheung
7f6ea27d3e 8356020: Failed assert in virtualMemoryTracker.cpp
Reviewed-by: iklam, gziemski
2025-05-06 01:34:50 +00:00
Boris Ulasevich
aea2837143 8355896: Lossy narrowing cast of JVMCINMethodData::size
Reviewed-by: kvn, dnsimon
2025-05-06 01:26:15 +00:00
Nizar Benalla
606f2012b0 8174840: Elements.overrides does not check the return type of the methods
Co-authored-by: Pavel Rappo <prappo@openjdk.org>
Reviewed-by: liach, darcy
2025-05-05 21:52:25 +00:00
Steffen Nießing
2a4f37cc16 8356119: Typo in bytecode behavior for Lookup.findGetter
Reviewed-by: liach
2025-05-05 20:52:13 +00:00
Archie Cobbs
ca7e4c4e05 8352612: No way to add back lint categories after "none"
Reviewed-by: mcimadamore
2025-05-05 20:40:45 +00:00
Calvin Cheung
620f81671a 8327495: Print more warning with -Xshare:auto when CDS fails to use archive
Reviewed-by: iklam, matsaave
2025-05-05 19:36:26 +00:00
Oleksii Sylichenko
6bcbc3b0a2 8353489: Increase timeout and improve Windows compatibility in test/jdk/java/lang/ProcessBuilder/Basic.java
Reviewed-by: rriggs
2025-05-05 18:56:48 +00:00
Roger Riggs
65f188f29f 8354334: Remove @ValueBased from ProcessHandle
Reviewed-by: liach
2025-05-05 18:35:46 +00:00
Tom Rodriguez
cc34135fff 8343158: [JVMCI] ZGC should deoptimize on old gen allocation
Reviewed-by: aboldtch, eosterlund
2025-05-05 17:26:01 +00:00
Justin Lu
32f67a3e38 8356040: java/util/PluggableLocale/LocaleNameProviderTest.java timed out
Reviewed-by: naoto
2025-05-05 16:42:44 +00:00
Aleksey Shipilev
f68764490c 8356153: Shenandoah stubs are missing in AOT Code Cache addresses table
Reviewed-by: kvn
2025-05-05 16:30:25 +00:00
Joe Darcy
6719b9214f 8356108: Update SourceVersion.RELEASE_25 description for JEPs 511 and 512
Reviewed-by: vromero, liach, iris, jlahoda
2025-05-05 15:42:19 +00:00
Aleksey Shipilev
1501a5e41e 8356122: Client build fails after JDK-8350209
Reviewed-by: chagedorn
2025-05-05 12:51:02 +00:00
Coleen Phillimore
a8cd01f6e2 8355353: File Leak in os::read_image_release_file of os.cpp:1552
Reviewed-by: zgu, jsjolen
2025-05-05 11:57:01 +00:00
Robbin Ehn
026479767c 8352730: RISC-V: Disable tests in qemu-user
Reviewed-by: fyang, mli
2025-05-05 11:43:45 +00:00
Jan Lahoda
f1e06c3c05 8299934: LocalExecutionControl replaces default uncaught exception handler
Reviewed-by: liach
2025-05-05 09:00:59 +00:00
Anton Artemov
6dd5553823 8354329: Rewrite runtime/ClassFile/JsrRewriting.java and OomWhileParsingRepeatedJsr.java tests
Reviewed-by: matsaave, coleenp
2025-05-05 08:52:52 +00:00
Johan Sjölen
8511220f9d 8355490: Make VM_RedefineClasses::merge_constant_pools only take reference arguments
Reviewed-by: amenkov, sspitsyn, coleenp
2025-05-05 07:15:46 +00:00
Johan Sjölen
f04e556d47 8355711: Remove incorrect overflow check in RawBytecodeStream::raw_next
Reviewed-by: dlong, matsaave
2025-05-05 07:14:24 +00:00
Johan Sjölen
604225fb0c 8354954: Typed static memory for late initialization of static class members in Hotspot
Reviewed-by: qamai, kbarrett, jvernee
2025-05-05 06:58:20 +00:00
Marc Chevalier
69d0f7a395 8354284: Add more compiler test folders to tier1 runs
Reviewed-by: chagedorn, kvn
2025-05-05 06:57:09 +00:00
Daniel Jeliński
c94a7ae11e 8354276: Strict HTTP header validation
Reviewed-by: dfuchs, jpai
2025-05-05 05:29:06 +00:00
Jan Lahoda
a5f4366a7f 8353565: Javac throws "inconsistent stack types at join point" exception
Reviewed-by: vromero, liach, mcimadamore
2025-05-05 05:04:17 +00:00
Tatsunori Uchino
c8ce61c8ca 8355371: NegativeArraySizeException in print methods in IO or System.console() in JShell
8354910: Output by java.io.IO or System.console() corrupted for some non-ASCII characters

Reviewed-by: liach, jlahoda
2025-05-05 05:03:15 +00:00
Amit Kumar
5b3ae92105 8350182: [s390x] Relativize locals in interpreter frames
Reviewed-by: lucy, rrich
2025-05-05 04:02:51 +00:00
Mikhail Yankelevich
03f0ec4a35 8183348: Better cleanup for jdk/test/sun/security/pkcs12/P12SecretKey.java
Reviewed-by: rhalade, weijun
2025-05-02 23:15:26 +00:00
Chen Liang
4d2d12987f 8355962: RISCV64 cross build fails after 8354996
Reviewed-by: erikj, manc
2025-05-02 22:34:10 +00:00
Vicente Romero
56468c42be 8322810: Lambda expression types can't be classes
Reviewed-by: mcimadamore
2025-05-02 20:44:22 +00:00
Peter B. Kessler
60ba81d77f 8354347: Increase the default padding size for aarch64 in JDK code.
Reviewed-by: aph, ecaspole
2025-05-02 18:54:11 +00:00
Mohamed Issa
c8bbcaf5de 8348638: Performance regression in Math.tanh
Reviewed-by: jbhateja, epeter, sviswanathan
2025-05-02 17:21:50 +00:00
Brian Burkhalter
84f570c573 8355445: [java.nio] Use @requires tag instead of exiting based on "os.name" property value
Reviewed-by: lancea, jpai, iris
2025-05-02 17:00:12 +00:00
Brian Burkhalter
4826a91e7a 8355443: [java.io] Use @requires tag instead of exiting based on File.separatorChar value
Reviewed-by: naoto, vyazici
2025-05-02 16:59:56 +00:00
Brian Burkhalter
5faa559022 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value
Reviewed-by: jpai, lancea
2025-05-02 16:59:41 +00:00
Mikael Vidstedt
01fd49ffb3 8355446: Change to Xcode 15.4 for building on macOS at Oracle
Reviewed-by: erikj, ihse
2025-05-02 16:56:05 +00:00
Per Minborg
9f9e73d5f9 8349146: [REDO] Implement a better allocator for downcalls
Reviewed-by: mcimadamore, jvernee, liach
2025-05-02 14:14:59 +00:00
Ivan Walulya
995d54161f 8355681: G1HeapRegionManager::find_contiguous_allow_expand ignores free regions when checking regions available for allocation
Reviewed-by: tschatzl, ayang
2025-05-02 12:54:09 +00:00
Ivan Bereziuk
cf2f9ce820 8356032: createAutoconfBundle.sh downloads to local directory
Reviewed-by: erikj
2025-05-02 12:49:03 +00:00
Suchismith Roy
cdad6d788d 8216437: PPC64: Add intrinsic for GHASH algorithm
Reviewed-by: mdoerr, amitkumar
2025-05-02 12:30:32 +00:00
Coleen Phillimore
afb9134a31 8355627: Don't use ThreadCritical for EventLog list
Reviewed-by: shade, lmesnik, zgu
2025-05-02 11:40:19 +00:00
Hamlin Li
811f117ce3 8355980: RISC-V: remove vmclr_m before vmsXX and vmfXX
Reviewed-by: dzhang, fyang
2025-05-02 08:28:57 +00:00
Jan Lahoda
d29700cc80 8344706: Implement JEP 512: Compact Source Files and Instance Main Methods
Co-authored-by: Stuart Marks <smarks@openjdk.org>
Reviewed-by: liach, cstein, vromero, naoto
2025-05-02 06:10:48 +00:00
Chen Liang
bd7c77898a 8350549: MethodHandleProxies.WRAPPER_TYPES is not thread-safe
Reviewed-by: jpai, jvernee
2025-05-02 01:30:47 +00:00
Weijun Wang
c514f135cc 8356051: Update SignatureUtil.java with the new KnownOIDs
Reviewed-by: rhalade
2025-05-02 00:25:19 +00:00
Weijun Wang
494ef6cb8c 8354305: SHAKE128 and SHAKE256 MessageDigest algorithms
Reviewed-by: valeriep, mullan
2025-05-01 23:34:35 +00:00
Valerie Peng
6536430a3b 8348732: SunJCE and SunPKCS11 have different PBE key encodings
Reviewed-by: weijun, fferrari
2025-05-01 23:08:16 +00:00
Vladimir Kozlov
aae2bb6249 8350209: Preserve adapters in AOT cache
Co-authored-by: Ashutosh Mehra <asmehra@openjdk.org>
Reviewed-by: vlivanov, asmehra, ihse, iklam
2025-05-01 21:03:24 +00:00
Sergey Kuksenko
c116b18b89 8355559: Benchmark modification/extension shouldn't affect the behavior of other benchmarks
Reviewed-by: ecaspole
2025-05-01 18:45:20 +00:00
William Kemper
9e26b9facb 8355372: GenShen: Test gc/shenandoah/generational/TestOldGrowthTriggers.java fails with UseCompactObjectHeaders enabled
Reviewed-by: ysr, kdnilsen
2025-05-01 17:40:57 +00:00
Koushik Thirupattur
394961c8fe 8328914: Document the java.security.debug property in javadoc
Reviewed-by: mullan
2025-05-01 17:26:32 +00:00
Joe Wang
cf0db96314 8354084: Streamline XPath API's extension function control
Reviewed-by: rriggs, naoto
2025-05-01 17:03:29 +00:00
Mikhail Yankelevich
6b553acbaa 8277424: javax/net/ssl/TLSCommon/TLSTest.java fails with connection refused
Reviewed-by: rhalade
2025-05-01 16:16:25 +00:00
Kevin Walls
09cae5fd8f 8354407: Test com/sun/management/OperatingSystemMXBean/GetProcessCpuLoad.java still fails on Windows
Reviewed-by: cjplummer, lmesnik
2025-05-01 16:05:59 +00:00
Shaojin Wen
2ad639f1b3 8356021: Use Double::hashCode in java.util.Locale::hashCode
Reviewed-by: rriggs, liach
2025-05-01 15:47:01 +00:00
Chen Liang
bee273d6b4 8297271: AccessFlag.maskToAccessFlags should be specific to class file version
Reviewed-by: rriggs
2025-05-01 14:37:26 +00:00
Artur Barashev
34807df762 8355779: When no "signature_algorithms_cert" extension is present we do not apply certificate scope constraints to algorithms in "signature_algorithms" extension
Reviewed-by: mullan
2025-05-01 13:09:14 +00:00
Matthew Donovan
7b31762375 8354235: Test javax/net/ssl/SSLSocket/Tls13PacketSize.java failed with java.net.SocketException: An established connection was aborted by the software in your host machine
Reviewed-by: rhalade
2025-05-01 11:04:33 +00:00
Hamlin Li
0cd0afb2b3 8355913: RISC-V: improve hotspot/jtreg/compiler/vectorization/runner/BasicFloatOpTest.java
Reviewed-by: fyang, rehn
2025-05-01 08:15:24 +00:00
Jan Lahoda
0a697f6ff4 8344708: Implement JEP 511: Module Import Declarations
Reviewed-by: mcimadamore, vromero, alanb
2025-05-01 07:42:38 +00:00
Gustavo Simon
b218410508 8354292: Remove unused PRAGMA_FORMAT_IGNORED
Reviewed-by: mbaesken, kbarrett, shade
2025-05-01 07:32:10 +00:00
Aleksey Shipilev
8ef7e256a0 8355769: Optimize nmethod dependency recording
Reviewed-by: adinn, vlivanov, kvn
2025-05-01 07:29:56 +00:00
Chris Plummer
e2ae50d877 8355569: Some nsk/jdi tests can glean the "main" thread by using the ClassPrepareEvent for the debuggee main class
Reviewed-by: sspitsyn, amenkov
2025-04-30 22:53:31 +00:00
Chen Liang
e36756b264 8297727: Forcing LF interpretation lead to StackOverflowError in reflection code
Reviewed-by: jvernee
2025-04-30 21:56:13 +00:00
Chen Liang
24bc714d5e 8355956: Prepare javap for class file format aware access flag parsing
Reviewed-by: vromero
2025-04-30 21:55:57 +00:00
Zhengyu Gu
4cc19ba5e3 8355650: Remove unused fields in ParkEvent
Reviewed-by: coleenp
2025-04-30 20:24:54 +00:00
Chen Liang
bccf057fa4 8355971: Build warnings after the changes for JDK-8354996
Reviewed-by: shade, erikj
2025-04-30 19:26:27 +00:00
Rajan Halade
1313349a2e 8350498: Remove two Camerfirma root CA certificates
Reviewed-by: mullan
2025-04-30 18:14:10 +00:00
Mat Carter
1ff7e813e3 8354897: Support Soft/Weak Reference in AOT cache
Co-authored-by: Ioi Lam <iklam@openjdk.org>
Reviewed-by: liach, eosterlund
2025-04-30 18:05:59 +00:00
Gerard Ziemski
9a2a2c5bb1 8354547: REDO: Force clients to explicitly pass mem_tag value, even if it is mtNone
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Reviewed-by: stefank, coleenp, jsjolen
2025-04-30 17:57:00 +00:00
Volkan Yazici
18983b635f 8355391: Use Long::hashCode in java.time
Reviewed-by: rriggs, pminborg, naoto
2025-04-30 17:52:55 +00:00
Chris Plummer
50145bb74a 8355773: Some nsk/jdi tests can fetch ThreadReference from static field in the debuggee
Reviewed-by: sspitsyn, amenkov
2025-04-30 17:15:52 +00:00
Chris Plummer
486acc06e0 8355453: nsk.share.jdi.Debugee.waitingEvent() does not timeout properly
Reviewed-by: lmesnik, amenkov, sspitsyn
2025-04-30 17:09:53 +00:00
Gautham Krishnan
66122811aa 8342886: Update MET timezone in TimeZoneNames files
Reviewed-by: naoto
2025-04-30 16:06:22 +00:00
Per Minborg
fbc4691bfa 8351565: Implement JEP 502: Stable Values (Preview)
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: vklang, jvernee, alanb, liach
2025-04-30 16:03:25 +00:00
Roger Riggs
4c695fa8a4 8351000: StringBuilder getChar and putChar robustness
Reviewed-by: liach, lancea, rgiulietti, pminborg
2025-04-30 13:50:57 +00:00
Rajat Mahajan
482538b100 8351884: Refactor bug8033699.java test code
Reviewed-by: aivanov, honkar, dmarkov
2025-04-30 12:23:24 +00:00
Andrey Turbanov
0110acaa90 8354791: Use Hashtable.putIfAbsent in CSS constructor
Reviewed-by: serb, aivanov
2025-04-30 11:29:06 +00:00
Tongbao Zhang
526951dba7 8354145: G1: UseCompressedOops boundary is calculated on maximum heap region size instead of maxiumum ergonomic heap region size
Reviewed-by: tschatzl, ayang
2025-04-30 09:57:23 +00:00
Gui Cao
765cef4546 8355878: RISC-V: jdk/incubator/vector/DoubleMaxVectorTests.java fails when using RVV
Reviewed-by: fyang, dzhang
2025-04-30 09:04:54 +00:00
Marc Chevalier
d802fd0da2 8352422: [ubsan] Out-of-range reported in ciMethod.cpp:917:20: runtime error: 2.68435e+09 is outside the range of representable values of type 'int'
Reviewed-by: epeter, dlong
2025-04-30 08:45:54 +00:00
Volkan Yazici
7d9a43839a 8355370: Include server name in HTTP test server thread names to improve diagnostics
Reviewed-by: dfuchs, jpai
2025-04-30 08:15:21 +00:00
Anjian-Wen
375ac6d446 8355796: RISC-V: compiler/vectorapi/AllBitsSetVectorMatchRuleTest.java fails after JDK-8355657
Reviewed-by: fyang, gcao
2025-04-30 01:58:41 +00:00
Alexey Semenyuk
1a9a9288a6 8355651: Issues with post-image hook
Reviewed-by: almatvee
2025-04-30 01:14:51 +00:00
Chen Liang
dcffd9d9ac 8347471: Provide valid flags and mask in AccessFlag.Location
Reviewed-by: rriggs
2025-04-30 00:39:02 +00:00
Leonid Mesnik
83d0bd85af 8355069: Allocation::check_out_of_memory() should support CheckUnhandledOops mode
Reviewed-by: sspitsyn
2025-04-29 23:44:45 +00:00
Chen Liang
1652948862 8355442: Reference field lambda forms with type casts are not generated
Reviewed-by: jvernee
2025-04-29 23:07:14 +00:00
William Kemper
5e27547e2d 8355789: GenShen: assert(_degen_point == ShenandoahGC::_degenerated_unset) failed: Should not be set yet: Outside of Cycle
Reviewed-by: kdnilsen, ysr
2025-04-29 22:56:19 +00:00
Vladimir Ivanov
6850757fe6 8355689: Wrong native entry name for FloatMaxVector vector math stubs with -XX:MaxVectorSize=8
Reviewed-by: psandoz, haosun, kvn
2025-04-29 22:25:20 +00:00
Artur Barashev
8b16897b74 8355262: Test sun/security/ssl/SSLSessionImpl/NoInvalidateSocketException.java failed: accept timed out
Reviewed-by: jnimeh, wetmore
2025-04-29 20:42:37 +00:00
Brent Christian
bf52eb0358 8355632: WhiteBox.waitForReferenceProcessing() fails assert for return type
Reviewed-by: kbarrett
2025-04-29 20:15:00 +00:00
Mark Powers
c2485d5f7d 8351113: RC2ParameterSpec throws IllegalArgumentException when offset is negative
Reviewed-by: mullan
2025-04-29 19:12:52 +00:00
Aleksey Shipilev
ead6757486 8342283: CDS cannot handle a large number of classes
Co-authored-by: Ioi Lam <iklam@openjdk.org>
Reviewed-by: iklam, lmesnik, ccheung
2025-04-29 18:08:28 +00:00
Manukumar V S
bd7561c315 8355441: Remove antipattern from PassFailJFrame.forcePass javadoc
Reviewed-by: aivanov, honkar
2025-04-29 16:43:15 +00:00
Chen Liang
5d2d1ab574 8354996: Reduce dynamic code generation for a single downcall
Reviewed-by: jvernee
2025-04-29 15:42:08 +00:00
Julian Waters
fa2a9d1e10 8354919: Move HotSpot .editorconfig into the global .editorconfig
Reviewed-by: erikj, ihse
2025-04-29 15:37:16 +00:00
Liam Miller-Cushon
b5156bb16a 8355065: ConcurrentModificationException in RichDiagnosticFormatter
Reviewed-by: vromero
2025-04-29 14:32:38 +00:00
Fei Yang
2ed7ad4b5c 8355667: RISC-V: Add backend implementation for unsigned vector Min / Max operations
Reviewed-by: mli, gcao
2025-04-29 13:41:04 +00:00
Matthias Baesken
9f42ff8960 8355594: Warnings occur when building with clang and enabling ubsan
Reviewed-by: erikj, jkern, ihse
2025-04-29 13:26:51 +00:00
David Linus Briemann
edf8ce8db1 8355739: AssertionError: Invalid CPU feature name after 8353786
Reviewed-by: vlivanov, shade, mdoerr
2025-04-29 11:57:37 +00:00
Manuel Hässig
6a0c24f9db 8355472: Clean up x86 nativeInst after 32-bit x86 removal
Reviewed-by: shade, rcastanedalo, jwaters
2025-04-29 09:22:18 +00:00
Kuai Wei
31e70e41d5 8355697: Create windows devkit on wsl and msys2
Reviewed-by: ihse, erikj
2025-04-29 08:31:20 +00:00
Marc Chevalier
108078a681 8338194: ubsan: mulnode.cpp:862:59: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
Reviewed-by: dlong, dfenacci
2025-04-29 07:43:37 +00:00
Kevin Walls
841989b270 8318730: MonitorVmStartTerminate.java still times out after JDK-8209595
Reviewed-by: lmesnik, sspitsyn, cjplummer
2025-04-29 06:57:33 +00:00
Gustavo Simon
44374a5720 8350542: Optional.orElseThrow(Supplier) does not specify behavior when supplier returns null
Reviewed-by: liach, clanger
2025-04-29 04:17:00 +00:00
Chen Liang
e4cb49fc85 8342206: Convenience method to check if a constant pool entry matches nominal descriptors
Reviewed-by: asotona
2025-04-29 03:06:23 +00:00
Gui Cao
7bde2bb571 8355654: RISC-V: Relax register constraint for some vector-scalar instructions
Reviewed-by: fyang, dzhang
2025-04-29 02:12:04 +00:00
Boris Ulasevich
7cf190fbb0 8345225: AARCH64: VM crashes with -NearCpool +UseShenandoahGC options
Reviewed-by: aph, shade
2025-04-29 01:50:23 +00:00
Gui Cao
ea3cf1b882 8355668: RISC-V: jdk/incubator/vector/Int256VectorTests.java fails when using RVV
Reviewed-by: fyang
2025-04-29 01:23:47 +00:00
Zhengyu Gu
62ef706dd1 8355648: Thread.SpinAcquire()'s lock name parameter is not used
Reviewed-by: shade, coleenp
2025-04-28 23:31:54 +00:00
Roger Riggs
1fd136cd6b 8354335: No longer deprecate wrapper class constructors for removal
Reviewed-by: liach, bchristi, iris
2025-04-28 21:36:14 +00:00
Jiangli Zhou
62d165d0e4 8355669: Add static-jdk-bundles make target
Reviewed-by: ihse
2025-04-28 19:44:04 +00:00
Leonid Mesnik
af4388abf2 8355649: Missing ResourceMark in ExceptionMark::check_no_pending_exception
Reviewed-by: jsjolen, shade
2025-04-28 19:24:09 +00:00
Jiangli Zhou
acd93df612 8355080: java.base/jdk.internal.foreign.SystemLookup.find() doesn't work on static JDK
Reviewed-by: mcimadamore, jvernee
2025-04-28 18:55:26 +00:00
Roger Riggs
2f8448034f 8354053: Remove unused JavaIOFilePermissionAccess
Reviewed-by: liach, weijun
2025-04-28 18:21:46 +00:00
Mikael Vidstedt
a090aa3ff8 8354902: Change to Visual Studio 17.13.2 for building on Windows at Oracle
Reviewed-by: erikj, ihse
2025-04-28 17:13:44 +00:00
Naoto Sato
c0dc31422d 8355558: SJIS.java test is always ignored
Reviewed-by: bpb
2025-04-28 16:03:40 +00:00
Joachim Kern
b1e778d9d2 8354686: [AIX] now ubsan is possible
Reviewed-by: mbaesken, clanger
2025-04-28 14:38:59 +00:00
Joel Sikström
66358fa2c0 8355616: Incorrect ifdef in compilationMemoryStatistic.cpp
Reviewed-by: shade, stuefe, jwaters
2025-04-28 14:08:59 +00:00
Tobias Hartmann
e7a416254b 8355717: Problem list tests until JDK-8355708 is fixed
Reviewed-by: chagedorn
2025-04-28 13:54:41 +00:00
Vladimir Kozlov
3eaec040b4 8355635: Do not collect C strings in C2 scratch buffer
Reviewed-by: jrose, thartmann, shade
2025-04-28 13:29:51 +00:00
Anton Artemov
a7359a5091 8354453: Don't strcpy in os::strdup, use memcpy instead
Reviewed-by: jsjolen, kbarrett
2025-04-28 12:12:50 +00:00
Hannes Wallnöfer
b0c3485d6c 8348282: Add option for syntax highlighting in javadoc snippets
Reviewed-by: liach, nbenalla, erikj
2025-04-28 10:04:20 +00:00
Suchismith Roy
2447b9812a 8355498: [AIX] Adapt code for C++ VLA rule
Reviewed-by: jkern, mdoerr
2025-04-28 08:44:36 +00:00
Aleksey Shipilev
db6fa5923c 8355617: Remove historical debug_only macro in favor of DEBUG_ONLY
Reviewed-by: stefank, kbarrett, jwaters
2025-04-28 08:43:14 +00:00
Bhavana Kilambi
3140de411b 8345125: Aarch64: Add aarch64 backend for Float16 scalar operations
Reviewed-by: aph, haosun
2025-04-28 08:08:42 +00:00
Anjian-Wen
a05ff55be4 8355657: RISC-V: Improve PrintOptoAssembly output of vector-scalar instructions
Reviewed-by: fyang, gcao
2025-04-28 07:15:41 +00:00
Matthias Baesken
7df1bfe27b 8354811: clock_tics_per_sec code duplication between os_linux and os_posix
Reviewed-by: lucy, clanger, asteiner
2025-04-28 06:56:09 +00:00
Nikita Gubarkov
40e7986c41 8355611: Get rid of SurfaceManagerFactory
Reviewed-by: serb, prr
2025-04-28 06:44:16 +00:00
Damon Fenacci
1f228e5539 8354119: Missing C2 proper allocation failure handling during initialization (during generate_uncommon_trap_blob)
Reviewed-by: kvn, chagedorn, mdoerr, amitkumar, fyang, bulasevich
2025-04-28 06:18:53 +00:00
Kelvin Nilsen
cd6f0d19d5 8355336: GenShen: Resume Old GC even with back-to-back Young GC triggers
Reviewed-by: wkemper
2025-04-27 20:10:20 +00:00
Tejesh R
9c86ac2723 8354495: Open source several AWT DataTransfer tests
Reviewed-by: azvegint
2025-04-27 11:44:40 +00:00
jeremy
04bb5dcf57 8355203: [macos] AquaButtonUI and AquaRootPaneUI repaint default button unnecessarily
Reviewed-by: serb, prr
2025-04-27 11:24:29 +00:00
Ioi Lam
4e7b513372 8351333: [ubsan] CDSMapLogger::log_region applying non-zero offset to null pointer
Reviewed-by: ccheung
2025-04-27 06:05:50 +00:00
Yasumasa Suenaga
898d479800 8355077: Compiler error at splashscreen_gif.c due to unterminated string initialization
Reviewed-by: prr
2025-04-27 02:29:44 +00:00
Bradford Wetmore
21b0f5ea15 8355637: SSLSessionImpl's "serialization" list documentation is incorrectly ordered
Reviewed-by: ascarpino
2025-04-26 05:46:05 +00:00
Jatin Bhateja
3b3a055d76 8342676: Unsigned Vector Min / Max transforms
Reviewed-by: sviswanathan, epeter
2025-04-26 03:31:21 +00:00
Anjian-Wen
91a9043f9d 8355562: RISC-V: Cleanup names of vector-scalar instructions in riscv_v.ad
Reviewed-by: fyang, fjiang
2025-04-26 02:58:51 +00:00
Vladimir Ivanov
e57fd71049 8353786: Migrate Vector API math library support to FFM API
Reviewed-by: jbhateja, kvn, psandoz, xgong, jvernee, mli
2025-04-25 21:22:37 +00:00
Ioi Lam
5db62abb42 8315719: Adapt AOTClassLinking test case for dynamic CDS archive
Reviewed-by: ccheung
2025-04-25 20:58:40 +00:00
Manukumar V S
2785570f56 8355366: Fix the wrong usage of PassFailJFrame.forcePass() in some manual tests
Reviewed-by: honkar, aivanov, prr
2025-04-25 20:12:45 +00:00
Jiangli Zhou
4b88029988 8355439: Some hotspot/jtreg/serviceability/sa/* tests fail on static JDK due to explicit checks for shared libraries in process memory map
Reviewed-by: sspitsyn, cjplummer
2025-04-25 17:11:54 +00:00
Brent Christian
d8f012ea2a 8305186: Reference.waitForReferenceProcessing should be more accessible to tests
Reviewed-by: kbarrett
2025-04-25 17:06:26 +00:00
Chen Liang
ac05002cbe 8354877: DirectClassBuilder default flags should include ACC_SUPER
Reviewed-by: asotona
2025-04-25 16:34:52 +00:00
Stuart Marks
15f42e348d 8350703: Add standard system property stdin.encoding
Reviewed-by: naoto, alanb
2025-04-25 16:32:42 +00:00
Chris Plummer
77f5a24648 8355214: nsk/jdi/ThreadStartRequest/addThreadFilter/addthreadfilter001.java should use JDIBase superclass
Reviewed-by: lmesnik, sspitsyn
2025-04-25 16:30:26 +00:00
Calvin Cheung
597bcc6953 8352003: Support --add-opens with -XX:+AOTClassLinking
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Reviewed-by: iklam, alanb, matsaave
2025-04-25 16:12:35 +00:00
Anjian-Wen
5c067232bf 8355074: RISC-V: C2: Support Vector-Scalar version of Zvbb Vector And-Not instruction
Reviewed-by: fjiang, fyang
2025-04-25 12:50:12 +00:00
Anton Artemov
a2f9c24844 8354327: Rewrite runtime/LoadClass/LoadClassNegative.java
Reviewed-by: coleenp, lmesnik
2025-04-25 11:31:10 +00:00
Eirik Bjørsnøs
e6cea4025b 8355475: UNCTest should use an existing UNC path
Reviewed-by: dfuchs
2025-04-25 11:17:15 +00:00
Nizar Benalla
f66b9ba7bc 8346785: Potential infinite loop in JavadocTokenizer.ensures
Reviewed-by: liach, hannesw
2025-04-25 10:08:37 +00:00
Severin Gehwolf
89f9268ed7 8355524: Only every second line in upgradeable files is being used
Reviewed-by: shade, alanb
2025-04-25 08:20:51 +00:00
Evgeny Nikitin
b41e0b1749 8355387: [jittester] Disable downcasts by default
Reviewed-by: thartmann, chagedorn
2025-04-25 07:20:25 +00:00
Aleksey Shipilev
dbd2fb0e5a 8355473: Clean up x86 globals/VM_Version after 32-bit x86 removal
Reviewed-by: chagedorn, coleenp, jwaters
2025-04-25 07:11:24 +00:00
Matthias Baesken
70030bac04 8354803: ALL_64_BITS is the same across platforms
Reviewed-by: stefank, lucy
2025-04-25 07:09:37 +00:00
Tobias Hartmann
f27fc010f6 8355576: Problem list compiler/c2/TestVerifyConstraintCasts.java until JDK-8355574 is fixed
Reviewed-by: chagedorn
2025-04-25 07:09:10 +00:00
Quan Anh Mai
ed604038ff 8346836: C2: Verify CastII/CastLL bounds at runtime
Co-authored-by: Vladimir Ivanov <vlivanov@openjdk.org>
Reviewed-by: vlivanov, epeter
2025-04-25 02:09:58 +00:00
Xiaolong Peng
8a39f07d07 8354431: gc/logging/TestGCId fails on Shenandoah
Reviewed-by: wkemper, phh
2025-04-24 23:23:58 +00:00
David Beaumont
e01e33d19b 8354424: java/util/logging/LoggingDeadlock5.java fails intermittently in tier6
Reviewed-by: dfuchs, smarks
2025-04-24 19:18:13 +00:00
Chris Plummer
370e6113de 8355221: Get rid of unnecessary override of JDIBase.breakpointForCommunication in nsk/jdi tests
Reviewed-by: lmesnik, amenkov
2025-04-24 17:19:15 +00:00
Chris Plummer
29f10700e7 8355211: nsk/jdi/EventRequest/disable/disable001.java should use JDIBase superclass
Reviewed-by: lmesnik, amenkov
2025-04-24 17:17:54 +00:00
Hamlin Li
862797f0c1 8355293: [TEST] RISC-V: enable more ir tests
Reviewed-by: fyang, luhenry
2025-04-24 16:23:12 +00:00
Hamlin Li
3270a7d359 8355476: RISC-V: using zext_w directly in vector_update_crc32 could trigger assert
Reviewed-by: fyang, fjiang
2025-04-24 16:21:44 +00:00
Gennadiy Krivoshein
8e51ff70d8 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS
Reviewed-by: prr, psadhukhan
2025-04-24 16:06:29 +00:00
Mikael Vidstedt
751e0392bc 8355235: Clean out old versions from Tools.gmk
Reviewed-by: erikj
2025-04-24 15:55:05 +00:00
Aleksey Shipilev
0edd018a48 8355432: Remove CompileTask from SA
Reviewed-by: cjplummer, lmesnik
2025-04-24 14:48:00 +00:00
Viktor Klang
356c4d9ca9 8355369: Remove setAccessible usage for setting final fields in java.util.concurrent
Reviewed-by: pminborg, dl, rgiulietti, alanb
2025-04-24 14:14:24 +00:00
Joel Sikström
cf96b107d5 8354362: Use automatic indentation in CollectedHeap printing
Reviewed-by: stefank, lkorinth, stuefe
2025-04-24 14:14:10 +00:00
Marc Chevalier
0537c6927d 8355492: MissedOptCastII is missing UnlockDiagnosticVMOptions flag
Reviewed-by: rcastanedalo, chagedorn, thartmann
2025-04-24 13:39:43 +00:00
Oleksii Sylichenko
34c4d895ca 8353190: Use "/native" Run Option for TestAvailableProcessors Execution
Reviewed-by: dholmes
2025-04-24 12:50:03 +00:00
Sean Coffey
1ec64811a3 8350582: Correct the parsing of the ssl value in javax.net.debug
Reviewed-by: wetmore, hchao
2025-04-24 12:01:34 +00:00
Kim Barrett
d3f31b0d8e 8347719: [REDO] Portable implementation of FORBID_C_FUNCTION and ALLOW_C_FUNCTION
Reviewed-by: tschatzl, jsjolen
2025-04-24 11:43:53 +00:00
Marc Chevalier
6254046f50 8320909: C2: Adapt IGVN's enqueuing logic to match idealization of AndNode with LShift operand
Reviewed-by: epeter, thartmann
2025-04-24 10:27:50 +00:00
Saranya Natarajan
74a2c831a2 8352620: C2: rename MemNode::memory_type() to MemNode::value_basic_type()
Reviewed-by: rcastanedalo, thartmann
2025-04-24 09:33:15 +00:00
Roland Westrelin
be6e4406d8 8349139: C2: Div looses dependency on condition that guarantees divisor not zero in counted loop
Reviewed-by: chagedorn, epeter, qamai
2025-04-24 09:10:43 +00:00
Manuel Hässig
290d24d16a 8355400: Better git detection in update_copyright_year.sh
Reviewed-by: erikj, chagedorn
2025-04-24 08:36:35 +00:00
Manuel Hässig
84e9264e76 8346552: C2: Add IR tests to check that Predicate cloning in Loop Unswitching works as expected
Co-authored-by: Christian Hagedorn <chagedorn@openjdk.org>
Reviewed-by: chagedorn, epeter
2025-04-24 08:29:08 +00:00
Stefan Karlsson
953eef4f11 8347337: ZGC: String dedups short-lived strings
Reviewed-by: kbarrett, aboldtch, eosterlund
2025-04-24 07:20:25 +00:00
Jan Lahoda
7bfbb9a515 8348928: Check for case label validity are misbehaving when binding patterns with unnamed bindings are present
Reviewed-by: asotona, abimpoudis, vromero
2025-04-24 06:58:37 +00:00
Aleksey Shipilev
188c236071 8353558: x86: Use better instructions for ICache sync when available
Reviewed-by: kvn, adinn
2025-04-24 06:58:21 +00:00
Vladimir Ivanov
428334b616 8353216: Improve VerifyMethodHandles for method handle linkers
Reviewed-by: dlong
2025-04-24 01:09:17 +00:00
Ioi Lam
bbec3c0730 8354558: -XX:AOTMode=record crashes with boot loader package-info class
Reviewed-by: ccheung, matsaave
2025-04-24 00:00:36 +00:00
Alexander Zvegintsev
b10a304b2b 8354553: Open source several clipboard tests batch0
Reviewed-by: serb, prr
2025-04-23 23:03:22 +00:00
William Kemper
ac17449bdb 8353596: GenShen: Test TestClone.java#generational-no-coops intermittent timed out
Reviewed-by: kdnilsen, ysr
2025-04-23 22:58:47 +00:00
Alexander Zvegintsev
4873eec06f 8354554: Open source several clipboard tests batch1
Reviewed-by: serb, prr
2025-04-23 22:57:42 +00:00
Harshitha Onkar
3b7f43f95e 8355429: Open source ProgressMonitor test
Reviewed-by: azvegint
2025-04-23 22:41:31 +00:00
Alexey Semenyuk
669d4d6bfa 8355328: Improve negative tests coverage for jpackage signing
Reviewed-by: almatvee
2025-04-23 22:29:59 +00:00
Chen Liang
bd1c53e960 8354899: Reduce overhead associated with type switches
Reviewed-by: asotona
2025-04-23 21:40:50 +00:00
Chen Liang
ffe6a4f9e1 8355335: Avoid pattern matching switches in core ClassFile API
Reviewed-by: asotona
2025-04-23 21:39:55 +00:00
Ioi Lam
88e0b00a46 8353298: AOT cache creation asserts with _array_klasses in an unregistered InstanceKlass
Reviewed-by: ccheung, kvn
2025-04-23 21:25:30 +00:00
Ioi Lam
adcaf01b4f 8355237: Upstream AOT test cases from Leyden repo to mainline
Reviewed-by: ccheung, kvn, lmesnik, shade
2025-04-23 20:19:02 +00:00
Alexey Ivanov
bf8a881f02 8352733: Improve RotFontBoundsTest test
Use PassFailJFrame framework for creating manual test UI.

Provide check boxes for each degree of rotation which allow
hiding and showing the specified rotation.
Provide 'Select All' and 'Clear All' buttons.
Display Java version at the bottom of the test.

Reviewed-by: prr, azvegint, abhiscxk, honkar
2025-04-23 18:47:11 +00:00
Sergey Kuksenko
35716647b5 8353478: Update crypto microbenchmarks to cover ML-DSA, ML-KEM, and HSS algorithms
Reviewed-by: ecaspole
2025-04-23 17:03:37 +00:00
Justin Lu
ac41bc31c9 8354343: Hardening of Currency tests for not yet defined future ISO 4217 currency
Reviewed-by: naoto
2025-04-23 16:52:42 +00:00
Sangheon Kim
8bd5645218 8346568: G1: Other time can be negative
Reviewed-by: tschatzl, iwalulya
2025-04-23 16:37:07 +00:00
Leonid Mesnik
2ec61f0f34 8353214: Add testing with --enable-preview
Reviewed-by: erikj
2025-04-23 16:13:23 +00:00
Naoto Sato
f097aa90c9 8355215: Add @spec tags to Emoji related methods
Reviewed-by: joehw, iris, jlu
2025-04-23 16:07:36 +00:00
Leonid Mesnik
1a72febc97 8355228: Improve runtime/CompressedOops/CompressedClassPointersEncodingScheme.java to support JDK build with -XX:+UseCompactObjectHeaders
Reviewed-by: syan, stuefe, coleenp
2025-04-23 16:04:40 +00:00
Phil Race
32a597b36f 8355333: Some Problem list entries point to non-existent / wrong files
Reviewed-by: serb
2025-04-23 15:44:56 +00:00
Jiangli Zhou
12c3a231e6 8354898: jdk/internal/loader/NativeLibraries/Main.java fails on static JDK
Reviewed-by: jpai
2025-04-23 14:55:15 +00:00
Jaikiran Pai
6befc18974 8355278: Improve debuggability of com/sun/jndi/ldap/LdapPoolTimeoutTest.java test
Reviewed-by: aefimov
2025-04-23 14:23:38 +00:00
Stefan Karlsson
023f30bcaa 8355394: ZGC: Windows compile error in ZUtils
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: aboldtch, tschatzl
2025-04-23 14:10:04 +00:00
Stefan Karlsson
e8a1a6462d 8355401: Remove unused HWperKB
Reviewed-by: ayang, tschatzl
2025-04-23 14:08:20 +00:00
Jan Lahoda
3c7f78c066 8341833: incomplete snippet from loaded files from command line is ignored
Reviewed-by: liach, asotona
2025-04-23 13:26:22 +00:00
Archie Cobbs
a372937d84 8350983: JShell LocalExecutionControl only needs stopCheck() on backward branches
Reviewed-by: jlahoda, liach, asotona
2025-04-23 13:22:57 +00:00
Shaojin Wen
c873837da6 8355300: Add final to BitSieve
Reviewed-by: liach, pminborg
2025-04-23 13:01:42 +00:00
Robert Toyonaga
44c5aca54d 8341491: Reserve and commit memory operations should be protected by NMT lock
Reviewed-by: stuefe, stefank
2025-04-23 11:53:09 +00:00
Erik Gahlin
ef0cd1823d 8354949: JFR: Split up the EventInstrumentation class
Reviewed-by: mgronlun, liach
2025-04-23 11:48:48 +00:00
Albert Mingkun Yang
82c249446f 8354228: Parallel: Set correct minimum of InitialSurvivorRatio
Reviewed-by: tschatzl, gli
2025-04-23 10:40:45 +00:00
Stefan Karlsson
e76f20301c 8354309: Sort GC includes
Reviewed-by: eosterlund, iwalulya, kbarrett
2025-04-23 10:13:26 +00:00
Tobias Hartmann
c2e90bcc80 8355363: [BACKOUT] 8354668: Missing REX2 prefix accounting in ZGC barriers leads to incorrect encoding
Reviewed-by: chagedorn
2025-04-23 08:21:07 +00:00
Fredrik Bredberg
263983d0fb 8298733: Reconsider monitors_on_stack assert
Reviewed-by: pchilanomate, coleenp
2025-04-23 08:04:57 +00:00
Andrey Turbanov
27faf45422 8354826: Make ResolverConfigurationImpl.lock field final
Reviewed-by: dfuchs, jpai
2025-04-23 06:22:30 +00:00
Daniel Jeliński
9a2b425b13 8354920: SA core file support on Linux only prints error messages when debug logging is enabled
Reviewed-by: cjplummer, kevinw
2025-04-23 05:17:41 +00:00
Prasanta Sadhukhan
8c89fb9535 8355179: Reinstate javax/swing/JScrollBar/4865918/bug4865918.java headful and macos run
Reviewed-by: abhiscxk, serb
2025-04-23 03:40:26 +00:00
Shaojin Wen
bc518a6cbb 8355240: Remove unused Import in StringUTF16
Reviewed-by: rgiulietti
2025-04-23 02:32:36 +00:00
Fei Yang
a8c6ff161c 8355239: RISC-V: Do not support subword scatter store
Reviewed-by: mli, fjiang
2025-04-23 02:10:25 +00:00
Jatin Bhateja
4c373703d9 8354668: Missing REX2 prefix accounting in ZGC barriers leads to incorrect encoding
Reviewed-by: aboldtch, sviswanathan
2025-04-23 02:04:46 +00:00
Damon Nguyen
5392488232 8355332: Fix failing semi-manual test EDT issue
Reviewed-by: azvegint
2025-04-23 00:13:09 +00:00
Chris Plummer
b7e8952ad6 8355071: Fix nsk/jdi test to not require lookup of main thread in order to set the breakpoint used for communication
Reviewed-by: lmesnik, amenkov
2025-04-22 23:21:26 +00:00
Damon Nguyen
cc9148ddef 8354695: Open source several swing tests batch7
Reviewed-by: kizune, achung
2025-04-22 20:27:17 +00:00
Alexander Zuev
1b8f760d1b 8354928: Clean up and open source some miscellaneous AWT tests
Reviewed-by: prr, dnguyen
2025-04-22 20:17:01 +00:00
Eric Caspole
239760ac09 8355233: Add a DMB related benchmark
Reviewed-by: kvn
2025-04-22 19:59:41 +00:00
Alisen Chung
d61765f64d 8353488: Open some JComboBox bugs 3
Reviewed-by: kizune
2025-04-22 17:56:04 +00:00
Harshitha Onkar
486a66469b 8353486: Open source Swing Tests - Set 4
Reviewed-by: azvegint, dnguyen, tr
2025-04-22 17:49:52 +00:00
Alexander Zvegintsev
f98af0ad61 8354701: Open source few JToolTip tests
Reviewed-by: honkar
2025-04-22 17:31:31 +00:00
Ioi Lam
e020752ea4 8354484: SIGSEGV when supertype of an AOT-cached class is excluded
Reviewed-by: ccheung, shade
2025-04-22 16:55:11 +00:00
Jamil Nimeh
594b26516e 8350126: Regression ~3% on Crypto-ChaCha20Poly1305.encrypt for MacOSX aarch64
Reviewed-by: aph
2025-04-22 16:49:29 +00:00
Boris Ulasevich
d783a94098 8332368: ubsan aarch64: immediate_aarch64.cpp:298:31: runtime error: shift exponent 32 is too large for 32-bit type 'int'
Reviewed-by: adinn
2025-04-22 16:46:44 +00:00
Tejesh R
6a31061339 8354248: Open source several AWT GridBagLayout and List tests
Reviewed-by: abhiscxk
2025-04-22 16:11:55 +00:00
Alisen Chung
1889dacb19 8353007: Open some JComboBox bugs 2
Reviewed-by: kizune, honkar
2025-04-22 16:01:34 +00:00
Sergey Bylokhov
477da161e6 8352638: Enhance code consistency: java.desktop/windows
Reviewed-by: prr
2025-04-22 15:50:58 +00:00
Alexander Zvegintsev
a4c5ed8144 8354561: Open source several swing tests batch0
Reviewed-by: prr, psadhukhan
2025-04-22 15:46:04 +00:00
Alisen Chung
da16c83973 8354466: Open some misc Swing bugs 9
Reviewed-by: kizune, honkar
2025-04-22 15:26:59 +00:00
Per Minborg
072b8273a4 8354300: Mark String.hash field @Stable
Reviewed-by: liach, shade, vlivanov
2025-04-22 15:10:26 +00:00
Martin Balao
5264d80bea 8350661: PKCS11 HKDF throws ProviderException when requesting a 31-byte AES key
Reviewed-by: fferrari, valeriep, djelinski
2025-04-22 14:37:10 +00:00
Stefan Karlsson
f2587d9bd2 8354938: ZGC: Disable UseNUMA when ZFakeNUMA is used
Reviewed-by: aboldtch, jsikstro
2025-04-22 11:48:46 +00:00
Stefan Karlsson
0f1c448ca1 8354922: ZGC: Use MAP_FIXED_NOREPLACE when reserving memory
Reviewed-by: aboldtch, eosterlund
2025-04-22 11:23:40 +00:00
Alisen Chung
9eeb86d972 8354341: Open some JTable bugs 7
Reviewed-by: kizune, serb
2025-04-22 08:58:42 +00:00
Ivan Šipka
7cd084cf35 8350442: Update copyright
Reviewed-by: naoto, jlu
2025-04-22 08:46:52 +00:00
Hamlin Li
bcc33d5ef3 8352504: RISC-V: implement and enable CMoveI/L
8346786: RISC-V: Reconsider ConditionalMoveLimit when adding conditional move

Reviewed-by: fyang, fjiang
2025-04-22 08:32:03 +00:00
Stefan Johansson
50358d1ca4 8354929: ZGC: Update collection stats while holding page allocator lock
Reviewed-by: stefank, tschatzl, aboldtch
2025-04-22 08:00:01 +00:00
Tejesh R
367bcc5df8 8353445: Open source several AWT Menu tests - Batch 1
Reviewed-by: abhiscxk, prr
2025-04-22 07:59:45 +00:00
Alisen Chung
7eab2d9f91 8354095: Open some JTable bugs 5
Reviewed-by: kizune, honkar
2025-04-22 07:58:30 +00:00
Alisen Chung
0b2a2f38d0 8353685: Open some JComboBox bugs 4
Reviewed-by: honkar, kizune
2025-04-22 07:45:56 +00:00
Tejesh R
17b080b2c9 8353446: Open source several AWT Menu tests - Batch 2
Reviewed-by: abhiscxk
2025-04-22 07:44:44 +00:00
Doug Simon
2f7806ffe5 8355034: [JVMCI] assert(static_cast<int>(_jvmci_data_size) == align_up(compiler->is_jvmci() ? jvmci_data->size() : 0, oopSize)) failed: failed: 104 != 16777320
Reviewed-by: never, yzheng, cslucas
2025-04-22 07:07:31 +00:00
Alisen Chung
a55ccd267c 8352905: Open some JComboBox bugs 1
Reviewed-by: honkar, psadhukhan
2025-04-22 07:04:26 +00:00
Abhishek Kumar
33bdc807b1 8355241: Move NativeDialogToFrontBackTest.java PL test to manual category
Reviewed-by: psadhukhan
2025-04-22 06:51:18 +00:00
Tejesh R
d1d7d2569c 8353957: Open source several AWT ScrollPane tests - Batch 1
Reviewed-by: psadhukhan
2025-04-22 06:23:24 +00:00
Tejesh R
e2cb64674f 8343977: Convert java/awt/TextArea/TextAreaCursorTest/HoveringAndDraggingTest to main
Reviewed-by: prr, achung
2025-04-22 05:56:07 +00:00
Chen Liang
0be3f163ed 8341608: jdeps in JDK 23 crashes when parsing signatures while jdeps in JDK 22 works fine
Reviewed-by: jpai, henryjen
2025-04-22 03:29:59 +00:00
Tejesh R
f880fa91dc 8352793: Open source several AWT TextComponent tests - Batch 1
Reviewed-by: prr, serb
2025-04-22 03:09:45 +00:00
Alisen Chung
ade67df0f3 8354233: Open some JTable bugs 6
Reviewed-by: kizune
2025-04-22 01:04:48 +00:00
Alisen Chung
7a72f0fac9 8354465: Open some JTable bugs 8
Reviewed-by: serb, kizune
2025-04-22 01:03:45 +00:00
Alexey Semenyuk
47f78a7529 8354990: Improve negative tests coverage for jpackage signing
8354989: Bug in MacCertificate class

Reviewed-by: almatvee
2025-04-22 00:27:25 +00:00
Harshitha Onkar
9a0cff692d 8353942: Open source Swing Tests - Set 5
Reviewed-by: serb, dnguyen
2025-04-21 23:11:03 +00:00
Harshitha Onkar
f7155183d7 8353011: Open source Swing JButton tests - Set 1
Reviewed-by: serb
2025-04-21 22:35:17 +00:00
Justin Lu
1526dd81d9 8354344: Test behavior after cut-over for future ISO 4217 currency
Reviewed-by: naoto
2025-04-21 20:24:20 +00:00
Alexander Zuev
8270cd0ad2 8353470: Clean up and open source couple AWT Graphics related tests (Part 2)
Reviewed-by: serb
2025-04-21 20:23:15 +00:00
Alexander Zuev
a7128d86ea 8354653: Clean up and open source KeyEvent related tests (Part 4)
Reviewed-by: serb
2025-04-21 20:19:45 +00:00
Joe Wang
684d3b336e 8354774: DocumentBuilderFactory getAttribute throws NPE
Reviewed-by: naoto, lancea
2025-04-21 18:25:59 +00:00
Roman Kennke
ecb54a05c6 8354523: runtime/Monitor/SyncOnValueBasedClassTest.java triggers SIGSEGV
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Co-authored-by: Fei Yang <fyang@openjdk.org>
Co-authored-by: Amit Kumar <amitkumar@openjdk.org>
Reviewed-by: coleenp, aboldtch
2025-04-21 17:43:09 +00:00
Alexander Zuev
cd2d49f711 8354472: Clean up and open source KeyEvent related tests (Part 3)
Reviewed-by: honkar
2025-04-21 17:37:58 +00:00
Emanuel Peter
4dd64b4971 8354477: C2 SuperWord: make use of memory edges more explicit
Reviewed-by: kvn, roland
2025-04-21 11:41:45 +00:00
Liming Liu
128f2d1cad 8354572: Turn off AlwaysMergeDMB for Ampere CPU by default
Reviewed-by: shade
2025-04-19 10:02:13 +00:00
Sergey Bylokhov
c7c77eb6aa 8354077: Get rid of offscreenSharingEnabled windows flag
Reviewed-by: prr
2025-04-19 07:48:54 +00:00
Alexey Bakhtin
4f58af0a8d 8259540: MissingResourceException for key cvc-complex-type.2.4.d.1
Reviewed-by: joehw
2025-04-19 00:30:37 +00:00
Harshitha Onkar
bd73127d74 8354532: Open source JFileChooser Tests - Set 7
Reviewed-by: prr
2025-04-18 23:29:53 +00:00
Harshitha Onkar
76dec47f00 8354340: Open source Swing Tests - Set 6
Reviewed-by: azvegint, achung
2025-04-18 21:35:17 +00:00
Damon Nguyen
38f9b3a973 8353748: Open source several swing tests batch6
Reviewed-by: kizune
2025-04-18 21:11:41 +00:00
Harshitha Onkar
bf63f9ffa5 8353319: Open source Swing tests - Set 3
Reviewed-by: abhiscxk, dnguyen
2025-04-18 20:58:21 +00:00
Harshitha Onkar
abbf1a02cb 8355051: Problemlist java/awt/Graphics2D/CopyAreaOOB.java on macosx-aarch64
Reviewed-by: prr, aivanov
2025-04-18 19:38:09 +00:00
Abhishek Kumar
f8f1be3de5 8353552: Opensource Several Font related tests - Batch 3
8355048: ProblemList TestGlyphVectorLayout.java on all platforms

Reviewed-by: serb, aivanov
2025-04-18 18:50:08 +00:00
Damon Nguyen
924638c471 8353661: Open source several swing tests batch5
Reviewed-by: jdv
2025-04-18 17:08:46 +00:00
Damon Nguyen
a551cc9294 8353293: Open source several swing tests batch4
Reviewed-by: serb
2025-04-18 17:07:16 +00:00
Phil Race
bb08a70bd8 8355002: Clean up some mentions of "applet" in tests
Reviewed-by: serb
2025-04-18 17:01:42 +00:00
Alexey Semenyuk
22e8a97a1c 8354988: Separate stderr and stdout in Executor class from jpackage test lib
Reviewed-by: almatvee
2025-04-18 12:12:52 +00:00
Jayathirth D V
eda7394551 8354900: javax/swing/AbstractButton/bug4133768.java failing on macosx-aarch64
Reviewed-by: abhiscxk
2025-04-18 12:05:01 +00:00
Ivan Šipka
0feecb7c6a 8351851: Update PmemTest to run on AMD64
Reviewed-by: adinn
2025-04-18 10:44:29 +00:00
Anjian-Wen
0995b9409d 8354815: RISC-V: Change type of bitwise rotation shift to iRegIorL2I
Reviewed-by: fyang, fjiang
2025-04-18 02:20:39 +00:00
Alexey Semenyuk
38f138bc22 8354985: Add unit tests for Executor class from jpackage test lib
Reviewed-by: almatvee
2025-04-17 23:37:45 +00:00
Alexander Zuev
ad7c475fb1 8353655: Clean up and open source KeyEvent related tests (Part 1)
Reviewed-by: abhiscxk
2025-04-17 19:53:45 +00:00
Andrey Turbanov
1b4b317aac 8354789: Unnecessary null check in sun.awt.windows.WToolkit.getFontPeer
Reviewed-by: aivanov, tr
2025-04-17 19:19:26 +00:00
Stuart Marks
7b0618859a 8354464: Additional cleanup setting up native.encoding
Reviewed-by: naoto, alanb
2025-04-17 18:31:10 +00:00
Cesar Soares Lucas
4eae9b5ba6 8354541: Remove Shenandoah post barrier expand loop opts
Reviewed-by: shade
2025-04-17 17:40:38 +00:00
Phil Race
31e293b082 8354552: Open source a few Swing tests
Reviewed-by: dnguyen, psadhukhan
2025-04-17 16:32:46 +00:00
Phil Race
3e3dff6767 8354451: Open source some more Swing popup menu tests
Reviewed-by: jdv, kizune
2025-04-17 16:31:24 +00:00
Alexander Zuev
e163a76f2b 8354106: Clean up and open source KeyEvent related tests (Part 2)
Reviewed-by: abhiscxk, prr
2025-04-17 16:26:36 +00:00
Johannes Graham
04c32fc08a 8354522: Clones of DecimalFormat cause interferences when used concurrently
Reviewed-by: jlu, naoto
2025-04-17 16:22:00 +00:00
Alexander Zuev
5660922568 8353070: Clean up and open source couple AWT Graphics related tests (Part 1)
Reviewed-by: serb
2025-04-17 16:20:35 +00:00
Damon Nguyen
e639cd6a77 8353213: Open source several swing tests batch3
Reviewed-by: prr
2025-04-17 16:18:56 +00:00
Chris Plummer
d1d81dd01c 8353953: con/sun/jdi tests should be fixed to not always require includevirtualthreads=y
Reviewed-by: sspitsyn, amenkov
2025-04-17 15:37:05 +00:00
Ferenc Rakoczi
cd8adf13ed 8354926: Remove remnants of debugging in the fix for JDK-8348561 and JDK-8349721
Reviewed-by: adinn
2025-04-17 14:01:46 +00:00
Saint Wesonga
86f3eafade 8353009: Improve documentation for Windows AArch64 builds
Reviewed-by: erikj, ihse
2025-04-17 13:59:44 +00:00
Artur Barashev
abb23828f9 8350807: Certificates using MD5 algorithm that are disabled by default are incorrectly allowed in TLSv1.3 when re-enabled
Reviewed-by: mullan
2025-04-17 13:45:47 +00:00
Jayathirth D V
dda4b5a4ad 8354418: Open source Swing tests Batch 4
Reviewed-by: abhiscxk
2025-04-17 13:36:05 +00:00
Abhishek Kumar
e21387e045 8354365: Opensource few Modal and Full Screen related tests
Reviewed-by: jdv, tr
2025-04-17 13:08:49 +00:00
Jayathirth D V
4c99489420 8354285: Open source Swing tests Batch 3
Reviewed-by: abhiscxk
2025-04-17 13:07:19 +00:00
Abhishek Kumar
e9c8986a65 8354493: Opensource Several MultiScreen and Insets related tests
Reviewed-by: psadhukhan, tr
2025-04-17 12:31:30 +00:00
SendaoYan
9502ab0bf5 8354766: Test TestUnexported.java javac build fails
Reviewed-by: nbenalla, jpai
2025-04-17 12:26:15 +00:00
Coleen Phillimore
5125ceb922 8349405: Redundant and confusing null checks on data from CP::resolved_klasses
Reviewed-by: dholmes, iklam
2025-04-17 11:47:21 +00:00
Marc Chevalier
1138a186eb 8344251: C2: remove blackholes with dead control input
Reviewed-by: shade, thartmann, kvn
2025-04-17 07:24:14 +00:00
Marc Chevalier
fabf67c376 8354625: Compile::igv_print_graph_to_network doesn't use its second parameter
Reviewed-by: rcastanedalo, thartmann
2025-04-17 07:21:34 +00:00
Maxim Kartashev
a4e9da3747 8354191: GTK LaF should use pre-multiplied alpha same as cairo
Reviewed-by: avu, prr
2025-04-17 06:59:01 +00:00
Tejesh R
e00355a036 8353958: Open source several AWT ScrollPane tests - Batch 2
Reviewed-by: prr, psadhukhan
2025-04-17 06:40:54 +00:00
Tejesh R
3d0feba00a 8352865: Open source several AWT TextComponent tests - Batch 2
Reviewed-by: prr, serb, jdv
2025-04-17 06:39:50 +00:00
Matthias Baesken
af7a19a8cf 8354802: MAX_SECS definition is unused in os_linux
Reviewed-by: kbarrett, dholmes
2025-04-17 06:34:43 +00:00
Cesar Soares Lucas
055b750d99 8354543: Set more meaningful names for "get_vm_result" and "get_vm_result_2"
Reviewed-by: shade, coleenp
2025-04-17 06:08:36 +00:00
Ioi Lam
a71f621a32 8353694: Resolved Class/Field/Method CP entries missing from AOT Configuration
Reviewed-by: shade, vlivanov
2025-04-17 03:10:58 +00:00
Anjian-Wen
07aad68c17 8329887: RISC-V: C2: Support Zvbb Vector And-Not instruction
Reviewed-by: fyang, fjiang
2025-04-17 02:16:24 +00:00
Leonid Mesnik
db2dffb6e5 8354559: gc/g1/TestAllocationFailure.java doesn't need WB API
Reviewed-by: ayang, kbarrett
2025-04-16 23:04:37 +00:00
Erik Gahlin
a2d7f441b8 8295651: JFR: 'jfr scrub' should summarize what was removed
Reviewed-by: mgronlun
2025-04-16 20:11:26 +00:00
Volodymyr Paprotski
0c34bf0476 8354471: Assertion failure with -XX:-EnableX86ECoreOpts
Reviewed-by: sviswanathan, jbhateja
2025-04-16 19:57:42 +00:00
Phil Race
98dac46aac 8353589: Open source a few Swing menu-related tests
Reviewed-by: jdv, honkar
2025-04-16 18:05:07 +00:00
Ioi Lam
e433fa2719 8352001: AOT cache should not contain classes injected into built-in class loaders
Reviewed-by: ccheung, matsaave
2025-04-16 17:52:53 +00:00
Damon Nguyen
d80db00f82 8354873: javax/swing/plaf/metal/MetalIconFactory/bug4952462.java failing on CI
Reviewed-by: honkar
2025-04-16 17:19:47 +00:00
Mikael Vidstedt
7a107e2fc4 8351603: Change to GCC 14.2.0 for building on Linux at Oracle
8344272: gcc devkit doesn't have lto-plugin where needed

Reviewed-by: ihse, erikj
2025-04-16 16:28:12 +00:00
Rohitash Kumar
84458ec18c 8353013: java.net.URI.create(String) may have low performance to scan the host/domain name from URI string when the hostname starts with number
Reviewed-by: michaelm, xpeng
2025-04-16 16:08:31 +00:00
KIRIYAMA Takuya
c3de94cee1 8352942: jdk/jfr/startupargs/TestMemoryOptions.java fails with 32-bit build
Reviewed-by: phh
2025-04-16 15:42:40 +00:00
Ferenc Rakoczi
465c8e6583 8349721: Add aarch64 intrinsics for ML-KEM
Reviewed-by: adinn
2025-04-16 12:35:24 +00:00
Jan Lahoda
1ad869f844 8322706: AnnotationTypeMismatchException in javac with annotation processing
Reviewed-by: vromero
2025-04-16 11:43:42 +00:00
Johan Sjölen
7ffad35dac 8352568: Test gtest/AsyncLogGtest.java failed at droppingMessage_vm
Reviewed-by: mbaesken, dholmes
2025-04-16 11:32:47 +00:00
Jaikiran Pai
c6243fc27f Merge
Reviewed-by: dfuchs
2025-04-16 11:26:59 +00:00
Robbin Ehn
fe3bd5d62f 8354667: [TESTBUG] AccessZeroNKlassHitsProtectionZone cds tests require cds
Reviewed-by: lmesnik, syan
2025-04-16 09:56:39 +00:00
Abhishek Kumar
8c6b611f35 8353832: Opensource FontClass, Selection and Icon tests
Reviewed-by: jdv
2025-04-16 09:52:53 +00:00
Jan Lahoda
cfbbcd78bc 8350595: jshell <TAB> completion on arrays does not work for clone()
Reviewed-by: asotona
2025-04-16 09:23:15 +00:00
Jaikiran Pai
4c3c2b32a1 8354576: InetAddress.getLocalHost() on macos may return address of an interface which is not UP - leading to "Network is down" error
Reviewed-by: alanb, dfuchs, vyazici
2025-04-16 08:35:05 +00:00
Severin Gehwolf
18d605fadb 8354629: Test tools/jlink/ClassFileInMetaInfo.java fails on builds with configure option --enable-linkable-runtime
Reviewed-by: alanb
2025-04-16 08:23:03 +00:00
Artur Barashev
ed30fce6df 8347847: Enhance jar file support
Reviewed-by: rhalade, jnibedita, pkumaraswamy, ahgross, hchao, weijun, mullan
2025-04-16 13:05:32 +05:30
Damon Fenacci
38afa4d42f 8338430: Improve compiler transformations
Co-authored-by: Emanuel Peter <epeter@openjdk.org>
Reviewed-by: ahgross, rhalade, thartmann, epeter
2025-04-16 13:05:32 +05:30
Jamil Nimeh
e91b3f0c3d 8337692: Better TLS connection support
Co-authored-by: Ferenc Rakoczi <ferenc.r.rakoczi@oracle.com>
Reviewed-by: rhalade, valeriep, pkumaraswamy, mpowers, ahgross, mbalao
2025-04-16 13:05:32 +05:30
Hai-May Chao
ef38a04b44 8337494: Clarify JarInputStream behavior
Reviewed-by: jpai, rhalade, lancea
2025-04-16 13:05:32 +05:30
Jaikiran Pai
cf871db447 8342562: Enhance Deflater operations
Reviewed-by: rhalade, alanb, lancea
2025-04-16 13:05:32 +05:30
Prasanta Sadhukhan
43b2b0bd1e 8343007: Enhance Buffered Image handling
Reviewed-by: rhalade, mschoene, jdv, prr
2025-04-16 13:05:32 +05:30
Aleksey Shipilev
9a5c7b3fa9 8351162: Clean up x86 (Macro)Assembler after 32-bit x86 removal
Reviewed-by: kvn, coleenp
2025-04-16 05:54:21 +00:00
Jayathirth D V
2be5bc847a 8354214: Open source Swing tests Batch 2
Reviewed-by: abhiscxk, honkar
2025-04-16 04:48:25 +00:00
Prasanta Sadhukhan
55afcb57a5 8352682: Opensource JComponent tests
Reviewed-by: jdv, honkar
2025-04-16 03:58:17 +00:00
Jaikiran Pai
5526490743 8354565: jtreg failure handler GatherProcessInfoTimeoutHandler has a leftover call to System.loadLibrary
Reviewed-by: alanb, kbarrett
2025-04-16 01:57:57 +00:00
Damon Nguyen
a2dc9c71e4 8352908: Open source several swing tests batch1
Reviewed-by: honkar
2025-04-15 23:48:27 +00:00
Srinivas Vamsi Parasa
513c4650c5 8354544: Fix bugs in increment and xor APX codegen
Reviewed-by: thartmann, jbhateja
2025-04-15 21:25:06 +00:00
Damon Nguyen
4e3f1848ee 8353000: Open source several swing tests batch2
Reviewed-by: azvegint
2025-04-15 19:36:10 +00:00
Aleksey Shipilev
cec48ed270 8354542: Clean up x86 stubs after 32-bit x86 removal
Reviewed-by: adinn, kvn
2025-04-15 16:19:03 +00:00
Alexey Semenyuk
fc1464727f 8354320: Changes to jpackage.md cause pandoc warning
Reviewed-by: almatvee, ihse, alanb
2025-04-15 16:06:12 +00:00
Matthias Baesken
36864a2a08 8351491: Add info from release file to hserr file
Reviewed-by: dholmes, lucy
2025-04-15 11:55:47 +00:00
Coleen Phillimore
273a9a6155 8354448: [REDO] Remove friends for ObjectMonitor
Reviewed-by: kbarrett, shade, dholmes
2025-04-15 11:49:58 +00:00
Volkan Yazici
5fc18f5b8a 8350279: HttpClient: Add a new HttpResponse method to identify connections
Reviewed-by: dfuchs, jpai
2025-04-15 11:41:47 +00:00
Patrick Strawderman
03fd43fc91 8353453: URLDecoder should use HexFormat
Reviewed-by: rriggs, jpai
2025-04-15 11:26:36 +00:00
Severin Gehwolf
4e24dc003c 8353185: Introduce the concept of upgradeable files in context of JEP 493
Reviewed-by: clanger, ihse, alanb
2025-04-15 10:16:31 +00:00
Erik Gahlin
d7676c39b6 8354508: JFR: Strengthen metadata checks for labels
Reviewed-by: shade
2025-04-15 09:48:11 +00:00
Matthias Baesken
81d4c80742 8354507: [ubsan] subnode.cpp:406:36: runtime error: negation of -9223372036854775808 cannot be represented in type 'long int'
Reviewed-by: mdoerr, thartmann
2025-04-15 09:02:41 +00:00
Daniel Lundén
24be888d65 8351833: Unexpected increase in live nodes when splitting Phis through MergeMems in PhiNode::Ideal
Reviewed-by: chagedorn, rcastanedalo, kvn
2025-04-15 08:58:02 +00:00
Jayathirth D V
b78378437c 8354163: Open source Swing tests Batch 1
Reviewed-by: psadhukhan
2025-04-15 08:41:37 +00:00
Aleksey Shipilev
3090e2187c 8353572: x86: AMD platforms miss the check for CLWB feature flag
Reviewed-by: vlivanov, kvn
2025-04-15 06:03:50 +00:00
Axel Boldt-Christmas
76ff97811a 8354510: Skipped gtest cause test failure
Reviewed-by: rehn, erikj
2025-04-15 05:11:40 +00:00
Dr Heinz M. Kabutz
c7b70a138f 8354111: JavaDoc states that Iterator.remove() is linear in the LinkedBlockingDeque
Reviewed-by: liach, smarks
2025-04-15 02:48:32 +00:00
David Holmes
92e52fe1df 8353946: Incorrect WINDOWS ifdef in os::build_agent_function_name
Reviewed-by: kbarrett
2025-04-15 02:00:49 +00:00
Alexander Zvegintsev
5280b7b031 8353592: Open source several scrollbar tests
Reviewed-by: psadhukhan, honkar
2025-04-14 22:07:26 +00:00
Daniel Fuchs
9e7763d442 8354536: Problem-list java/util/logging/LoggingDeadlock5.java due to JDK-8354424
Reviewed-by: smarks
2025-04-14 19:27:16 +00:00
Volkan Yazici
f6d8c8cb0c 8351339: WebSocket::sendBinary assume that user supplied buffers are BIG_ENDIAN
Reviewed-by: michaelm, dfuchs
2025-04-14 19:16:17 +00:00
Gerard Ziemski
0da480a91d 8354535: [BACKOUT] Force clients to explicitly pass mem_tag value, even if it is mtNone
Reviewed-by: stefank, jsjolen
2025-04-14 18:47:59 +00:00
Andrej Pecimuth
de0e648844 8352724: Verify bounds for primitive array reads in JVMCI
Reviewed-by: dnsimon
2025-04-14 18:31:27 +00:00
Phil Race
46a6fc84ef 8353483: Open source some JProgressBar tests
Reviewed-by: honkar, serb
2025-04-14 16:58:06 +00:00
Vladimir Ivanov
d684867066 8346230: [perf] scalability issue for the specjvm2008::xml.transform workload
Reviewed-by: joehw, jbhateja
2025-04-14 16:55:37 +00:00
Gerard Ziemski
43b194741c 8344883: Force clients to explicitly pass mem_tag value, even if it is mtNone
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Reviewed-by: stefank, jsjolen
2025-04-14 16:22:07 +00:00
Naoto Sato
d748bb5cbb 8343157: Examine large files for character encoding/decoding
Reviewed-by: alanb
2025-04-14 16:09:35 +00:00
David Beaumont
313c34ae56 8354513: Bug in j.u.l.Handler deadlock test allows null pointer during race condition
Reviewed-by: dfuchs
2025-04-14 15:58:43 +00:00
Sean Mullan
16657dba99 8354449: Remove com/sun/org/apache/xml/internal/security/resource/xmlsecurity_de.properties
Reviewed-by: weijun, ihse
2025-04-14 14:44:11 +00:00
Axel Boldt-Christmas
97e1075739 8354358: ZGC: ZPartition::prime handle discontiguous reservations correctly
Reviewed-by: stefank, jsikstro, eosterlund
2025-04-14 13:28:49 +00:00
Roberto Castañeda Lozano
51ce312001 8348645: IGV: visualize live ranges
Reviewed-by: thartmann, dfenacci
2025-04-14 12:07:13 +00:00
Matthias Baesken
f8ae1d4e6c 8354254: Remove the linux ppc64 -minsert-sched-nops=regroup_exact compile flag
Reviewed-by: erikj, mdoerr
2025-04-14 08:52:33 +00:00
Radim Vansa
f169fc5a99 8353175: Eliminate double iteration of stream in FieldDescriptor reinitialization
Reviewed-by: jsjolen, shade, fparain
2025-04-14 08:18:59 +00:00
Matthias Baesken
cf27a42d92 8354426: [ubsan] applying non-zero offset 34359738368 to null pointer in CompressedKlassPointers::encoding_range_end
Reviewed-by: mdoerr, jkern
2025-04-14 08:12:08 +00:00
Aleksey Shipilev
44245f33cd 8354215: Clean up Loom support after 32-bit x86 removal
Reviewed-by: coleenp, pchilanomate
2025-04-14 06:56:29 +00:00
Joel Sikström
337dacdd3f 8354310: JFR: Inconsistent metadata in ZPageAllocation
Reviewed-by: egahlin, stefank, eosterlund
2025-04-14 06:36:47 +00:00
Aleksey Shipilev
2595c47b57 8354231: x86: Purge FPU support from (Macro)Assembler after 32-bit x86 removal
Reviewed-by: coleenp, kvn, vlivanov
2025-04-14 06:16:17 +00:00
Abhishek Kumar
b539fb0bc1 8352877: Opensource Several Font related tests - Batch 1
Reviewed-by: aivanov, serb
2025-04-14 05:27:24 +00:00
Hannes Wallnöfer
5d97608970 8254622: Hide superclasses from conditionally exported packages
Reviewed-by: kcr, liach
2025-04-13 10:08:39 +00:00
Sergey Bylokhov
ed756b9700 8352922: Refactor client classes javadoc to use @throws instead of @exception
Reviewed-by: prr
2025-04-12 23:36:27 +00:00
Serguei Spitsyn
04ad59de76 8316397: StackTrace/Suspended/GetStackTraceSuspendedStressTest.java failed with: SingleStep event is NOT expected
Reviewed-by: dholmes, pchilanomate
2025-04-12 07:20:19 +00:00
Thomas Stuefe
034c0d4de5 8350753: Deprecate UseCompressedClassPointers
Reviewed-by: coleenp, dholmes
2025-04-12 05:58:39 +00:00
William Kemper
e8bcedb09b 8354452: Shenandoah: Enforce range checks on parameters controlling heuristic sleep times
Reviewed-by: ysr
2025-04-11 21:25:09 +00:00
Coleen Phillimore
d14e84c03b 8354446: [BACKOUT] Remove friends for ObjectMonitor
Reviewed-by: pchilanomate
2025-04-11 19:59:52 +00:00
Erik Gahlin
1d7138fe02 8353614: JFR: jfr print --exact
Reviewed-by: mgronlun
2025-04-11 15:12:54 +00:00
Archie Cobbs
e604bb9e94 8352731: Compiler workaround to forcibly set "-Xlint:-options" can be removed
Reviewed-by: mcimadamore
2025-04-11 13:29:32 +00:00
Hannes Wallnöfer
2321722a45 8346109: Create JDK taglet for additional preview notes
Reviewed-by: ihse, liach, rriggs
2025-04-11 13:25:50 +00:00
Coleen Phillimore
9ead2b75ce 8354180: Clean up uses of ObjectMonitor caches
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: aboldtch, fbredberg
2025-04-11 13:12:16 +00:00
Eirik Bjørsnøs
cae7a206a2 8353662: Add test for non-local file URL fallback to FTP
Reviewed-by: dfuchs
2025-04-11 12:49:40 +00:00
Matthias Baesken
b5d2e25478 8354189: Remove JLI_ReportErrorMessageSys on Windows
Reviewed-by: alanb, mdoerr
2025-04-11 11:32:42 +00:00
Manuel Hässig
efb5a80e52 8353730: TestSubNodeFloatDoubleNegation.java fails with native Float16 support
Reviewed-by: chagedorn, thartmann
2025-04-11 11:29:56 +00:00
Jorn Vernee
8bb0ca4971 8353917: jnativescan: Simplify ClassResolver
Reviewed-by: mcimadamore
2025-04-11 11:15:32 +00:00
Coleen Phillimore
36069f6efa 8354234: Remove friends for ObjectMonitor
Reviewed-by: aboldtch, dholmes
2025-04-11 11:03:45 +00:00
Magnus Ihse Bursie
d4e194bc46 8354266: Fix non-UTF-8 text encoding
Reviewed-by: rgiulietti, erikj, naoto, eirbjo
2025-04-11 10:22:15 +00:00
Volkan Yazici
e1b677091e 8353949: HttpHeaders.firstValueAsLong unnecessarily boxes to Long
Reviewed-by: dfuchs, djelinski, michaelm
2025-04-11 09:06:11 +00:00
Evgeny Nikitin
1fc1cc5da9 8354255: [jittester] Remove TempDir debug output
Reviewed-by: chagedorn, thartmann
2025-04-11 08:15:01 +00:00
Aleksey Shipilev
cf0308b271 8351152: x86: Remove code blocks that handle UseSSE < 2
Reviewed-by: vlivanov, kvn
2025-04-11 07:10:41 +00:00
Alexander Zvegintsev
d8bed69373 8354317: [XWayland] Problem list two tests crashing XWayland server
Reviewed-by: serb, jdv
2025-04-11 06:09:39 +00:00
Prasanta Sadhukhan
f955a8cbd2 8352687: Opensource few JInternalFrame and JTextField tests
Reviewed-by: honkar
2025-04-11 03:53:29 +00:00
Thomas Fitzsimmons
4478a99e31 8354057: Odd debug output in -Xlog:os+container=debug on certain systems
Reviewed-by: sgehwolf, asmehra, lmesnik
2025-04-11 02:06:22 +00:00
Serguei Spitsyn
1c34f3cdb1 8352773: JVMTI should disable events during java upcalls
Reviewed-by: lmesnik, dholmes, cjplummer, coleenp
2025-04-11 01:25:55 +00:00
Chen Liang
7bb8b1768f 8347472: Correct Attribute traversal and writing for Code attributes
Reviewed-by: asotona
2025-04-11 00:18:23 +00:00
Stuart Marks
83c7d3bbe8 8351740: Clean up some code around initialization of encoding properties
Reviewed-by: naoto, alanb, rriggs
2025-04-10 21:43:14 +00:00
Michael McMahon
e35f67b908 8285888: Clarify that java.net.http.HttpClient do NOT support Digest authentication
Reviewed-by: jpai, dfuchs
2025-04-10 21:16:30 +00:00
Mikael Vidstedt
7382ea1a7e 8354230: Wrong boot jdk for alpine-linux-x64 in GHA
Reviewed-by: erikj, iris, djelinski, sgehwolf
2025-04-10 21:15:23 +00:00
Archie Cobbs
4890b74c04 8354216: Small cleanups relating to Log.DiagnosticHandler
Reviewed-by: mcimadamore
2025-04-10 20:33:11 +00:00
Calvin Cheung
7680f70ad6 8171508: Remove -Dsun.java.launcher.is_altjvm option
Reviewed-by: dholmes, stuefe
2025-04-10 19:57:30 +00:00
Harshitha Onkar
3131dd1d5c 8346465: Add a check in setData() to restrict the update of Built-In ICC_Profiles
Reviewed-by: aivanov, jdv, prr, serb
2025-04-10 19:55:29 +00:00
Roger Riggs
af5db51306 8353641: Deprecate core library permission classes for removal
Reviewed-by: mullan, iris
2025-04-10 19:19:31 +00:00
Jeremy Wood
60f3d60741 8351110: ImageIO.write for JPEG can write corrupt JPEG for certain thumbnail dimensions
Reviewed-by: aivanov, prr
2025-04-10 18:31:53 +00:00
Zihao Lin
dc249be247 8350462: MethodTypeForm.LF_INTERPRET can cache the MemberName instead
Reviewed-by: liach, jvernee
2025-04-10 17:21:51 +00:00
Archie Cobbs
799e5b33a1 8354071: Add LintCategory property indicating whether @SuppressWarnings is supported
Reviewed-by: mcimadamore
2025-04-10 17:06:44 +00:00
David Beaumont
36e11b6827 8353683: [REDO] j.u.l.Handler classes create deadlock risk via synchronized publish() method
Reviewed-by: smarks
2025-04-10 16:01:00 +00:00
Mikhail Yankelevich
0e223f1456 8349534: Refactor jdk/sun/security/krb5/runNameEquals.sh to java test
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: mullan
2025-04-10 15:30:44 +00:00
Alexander Zvegintsev
2ba80d2403 8353586: Open source several toolkit tests
Reviewed-by: dnguyen, psadhukhan
2025-04-10 15:20:23 +00:00
Archie Cobbs
e50af6db09 8354090: Refactor import warning suppression in Check.java
Reviewed-by: mcimadamore
2025-04-10 14:46:36 +00:00
fabioromano1
c4c3edfa96 8341402: BigDecimal's square root optimization
Reviewed-by: rgiulietti
2025-04-10 14:34:52 +00:00
Joel Sikström
7e69b98e05 8350441: ZGC: Overhaul Page Allocation
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Co-authored-by: Erik Österlund <eosterlund@openjdk.org>
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Stefan Johansson <sjohanss@openjdk.org>
Reviewed-by: stefank, aboldtch, eosterlund
2025-04-10 11:37:20 +00:00
Kim Barrett
6c2667018a 8324686: Remove redefinition of NULL for MSVC
Reviewed-by: shade, dholmes
2025-04-10 10:21:32 +00:00
Volkan Yazici
51b3d6bba2 8352431: java/net/httpclient/EmptyAuthenticate.java uses "localhost"
Reviewed-by: dfuchs, jpai
2025-04-10 10:18:46 +00:00
Jatin Bhateja
9a3f9997b6 8346236: Auto vectorization support for various Float16 operations
Reviewed-by: epeter, sviswanathan
2025-04-10 09:44:58 +00:00
SendaoYan
6545e0d9a3 8353189: [ASAN] memory leak after 8352184
Co-authored-by: Jiangli Zhou <jiangli@openjdk.org>
Co-authored-by: David Holmes <dholmes@openjdk.org>
Reviewed-by: dholmes, jiangli
2025-04-10 08:42:47 +00:00
Serhiy Sachkov
f94a4f7acc 8353847: Remove extra args to System.out.printf in open/test/jdk/java/net/httpclient tests
Reviewed-by: dfuchs
2025-04-10 08:28:01 +00:00
Saranya Natarajan
04e2a0621d 8351660: C2: SIGFPE in unsigned_mod_value
Co-authored-by: Emanuel Peter <epeter@openjdk.org>
Reviewed-by: chagedorn, dfenacci, epeter
2025-04-10 07:59:09 +00:00
Aleksey Shipilev
73c8c755ea 8351157: Clean up x86 GC barriers after 32-bit x86 removal
Reviewed-by: kbarrett, wkemper, tschatzl
2025-04-10 07:54:00 +00:00
Erik Gahlin
c447a10225 8353856: Deprecate FlighRecorderPermission class for removal
Reviewed-by: mgronlun
2025-04-10 07:42:40 +00:00
Manuel Hässig
4f80437ee0 8353842: C2: Add graph dumps before and after loop opts phase
Reviewed-by: chagedorn, epeter
2025-04-10 07:24:45 +00:00
Roland Westrelin
bcac42aabc 8349479: C2: when a Type node becomes dead, make CFG path that uses it unreachable
Reviewed-by: chagedorn, vlivanov
2025-04-10 07:04:15 +00:00
Alexey Semenyuk
45b7c74873 8341641: Make %APPDATA% and %LOCALAPPDATA% env variables available in *.cfg files
Reviewed-by: almatvee
2025-04-10 01:38:47 +00:00
Chen Liang
5c438c5e6b 8352748: Remove com.sun.tools.classfile from the JDK
Reviewed-by: ihse, jlahoda, vromero
2025-04-09 22:58:44 +00:00
Ferenc Rakoczi
e87ff328d5 8351034: Add AVX-512 intrinsics for ML-DSA
Reviewed-by: sviswanathan, lmesnik, vpaprotski, jbhateja
2025-04-09 21:15:45 +00:00
Ioi Lam
e3f26b056e 8351319: AOT cache support for custom class loaders broken since JDK-8348426
Reviewed-by: ccheung, matsaave, jrose
2025-04-09 20:57:15 +00:00
Liam Miller-Cushon
4954a336f8 8350563: C2 compilation fails because PhaseCCP does not reach a fixpoint
Co-authored-by: Matthias Ernst <mernst@google.com>
Reviewed-by: chagedorn, epeter
2025-04-09 20:20:15 +00:00
Magnus Ihse Bursie
4a242e3a65 8354213: Restore pointless unicode characters to ASCII
Reviewed-by: naoto, erikj, iris
2025-04-09 20:14:10 +00:00
Dean Long
776e1cf1df 8353041: NeverBranchNode causes incorrect block frequency calculation
Reviewed-by: thartmann, rcastanedalo
2025-04-09 20:06:49 +00:00
Alexander Zvegintsev
cc546e7a28 8353549: Open source events tests batch2
Reviewed-by: honkar, kizune
2025-04-09 17:49:18 +00:00
Jiangli Zhou
faacbd96a3 8353938: hotspot/jtreg/serviceability/dcmd/jvmti/LoadAgentDcmdTest.java fails on static JDK
Reviewed-by: alanb
2025-04-09 17:47:47 +00:00
Coleen Phillimore
6352ee1a6e 8349007: The jtreg test ResolvedMethodTableHash takes excessive time
Reviewed-by: lmesnik, matsaave
2025-04-09 17:43:11 +00:00
Danish Nawab
5f2a604b63 8353840: JNativeScan should not abort for missing classes
Reviewed-by: jvernee, liach
2025-04-09 15:25:24 +00:00
Raffaello Giulietti
1f21da75eb 8351462: Improve robustness of String concatenation
Reviewed-by: liach, pminborg, rriggs
2025-04-09 15:16:02 +00:00
Ioi Lam
567c6885a3 8353597: Refactor handling VM options for AOT cache input and output
Reviewed-by: kvn, asmehra
2025-04-09 15:03:38 +00:00
Chen Liang
4dc9e58906 8310310: Migrate CreateSymbols tool in make/langtools to Classfile API
Reviewed-by: ihse, jlahoda
2025-04-09 14:51:15 +00:00
Kevin Walls
7a7b9ed7fe 8353727: HeapDumpPath doesn't expand %p
Reviewed-by: stuefe, lmesnik
2025-04-09 14:49:04 +00:00
Per Minborg
c3e043956e 8354121: Use a record class rather than a lambda in AbstractMemorySegmentImpl::cleanupAction
Reviewed-by: liach
2025-04-09 13:47:24 +00:00
Yudi Zheng
9d8b93b6e2 8354181: [Backout] 8334046: Set different values for CompLevel_any and CompLevel_all
Reviewed-by: thartmann, chagedorn
2025-04-09 13:08:21 +00:00
Zhengyu Gu
da462cf225 8353692: Relax memory constraint on updating ObjectMonitorTable's item count
Reviewed-by: rkennke, dholmes
2025-04-09 12:58:00 +00:00
Per Minborg
f9d705b17e 8351757: Test java/foreign/TestDeadlock.java#FileChannel_map timed out after passing
Reviewed-by: djelinski, rriggs
2025-04-09 12:44:47 +00:00
Alan Bateman
6c93ad42f3 8351927: Change VirtualThread implementation to use use FJP delayed task handling
Reviewed-by: vklang
2025-04-09 12:36:35 +00:00
Magnus Ihse Bursie
7aeaa3c21c 8187520: Add --disable-java-warnings-as-errors configure option
Reviewed-by: shade, erikj
2025-04-09 10:40:03 +00:00
Kevin Walls
cd9fa3f7aa 8353439: Shell grouping of -XX:OnError= commands is surprising
Reviewed-by: dholmes, stuefe
2025-04-09 09:47:03 +00:00
Marc Chevalier
a1d566ce4b 8348853: Fold layout helper check for objects implementing non-array interfaces
Reviewed-by: thartmann, roland
2025-04-09 09:28:36 +00:00
Daishi Tabata
f7fa05f577 8353698: Output of Simple Web Server is garbled if the console's encoding is not UTF-8
Reviewed-by: djelinski, dfuchs
2025-04-09 09:11:24 +00:00
Aleksey Shipilev
250eb743c1 8353192: C2: Clean up x86 backend after 32-bit x86 removal
Reviewed-by: kvn, epeter
2025-04-09 08:22:48 +00:00
Cesar Soares Lucas
9ee5590328 8334046: Set different values for CompLevel_any and CompLevel_all
Reviewed-by: shade, kvn
2025-04-09 08:01:13 +00:00
Aleksey Shipilev
6df34c361e 8353174: Clean up thread register handling after 32-bit x86 removal
Reviewed-by: cslucas, kvn, vlivanov
2025-04-09 07:28:47 +00:00
Evgeny Nikitin
0f70aae1cc 8353841: [jittester] Fix JITTester build after asm removal
Reviewed-by: thartmann, chagedorn
2025-04-09 07:03:24 +00:00
Stefan Karlsson
3340e13fd0 8352994: ZGC: Fix regression introduced in JDK-8350572
Reviewed-by: aboldtch, tschatzl
2025-04-09 06:19:08 +00:00
Cesar Soares Lucas
b045e3fbd7 8352681: C2 compilation hits asserts "must set the initial type just once"
Reviewed-by: chagedorn, dfenacci
2025-04-09 05:34:01 +00:00
Cesar Soares Lucas
473251dbb3 8353593: MethodData "mileage_*" methods and fields aren't used and can be removed
Reviewed-by: phh, thartmann
2025-04-09 05:09:30 +00:00
Thomas Stuefe
743d1c64c2 8353273: Reduce number of oop map entries in instances
Reviewed-by: lmesnik, fparain, jsjolen
2025-04-09 05:08:51 +00:00
David Holmes
2a0cf8353a 8354088: [BACKOUT] Run jtreg in the work dir
Reviewed-by: darcy, iris
2025-04-09 03:03:14 +00:00
Fei Yang
73bb647218 8353829: RISC-V: Auto-enable several more extensions for debug builds
Reviewed-by: rehn, fjiang
2025-04-09 01:44:46 +00:00
Ioi Lam
c26c575867 8353014: Exclude AOT tooling classes from AOT cache
Reviewed-by: vlivanov, kvn
2025-04-09 01:15:40 +00:00
Xiaolong Peng
aec1fe0a17 8351091: Shenandoah: global marking context completeness is not accurately maintained
Reviewed-by: ysr, wkemper
2025-04-09 01:00:02 +00:00
William Kemper
b4ab964b72 8353218: Shenandoah: Out of date comment references Brooks pointers
Reviewed-by: ysr, kdnilsen
2025-04-08 22:00:58 +00:00
Koushik Thirupattur
63fa255c06 8354061: Update copyright in NameFormat.java fix after JDK-8349890
Reviewed-by: mullan
2025-04-08 21:58:21 +00:00
Archie Cobbs
5b42c46b48 8353757: Log class should have a proper clear() method
Reviewed-by: vromero, mcimadamore
2025-04-08 20:04:44 +00:00
Hannes Wallnöfer
24ff96afe4 8352389: Remove incidental whitespace in pre/code content
Reviewed-by: liach
2025-04-08 18:45:53 +00:00
Markus Grönlund
257f817c7f 8353431: JFR: Sets to use hashmap instead of binary search as backend
Reviewed-by: egahlin
2025-04-08 18:41:10 +00:00
Magnus Ihse Bursie
689d73a30d 8317012: Explicitly check for 32-bit word size for using libatomic with zero
Reviewed-by: erikj, shade
2025-04-08 17:39:59 +00:00
Justin Lu
5cac579619 8353713: Improve Currency.getInstance exception handling
Reviewed-by: naoto
2025-04-08 17:37:13 +00:00
Magnus Ihse Bursie
e1a4a6beb6 8340185: Use make -k on GHA to catch more build errors
Reviewed-by: shade
2025-04-08 16:57:00 +00:00
Magnus Ihse Bursie
bd73a06416 8300339: Run jtreg in the work dir
Reviewed-by: erikj
2025-04-08 16:55:48 +00:00
Per Minborg
b98d6aebdd 8339527: Adjust threshold for MemorySegment::fill native invocation
Reviewed-by: jvernee
2025-04-08 16:34:20 +00:00
Sean Mullan
3cbe686d62 8348967: Deprecate security permission classes for removal
Reviewed-by: rriggs, iris
2025-04-08 16:13:43 +00:00
Roland Westrelin
4645ddbb6b 8341976: C2: use_mem_state != load->find_exact_control(load->in(0)) assert failure
Reviewed-by: chagedorn, dfenacci
2025-04-08 15:52:05 +00:00
Daniel Jeliński
58ff36f3bd 8350705: [JMH] test security.SSLHandshake failed for 2 threads configuration
Reviewed-by: hchao, mullan
2025-04-08 15:19:32 +00:00
Viktor Klang
676cfae91c 8354016: Update ReentrantReadWriteLock documentation to reflect its new max capacity
Reviewed-by: alanb
2025-04-08 13:49:15 +00:00
Coleen Phillimore
250437e557 8351654: Agent transformer bytecodes should be verified
Reviewed-by: dholmes, lmesnik
2025-04-08 13:12:28 +00:00
Damon Fenacci
d9f2e69215 8352963: [REDO] Missing late inline cleanup causes compiler/vectorapi/VectorLogicalOpIdentityTest.java IR failure
Reviewed-by: vlivanov, thartmann
2025-04-08 13:05:15 +00:00
Artur Barashev
dfa79c3730 8340321: Disable SHA-1 in TLS/DTLS 1.2 handshake signatures
Reviewed-by: mullan
2025-04-08 13:02:50 +00:00
Hamlin Li
cc5e9388d8 8353600: RISC-V: compiler/vectorization/TestRotateByteAndShortVector.java is failing with Zvbb
Reviewed-by: fyang, luhenry
2025-04-08 13:00:07 +00:00
Hamlin Li
21db0fdbfb 8353665: RISC-V: IR verification fails in TestSubNodeFloatDoubleNegation.java
Reviewed-by: thartmann, luhenry
2025-04-08 12:59:36 +00:00
Harald Eilertsen
b3751b90f6 8353573: System giflib not found by configure if it's not in system directories
Reviewed-by: erikj
2025-04-08 12:40:54 +00:00
Harald Eilertsen
3d24f1a382 8353580: libjpeg is not found if not installed in system directories
Reviewed-by: erikj
2025-04-08 12:40:10 +00:00
Koushik Thirupattur
d8bed13047 8353945: Test javax/security/auth/x500/X500Principal/NameFormat.java fails after JDK-8349890
Reviewed-by: mullan
2025-04-08 11:50:59 +00:00
Jan Lahoda
9088afc4f1 8353332: Test jdk/jshell/ToolProviderTest.java failed in relation to enable-preview
Reviewed-by: jpai, asotona
2025-04-08 09:25:23 +00:00
Roberto Castañeda Lozano
fda5eecd67 8353669: IGV: dump OOP maps for MachSafePoint nodes
Reviewed-by: chagedorn, thartmann
2025-04-08 08:27:00 +00:00
Aleksey Shipilev
ea07e719ca 8352256: ObjectSynchronizer::quick_notify misses JFR event notification path
Reviewed-by: dholmes, coleenp, mgronlun
2025-04-08 08:12:59 +00:00
Jaikiran Pai
9844c1c52b 8066583: DeflaterInput/OutputStream and InflaterInput/OutputStream should explain responsibility for freeing resources
Reviewed-by: liach, alanb, lancea
2025-04-08 06:07:44 +00:00
Alan Bateman
fb955bcb15 8353267: jmod create finds the wrong set of packages when class file are in non-package location
Reviewed-by: rriggs
2025-04-08 06:03:16 +00:00
Fei Yang
80ff7b9c94 8353695: RISC-V: compiler/cpuflags/TestAESIntrinsicsOnUnsupportedConfig.java is failing with Zvkn
Reviewed-by: fjiang, mli
2025-04-08 01:37:29 +00:00
Jaikiran Pai
b64cdc2813 8353787: Increased number of SHA-384-Digest java.util.jar.Attributes$Name instances leading to higher memory footprint
Reviewed-by: mullan, lancea
2025-04-08 00:35:33 +00:00
Jaikiran Pai
edaeb4b2da 8352895: UserCookie.java runs wrong test class
Reviewed-by: dfuchs
2025-04-08 00:33:36 +00:00
David Holmes
3951a8e019 8353365: TOUCH_ASSERT_POISON clears GetLastError()
Reviewed-by: kbarrett, stuefe, jwaters
2025-04-07 23:36:04 +00:00
Justin Lu
fd2734e97d 8353585: Provide ChoiceFormat#parse(String, ParsePosition) tests
Reviewed-by: naoto
2025-04-07 21:52:57 +00:00
Martin Doerr
e266eba401 8352972: PPC64: Intrinsify Unsafe::setMemory
Reviewed-by: lucy
2025-04-07 20:50:41 +00:00
Justin Lu
a8dfcf5584 8353322: Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate
Reviewed-by: naoto
2025-04-07 20:45:51 +00:00
Magnus Ihse Bursie
42dc99eac1 8301197: Make sure use of printf is correct and actually needed
Reviewed-by: erikj
2025-04-07 20:34:30 +00:00
Magnus Ihse Bursie
cebda921dd 8311227: Add .editorconfig
Co-authored-by: David Briemann <david@briemann.com>
Reviewed-by: erikj
2025-04-07 20:32:26 +00:00
Daniel Gredler
3757f660f2 8353002: Remove unnecessary Windows version check in WTaskbarPeer
Reviewed-by: prr, serb, aivanov
2025-04-07 19:53:36 +00:00
Renjith Kannath Pariyangad
05ff557dee 8353138: Screen capture for test TaskbarPositionTest.java, failure case
Reviewed-by: aivanov, serb
2025-04-07 19:52:39 +00:00
Brian Burkhalter
5481021ee6 8321591: (fs) Improve String -> Path conversion performance (win)
Reviewed-by: alanb
2025-04-07 18:46:04 +00:00
Volodymyr Paprotski
885cf0ff8d 8353671: Remove dead code missed in JDK-8350459
Reviewed-by: sviswanathan, mullan
2025-04-07 18:44:04 +00:00
Phil Race
1b6f6946ae 8353304: Open source two JTabbedPane tests
Reviewed-by: kizune
2025-04-07 18:16:15 +00:00
Koushik Thirupattur
0d4d155816 8349890: Option -Djava.security.debug=x509,ava breaks special chars
Reviewed-by: mullan
2025-04-07 17:29:13 +00:00
Phil Race
e08441c033 8353475: Open source two Swing DefaultCaret tests
Reviewed-by: honkar
2025-04-07 16:40:36 +00:00
Viktor Klang
867a030189 8352971: Increase maximum number of hold counts for ReentrantReadWriteLock
Reviewed-by: alanb
2025-04-07 16:15:51 +00:00
Eirik Bjørsnøs
9a391f44e0 8353278: Consolidate local file URL checks in jar: and file: URL schemes
Reviewed-by: dfuchs, jpai
2025-04-07 15:23:18 +00:00
Viktor Klang
402103331b 8353659: SubmissionPublisherTest::testCap1Submit times out
Reviewed-by: dl, alanb
2025-04-07 15:03:30 +00:00
Christoph Langer
60fbf73fc4 8353709: Debug symbols bundle should contain full debug files when building --with-external-symbols-in-bundles=public
Reviewed-by: erikj, mbaesken
2025-04-07 13:27:21 +00:00
Gerard Ziemski
77fff61b86 8341095: Possible overflow in os::Posix::print_uptime_info
Reviewed-by: dholmes
2025-04-07 13:04:47 +00:00
Joachim Kern
9128ec61df 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH
Reviewed-by: clanger, ihse, jpai
2025-04-07 12:50:43 +00:00
Prasanta Sadhukhan
27c8d9d635 8352686: Opensource JInternalFrame tests - series3
Reviewed-by: azvegint
2025-04-07 12:30:55 +00:00
Prasanta Sadhukhan
66435c27b3 8352684: Opensource JInternalFrame tests - series1
Reviewed-by: azvegint
2025-04-07 12:28:41 +00:00
Matthew Donovan
353e1738f6 8219408: Tests should handle ${} in the view of jtreg "smart action"
Reviewed-by: mullan
2025-04-07 11:58:17 +00:00
Jan Lahoda
26bb183787 8352621: MatchException from backwards incompatible change to switch expressions
Reviewed-by: abimpoudis
2025-04-07 11:56:53 +00:00
Kevin Walls
e8c9e5c6cd 8353231: Test com/sun/management/OperatingSystemMXBean/GetProcessCpuLoad still fails intermittently
Reviewed-by: dholmes
2025-04-07 11:34:23 +00:00
Stefan Karlsson
6ab1647af2 8353637: ZGC: Discontiguous memory reservation is broken on Windows
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: jsikstro, aboldtch, eosterlund
2025-04-07 11:32:16 +00:00
Joel Sikström
c494a00a66 8353559: Restructure CollectedHeap error printing
Reviewed-by: stefank, eosterlund, ayang
2025-04-07 11:31:06 +00:00
Mikhail Yankelevich
32d6d03151 8349348: Refactor ClassLoaderDeadlock.sh and Deadlock.sh to run fully in java
Reviewed-by: jpai, mullan
2025-04-07 09:57:12 +00:00
Albert Mingkun Yang
39549f8990 8352116: Deadlock with GCLocker and JVMTI after JDK-8192647
Reviewed-by: kbarrett, tschatzl, eosterlund
2025-04-07 09:13:43 +00:00
Aleksey Shipilev
d63b561fff 8353188: C1: Clean up x86 backend after 32-bit x86 removal
Reviewed-by: kvn, vlivanov
2025-04-07 07:39:17 +00:00
Fei Yang
d1e91fcd62 8353344: RISC-V: Detect and enable several extensions for debug builds
Reviewed-by: mli, fjiang, rehn
2025-04-07 07:21:15 +00:00
Matthias Baesken
6abf4e6d4d 8353568: SEGV_BNDERR signal code adjust definition
Reviewed-by: stuefe
2025-04-07 07:14:32 +00:00
Robbin Ehn
6d9ece73a9 8351949: RISC-V: Cleanup and enable store-load peephole for membars
Reviewed-by: fyang, fjiang, mli
2025-04-07 07:09:51 +00:00
Marc Chevalier
97ed536125 8346989: C2: deoptimization and re-execution cycle with Math.*Exact in case of frequent overflow
Reviewed-by: thartmann, vlivanov
2025-04-07 05:21:44 +00:00
Evgeny Astigeevich
660b17a6b9 8350852: Implement JMH benchmark for sparse CodeCache
Reviewed-by: kvn
2025-04-06 17:38:28 +00:00
Zhengyu Gu
6d37e633e6 8353753: Remove unnecessary forward declaration in oop.hpp
Reviewed-by: kbarrett
2025-04-05 20:25:30 +00:00
Jaikiran Pai
9bb804b14e 8338554: Fix inconsistencies in javadoc/doclet/testLinkOption/TestRedirectLinks.java
Reviewed-by: liach, nbenalla
2025-04-05 01:12:48 +00:00
Harshitha Onkar
e17c3994b8 8353201: Open source Swing Tooltip tests - Set 2
Reviewed-by: dnguyen, prr, azvegint
2025-04-04 22:41:59 +00:00
Phil Race
9fcb06f934 8352997: Open source several Swing JTabbedPane tests
Reviewed-by: azvegint, serb, honkar
2025-04-04 18:19:05 +00:00
Phil Race
74c2d8f41b 8353320: Open source more Swing text tests
Reviewed-by: aivanov, serb
2025-04-04 18:16:57 +00:00
Phil Race
31a6de2e74 8353309: Open source several Swing text tests
Reviewed-by: aivanov, serb
2025-04-04 18:13:22 +00:00
Magnus Ihse Bursie
3cc43b3224 8349075: Once again allow -compilejdk in JAVA_OPTIONS
Reviewed-by: rehn, erikj
2025-04-04 13:44:55 +00:00
Magnus Ihse Bursie
9fb3609955 8350774: Generated test-<testname> targets broken after JDK-8348998
Reviewed-by: erikj
2025-04-04 13:44:36 +00:00
Magnus Ihse Bursie
5520ff12ec 8340341: Abort in configure when using Xcode 16.0 or 16.1
Reviewed-by: jwaters, erikj
2025-04-04 13:44:16 +00:00
Magnus Ihse Bursie
3670fde77f 8349467: INIT_TARGETS tab completions on "make" lost with JDK-8348998
Reviewed-by: erikj
2025-04-04 13:43:55 +00:00
Magnus Ihse Bursie
3241b4e111 8353066: Properly detect Windows/aarch64 as build platform
Co-authored-by: Mikael Vidstedt <mikael@openjdk.org>
Reviewed-by: mikael, prr, erikj
2025-04-04 13:32:26 +00:00
Johannes Graham
37f8e419f9 8347645: C2: XOR bounded value handling blocks constant folding
Reviewed-by: epeter, vlivanov, qamai, jkarthikeyan
2025-04-04 13:24:22 +00:00
Magnus Ihse Bursie
4dca735bf3 8315844: $LSB_RELEASE is not defined before use
Reviewed-by: jwaters, erikj, djelinski
2025-04-04 13:19:42 +00:00
Joel Sikström
b92a44364d 8353471: ZGC: Redundant generation id in ZGeneration
Reviewed-by: stefank, eosterlund
2025-04-04 11:53:11 +00:00
Alexey Semenyuk
cfcb3305f0 8353681: jpackage suppresses errors when executed with --verbose option
Reviewed-by: almatvee
2025-04-04 11:49:57 +00:00
Alexey Semenyuk
10d1fec3ff 8353679: Restructure classes in jdk.jpackage.internal package
Reviewed-by: almatvee
2025-04-04 11:46:53 +00:00
Varada M
1161b566ca 8353053: (fs) Add support for UserDefinedFileAttributeView on AIX
Reviewed-by: mdoerr, jkern
2025-04-04 10:30:43 +00:00
Martin Doerr
a13e34da3f 8353274: [PPC64] Bug related to -XX:+UseCompactObjectHeaders -XX:-UseSIGTRAP in JDK-8305895
Reviewed-by: rrich, amitkumar
2025-04-04 07:59:41 +00:00
Varada M
41d4a0d7bd 8352392: AIX: implement attach API v2 and streaming output
Reviewed-by: mdoerr, jkern, amenkov
2025-04-04 06:41:08 +00:00
Chen Liang
1c2a5533f4 8327858: Improve spliterator and forEach for single-element immutable collections
Reviewed-by: smarks, vklang
2025-04-04 00:59:02 +00:00
Chen Liang
a449aeef28 8350704: Create tests to ensure the failure behavior of core reflection APIs
Reviewed-by: darcy
2025-04-04 00:58:32 +00:00
Stuart Marks
57df89c464 8353684: [BACKOUT] j.u.l.Handler classes create deadlock risk via synchronized publish() method
Reviewed-by: dholmes
2025-04-03 21:15:00 +00:00
David Beaumont
ebcb9a8b12 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method
Reviewed-by: dfuchs, smarks
2025-04-03 20:11:19 +00:00
Roman Kennke
d894b781b8 8353588: [REDO] DaCapo xalan performance with -XX:+UseObjectMonitorTable
Reviewed-by: coleenp, aboldtch
2025-04-03 17:12:38 +00:00
Abhishek Kumar
db08726884 8352966: Opensource Several Font related tests - Batch 2
Reviewed-by: aivanov
2025-04-03 16:57:12 +00:00
Liam Miller-Cushon
6b7b3247b1 8351431: Type annotations on new class creation expressions can't be retrieved
Reviewed-by: vromero
2025-04-03 16:09:08 +00:00
Thomas Schatzl
64b691ab61 8271870: G1: Add objArray splitting when scanning object with evacuation failure
8271871: G1 does not try to deduplicate objects that failed evacuation

Reviewed-by: iwalulya, ayang
2025-04-03 15:06:22 +00:00
Amit Kumar
b428cda3c6 8349686: [s390x] C1: Improve Class.isInstance intrinsic
Reviewed-by: lucy, aph
2025-04-03 14:47:26 +00:00
Alexey Semenyuk
70e3250045 8352419: Test tools/jpackage/share/ErrorTest.java#id0 and #id1 fail
Reviewed-by: almatvee
2025-04-03 13:56:34 +00:00
Marc Chevalier
296d9d6f7a 8353345: C2 asserts because maskShiftAmount modifies node without deleting the hash
Reviewed-by: chagedorn, thartmann
2025-04-03 12:23:11 +00:00
Hannes Greule
3ceabf0f64 8353359: C2: Or(I|L)Node::Ideal is missing AddNode::Ideal call
Reviewed-by: epeter, chagedorn
2025-04-03 11:34:45 +00:00
Erik Gahlin
b263292a75 8353484: JFR: Simplify EventConfiguration
Reviewed-by: mgronlun
2025-04-03 11:07:52 +00:00
Stefan Karlsson
ffca4f2da8 8353264: ZGC: Windows heap unreserving is broken
Reviewed-by: jsikstro, aboldtch, eosterlund, stuefe
2025-04-03 10:44:58 +00:00
Jatin Bhateja
f7a94feedd 8352585: Add special case handling for Float16.max/min x86 backend
Reviewed-by: epeter, sviswanathan
2025-04-03 09:21:55 +00:00
Thomas Fitzsimmons
9c5ed23eac 8349988: Change cgroup version detection logic to not depend on /proc/cgroups
8347811: Container detection code for cgroups v2 should use cgroup.controllers

Co-authored-by: Severin Gehwolf <sgehwolf@openjdk.org>
Reviewed-by: sgehwolf, asmehra
2025-04-03 08:38:50 +00:00
Marc Chevalier
00a038e9c5 8353341: C2: removal of a Mod[DF]Node crashes when the node is already dead
Reviewed-by: thartmann, chagedorn
2025-04-03 08:37:36 +00:00
David Beaumont
bd74922157 8338675: javac shouldn't silently change .jar files on the classpath
Reviewed-by: jlahoda
2025-04-03 05:36:31 +00:00
Christian Hagedorn
8d3d1d4137 8353058: [PPC64] Some IR framework tests are failing after JDK-8352595
Reviewed-by: mchevalier, thartmann
2025-04-03 05:25:56 +00:00
Ioi Lam
b01026abaa 8353325: Rewrite appcds/methodHandles test cases to use CDSAppTester
Reviewed-by: ccheung
2025-04-03 00:41:56 +00:00
Coleen Phillimore
e2e1598ecc 8353584: [BACKOUT] DaCapo xalan performance with -XX:+UseObjectMonitorTable
Reviewed-by: rkennke
2025-04-02 23:37:56 +00:00
Doug Simon
814730eae7 8352645: Add tool support to check order of includes
Reviewed-by: stefank, kbarrett
2025-04-02 22:30:13 +00:00
Alex Menkov
d4353626d5 8353479: jcmd with streaming output breaks intendation
Reviewed-by: sspitsyn, jsjolen
2025-04-02 21:58:33 +00:00
Vladimir Ivanov
130b0cdaa6 8353217: Build libsleef on macos-aarch64
Co-authored-by: Magnus Ihse Bursie <ihse@openjdk.org>
Reviewed-by: erikj, kvn, ihse
2025-04-02 19:42:30 +00:00
Joe Wang
209e72d311 8353234: Refactor XMLSecurityPropertyManager
Reviewed-by: naoto, iris, lancea
2025-04-02 19:03:03 +00:00
Chris Plummer
cc870d4960 8352088: Call of com.sun.jdi.ThreadReference.threadGroups() can lock up target VM
Reviewed-by: alanb, jpai, sspitsyn
2025-04-02 17:04:37 +00:00
Larry Cable
d979bd8592 8344671: Few JFR streaming tests fail with application not alive error on MacOS 15
Reviewed-by: dholmes, kevinw
2025-04-02 16:00:14 +00:00
Roman Kennke
49cb7aaad9 8339114: DaCapo xalan performance with -XX:+UseObjectMonitorTable
Reviewed-by: coleenp, aboldtch
2025-04-02 15:57:32 +00:00
Patricio Chilano Mateo
d32ff13922 8353117: Crash: assert(id >= ThreadIdentifier::initial() && id < ThreadIdentifier::current()) failed: must be reasonable)
Reviewed-by: dholmes, fbredberg
2025-04-02 14:32:03 +00:00
Albert Mingkun Yang
a0677d94d8 8353263: Parallel: Remove locking in PSOldGen::resize
Reviewed-by: tschatzl, zgu
2025-04-02 14:19:26 +00:00
Marc Chevalier
8608b16341 8348887: Create IR framework test for JDK-8347997
Reviewed-by: thartmann, chagedorn
2025-04-02 13:27:56 +00:00
Jan Lahoda
23eb648cae 8353545: Improve debug info for StartOptionTest
Reviewed-by: asotona
2025-04-02 13:19:08 +00:00
Casper Norrbin
4f97c4c036 8349211: Add support for intrusive trees to the utilities red-black tree
Reviewed-by: aboldtch, jsjolen
2025-04-02 12:40:48 +00:00
Christian Hagedorn
c9baa8a7ae 8352418: Add verification code to check that the associated loop nodes of useless Template Assertion Predicates are dead
Reviewed-by: epeter, roland
2025-04-02 12:19:24 +00:00
Zhengyu Gu
b80b04d77a 8353329: Small memory leak when create GrowableArray with initial size 0
Reviewed-by: jsjolen, stefank
2025-04-02 11:56:53 +00:00
Magnus Ihse Bursie
4a50778a26 8353458: Don't pass -Wno-format-nonliteral to CFLAGS
Reviewed-by: erikj
2025-04-02 09:30:35 +00:00
SendaoYan
9076673d7d 8304674: File java.c compile error with -fsanitize=address -O0
Reviewed-by: ihse, jwaters
2025-04-02 08:26:22 +00:00
Daniel Skantz
8fb67ac55b 8282053: IGV: refine schedule approximation
Reviewed-by: rcastanedalo, dlunden, dfenacci
2025-04-02 07:45:48 +00:00
Manuel Hässig
d358f5f4a4 8347449: C2: UseLoopPredicate off should also turn UseProfiledLoopPredicate off
Reviewed-by: chagedorn, epeter
2025-04-02 06:48:06 +00:00
Manuel Hässig
f301663b34 8352893: C2: OrL/INode::add_ring optimize (x | -1) to -1
Reviewed-by: epeter, thartmann, kvn
2025-04-02 06:30:55 +00:00
Ioi Lam
15d36ee4a5 8353330: Test runtime/cds/appcds/SignedJar.java fails in CDSHeapVerifier
Reviewed-by: vlivanov, dholmes, liach
2025-04-02 03:56:19 +00:00
David Holmes
e6fe2490bc 8323100: com/sun/tools/attach/StartManagementAgent.java failed with "WaitForSingleObject failed"
Reviewed-by: kevinw, amenkov
2025-04-02 02:54:27 +00:00
Ioi Lam
096e70de2d 8352437: Support --add-exports with -XX:+AOTClassLinking
Reviewed-by: matsaave
2025-04-02 01:37:27 +00:00
Ioi Lam
6970cf6ac6 8352775: JVM crashes with -XX:AOTMode=create -XX:+UseZGC
Reviewed-by: ccheung, matsaave
2025-04-01 22:01:14 +00:00
Brian Burkhalter
afcad8ca61 5043343: FileImageInputStream and FileImageOutputStream do not properly track streamPos for RandomAccessFile
Reviewed-by: prr
2025-04-01 21:05:54 +00:00
Phil Race
6891490892 8353324: Clean up of comments and import after 8319192
Reviewed-by: dnguyen, kizune
2025-04-01 18:42:49 +00:00
Mikael Vidstedt
07fd666d99 8342984: Bump minimum boot jdk to JDK 24
Reviewed-by: iris, darcy, liach, ihse
2025-04-01 18:24:14 +00:00
Calvin Cheung
6a46d554c7 8353129: CDS ArchiveRelocation tests fail after JDK-8325132
Reviewed-by: iklam, dholmes
2025-04-01 16:43:25 +00:00
Markus Grönlund
19eabaff55 8353227: JFR: Prepare tests for strong parser validation
Reviewed-by: egahlin
2025-04-01 16:37:34 +00:00
Naoto Sato
564066d549 8353118: Deprecate the use of java.locale.useOldISOCodes system property
Reviewed-by: iris, jlu
2025-04-01 16:22:56 +00:00
David Holmes
a1ab1d8de4 8353449: [BACKOUT] One instance of STATIC_LIB_CFLAGS was missed in JDK-8345683
Reviewed-by: alanb, ihse
2025-04-01 12:59:49 +00:00
Alan Bateman
2a31f69a55 8353331: Test ForkJoinPool20Test::testFixedDelaySequence is failing
Reviewed-by: dl, vklang
2025-04-01 12:42:02 +00:00
Patrick Zhang
1809138b1c 8352284: EXTRA_CFLAGS incorrectly applied to BUILD_LIBJVM src/hotspot C++ source files
Reviewed-by: erikj
2025-04-01 11:47:32 +00:00
Patrick Zhang
cef5610b5d 8353272: One instance of STATIC_LIB_CFLAGS was missed in JDK-8345683
Reviewed-by: erikj
2025-04-01 11:47:13 +00:00
Leo Korinth
6801eb8704 8352709: Remove bad timing annotations from WhileOpTest.java
Reviewed-by: jpai
2025-04-01 10:54:17 +00:00
Leo Korinth
85a0baf0cb 8352719: Add an equals sign to the modules statement
Reviewed-by: weijun
2025-04-01 10:50:46 +00:00
Markus Grönlund
f25f701652 8353226: JFR: emit old object samples must be transitive closure complete for segment
Reviewed-by: egahlin
2025-04-01 09:17:44 +00:00
Afshin Zafari
aff5aa72bb 8350566: NMT: add size parameter to MemTracker::record_virtual_memory_tag
Reviewed-by: jsjolen, gziemski
2025-04-01 08:25:53 +00:00
Joachim Kern
196334fc39 8352046: Test testEcoFriendly() in jdk tools launcher ExecutionEnvironment.java for AIX and Linux/musl is brittle
Reviewed-by: clanger, mbaesken
2025-04-01 08:09:53 +00:00
SendaoYan
ad48846edd 8350386: Test TestCodeCacheFull.java fails with option -XX:-UseCodeCacheFlushing
Reviewed-by: tschatzl
2025-04-01 06:25:07 +00:00
David Holmes
8b4e190bc8 8353349: ProblemList runtime/cds/appcds/SignedJar.java
Reviewed-by: iklam, jpai
2025-04-01 05:42:52 +00:00
Fei Yang
860a789e91 8353219: RISC-V: Fix client builds after JDK-8345298
Reviewed-by: fjiang, rehn
2025-04-01 01:39:22 +00:00
Ioi Lam
a83760a6f2 8352092: -XX:AOTMode=record crashes with InstanceKlass in allocated state
Reviewed-by: dholmes, coleenp
2025-03-31 23:35:48 +00:00
Alexey Semenyuk
1077265953 8353321: [macos] ErrorTest.testAppContentWarning test case requires signing environment
Reviewed-by: almatvee
2025-03-31 22:16:05 +00:00
Alexey Semenyuk
52f56e608e 8353196: [macos] Contents of ".jpackage.xml" file are wrong when building .pkg from unsigned app image
Reviewed-by: almatvee
2025-03-31 22:07:14 +00:00
Hai-May Chao
acd4da49a0 8353299: VerifyJarEntryName.java test fails
Reviewed-by: mullan
2025-03-31 21:39:11 +00:00
Ioi Lam
5eee32d04b 8352768: CDS test MethodHandleTest.java failed in -Xcomp mode
Reviewed-by: dholmes, shade, vlivanov
2025-03-31 20:43:21 +00:00
Doug Lea
8b0602dbed 8319447: Improve performance of delayed task handling
Reviewed-by: vklang, alanb
2025-03-31 19:23:59 +00:00
Ian Graves
fe8bd75621 8351290: Clarify integral only for vector operators
Reviewed-by: liach, psandoz
2025-03-31 18:28:30 +00:00
Xiaolong Peng
4d1de46cb8 8352185: Shenandoah: Invalid logic for remembered set verification
8345399: GenShen: Error: Verify init-mark remembered set violation; clean card should be dirty

Reviewed-by: ysr, kdnilsen, wkemper
2025-03-31 18:13:31 +00:00
Koushik Thirupattur
3e96f5cbca 8351366: Remove the java.security.debug=scl option
Reviewed-by: hchao, mullan
2025-03-31 16:54:12 +00:00
Naoto Sato
4247744266 8351435: Change the default Console implementation back to the built-in one in java.base module
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Reviewed-by: alanb
2025-03-31 16:46:57 +00:00
Artur Barashev
9c06dcb439 8349583: Add mechanism to disable signature schemes based on their TLS scope
Reviewed-by: mullan, ascarpino
2025-03-31 16:45:40 +00:00
Alexander Zvegintsev
cd5a43a980 8353126: Open source events tests batch1
Reviewed-by: honkar, kizune
2025-03-31 16:39:44 +00:00
Anthony Scarpino
e4e62789c7 8346129: Simplify EdDSA & XDH curve name usage
Reviewed-by: weijun, abarashev
2025-03-31 15:59:30 +00:00
Artur Barashev
7a2e198e9f 8352277: java.security documentation: incorrect regex syntax describing "usage" algorithm constraint
Reviewed-by: mullan, hchao, ascarpino
2025-03-31 15:48:03 +00:00
SendaoYan
b7ca76ef4b 8353235: Test jdk/jfr/api/metadata/annotations/TestPeriod.java fails with IllegalArgumentException
Reviewed-by: egahlin
2025-03-31 15:45:23 +00:00
Hai-May Chao
bbd5b174c5 8339280: jarsigner -verify performs cross-checking between CEN and LOC
Reviewed-by: mullan, weijun, lancea
2025-03-31 15:04:48 +00:00
Alexander Zvegintsev
d4d18350f3 8352860: Open source events tests batch0
Reviewed-by: psadhukhan
2025-03-31 12:36:37 +00:00
Serhiy Sachkov
c9c3c15368 8330598: java/net/httpclient/Http1ChunkedTest.java fails with java.util.MissingFormatArgumentException: Format specifier '%s'
Reviewed-by: dfuchs
2025-03-31 12:09:48 +00:00
Ivan Walulya
804a8fa4e9 8352765: G1CollectedHeap::expand_and_allocate() may fail to allocate even after heap expansion succeeds
Reviewed-by: tschatzl, manc
2025-03-31 11:15:47 +00:00
Aleksey Shipilev
22f630cb20 8352415: x86: Tighten up template interpreter method entry code
Reviewed-by: adinn, jsjolen
2025-03-31 10:30:23 +00:00
Aleksey Shipilev
6fbaa066ce 8353176: C1: x86 patching stub always calls Thread::current()
Reviewed-by: mdoerr, kvn, vlivanov
2025-03-31 10:01:23 +00:00
David Linus Briemann
79d0c94b5c 8352114: New test runtime/interpreter/CountBytecodesTest.java is failing
Reviewed-by: dholmes, mdoerr
2025-03-31 08:53:31 +00:00
Aleksey Shipilev
23e3b3ff6a 8351156: C1: Remove FPU stack support after 32-bit x86 removal
Reviewed-by: vlivanov, kvn
2025-03-31 08:16:10 +00:00
Christian Hagedorn
25925138b0 8350577: Fix missing Assertion Predicates when splitting loops
Reviewed-by: epeter, kvn
2025-03-31 07:38:53 +00:00
Thomas Stuefe
59629f88e6 8351040: [REDO] Protection zone for easier detection of accidental zero-nKlass use
Reviewed-by: mbaesken, iklam
2025-03-30 16:42:38 +00:00
Rohit Arul Raj
8cbadf78d0 8317976: Optimize SIMD sort for AMD Zen 4
Reviewed-by: psandoz, vlivanov
2025-03-30 13:22:21 +00:00
Zihao Lin
b9d7a75ade 8352879: TestPeriod.java and TestGetContentType.java run wrong test class
Reviewed-by: mgronlun
2025-03-30 13:14:52 +00:00
SendaoYan
895aabc463 8351233: [ASAN] avx2-emu-funcs.hpp:151:20: error: ‘D.82188’ is used uninitialized
Reviewed-by: vlivanov
2025-03-30 13:05:31 +00:00
Daniel Gredler
3d2c3cd40e 8352970: Remove unnecessary Windows version check in Win32ShellFolderManager2
Reviewed-by: prr, serb
2025-03-28 17:22:33 +00:00
Naoto Sato
c70ad6a053 8352906: stdout/err.encoding on Windows set by incorrect Win32 call
Reviewed-by: bpb, alanb
2025-03-28 16:26:43 +00:00
Prasanta Sadhukhan
da3bb06797 8352685: Opensource JInternalFrame tests - series2
Reviewed-by: azvegint
2025-03-28 15:50:10 +00:00
Kevin Driver
d8090337ee 8341775: Duplicate manifest files are removed by jarsigner after signing
Reviewed-by: weijun, hchao
2025-03-28 15:27:26 +00:00
Volodymyr Paprotski
a269bef04c 8350459: MontgomeryIntegerPolynomialP256 multiply intrinsic with AVX2 on x86_64
Reviewed-by: ascarpino, sviswanathan
2025-03-28 15:20:31 +00:00
Zihao Lin
c029220379 8352896: LambdaExpr02.java runs wrong test class
Reviewed-by: shade, jlahoda
2025-03-28 13:19:23 +00:00
Prasanta Sadhukhan
c0b61d3b88 8352680: Opensource few misc swing tests
Reviewed-by: abhiscxk
2025-03-28 13:03:30 +00:00
Manuel Hässig
3e9a7a4aed 8353063: make/ide/vscode: Invalid Configuration Values
Reviewed-by: erikj, thartmann
2025-03-28 08:58:43 +00:00
Manuel Hässig
8ef78323b1 8350471: Unhandled compilation bailout in GraphKit::builtin_throw
Reviewed-by: thartmann, chagedorn, kvn
2025-03-28 08:53:37 +00:00
Matthias Baesken
ddf326b8e6 8346888: [ubsan] block.cpp:1617:30: runtime error: 9.97582e+36 is outside the range of representable values of type 'int'
Reviewed-by: kvn, dlong
2025-03-28 08:19:20 +00:00
Matthias Baesken
bac2aa4445 8352946: SEGV_BND signal code of SIGSEGV missing from our signal-code table
Reviewed-by: mdoerr, dholmes
2025-03-28 08:13:31 +00:00
Prasanta Sadhukhan
cfc648bd17 8352677: Opensource JMenu tests - series2
Reviewed-by: abhiscxk
2025-03-28 06:52:14 +00:00
SendaoYan
2ea1557a0f 8353005: AIX build broken after 8352481
Reviewed-by: mdoerr, mbaesken, erikj
2025-03-28 06:03:36 +00:00
Cesar Soares Lucas
f4428e89b7 8352920: Compilation failure: comparison of unsigned expression >= 0 is always true
Reviewed-by: dholmes
2025-03-28 04:50:39 +00:00
Daniel Gredler
d5b12c82fe 8352890: Remove unnecessary Windows version check in FileFontStrike
Reviewed-by: serb, prr
2025-03-28 00:34:41 +00:00
5801 changed files with 244761 additions and 281708 deletions

14
.editorconfig Normal file
View File

@@ -0,0 +1,14 @@
root = true
[*]
charset = utf-8
[*.{cpp,hpp,c,h,java,cc,hh,m,mm,S,md,properties,gmk,m4,ac}]
trim_trailing_whitespace = true
[Makefile]
trim_trailing_whitespace = true
[src/hotspot/**.{cpp,hpp,h}]
indent_style = space
indent_size = 2

1
.gitattributes vendored
View File

@@ -1,4 +1,5 @@
* -text
* encoding=utf-8
*.java diff=java
*.c diff=cpp
*.h diff=cpp

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, 2024, 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
@@ -42,7 +42,7 @@ runs:
- name: 'Build'
id: build
run: >
make LOG=info ${{ inputs.make-target }}
make -k LOG=info ${{ inputs.make-target }}
|| bash ./.github/scripts/gen-build-failure-report.sh "$GITHUB_STEP_SUMMARY"
shell: bash

View File

@@ -32,10 +32,16 @@ inputs:
debug-suffix:
description: 'File name suffix denoting debug level, possibly empty'
required: false
static-suffix:
description: 'Static bundle file name suffix'
required: false
outputs:
jdk-path:
description: 'Path to the installed JDK bundle'
value: ${{ steps.path-name.outputs.jdk }}
static-jdk-path:
description: 'Path to the installed static JDK bundle'
value: ${{ steps.path-name.outputs.static_jdk }}
symbols-path:
description: 'Path to the installed symbols bundle'
value: ${{ steps.path-name.outputs.symbols }}
@@ -61,6 +67,15 @@ runs:
path: bundles
if: steps.download-bundles.outcome == 'failure'
- name: 'Download static bundles artifact'
id: download-static-bundles
uses: actions/download-artifact@v4
with:
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}
path: bundles
continue-on-error: true
if: ${{ inputs.static-suffix == '-static' }}
- name: 'Unpack bundles'
run: |
if [[ -e bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}.zip ]]; then
@@ -75,6 +90,20 @@ runs:
tar -xf bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz -C bundles/jdk
fi
if [[ '${{ inputs.static-suffix }}' == '-static' ]]; then
if [[ -e bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.zip ]]; then
echo 'Unpacking static jdk bundle...'
mkdir -p bundles/static-jdk
unzip -q bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.zip -d bundles/static-jdk
fi
if [[ -e bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.tar.gz ]]; then
echo 'Unpacking static jdk bundle...'
mkdir -p bundles/static-jdk
tar -xf bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.tar.gz -C bundles/static-jdk
fi
fi
if [[ -e bundles/symbols-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz ]]; then
echo 'Unpacking symbols bundle...'
mkdir -p bundles/symbols
@@ -106,4 +135,12 @@ runs:
echo "jdk=$jdk_dir" >> $GITHUB_OUTPUT
echo "symbols=$symbols_dir" >> $GITHUB_OUTPUT
echo "tests=$tests_dir" >> $GITHUB_OUTPUT
if [[ '${{ inputs.static-suffix }}' == '-static' ]]; then
static_jdk_dir="$GITHUB_WORKSPACE/$(dirname $(find bundles/static-jdk -name bin -type d))"
if [[ '${{ runner.os }}' == 'Windows' ]]; then
static_jdk_dir="$(cygpath $static_jdk_dir)"
fi
echo "static_jdk=$static_jdk_dir" >> $GITHUB_OUTPUT
fi
shell: bash

View File

@@ -35,6 +35,9 @@ inputs:
bundle-suffix:
description: 'Bundle name suffix, possibly empty'
required: false
static-suffix:
description: 'Static JDK bundle name suffix, possibly empty'
required: false
runs:
using: composite
@@ -46,6 +49,8 @@ runs:
# Rename bundles to consistent names
jdk_bundle_zip="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
jdk_bundle_tar_gz="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
static_jdk_bundle_zip="$(ls build/*/bundles/static-jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
static_jdk_bundle_tar_gz="$(ls build/*/bundles/static-jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
symbols_bundle="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}-symbols.tar.gz 2> /dev/null || true)"
tests_bundle="$(ls build/*/bundles/jdk-*_bin-tests${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
static_libs_bundle="$(ls build/*/bundles/jdk-*_bin-static-libs${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
@@ -58,6 +63,12 @@ runs:
if [[ "$jdk_bundle_tar_gz" != "" ]]; then
mv "$jdk_bundle_tar_gz" "bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
fi
if [[ "$static_jdk_bundle_zip" != "" ]]; then
mv "$static_jdk_bundle_zip" "bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.zip"
fi
if [[ "$static_jdk_bundle_tar_gz" != "" ]]; then
mv "$static_jdk_bundle_tar_gz" "bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.tar.gz"
fi
if [[ "$symbols_bundle" != "" ]]; then
mv "$symbols_bundle" "bundles/symbols-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
fi
@@ -68,7 +79,7 @@ runs:
mv "$static_libs_bundle" "bundles/static-libs-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
fi
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$symbols_bundle$tests_bundle$static_libs_bundle" != "" ]]; then
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$static_jdk_bundle_zip$static_jdk_bundle_tar_gz$symbols_bundle$tests_bundle$static_libs_bundle" != "" ]]; then
echo 'bundles-found=true' >> $GITHUB_OUTPUT
else
echo 'bundles-found=false' >> $GITHUB_OUTPUT
@@ -78,7 +89,7 @@ runs:
- name: 'Upload bundles artifact'
uses: actions/upload-artifact@v4
with:
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.bundle-suffix }}
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}${{ inputs.bundle-suffix }}
path: bundles
retention-days: 1
if: steps.bundles.outputs.bundles-found == 'true'

View File

@@ -64,6 +64,9 @@ on:
bundle-suffix:
required: false
type: string
static-suffix:
required: false
type: string
jobs:
build-linux:
@@ -143,3 +146,4 @@ jobs:
platform: ${{ inputs.platform }}
debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
bundle-suffix: ${{ inputs.bundle-suffix }}
static-suffix: ${{ inputs.static-suffix }}

View File

@@ -63,7 +63,7 @@ env:
jobs:
build-windows:
name: build
runs-on: windows-2019
runs-on: windows-2025
defaults:
run:
shell: bash
@@ -102,7 +102,7 @@ jobs:
id: toolchain-check
run: |
set +e
'/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/vc/auxiliary/build/vcvars64.bat' -vcvars_ver=${{ inputs.msvc-toolset-version }}
'/c/Program Files/Microsoft Visual Studio/2022/Enterprise/vc/auxiliary/build/vcvars64.bat' -vcvars_ver=${{ inputs.msvc-toolset-version }}
if [ $? -eq 0 ]; then
echo "Toolchain is already installed"
echo "toolchain-installed=true" >> $GITHUB_OUTPUT
@@ -115,7 +115,7 @@ jobs:
run: |
# Run Visual Studio Installer
'/c/Program Files (x86)/Microsoft Visual Studio/Installer/vs_installer.exe' \
modify --quiet --installPath 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise' \
modify --quiet --installPath 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise' \
--add Microsoft.VisualStudio.Component.VC.${{ inputs.msvc-toolset-version }}.${{ inputs.msvc-toolset-architecture }}
if: steps.toolchain-check.outputs.toolchain-installed != 'true'

View File

@@ -231,16 +231,14 @@ jobs:
uses: ./.github/workflows/build-linux.yml
with:
platform: linux-x64
make-target: 'static-jdk-image'
make-target: 'static-jdk-bundles'
# 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"
static-suffix: "-static"
if: needs.prepare.outputs.linux-x64 == 'true'
build-linux-x64-static-libs:
@@ -312,7 +310,7 @@ jobs:
uses: ./.github/workflows/build-windows.yml
with:
platform: windows-x64
msvc-toolset-version: '14.29'
msvc-toolset-version: '14.43'
msvc-toolset-architecture: 'x86.x64'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -324,7 +322,7 @@ jobs:
uses: ./.github/workflows/build-windows.yml
with:
platform: windows-aarch64
msvc-toolset-version: '14.29'
msvc-toolset-version: '14.43'
msvc-toolset-architecture: 'arm64'
make-target: 'hotspot'
extra-conf-options: '--openjdk-target=aarch64-unknown-cygwin'
@@ -361,6 +359,19 @@ jobs:
platform: linux-x64
bootjdk-platform: linux-x64
runs-on: ubuntu-22.04
debug-suffix: -debug
test-linux-x64-static:
name: linux-x64-static
needs:
- build-linux-x64
- build-linux-x64-static
uses: ./.github/workflows/test.yml
with:
platform: linux-x64
bootjdk-platform: linux-x64
runs-on: ubuntu-22.04
static-suffix: "-static"
test-macos-aarch64:
name: macos-aarch64
@@ -372,6 +383,7 @@ jobs:
bootjdk-platform: macos-aarch64
runs-on: macos-14
xcode-toolset-version: '15.4'
debug-suffix: -debug
test-windows-x64:
name: windows-x64
@@ -381,4 +393,5 @@ jobs:
with:
platform: windows-x64
bootjdk-platform: windows-x64
runs-on: windows-2019
runs-on: windows-2025
debug-suffix: -debug

View File

@@ -40,6 +40,12 @@ on:
xcode-toolset-version:
required: false
type: string
debug-suffix:
required: false
type: string
static-suffix:
required: false
type: string
env:
# These are needed to make the MSYS2 bash work properly
@@ -86,35 +92,35 @@ jobs:
- test-name: 'hs/tier1 common'
test-suite: 'test/hotspot/jtreg/:tier1_common'
debug-suffix: -debug
debug-suffix: ${{ inputs.debug-suffix }}
- test-name: 'hs/tier1 compiler part 1'
test-suite: 'test/hotspot/jtreg/:tier1_compiler_1'
debug-suffix: -debug
debug-suffix: ${{ inputs.debug-suffix }}
- test-name: 'hs/tier1 compiler part 2'
test-suite: 'test/hotspot/jtreg/:tier1_compiler_2'
debug-suffix: -debug
debug-suffix: ${{ inputs.debug-suffix }}
- test-name: 'hs/tier1 compiler part 3'
test-suite: 'test/hotspot/jtreg/:tier1_compiler_3'
debug-suffix: -debug
debug-suffix: ${{ inputs.debug-suffix }}
- test-name: 'hs/tier1 gc'
test-suite: 'test/hotspot/jtreg/:tier1_gc'
debug-suffix: -debug
debug-suffix: ${{ inputs.debug-suffix }}
- test-name: 'hs/tier1 runtime'
test-suite: 'test/hotspot/jtreg/:tier1_runtime'
debug-suffix: -debug
debug-suffix: ${{ inputs.debug-suffix }}
- test-name: 'hs/tier1 serviceability'
test-suite: 'test/hotspot/jtreg/:tier1_serviceability'
debug-suffix: -debug
debug-suffix: ${{ inputs.debug-suffix }}
- test-name: 'lib-test/tier1'
test-suite: 'test/lib-test/:tier1'
debug-suffix: -debug
debug-suffix: ${{ inputs.debug-suffix }}
steps:
- name: 'Checkout the JDK source'
@@ -140,6 +146,7 @@ jobs:
with:
platform: ${{ inputs.platform }}
debug-suffix: ${{ matrix.debug-suffix }}
static-suffix: ${{ inputs.static-suffix }}
- name: 'Install dependencies'
run: |
@@ -160,6 +167,21 @@ jobs:
else
echo "value=$PATH" >> $GITHUB_OUTPUT
fi
if [[ '${{ inputs.static-suffix }}' == '-static' ]]; then
echo "static-hotspot-problemlist-path=`pwd`/test/hotspot/jtreg/ProblemList-StaticJdk.txt" >> $GITHUB_OUTPUT
echo "static-jdk-problemlist-path=`pwd`/test/jdk/ProblemList-StaticJdk.txt" >> $GITHUB_OUTPUT
echo "static-langtools-problemlist-path=`pwd`/test/langtools/ProblemList-StaticJdk.txt" >> $GITHUB_OUTPUT
echo "static-lib-test-problemlist-path=`pwd`/test/lib-test/ProblemList-StaticJdk.txt" >> $GITHUB_OUTPUT
fi
- name: 'Set Extra Options'
id: extra-options
run: |
if [[ '${{ inputs.static-suffix }}' == '-static' ]]; then
echo "test-jdk=JDK_UNDER_TEST=${{ steps.bundles.outputs.static-jdk-path }}" >> $GITHUB_OUTPUT
echo "compile-jdk=JDK_FOR_COMPILE=${{ steps.bundles.outputs.jdk-path }}" >> $GITHUB_OUTPUT
echo "extra-problem-lists=EXTRA_PROBLEM_LISTS=${{ steps.path.outputs.static-hotspot-problemlist-path }}%20${{ steps.path.outputs.static-jdk-problemlist-path }}%20${{ steps.path.outputs.static-langtools-problemlist-path }}%20${{ steps.path.outputs.static-lib-test-problemlist-path }}" >> $GITHUB_OUTPUT
fi
- name: 'Run tests'
id: run-tests
@@ -171,7 +193,9 @@ jobs:
JDK_IMAGE_DIR=${{ steps.bundles.outputs.jdk-path }}
SYMBOLS_IMAGE_DIR=${{ steps.bundles.outputs.symbols-path }}
TEST_IMAGE_DIR=${{ steps.bundles.outputs.tests-path }}
JTREG='JAVA_OPTIONS=-XX:-CreateCoredumpOnCrash;VERBOSE=fail,error,time;KEYWORDS=!headful'
${{ steps.extra-options.outputs.test-jdk }}
${{ steps.extra-options.outputs.compile-jdk }}
JTREG='JAVA_OPTIONS=-XX:-CreateCoredumpOnCrash;VERBOSE=fail,error,time;KEYWORDS=!headful;${{ steps.extra-options.outputs.extra-problem-lists }}'
&& bash ./.github/scripts/gen-test-summary.sh "$GITHUB_STEP_SUMMARY" "$GITHUB_OUTPUT"
env:
PATH: ${{ steps.path.outputs.value }}
@@ -204,7 +228,7 @@ jobs:
echo '::warning ::Missing test-support directory'
fi
artifact_name="results-${{ inputs.platform }}-$(echo ${{ matrix.test-name }} | tr '/ ' '__')"
artifact_name="results-${{ inputs.platform }}-$(echo ${{ matrix.test-name }}${{ inputs.static-suffix }} | tr '/ ' '__')"
echo "artifact-name=$artifact_name" >> $GITHUB_OUTPUT
if: always()

2
.gitignore vendored
View File

@@ -23,3 +23,5 @@ NashornProfile.txt
/.gdbinit
/.lldbinit
**/core.[0-9]*
*.rej
*.orig

View File

@@ -1,3 +1,3 @@
# Contributing to the JDK
Please see the [OpenJDK Developers Guide](https://openjdk.org/guide/).
Please see the [OpenJDK Developers' Guide](https://openjdk.org/guide/).

View File

@@ -282,9 +282,34 @@ possible, use an SSD. The build process is very disk intensive, and
having slow disk access will significantly increase build times. If you
need to use a network share for the source code, see below for
suggestions on how to keep the build artifacts on a local disk.</p></li>
<li><p>On Windows, if using <a href="#cygwin">Cygwin</a>, extra care
must be taken to make sure the environment is consistent. It is
recommended that you follow this procedure:</p>
<li><p>UTF-8 support is needed to compile the JDK. On Unix systems, this
typically means that the <code>C.UTF-8</code> or
<code>en_US.UTF-8</code> locale needs to be available. For Windows
users, please see the section on <a href="#locale-requirements">Locale
Requirements</a> below.</p></li>
<li><p>On Windows, extra care must be taken to have a smooth building
experience:</p>
<ul>
<li><p>Make sure that all relevant paths have short names. Short names
are used by the build system to create space-free alternative paths.
Short name creation is enabled per volume. The default setting can be
checked with the command: <code>fsutil 8dot3name query</code>. If short
name creation was turned off when a directory was created, it will not
have a short name. Whether a short name exists can be checked by running
<code>dir /X</code> in the containing directory (in cmd.exe). If a short
path is present you should see something like 'ASDF~1' being displayed
in one of the columns of the ouput. If a directory is missing a short
name, the safest way to get one is to enable short names for that
particular volume with
<code>fsutil 8dot3name set &lt;drive letter&gt;: 0</code> (note that
you need to run as administrator for this), and then re-create the
particular directory. A short name should be generated automatically
then. Another option is to manually assign a short name to the directory
using
<code>fsutil file setShortName &lt;path&gt; &lt;short name&gt;</code>.</p></li>
<li><p>If using <a href="#cygwin">Cygwin</a>, you must make sure the
file permissions and attributes between Windows and Cygwin are
consistent. It is recommended that you follow this procedure:</p>
<ul>
<li><p>Create the directory that is going to contain the top directory
of the JDK clone by using the <code>mkdir</code> command in the Cygwin
@@ -294,6 +319,9 @@ it's children will inherit those attributes.</p></li>
<li><p>Do not put the JDK clone in a path under your Cygwin home
directory. This is especially important if your user name contains
spaces and/or mixed upper and lower case letters.</p></li>
</ul>
<p>Failure to follow these procedures might result in hard-to-debug
build problems.</p></li>
<li><p>You need to install a git client. You have two choices, Cygwin
git or Git for Windows. Unfortunately there are pros and cons with each
choice.</p>
@@ -311,9 +339,7 @@ It does work well with the Skara CLI tooling, however. To alleviate the
line ending problems, make sure you set <code>core.autocrlf</code> to
<code>false</code> (this is asked during installation).</p></li>
</ul></li>
</ul>
<p>Failure to follow this procedure might result in hard-to-debug build
problems.</p></li>
</ul></li>
</ul>
<h2 id="build-hardware-requirements">Build Hardware Requirements</h2>
<p>The JDK is a massive project, and require machines ranging from
@@ -376,7 +402,7 @@ to date at the time of writing.</p>
</tr>
<tr class="odd">
<td>macOS</td>
<td>macOS 13.x (Ventura)</td>
<td>macOS 14.x</td>
</tr>
<tr class="even">
<td>Windows</td>
@@ -513,8 +539,8 @@ this makes it difficult for a project such as the JDK to keep pace with
a continuously updated machine running macOS. See the section on <a
href="#apple-xcode">Apple Xcode</a> on some strategies to deal with
this.</p>
<p>It is recommended that you use at least macOS 13 (Ventura) and Xcode
14, but earlier versions may also work.</p>
<p>It is recommended that you use at least macOS 14 and Xcode 15.4, but
earlier versions may also work.</p>
<p>The standard macOS environment contains the basic tooling needed to
build, but for external libraries a package manager is recommended. The
JDK uses <a href="https://brew.sh/">homebrew</a> in the examples, but
@@ -586,15 +612,15 @@ to compile successfully without issues.</p>
<tbody>
<tr class="odd">
<td>Linux</td>
<td>gcc 13.2.0</td>
<td>gcc 14.2.0</td>
</tr>
<tr class="even">
<td>macOS</td>
<td>Apple Xcode 14.3.1 (using clang 14.0.3)</td>
<td>Apple Xcode 15.4 (using clang 15.0.0)</td>
</tr>
<tr class="odd">
<td>Windows</td>
<td>Microsoft Visual Studio 2022 version 17.6.5</td>
<td>Microsoft Visual Studio 2022 version 17.13.2</td>
</tr>
</tbody>
</table>
@@ -604,7 +630,7 @@ standard for C, and C++14 for C++.</p>
<p>The minimum accepted version of gcc is 10.0. Older versions will not
be accepted by <code>configure</code>.</p>
<p>The JDK is currently known to compile successfully with gcc version
13.2 or newer.</p>
14.2 or newer.</p>
<p>In general, any version between these two should be usable.</p>
<h3 id="clang">clang</h3>
<p>The minimum accepted version of clang is 13. Older versions will not
@@ -1722,6 +1748,20 @@ packages in the sysroot, configure the build with
--with-devkit=$DEVKIT \
--with-sysroot=$SYSROOT</code></pre>
<p>and run <code>make</code> normally.</p>
<h4 id="building-for-windows-aarch64">Building for Windows AArch64</h4>
<p>The Visual Studio Build Tools can be used for building the JDK
without a full Visual Studio installation. To set up the Visual Studio
2022 Build Tools on a Windows AArch64 machine for a native build, launch
the installer as follows in a Windows command prompt:</p>
<pre><code>vs_buildtools.exe --quiet --wait --norestart --nocache ^
--installPath &quot;%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools&quot; ^
--add Microsoft.VisualStudio.Component.VC.CoreBuildTools ^
--add Microsoft.VisualStudio.Component.VC.Tools.ARM64 ^
--add Microsoft.VisualStudio.Component.Windows11SDK.22621</code></pre>
<p>To generate Windows AArch64 builds using Cygwin on a Windows x64
machine, you must set the proper target platform by adding
<code>--openjdk-target=aarch64-unknown-cygwin</code> to your configure
command line.</p>
<h2 id="build-performance">Build Performance</h2>
<p>Building the JDK requires a lot of horsepower. Some of the build
tools can be adjusted to utilize more or less of resources such as

View File

@@ -83,19 +83,44 @@ on where and how to check out the source code.
for the source code, see below for suggestions on how to keep the build
artifacts on a local disk.
* On Windows, if using [Cygwin](#cygwin), extra care must be taken to make sure
the environment is consistent. It is recommended that you follow this
procedure:
* UTF-8 support is needed to compile the JDK. On Unix systems, this typically
means that the `C.UTF-8` or `en_US.UTF-8` locale needs to be available. For
Windows users, please see the section on [Locale
Requirements](#locale-requirements) below.
* Create the directory that is going to contain the top directory of the JDK
clone by using the `mkdir` command in the Cygwin bash shell. That is, do
*not* create it using Windows Explorer. This will ensure that it will have
proper Cygwin attributes, and that it's children will inherit those
attributes.
* On Windows, extra care must be taken to have a smooth building experience:
* Do not put the JDK clone in a path under your Cygwin home directory. This
is especially important if your user name contains spaces and/or mixed
upper and lower case letters.
* Make sure that all relevant paths have short names. Short names are used by
the build system to create space-free alternative paths. Short name
creation is enabled per volume. The default setting can be checked with the
command: `fsutil 8dot3name query`. If short name creation was turned off
when a directory was created, it will not have a short name. Whether a
short name exists can be checked by running `dir /X` in the containing
directory (in cmd.exe). If a short path is present you should see something
like 'ASDF~1' being displayed in one of the columns of the ouput. If a
directory is missing a short name, the safest way to get one is to enable
short names for that particular volume with `fsutil 8dot3name set <drive
letter>: 0` (note that you need to run as administrator for this), and then
re-create the particular directory. A short name should be generated
automatically then. Another option is to manually assign a short name to
the directory using `fsutil file setShortName <path> <short name>`.
* If using [Cygwin](#cygwin), you must make sure the file permissions and
attributes between Windows and Cygwin are consistent. It is recommended
that you follow this procedure:
* Create the directory that is going to contain the top directory of the
JDK clone by using the `mkdir` command in the Cygwin bash shell. That is,
do *not* create it using Windows Explorer. This will ensure that it will
have proper Cygwin attributes, and that it's children will inherit those
attributes.
* Do not put the JDK clone in a path under your Cygwin home directory. This
is especially important if your user name contains spaces and/or mixed
upper and lower case letters.
Failure to follow these procedures might result in hard-to-debug build
problems.
* You need to install a git client. You have two choices, Cygwin git or Git
for Windows. Unfortunately there are pros and cons with each choice.
@@ -113,9 +138,6 @@ on where and how to check out the source code.
make sure you set `core.autocrlf` to `false` (this is asked during
installation).
Failure to follow this procedure might result in hard-to-debug build
problems.
## Build Hardware Requirements
The JDK is a massive project, and require machines ranging from decent to
@@ -175,7 +197,7 @@ time of writing.
| ----------------- | ---------------------------------- |
| Linux/x64 | Oracle Enterprise Linux 6.4 / 8.x |
| Linux/aarch64 | Oracle Enterprise Linux 7.6 / 8.x |
| macOS | macOS 13.x (Ventura) |
| macOS | macOS 14.x |
| Windows | Windows Server 2016 |
The double version numbers for Linux are due to the hybrid model used at
@@ -327,7 +349,7 @@ difficult for a project such as the JDK to keep pace with a continuously
updated machine running macOS. See the section on [Apple Xcode](#apple-xcode)
on some strategies to deal with this.
It is recommended that you use at least macOS 13 (Ventura) and Xcode 14, but
It is recommended that you use at least macOS 14 and Xcode 15.4, but
earlier versions may also work.
The standard macOS environment contains the basic tooling needed to build, but
@@ -390,11 +412,11 @@ possible to compile the JDK with both older and newer versions, but the closer
you stay to this list, the more likely you are to compile successfully without
issues.
| Operating system | Toolchain version |
| ------------------ | ------------------------------------------- |
| Linux | gcc 13.2.0 |
| macOS | Apple Xcode 14.3.1 (using clang 14.0.3) |
| Windows | Microsoft Visual Studio 2022 version 17.6.5 |
| Operating system | Toolchain version |
| ------------------ | -------------------------------------------- |
| Linux | gcc 14.2.0 |
| macOS | Apple Xcode 15.4 (using clang 15.0.0) |
| Windows | Microsoft Visual Studio 2022 version 17.13.2 |
All compilers are expected to be able to handle the C11 language standard for
C, and C++14 for C++.
@@ -404,7 +426,7 @@ C, and C++14 for C++.
The minimum accepted version of gcc is 10.0. Older versions will not be accepted
by `configure`.
The JDK is currently known to compile successfully with gcc version 13.2 or
The JDK is currently known to compile successfully with gcc version 14.2 or
newer.
In general, any version between these two should be usable.
@@ -1457,6 +1479,24 @@ sh ./configure --with-jvm-variants=server \
and run `make` normally.
#### Building for Windows AArch64
The Visual Studio Build Tools can be used for building the JDK without a full
Visual Studio installation. To set up the Visual Studio 2022 Build Tools on a
Windows AArch64 machine for a native build, launch the installer as follows
in a Windows command prompt:
```
vs_buildtools.exe --quiet --wait --norestart --nocache ^
--installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools" ^
--add Microsoft.VisualStudio.Component.VC.CoreBuildTools ^
--add Microsoft.VisualStudio.Component.VC.Tools.ARM64 ^
--add Microsoft.VisualStudio.Component.Windows11SDK.22621
```
To generate Windows AArch64 builds using Cygwin on a Windows x64 machine,
you must set the proper target platform by adding
`--openjdk-target=aarch64-unknown-cygwin` to your configure command line.
## Build Performance
Building the JDK requires a lot of horsepower. Some of the build tools can be

View File

@@ -32,11 +32,12 @@
<ul>
<li><a href="#introduction" id="toc-introduction">Introduction</a>
<ul>
<li><a href="#changing-this-document"
id="toc-changing-this-document">Changing this Document</a></li>
<li><a href="#why-care-about-style" id="toc-why-care-about-style">Why
Care About Style?</a></li>
<li><a href="#counterexamples-and-updates"
id="toc-counterexamples-and-updates">Counterexamples and
Updates</a></li>
<li><a href="#counterexamples"
id="toc-counterexamples">Counterexamples</a></li>
</ul></li>
<li><a href="#structure-and-formatting"
id="toc-structure-and-formatting">Structure and Formatting</a>
@@ -99,6 +100,21 @@ writing HotSpot code. Following these will help new code fit in with
existing HotSpot code, making it easier to read and maintain. Failure to
follow these guidelines may lead to discussion during code reviews, if
not outright rejection of a change.</p>
<h3 id="changing-this-document">Changing this Document</h3>
<p>Proposed changes should be discussed on the <a
href="mailto:hotspot-dev@openjdk.org">HotSpot Developers</a> mailing
list. Changes are likely to be cautious and incremental, since HotSpot
coders have been using these guidelines for years.</p>
<p>Substantive changes are approved by <a
href="https://www.rfc-editor.org/rfc/rfc7282.html">rough consensus</a>
of the <a href="https://openjdk.org/census#hotspot">HotSpot Group</a>
Members. The Group Lead determines whether consensus has been
reached.</p>
<p>Editorial changes (changes that only affect the description of
HotSpot style, not its substance) do not require the full consensus
gathering process. The normal HotSpot pull request process may be used
for editorial changes, with the additional requirement that the
requisite reviewers are also HotSpot Group Members.</p>
<h3 id="why-care-about-style">Why Care About Style?</h3>
<p>Some programmers seem to have lexers and even C preprocessors
installed directly behind their eyeballs. The rest of us require code
@@ -124,7 +140,7 @@ conforms locally to its own peculiar conventions, it is not worth
reformatting the whole thing. Also consider separating changes that make
extensive stylistic updates from those which make functional
changes.</p>
<h3 id="counterexamples-and-updates">Counterexamples and Updates</h3>
<h3 id="counterexamples">Counterexamples</h3>
<p>Many of the guidelines mentioned here have (sometimes widespread)
counterexamples in the HotSpot code base. Finding a counterexample is
not sufficient justification for new code to follow the counterexample
@@ -137,20 +153,6 @@ bring it up for discussion and possible change. The architectural rule,
of course, is "When in Rome do as the Romans". Sometimes in the suburbs
of Rome the rules are a little different; these differences can be
pointed out here.</p>
<p>Proposed changes should be discussed on the <a
href="mailto:hotspot-dev@openjdk.org">HotSpot Developers</a> mailing
list. Changes are likely to be cautious and incremental, since HotSpot
coders have been using these guidelines for years.</p>
<p>Substantive changes are approved by <a
href="https://www.rfc-editor.org/rfc/rfc7282.html">rough consensus</a>
of the <a href="https://openjdk.org/census#hotspot">HotSpot Group</a>
Members. The Group Lead determines whether consensus has been
reached.</p>
<p>Editorial changes (changes that only affect the description of
HotSpot style, not its substance) do not require the full consensus
gathering process. The normal HotSpot pull request process may be used
for editorial changes, with the additional requirement that the
requisite reviewers are also HotSpot Group Members.</p>
<h2 id="structure-and-formatting">Structure and Formatting</h2>
<h3 id="factoring-and-class-design">Factoring and Class Design</h3>
<ul>
@@ -207,27 +209,34 @@ the simple "getter".</p></li>
<ul>
<li><p>All source files must have a globally unique basename. The build
system depends on this uniqueness.</p></li>
<li><p>Keep the include lines within a section alphabetically sorted.</p></li>
<li><p>Put conditional inclusions (`#if ...`) at the end of the section of HotSpot
include lines. This also applies to macro-expanded includes of platform
dependent files.</p></li>
<li><p>Put system includes in a section after the HotSpot include lines with a blank
line separating the two sections.</p></li>
<li><p>Keep the include lines within a section alphabetically sorted by
their lowercase value. If an include must be out of order for
correctness, suffix with it a comment such as
<code>// do not reorder</code>. Source code processing tools can also
use this hint.</p></li>
<li><p>Put conditional inclusions (<code>#if ...</code>) at the end of
the section of HotSpot include lines. This also applies to
macro-expanded includes of platform dependent files.</p></li>
<li><p>Put system includes in a section after the HotSpot include lines
with a blank line separating the two sections.</p></li>
<li><p>Do not put non-trivial function implementations in .hpp files. If
the implementation depends on other .hpp files, put it in a .cpp or
a .inline.hpp file.</p></li>
the implementation depends on other .hpp files, put it in a .cpp or a
.inline.hpp file.</p></li>
<li><p>.inline.hpp files should only be included in .cpp or .inline.hpp
files.</p></li>
<li><p>All .inline.hpp files should include their corresponding .hpp file as
the first include line with a blank line separating it from the rest of the
include lines. 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>Do not include a .hpp file if the corresponding .inline.hpp file is included.</p></li>
<li><p>Use include guards for .hpp and .inline.hpp files. The name of the defined
guard should be derived from the full search path of the file relative to the
hotspot source directory. The guard should be all upper case with all paths
separators and periods replaced by underscores.</p></li>
<li><p>All .inline.hpp files should include their corresponding .hpp
file as the first include line with a blank line separating it from the
rest of the include lines. 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>Do not include a .hpp file if the corresponding .inline.hpp file
is included.</p></li>
<li><p>Use include guards for .hpp and .inline.hpp files. The name of
the defined guard should be derived from the full search path of the
file relative to the hotspot source directory. The guard should be all
upper case with all paths separators and periods replaced by
underscores.</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

View File

@@ -8,6 +8,24 @@ HotSpot code, making it easier to read and maintain. Failure to
follow these guidelines may lead to discussion during code reviews, if
not outright rejection of a change.
### Changing this Document
Proposed changes should be discussed on the
[HotSpot Developers](mailto:hotspot-dev@openjdk.org) mailing
list. Changes are likely to be cautious and incremental, since HotSpot
coders have been using these guidelines for years.
Substantive changes are approved by
[rough consensus](https://www.rfc-editor.org/rfc/rfc7282.html) of
the [HotSpot Group](https://openjdk.org/census#hotspot) Members.
The Group Lead determines whether consensus has been reached.
Editorial changes (changes that only affect the description of HotSpot
style, not its substance) do not require the full consensus gathering
process. The normal HotSpot pull request process may be used for
editorial changes, with the additional requirement that the requisite
reviewers are also HotSpot Group Members.
### Why Care About Style?
Some programmers seem to have lexers and even C preprocessors
@@ -38,7 +56,7 @@ reformatting the whole thing. Also consider separating changes that
make extensive stylistic updates from those which make functional
changes.
### Counterexamples and Updates
### Counterexamples
Many of the guidelines mentioned here have (sometimes widespread)
counterexamples in the HotSpot code base. Finding a counterexample is
@@ -54,22 +72,6 @@ rule, of course, is "When in Rome do as the Romans". Sometimes in the
suburbs of Rome the rules are a little different; these differences
can be pointed out here.
Proposed changes should be discussed on the
[HotSpot Developers](mailto:hotspot-dev@openjdk.org) mailing
list. Changes are likely to be cautious and incremental, since HotSpot
coders have been using these guidelines for years.
Substantive changes are approved by
[rough consensus](https://www.rfc-editor.org/rfc/rfc7282.html) of
the [HotSpot Group](https://openjdk.org/census#hotspot) Members.
The Group Lead determines whether consensus has been reached.
Editorial changes (changes that only affect the description of HotSpot
style, not its substance) do not require the full consensus gathering
process. The normal HotSpot pull request process may be used for
editorial changes, with the additional requirement that the requisite
reviewers are also HotSpot Group Members.
## Structure and Formatting
### Factoring and Class Design
@@ -138,7 +140,10 @@ change should be done with a "setter" accessor matched to the simple
* All source files must have a globally unique basename. The build
system depends on this uniqueness.
* Keep the include lines within a section alphabetically sorted.
* Keep the include lines within a section alphabetically sorted by their
lowercase value. If an include must be out of order for correctness,
suffix with it a comment such as `// do not reorder`. Source code
processing tools can also use this hint.
* Put conditional inclusions (`#if ...`) at the end of the section of HotSpot
include lines. This also applies to macro-expanded includes of platform

View File

@@ -189,7 +189,7 @@ wants to find) and design tests using those models.</p>
<p>Prefer having checks inside test code.</p>
<p>Not only does having test logic outside, e.g. verification method,
depending on asserts in product code contradict with several items above
but also decreases tests readability and stability. It is much easier
but also decreases test's readability and stability. It is much easier
to understand that a test is testing when all testing logic is located
inside a test or nearby in shared test libraries. As a rule of thumb,
the closer a check to a test, the better.</p>
@@ -198,7 +198,7 @@ the closer a check to a test, the better.</p>
<p>Prefer <code>EXPECT</code> over <code>ASSERT</code> if possible.</p>
<p>This is related to the <a href="#informativeness">informativeness</a>
property of tests, information for other checks can help to better
localize a defects root-cause. One should use <code>ASSERT</code> if it
localize a defect's root-cause. One should use <code>ASSERT</code> if it
is impossible to continue test execution or if it does not make much
sense. Later in the text, <code>EXPECT</code> forms will be used to
refer to both <code>ASSERT/EXPECT</code>.</p>
@@ -235,7 +235,7 @@ which checks that the absolute value of the difference between
<code>eps</code>.</p>
<h3 id="c-string-comparison">C string comparison</h3>
<p>Use string special macros for C strings comparisons.</p>
<p><code>EXPECT_EQ</code> just compares pointers values, which is
<p><code>EXPECT_EQ</code> just compares pointers' values, which is
hardly what one wants comparing C strings. GoogleTest provides
<code>EXPECT_STREQ</code> and <code>EXPECT_STRNE</code> macros to
compare C string contents. There are also case-insensitive versions
@@ -293,7 +293,7 @@ subsystem, etc.</p>
<p>This naming scheme helps to find tests, filter them and simplifies
test failure analysis. For example, class <code>Foo</code> - test group
<code>Foo</code>, compiler logging subsystem - test group
<code>CompilerLogging</code>, G1 GC test group <code>G1GC</code>, and
<code>CompilerLogging</code>, G1 GC - test group <code>G1GC</code>, and
so forth.</p>
<h3 id="filename">Filename</h3>
<p>A test file must have <code>test_</code> prefix and <code>.cpp</code>
@@ -345,7 +345,7 @@ name starts or ends with an underscore are enough to be safe.</p>
<h3 id="friend-classes">Friend classes</h3>
<p>All test purpose friends should have either <code>Test</code> or
<code>Testable</code> suffix.</p>
<p>It greatly simplifies understanding of friendships purpose and
<p>It greatly simplifies understanding of friendship's purpose and
allows statically check that private members are not exposed
unexpectedly. Having <code>FooTest</code> as a friend of
<code>Foo</code> without any comments will be understood as a necessary
@@ -435,7 +435,7 @@ inapplicable tests.</p>
<h3 id="flag-restoring">Flag restoring</h3>
<p>Restore changed flags.</p>
<p>It is quite common for tests to configure JVM in a certain way
changing flags values. GoogleTest provides two ways to set up
changing flags' values. GoogleTest provides two ways to set up
environment before a test and restore it afterward: using either
constructor and destructor or <code>SetUp</code> and
<code>TearDown</code> functions. Both ways require to use a test fixture
@@ -444,7 +444,7 @@ class, which sometimes is too wordy. The simpler facilities like
be used in such cases to restore/set values.</p>
<p>Caveats:</p>
<ul>
<li><p>Changing a flags value could break the invariants between flags'
<li><p>Changing a flag's value could break the invariants between flags'
values and hence could lead to unexpected/unsupported JVM
state.</p></li>
<li><p><code>FLAG_SET_*</code> macros can change more than one flag (in

View File

@@ -106,7 +106,7 @@ Prefer having checks inside test code.
Not only does having test logic outside, e.g. verification method,
depending on asserts in product code contradict with several items
above but also decreases tests readability and stability. It is much
above but also decreases test's readability and stability. It is much
easier to understand that a test is testing when all testing logic is
located inside a test or nearby in shared test libraries. As a rule of
thumb, the closer a check to a test, the better.
@@ -119,7 +119,7 @@ Prefer `EXPECT` over `ASSERT` if possible.
This is related to the [informativeness](#informativeness) property of
tests, information for other checks can help to better localize a
defects root-cause. One should use `ASSERT` if it is impossible to
defect's root-cause. One should use `ASSERT` if it is impossible to
continue test execution or if it does not make much sense. Later in
the text, `EXPECT` forms will be used to refer to both
`ASSERT/EXPECT`.
@@ -160,7 +160,7 @@ value of the difference between `v1` and `v2` is not greater than `eps`.
Use string special macros for C strings comparisons.
`EXPECT_EQ` just compares pointers values, which is hardly what one
`EXPECT_EQ` just compares pointers' values, which is hardly what one
wants comparing C strings. GoogleTest provides `EXPECT_STREQ` and
`EXPECT_STRNE` macros to compare C string contents. There are also
case-insensitive versions `EXPECT_STRCASEEQ`, `EXPECT_STRCASENE`.
@@ -226,7 +226,7 @@ subsystem, etc.
This naming scheme helps to find tests, filter them and simplifies
test failure analysis. For example, class `Foo` - test group `Foo`,
compiler logging subsystem - test group `CompilerLogging`, G1 GC test
compiler logging subsystem - test group `CompilerLogging`, G1 GC - test
group `G1GC`, and so forth.
### Filename
@@ -287,7 +287,7 @@ Fixture classes should be named after tested classes, subsystems, etc
All test purpose friends should have either `Test` or `Testable` suffix.
It greatly simplifies understanding of friendships purpose and allows
It greatly simplifies understanding of friendship's purpose and allows
statically check that private members are not exposed unexpectedly.
Having `FooTest` as a friend of `Foo` without any comments will be
understood as a necessary evil to get testability.
@@ -397,7 +397,7 @@ and filter out inapplicable tests.
Restore changed flags.
It is quite common for tests to configure JVM in a certain way
changing flags values. GoogleTest provides two ways to set up
changing flags' values. GoogleTest provides two ways to set up
environment before a test and restore it afterward: using either
constructor and destructor or `SetUp` and `TearDown` functions. Both ways
require to use a test fixture class, which sometimes is too wordy. The
@@ -406,7 +406,7 @@ be used in such cases to restore/set values.
Caveats:
* Changing a flags value could break the invariants between flags' values and hence could lead to unexpected/unsupported JVM state.
* Changing a flag's value could break the invariants between flags' values and hence could lead to unexpected/unsupported JVM state.
* `FLAG_SET_*` macros can change more than one flag (in order to
maintain invariants) so it is hard to predict what flags will be

View File

@@ -0,0 +1,127 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Explanation of start of release changes</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
/* The extra [class] is a hack that increases specificity enough to
override a similar rule in reveal.js */
ul.task-list[class]{list-style: none;}
ul.task-list li input[type="checkbox"] {
font-size: inherit;
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<link rel="stylesheet" href="../make/data/docs-resources/resources/jdk-default.css" />
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<header id="title-block-header">
<h1 class="title">Explanation of start of release changes</h1>
</header>
<nav id="TOC" role="doc-toc">
<ul>
<li><a href="#overview" id="toc-overview">Overview</a></li>
<li><a href="#details-and-file-updates"
id="toc-details-and-file-updates">Details and file updates</a>
<ul>
<li><a href="#meta-data-files" id="toc-meta-data-files">Meta-data
files</a></li>
<li><a href="#src-files" id="toc-src-files"><code>src</code>
files</a></li>
<li><a href="#test-files" id="toc-test-files"><code>test</code>
files</a></li>
</ul></li>
</ul>
</nav>
<h2 id="overview">Overview</h2>
<p>The start of release changes, the changes that turn JDK <em>N</em>
into JDK (<em>N</em>+1), are primarily small updates to various files
along with new files to store symbol information to allow
<code>javac --release N ...</code> to run on JDK (<em>N</em>+1).</p>
<p>The updates include changes to files holding meta-data about the
release, files under the <code>src</code> directory for API and tooling
updates, and incidental updates under the <code>test</code>
directory.</p>
<h2 id="details-and-file-updates">Details and file updates</h2>
<p>As a matter of policy, there are a number of semantically distinct
concepts which get incremented separately at the start of a new
release:</p>
<ul>
<li>Feature value of <code>Runtime.version()</code></li>
<li>Highest source version modeled by
<code>javax.lang.model.SourceVersion</code></li>
<li>Highest class file format major version recognized by the
platform</li>
<li>Highest
<code>-source</code>/<code>-target</code>/<code>--release</code>
argument recognized by <code>javac</code> and related tools</li>
</ul>
<p>The expected file updates are listed below. Additional files may need
to be updated for a particular release.</p>
<h3 id="meta-data-files">Meta-data files</h3>
<ul>
<li><code>jcheck/conf</code>: update meta-data used by
<code>jcheck</code> and the Skara tooling</li>
<li><code>make/conf/version-numbers.conf</code>: update to meta-data
used in the build</li>
</ul>
<h3 id="src-files"><code>src</code> files</h3>
<ul>
<li><code>src/hotspot/share/classfile/classFileParser.cpp</code>: add a
<code>#define</code> for the new version</li>
<li><code>src/java.base/share/classes/java/lang/classfile/ClassFile.java</code>:
add a constant for the new class file format version</li>
<li><code>src/java.base/share/classes/java/lang/reflect/ClassFileFormatVersion.java</code>:
add an <code>enum</code> constant for the new class file format
version</li>
<li><code>src/java.compiler/share/classes/javax/lang/model/SourceVersion.java</code>:
add an <code>enum</code> constant for the new source version</li>
<li><code>src/java.compiler/share/classes/javax/lang/model/util/*</code>
visitors: Update <code>@SupportedSourceVersion</code> annotations to
latest value. Note this update is done in lieu of introducing another
set of visitors for each Java SE release.</li>
<li><code>src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java</code>:
add an <code>enum</code> constant for the new source version internal to
<code>javac</code></li>
<li><code>src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassFile.java</code>:
add an <code>enum</code> constant for the new class file format version
internal to <code>javac</code></li>
<li><code>src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java</code>:
add an <code>enum</code> constant for the new target version internal to
<code>javac</code></li>
<li><code>src/jdk.compiler/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java</code>
update printing processor to support the new source version</li>
<li>The symbol information for <code>--release</code> is stored as new
text files in the <code>src/jdk.compiler/share/data/symbols</code>
directory, one file per module. The README file in that directory
contains directions on how to create the files.</li>
</ul>
<h3 id="test-files"><code>test</code> files</h3>
<ul>
<li><code>test/langtools/tools/javac/api/TestGetSourceVersions.java</code>:
add new <code>SourceVersion</code> constant to test matrix.</li>
<li><code>test/langtools/tools/javac/classfiles/ClassVersionChecker.java</code>:
add new enum constant for the new class file version</li>
<li><code>test/langtools/tools/javac/lib/JavacTestingAbstractProcessor.java</code>
update annotation processor extended by <code>javac</code> tests to
cover the new source version</li>
<li><code>test/langtools/tools/javac/preview/classReaderTest/Client.nopreview.out</code>
and
<code>test/langtools/tools/javac/preview/classReaderTest/Client.preview.out</code>:
update expected messages for preview errors and warnings</li>
</ul>
</body>
</html>

View File

@@ -0,0 +1,68 @@
% Explanation of start of release changes
## Overview
The start of release changes, the changes that turn JDK _N_ into JDK
(_N_+1), are primarily small updates to various files along with new files to
store symbol information to allow `javac --release N ...` to run on
JDK (_N_+1).
The updates include changes to files holding meta-data about the
release, files under the `src` directory for API and tooling updates,
and incidental updates under the `test` directory.
## Details and file updates
As a matter of policy, there are a number of semantically distinct
concepts which get incremented separately at the start of a new
release:
* Feature value of `Runtime.version()`
* Highest source version modeled by `javax.lang.model.SourceVersion`
* Highest class file format major version recognized by the platform
* Highest `-source`/`-target`/`--release` argument recognized by
`javac` and related tools
The expected file updates are listed below. Additional files may need
to be updated for a particular release.
### Meta-data files
* `jcheck/conf`: update meta-data used by `jcheck` and the Skara tooling
* `make/conf/version-numbers.conf`: update to meta-data used in the build
### `src` files
* `src/hotspot/share/classfile/classFileParser.cpp`: add a `#define`
for the new version
* `src/java.base/share/classes/java/lang/classfile/ClassFile.java`:
add a constant for the new class file format version
* `src/java.base/share/classes/java/lang/reflect/ClassFileFormatVersion.java`:
add an `enum` constant for the new class file format version
* `src/java.compiler/share/classes/javax/lang/model/SourceVersion.java`:
add an `enum` constant for the new source version
* `src/java.compiler/share/classes/javax/lang/model/util/*` visitors: Update
`@SupportedSourceVersion` annotations to latest value. Note this update
is done in lieu of introducing another set of visitors for each Java
SE release.
* `src/jdk.compiler/share/classes/com/sun/tools/javac/code/Source.java`:
add an `enum` constant for the new source version internal to `javac`
* `src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassFile.java`:
add an `enum` constant for the new class file format version internal to `javac`
* `src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java`:
add an `enum` constant for the new target version internal to `javac`
* `src/jdk.compiler/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java`
update printing processor to support the new source version
* The symbol information for `--release` is stored as new text files in the
`src/jdk.compiler/share/data/symbols` directory, one file per
module. The README file in that directory contains directions on how
to create the files.
### `test` files
* `test/langtools/tools/javac/api/TestGetSourceVersions.java`: add new `SourceVersion` constant to test matrix.
* `test/langtools/tools/javac/classfiles/ClassVersionChecker.java`: add new enum constant for the new class file version
* `test/langtools/tools/javac/lib/JavacTestingAbstractProcessor.java`
update annotation processor extended by `javac` tests to cover the new source version
* `test/langtools/tools/javac/preview/classReaderTest/Client.nopreview.out` and `test/langtools/tools/javac/preview/classReaderTest/Client.preview.out`: update expected messages for preview errors and warnings

View File

@@ -72,6 +72,11 @@ id="toc-notes-for-specific-tests">Notes for Specific Tests</a>
<li><a href="#non-us-locale" id="toc-non-us-locale">Non-US
locale</a></li>
<li><a href="#pkcs11-tests" id="toc-pkcs11-tests">PKCS11 Tests</a></li>
</ul></li>
<li><a href="#testing-ahead-of-time-optimizations"
id="toc-testing-ahead-of-time-optimizations">### Testing Ahead-of-time
Optimizations</a>
<ul>
<li><a href="#testing-with-alternative-security-providers"
id="toc-testing-with-alternative-security-providers">Testing with
alternative security providers</a></li>
@@ -411,6 +416,13 @@ instrumentation
special target <code>jcov-test</code> instead of <code>test</code>, e.g.
<code>make jcov-test TEST=jdk_lang</code>. This will make sure the JCov
image is built, and that JCov reporting is enabled.</p>
<p>To include JCov coverage for just a subset of all modules, you can
use the <code>--with-jcov-modules</code> arguments to
<code>configure</code>, e.g.
<code>--with-jcov-modules=jdk.compiler,java.desktop</code>.</p>
<p>For more fine-grained control, you can pass arbitrary filters to JCov
using <code>--with-jcov-filters</code>, and you can specify a specific
JDK to instrument using <code>--with-jcov-input-jdk</code>.</p>
<p>The JCov report is stored in
<code>build/$BUILD/test-results/jcov-output/report</code>.</p>
<p>Please note that running with JCov reporting can be very memory
@@ -589,6 +601,37 @@ element of the appropriate <code>@Artifact</code> class. (See
JTREG=&quot;JAVA_OPTIONS=-Djdk.test.lib.artifacts.nsslib-linux_aarch64=/path/to/NSS-libs&quot;</code></pre>
<p>For more notes about the PKCS11 tests, please refer to
test/jdk/sun/security/pkcs11/README.</p>
<h2 id="testing-ahead-of-time-optimizations">### Testing Ahead-of-time
Optimizations</h2>
<p>One way to improve test coverage of ahead-of-time (AOT) optimizations
in the JDK is to run existing jtreg test cases in a special "AOT_JDK"
mode. Example:</p>
<pre><code>$ make test JTREG=&quot;AOT_JDK=onestep&quot; \
TEST=open/test/hotspot/jtreg/runtime/invokedynamic</code></pre>
<p>In this testing mode, we first perform an AOT training run (see
https://openjdk.org/jeps/483) of a special test program (<a
href="../test/setup_aot/TestSetupAOT.java">test/setup_aot/TestSetupAOT.java</a>)
that accesses about 5,0000 classes in the JDK core libraries.
Optimization artifacts for these classes (such as pre-linked lambda
expressions, execution profiles, and pre-generated native code) are
stored into an AOT cache file, which will be used by all the JVMs
launched by the selected jtreg test cases.</p>
<p>When the jtreg tests call into the core libraries classes that are in
the AOT cache, we will be able to test the AOT optimizations that were
used on those classes.</p>
<p>Please note that not all existing jtreg test cases can be executed
with the AOT_JDK mode. See <a
href="../test/hotspot/jtreg/ProblemList-AotJdk.txt">test/hotspot/jtreg/ProblemList-AotJdk.txt</a>
and <a
href="../test/jdk/ProblemList-AotJdk.txt">test/jdk/ProblemList-AotJdk.txt</a>.</p>
<p>Also, test cases that were written specifically to test AOT, such as
the tests under <a
href="../test/hotspot/jtreg/runtime/cds/">test/hotspot/jtreg/runtime/cds</a>,
cannot be executed with the AOT_JDK mode.</p>
<p>Valid values for <code>AOT_JDK</code> are <code>onestep</code> and
<code>twostep</code>. These control how the AOT cache is generated. See
https://openjdk.org/jeps/514 for details. All other values are
ignored.</p>
<h3 id="testing-with-alternative-security-providers">Testing with
alternative security providers</h3>
<p>Some security tests use a hardcoded provider for

View File

@@ -345,6 +345,14 @@ The simplest way to run tests with JCov coverage report is to use the special
target `jcov-test` instead of `test`, e.g. `make jcov-test TEST=jdk_lang`. This
will make sure the JCov image is built, and that JCov reporting is enabled.
To include JCov coverage for just a subset of all modules, you can use the
`--with-jcov-modules` arguments to `configure`, e.g.
`--with-jcov-modules=jdk.compiler,java.desktop`.
For more fine-grained control, you can pass arbitrary filters to JCov using
`--with-jcov-filters`, and you can specify a specific JDK to instrument
using `--with-jcov-input-jdk`.
The JCov report is stored in `build/$BUILD/test-results/jcov-output/report`.
Please note that running with JCov reporting can be very memory intensive.
@@ -603,6 +611,43 @@ $ make test TEST="jtreg:sun/security/pkcs11/Secmod/AddTrustedCert.java" \
For more notes about the PKCS11 tests, please refer to
test/jdk/sun/security/pkcs11/README.
### Testing Ahead-of-time Optimizations
-------------------------------------------------------------------------------
One way to improve test coverage of ahead-of-time (AOT) optimizations in
the JDK is to run existing jtreg test cases in a special "AOT_JDK" mode.
Example:
```
$ make test JTREG="AOT_JDK=onestep" \
TEST=open/test/hotspot/jtreg/runtime/invokedynamic
```
In this testing mode, we first perform an AOT training run
(see https://openjdk.org/jeps/483) of a special test program
([test/setup_aot/TestSetupAOT.java](../test/setup_aot/TestSetupAOT.java))
that accesses about 5,0000 classes in the JDK core libraries.
Optimization artifacts for these classes (such as pre-linked
lambda expressions, execution profiles, and pre-generated native code)
are stored into an AOT cache file, which will be used by all the JVMs
launched by the selected jtreg test cases.
When the jtreg tests call into the core libraries classes that are in
the AOT cache, we will be able to test the AOT optimizations that were
used on those classes.
Please note that not all existing jtreg test cases can be executed with
the AOT_JDK mode. See
[test/hotspot/jtreg/ProblemList-AotJdk.txt](../test/hotspot/jtreg/ProblemList-AotJdk.txt)
and [test/jdk/ProblemList-AotJdk.txt](../test/jdk/ProblemList-AotJdk.txt).
Also, test cases that were written specifically to test AOT, such as the tests
under [test/hotspot/jtreg/runtime/cds](../test/hotspot/jtreg/runtime/cds/),
cannot be executed with the AOT_JDK mode.
Valid values for `AOT_JDK` are `onestep` and `twostep`. These control how
the AOT cache is generated. See https://openjdk.org/jeps/514 for details.
All other values are ignored.
### Testing with alternative security providers
Some security tests use a hardcoded provider for `KeyFactory`, `Cipher`,

View File

@@ -174,9 +174,11 @@ else
JRE_IMAGE_HOMEDIR := $(JRE_IMAGE_DIR)
JDK_BUNDLE_SUBDIR := jdk-$(VERSION_NUMBER)
JRE_BUNDLE_SUBDIR := jre-$(VERSION_NUMBER)
STATIC_JDK_BUNDLE_SUBDIR := static-jdk-$(VERSION_NUMBER)
ifneq ($(DEBUG_LEVEL), release)
JDK_BUNDLE_SUBDIR := $(JDK_BUNDLE_SUBDIR)/$(DEBUG_LEVEL)
JRE_BUNDLE_SUBDIR := $(JRE_BUNDLE_SUBDIR)/$(DEBUG_LEVEL)
STATIC_JDK_BUNDLE_SUBDIR := $(STATIC_JDK_BUNDLE_SUBDIR)/$(DEBUG_LEVEL)
endif
# In certain situations, the JDK_IMAGE_DIR points to an image without the
# the symbols and demos. If so, the symobls and demos can be found in a
@@ -242,7 +244,10 @@ ifneq ($(filter product-bundles% legacy-bundles, $(MAKECMDGOALS)), )
)
JDK_SYMBOLS_BUNDLE_FILES := \
$(call FindFiles, $(SYMBOLS_IMAGE_DIR))
$(filter-out \
%.stripped.pdb, \
$(call FindFiles, $(SYMBOLS_IMAGE_DIR)) \
)
TEST_DEMOS_BUNDLE_FILES := $(filter $(JDK_DEMOS_IMAGE_HOMEDIR)/demo/%, \
$(ALL_JDK_DEMOS_FILES))
@@ -497,6 +502,21 @@ ifneq ($(filter static-libs-graal-bundles, $(MAKECMDGOALS)), )
STATIC_LIBS_GRAAL_TARGETS += $(BUILD_STATIC_LIBS_GRAAL_BUNDLE)
endif
#################################################################################
ifneq ($(filter static-jdk-bundles, $(MAKECMDGOALS)), )
STATIC_JDK_BUNDLE_FILES := $(call FindFiles, $(STATIC_JDK_IMAGE_DIR))
$(eval $(call SetupBundleFile, BUILD_STATIC_JDK_BUNDLE, \
BUNDLE_NAME := $(STATIC_JDK_BUNDLE_NAME), \
FILES := $(STATIC_JDK_BUNDLE_FILES), \
BASE_DIRS := $(STATIC_JDK_IMAGE_DIR), \
SUBDIR := $(STATIC_JDK_BUNDLE_SUBDIR), \
))
STATIC_JDK_TARGETS += $(BUILD_STATIC_JDK_BUNDLE)
endif
################################################################################
product-bundles: $(PRODUCT_TARGETS)
@@ -507,11 +527,12 @@ docs-javase-bundles: $(DOCS_JAVASE_TARGETS)
docs-reference-bundles: $(DOCS_REFERENCE_TARGETS)
static-libs-bundles: $(STATIC_LIBS_TARGETS)
static-libs-graal-bundles: $(STATIC_LIBS_GRAAL_TARGETS)
static-jdk-bundles: $(STATIC_JDK_TARGETS)
jcov-bundles: $(JCOV_TARGETS)
.PHONY: product-bundles test-bundles \
docs-jdk-bundles docs-javase-bundles docs-reference-bundles \
static-libs-bundles static-libs-graal-bundles jcov-bundles
static-libs-bundles static-libs-graal-bundles static-jdk-bundles jcov-bundles
################################################################################

View File

@@ -95,14 +95,16 @@ define SetupInterimModule
SRC := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim \
$$(wildcard $(SUPPORT_OUTPUTDIR)/gensrc/$1) \
$(TOPDIR)/src/$1/share/classes, \
EXCLUDES := sun javax/tools/snippet-files, \
EXCLUDES := sun, \
EXCLUDE_FILES := $(TOPDIR)/src/$1/share/classes/module-info.java \
$(TOPDIR)/src/$1/share/classes/javax/tools/ToolProvider.java \
$(TOPDIR)/src/$1/share/classes/com/sun/tools/javac/launcher/Main.java \
$(TOPDIR)/src/$1/share/classes/com/sun/tools/javac/launcher/MemoryClassLoader.java \
$(TOPDIR)/src/$1/share/classes/com/sun/tools/javac/launcher/MemoryContext.java \
$(TOPDIR)/src/$1/share/classes/com/sun/tools/javac/launcher/MemoryModuleFinder.java \
$(TOPDIR)/src/$1/share/classes/com/sun/tools/javac/launcher/SourceLauncher.java \
Standard.java, \
EXCLUDE_PATTERNS := -files, \
EXTRA_FILES := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim/module-info.java \
$($1.interim_EXTRA_FILES), \
COPY := .gif .png .xml .css .svg .js .js.template .txt .woff .woff2 javax.tools.JavaCompilerTool, \

View File

@@ -113,6 +113,7 @@ $(eval $(call SetupJavaCompilation, $(MODULE), \
DISABLED_WARNINGS := $(DISABLED_WARNINGS_java), \
EXCLUDES := $(EXCLUDES), \
EXCLUDE_FILES := $(EXCLUDE_FILES), \
EXCLUDE_PATTERNS := -files, \
KEEP_ALL_TRANSLATIONS := $(KEEP_ALL_TRANSLATIONS), \
JAVAC_FLAGS := \
$(DOCLINT) \

View File

@@ -34,21 +34,28 @@ else
JCOV_INPUT_IMAGE_DIR := $(JDK_IMAGE_DIR)
endif
JCOV_SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/jcov
#moving instrumented jdk image in and out of jcov_temp because of CODETOOLS-7902299
JCOV_TEMP := $(SUPPORT_OUTPUTDIR)/jcov_temp
JCOV_TEMP := $(JCOV_SUPPORT_DIR)/temp
ifneq ($(JCOV_MODULES), )
JCOV_MODULES_FILTER := $(foreach m, $(JCOV_MODULES), -include_module $m)
endif
$(JCOV_IMAGE_DIR)/release: $(JCOV_INPUT_IMAGE_DIR)/release
$(call LogWarn, Creating instrumented jdk image with JCov)
$(call MakeDir, $(JCOV_TEMP) $(IMAGES_OUTPUTDIR))
$(RM) -r $(JCOV_IMAGE_DIR) $(JCOV_TEMP)/*
$(CP) -r $(JCOV_INPUT_IMAGE_DIR) $(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR)
$(JAVA) -Xmx3g -jar $(JCOV_HOME)/lib/jcov.jar JREInstr \
$(call ExecuteWithLog, $(JCOV_SUPPORT_DIR)/run-jcov, \
$(JAVA) -Xmx3g -jar $(JCOV_HOME)/lib/jcov.jar JREInstr \
-t $(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR)/template.xml \
-rt $(JCOV_HOME)/lib/jcov_network_saver.jar \
-exclude 'java.lang.Object' \
-exclude jdk.test.Main -exclude '**\$Proxy*' \
$(JCOV_FILTERS) \
$(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR)
$(JCOV_MODULES_FILTER) $(JCOV_FILTERS) \
$(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR))
$(MV) $(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR) $(JCOV_IMAGE_DIR)
$(RMDIR) $(JCOV_TEMP)

View File

@@ -92,20 +92,16 @@ REFERENCE_TAGS := $(JAVADOC_TAGS)
JAVADOC_DISABLED_DOCLINT_WARNINGS := missing
JAVADOC_DISABLED_DOCLINT_PACKAGES := org.w3c.* javax.smartcardio
# Allow overriding on the command line
# (intentionally sharing name with the javac option)
JAVA_WARNINGS_ARE_ERRORS ?= -Werror
# The initial set of options for javadoc
JAVADOC_OPTIONS := -use -keywords -notimestamp \
-serialwarn -encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
-serialwarn -encoding utf-8 -docencoding utf-8 -breakiterator \
-splitIndex --system none -javafx --expand-requires transitive \
--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 \
-serialwarn -encoding ISO-8859-1 -breakiterator -splitIndex --system none \
-serialwarn -encoding utf-8 -breakiterator -splitIndex --system none \
-html5 -javafx --expand-requires transitive
# Should we add DRAFT stamps to the generated javadoc?
@@ -264,7 +260,7 @@ define create_overview_file
$$($1_OVERVIEW): $$($1_OVERVIEW_VARDEPS_FILE)
$$(call LogInfo, Creating overview.html for $1)
$$(call MakeDir, $$(@D))
$$(PRINTF) > $$@ '$$($1_OVERVIEW_TEXT)'
$$(PRINTF) "%s" '$$($1_OVERVIEW_TEXT)' > $$@
endef
################################################################################
@@ -322,7 +318,9 @@ define SetupApiDocsGenerationBody
# Ignore the doclint warnings in certain packages
$1_OPTIONS += -Xdoclint/package:$$(call CommaList, $$(addprefix -, \
$$(JAVADOC_DISABLED_DOCLINT_PACKAGES)))
$1_OPTIONS += $$(JAVA_WARNINGS_ARE_ERRORS)
ifeq ($$(JAVA_WARNINGS_AS_ERRORS), true)
$1_OPTIONS += -Werror
endif
$1_DOC_TITLE := $$($1_LONG_NAME)<br>Version $$(VERSION_SPECIFICATION) API \
Specification
@@ -542,7 +540,9 @@ $(eval $(call SetupApiDocsGeneration, REFERENCE_API, \
# Format: space-delimited list of names, including at most one '%' as a
# wildcard. Spec source files match if their filename or any enclosing folder
# name matches one of the items in SPEC_FILTER.
SPEC_FILTER := %
ifeq ($(SPEC_FILTER), )
SPEC_FILTER := %
endif
ApplySpecFilter = \
$(strip $(foreach file, $(1), \

View File

@@ -76,10 +76,14 @@ $(CLASSLIST_FILE): $(INTERIM_IMAGE_DIR)/bin/java$(EXECUTABLE_SUFFIX) $(CLASSLIST
$(call LogInfo, Generating $(patsubst $(OUTPUTDIR)/%, %, $(JLI_TRACE_FILE)))
$(FIXPATH) $(INTERIM_IMAGE_DIR)/bin/java -XX:DumpLoadedClassList=$@.raw \
$(CLASSLIST_FILE_VM_OPTS) \
-Xlog:aot=off \
-Xlog:cds=off \
-cp $(SUPPORT_OUTPUTDIR)/classlist.jar \
build.tools.classlist.HelloClasslist $(LOG_DEBUG)
$(GREP) -v HelloClasslist $@.raw > $@.interim
$(FIXPATH) $(INTERIM_IMAGE_DIR)/bin/java -Xshare:dump \
-Xlog:aot=off \
-Xlog:cds=off \
-XX:SharedClassListFile=$@.interim -XX:SharedArchiveFile=$@.jsa \
-Xmx128M -Xms128M $(LOG_INFO)
$(FIXPATH) $(INTERIM_IMAGE_DIR)/bin/java -XX:DumpLoadedClassList=$@.raw.2 \
@@ -87,6 +91,8 @@ $(CLASSLIST_FILE): $(INTERIM_IMAGE_DIR)/bin/java$(EXECUTABLE_SUFFIX) $(CLASSLIST
-Djava.lang.invoke.MethodHandle.TRACE_RESOLVE=true \
$(CLASSLIST_FILE_VM_OPTS) \
--module-path $(SUPPORT_OUTPUTDIR)/classlist.jar \
-Xlog:aot=off \
-Xlog:cds=off \
-cp $(SUPPORT_OUTPUTDIR)/classlist.jar \
build.tools.classlist.HelloClasslist \
2> $(LINK_OPT_DIR)/stderr > $(JLI_TRACE_FILE) \
@@ -100,6 +106,8 @@ $(CLASSLIST_FILE): $(INTERIM_IMAGE_DIR)/bin/java$(EXECUTABLE_SUFFIX) $(CLASSLIST
$(GREP) -v HelloClasslist $@.raw.2 > $@.raw.3
$(GREP) -v @cp $@.raw.3 > $@.raw.4
$(FIXPATH) $(INTERIM_IMAGE_DIR)/bin/java \
-Xlog:aot=off \
-Xlog:cds=off \
-cp $(SUPPORT_OUTPUTDIR)/classlist.jar \
build.tools.classlist.SortClasslist $@.raw.4 > $@

View File

@@ -162,7 +162,7 @@ define CreateCDSArchive
endif
ifeq ($(DEBUG_CDS_ARCHIVE), true)
$1_$2_CDS_DUMP_FLAGS += -Xlog:cds+map*=trace:file=$$(JDK_IMAGE_DIR)/$$($1_$2_CDS_ARCHIVE).cdsmap:none:filesize=0
$1_$2_CDS_DUMP_FLAGS += -Xlog:aot+map*=trace:file=$$(JDK_IMAGE_DIR)/$$($1_$2_CDS_ARCHIVE).cdsmap:none:filesize=0
endif
$$(eval $$(call SetupExecute, $1_$2_gen_cds_archive_jdk, \

View File

@@ -37,12 +37,6 @@ include MakeFileStart.gmk
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:
@@ -116,7 +110,18 @@ reconfigure:
CUSTOM_CONFIG_DIR="$(CUSTOM_CONFIG_DIR)" \
$(RECONFIGURE_COMMAND) )
.PHONY: print-modules print-targets print-tests print-configuration reconfigure
# Create files that are needed to run most targets in Main.gmk
create-make-helpers:
( cd $(TOPDIR) && \
$(MAKE) $(MAKE_ARGS) -j 1 -f make/GenerateFindTests.gmk \
$(USER_MAKE_VARS) )
( cd $(TOPDIR) && \
$(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
UPDATE_MODULE_DEPS=true NO_RECIPES=true \
create-main-targets-include )
.PHONY: print-modules print-targets print-tests print-configuration \
reconfigure create-make-helpers
##############################################################################
# The main target. This will delegate all other targets into Main.gmk.
@@ -136,16 +141,19 @@ TARGET_DESCRIPTION := target$(if $(word 2, $(MAIN_TARGETS)),s) \
# variables are explicitly propagated using $(USER_MAKE_VARS).
main: MAKEOVERRIDES :=
main: $(INIT_TARGETS)
main: $(INIT_TARGETS) create-make-helpers
ifneq ($(SEQUENTIAL_TARGETS)$(PARALLEL_TARGETS), )
$(call RotateLogFiles)
$(PRINTF) "Building $(TARGET_DESCRIPTION)\n" $(BUILD_LOG_PIPE_SIMPLE)
$(ECHO) "Building $(TARGET_DESCRIPTION)" $(BUILD_LOG_PIPE_SIMPLE)
ifneq ($(SEQUENTIAL_TARGETS), )
# Don't touch build output dir since we might be cleaning. That
# means no log pipe.
( cd $(TOPDIR) && \
$(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
$(SEQUENTIAL_TARGETS) )
# We might have cleaned away essential files, recreate them.
( cd $(TOPDIR) && \
$(MAKE) $(MAKE_ARGS) -j 1 -f make/Init.gmk create-make-helpers )
endif
ifneq ($(PARALLEL_TARGETS), )
$(call PrepareFailureLogs)
@@ -160,7 +168,8 @@ main: $(INIT_TARGETS)
-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" \
$(ECHO) "" $(BUILD_LOG_PIPE_SIMPLE) && \
$(ECHO) "ERROR: Build failed for $(TARGET_DESCRIPTION) (exit code $$exitcode)" \
$(BUILD_LOG_PIPE_SIMPLE) && \
cd $(TOPDIR) && $(MAKE) $(MAKE_ARGS) -j 1 -f make/Init.gmk \
on-failure ; \
@@ -172,7 +181,7 @@ main: $(INIT_TARGETS)
if test -f $(MAKESUPPORT_OUTPUTDIR)/exit-with-error ; then \
exit 1 ; \
fi
$(PRINTF) "Finished building $(TARGET_DESCRIPTION)\n" $(BUILD_LOG_PIPE_SIMPLE)
$(ECHO) "Finished building $(TARGET_DESCRIPTION)" $(BUILD_LOG_PIPE_SIMPLE)
$(call ReportProfileTimes)
endif
@@ -183,7 +192,8 @@ on-failure:
$(call PrintFailureReports)
$(call PrintBuildLogFailures)
$(call ReportProfileTimes)
$(PRINTF) "HELP: Run 'make doctor' to diagnose build problems.\n\n"
$(ECHO) "HELP: Run 'make doctor' to diagnose build problems."
$(ECHO) ""
ifneq ($(COMPARE_BUILD), )
$(call CleanupCompareBuild)
endif

View File

@@ -173,9 +173,10 @@ define PrintFailureReports
$(RM) $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log ; \
$(if $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log), \
( \
$(PRINTF) "\n=== Output from failing command(s) repeated here ===\n" ; \
$(ECHO) "" ; \
$(ECHO) "=== Output from failing command(s) repeated here ===" ; \
$(foreach logfile, $(sort $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log)), \
$(PRINTF) "* For target $(notdir $(basename $(logfile))):\n" ; \
$(ECHO) "* For target $(notdir $(basename $(logfile))):" ; \
$(if $(filter all, $(LOG_REPORT)), \
$(GREP) -v -e "^Note: including file:" < $(logfile) || true ; \
, \
@@ -185,8 +186,9 @@ define PrintFailureReports
fi ; \
) \
) \
$(PRINTF) "\n* All command lines available in $(MAKESUPPORT_OUTPUTDIR)/failure-logs.\n" ; \
$(PRINTF) "=== End of repeated output ===\n" ; \
$(ECHO) "" ; \
$(ECHO) "* All command lines available in $(MAKESUPPORT_OUTPUTDIR)/failure-logs." ; \
$(ECHO) "=== End of repeated output ===" ; \
) >> $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log \
) \
)
@@ -195,13 +197,16 @@ endef
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" ; \
$(ECHO) "" ; \
$(ECHO) "=== Make failed targets repeated here ===" ; \
$(GREP) "recipe for target .* failed" $(BUILD_LOG) ; \
$(PRINTF) "=== End of repeated output ===\n" ; \
$(PRINTF) "\nHELP: Try searching the build log for the name of the first failed target.\n" ; \
$(ECHO) "=== End of repeated output ===" ; \
$(ECHO) "" ; \
$(ECHO) "HELP: Try searching the build log for the name of the first failed target." ; \
else \
$(PRINTF) "\nNo indication of failed target found.\n" ; \
$(PRINTF) "HELP: Try searching the build log for '] Error'.\n" ; \
$(ECHO) "" ; \
$(ECHO) "No indication of failed target found." ; \
$(ECHO) "HELP: Try searching the build log for '] Error'." ; \
fi >> $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log ; \
$(CAT) $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log \
)

View File

@@ -42,6 +42,12 @@ include MakeFileStart.gmk
include $(TOPDIR)/make/MainSupport.gmk
include FindTests.gmk
ifeq ($(UPDATE_MODULE_DEPS), true)
# Update module-deps.gmk if requested. This is read in Modules.gmk.
GENERATE_MODULE_DEPS_FILE := true
endif
include Modules.gmk
# Are we requested to ignore dependencies?
@@ -411,12 +417,14 @@ $(eval $(call SetupTarget, create-source-revision-tracker, \
))
BOOTCYCLE_TARGET := product-images
BOOTCYCLE_SPEC := $(dir $(SPEC))bootcycle-spec.gmk
bootcycle-images:
ifneq ($(COMPILE_TYPE), cross)
$(call LogWarn, Boot cycle build step 2: Building a new JDK image using previously built image)
$(call MakeDir, $(OUTPUTDIR)/bootcycle-build)
+$(MAKE) $(MAKE_ARGS) -f $(TOPDIR)/make/Init.gmk PARALLEL_TARGETS=$(BOOTCYCLE_TARGET) \
LOG_PREFIX="[bootcycle] " JOBS= SPEC=$(dir $(SPEC))bootcycle-spec.gmk main
LOG_PREFIX="[bootcycle] " JOBS= SPEC=$(BOOTCYCLE_SPEC) main
else
$(call LogWarn, Boot cycle build disabled when cross compiling)
endif
@@ -875,6 +883,12 @@ $(eval $(call SetupTarget, static-libs-graal-bundles, \
DEPS := static-libs-graal-image, \
))
$(eval $(call SetupTarget, static-jdk-bundles, \
MAKEFILE := Bundles, \
TARGET := static-jdk-bundles, \
DEPS := static-jdk-image, \
))
ifeq ($(JCOV_ENABLED), true)
$(eval $(call SetupTarget, jcov-bundles, \
MAKEFILE := Bundles, \

View File

@@ -58,76 +58,76 @@ endef
define CleanDocs
@$(PRINTF) "Cleaning docs ..."
@$(PRINTF) "\n" $(LOG_DEBUG)
@$(ECHO) "" $(LOG_DEBUG)
$(RM) -r $(SUPPORT_OUTPUTDIR)/docs
$(RM) -r $(SUPPORT_OUTPUTDIR)/javadoc
$(RM) -r $(IMAGES_OUTPUTDIR)/docs
@$(PRINTF) " done\n"
@$(ECHO) " done"
endef
# Cleans the dir given as $1
define CleanDir
@$(PRINTF) "Cleaning $(strip $1) build artifacts ..."
@$(PRINTF) "\n" $(LOG_DEBUG)
@$(PRINTF) "Cleaning %s build artifacts ..." "$(strip $1)"
@$(ECHO) "" $(LOG_DEBUG)
($(CD) $(OUTPUTDIR) && $(RM) -r $1)
@$(PRINTF) " done\n"
@$(ECHO) " done"
endef
define CleanSupportDir
@$(PRINTF) "Cleaning $(strip $1) build artifacts ..."
@$(PRINTF) "\n" $(LOG_DEBUG)
@$(PRINTF) "Cleaning %s build artifacts ..." "$(strip $1)"
@$(ECHO) "" $(LOG_DEBUG)
$(RM) -r $(SUPPORT_OUTPUTDIR)/$(strip $1)
@$(PRINTF) " done\n"
@$(ECHO) " done"
endef
define CleanMakeSupportDir
@$(PRINTF) "Cleaning $(strip $1) make support artifacts ..."
@$(PRINTF) "\n" $(LOG_DEBUG)
@$(PRINTF) "Cleaning %s make support artifacts ..." "$(strip $1)"
@$(ECHO) "" $(LOG_DEBUG)
$(RM) -r $(MAKESUPPORT_OUTPUTDIR)/$(strip $1)
@$(PRINTF) " done\n"
@$(ECHO) " done"
endef
define CleanTest
@$(PRINTF) "Cleaning test $(strip $1) ..."
@$(PRINTF) "\n" $(LOG_DEBUG)
@$(PRINTF) "Cleaning test %s ..." "$(strip $1)"
@$(ECHO) "" $(LOG_DEBUG)
$(RM) -r $(SUPPORT_OUTPUTDIR)/test/$(strip $(subst -,/,$1))
# Remove as much of the test directory structure as is empty
$(RMDIR) -p $(dir $(SUPPORT_OUTPUTDIR)/test/$(strip $(subst -,/,$1))) 2> /dev/null || true
@$(PRINTF) " done\n"
@$(ECHO) " done"
endef
define Clean-gensrc
@$(PRINTF) "Cleaning gensrc $(if $1,for $(strip $1) )..."
@$(PRINTF) "\n" $(LOG_DEBUG)
@$(PRINTF) "Cleaning gensrc %s..." "$(if $1,for $(strip $1) )"
@$(ECHO) "" $(LOG_DEBUG)
$(RM) -r $(SUPPORT_OUTPUTDIR)/gensrc/$(strip $1)
@$(PRINTF) " done\n"
@$(ECHO) " done"
endef
define Clean-java
@$(PRINTF) "Cleaning java $(if $1,for $(strip $1) )..."
@$(PRINTF) "\n" $(LOG_DEBUG)
@$(PRINTF) "Cleaning java %s..." "$(if $1,for $(strip $1) )"
@$(ECHO) "" $(LOG_DEBUG)
$(RM) -r $(JDK_OUTPUTDIR)/modules/$(strip $1)
$(RM) -r $(SUPPORT_OUTPUTDIR)/special_classes/$(strip $1)
$(PRINTF) " done\n"
$(PRINTF) "Cleaning headers $(if $1,for $(strip $1)) ..."
$(ECHO) " done"
$(PRINTF) "Cleaning headers %s..." "$(if $1,for $(strip $1) )"
$(RM) -r $(SUPPORT_OUTPUTDIR)/headers/$(strip $1)
@$(PRINTF) " done\n"
@$(ECHO) " done"
endef
define Clean-native
@$(PRINTF) "Cleaning native $(if $1,for $(strip $1) )..."
@$(PRINTF) "\n" $(LOG_DEBUG)
@$(PRINTF) "Cleaning native %s..." "$(if $1,for $(strip $1) )"
@$(ECHO) "" $(LOG_DEBUG)
$(RM) -r $(SUPPORT_OUTPUTDIR)/native/$(strip $1)
$(RM) -r $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1)
$(RM) -r $(SUPPORT_OUTPUTDIR)/modules_cmds/$(strip $1)
@$(PRINTF) " done\n"
@$(ECHO) " done"
endef
define Clean-include
@$(PRINTF) "Cleaning include $(if $1,for $(strip $1) )..."
@$(PRINTF) "\n" $(LOG_DEBUG)
@$(PRINTF) "Cleaning include %s..." "$(if $1,for $(strip $1) )"
@$(ECHO) "" $(LOG_DEBUG)
$(RM) -r $(SUPPORT_OUTPUTDIR)/modules_include/$(strip $1)
@$(PRINTF) " done\n"
@$(ECHO) " done"
endef
define CleanModule

View File

@@ -48,6 +48,11 @@ include $(TOPDIR)/make/common/LogUtils.gmk
# 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 \
create-make-helpers
# CALLED_TARGETS is the list of targets that the user provided,
# or "default" if unspecified.
CALLED_TARGETS := $(if $(MAKECMDGOALS), $(MAKECMDGOALS), default)
@@ -93,10 +98,6 @@ ifneq ($(SKIP_SPEC), true)
# 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))
@@ -161,19 +162,19 @@ ifneq ($(SKIP_SPEC), 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 && \
SPEC=$(spec) TOPDIR_ALT=$(TOPDIR) \
$(MAKE_INIT_MAIN_TARGET_ARGS) main && \
$(if $(and $(COMPARE_BUILD), $(PARALLEL_TARGETS)), \
$(MAKE) $(MAKE_INIT_ARGS) -f $(TOPDIR)/make/Init.gmk \
SPEC=$(spec) \
SPEC=$(spec) TOPDIR_ALT=$(TOPDIR) \
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) \
SPEC=$(spec) TOPDIR_ALT=$(TOPDIR) \
COMPARE_BUILD="$(COMPARE_BUILD):NODRYRUN=true" \
main && \
$(MAKE_INIT_MAIN_TARGET_ARGS) main && \
$(MAKE) $(MAKE_INIT_ARGS) -f $(TOPDIR)/make/Init.gmk \
SPEC=$(spec) \
SPEC=$(spec) TOPDIR_ALT=$(TOPDIR) \
COMPARE_BUILD="$(COMPARE_BUILD):NODRYRUN=true" \
post-compare-build && \
) \

View File

@@ -250,13 +250,14 @@ endef
# Param 1: FORCE = force generation of main-targets.gmk or LAZY = do not force.
# Param 2: The SPEC file to use.
define DefineMainTargets
SPEC_FILE := $(strip $2)
# 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
main_targets_file := $$(dir $$(SPEC_FILE))make-support/main-targets.gmk
ifeq ($$(MAKE_RESTARTS), )
# Only do this if make has not been restarted, and if we do not force it.
@@ -267,8 +268,12 @@ define DefineMainTargets
$$(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) $$(MAKE_LOG_FLAGS) -s -r -R -f $$(TOPDIR)/make/GenerateFindTests.gmk \
-I $$(TOPDIR)/make/common SPEC=$$(SPEC_FILE) TOPDIR_ALT=$$(TOPDIR))
@( cd $$(TOPDIR) && \
$$(MAKE) $$(MAKE_LOG_FLAGS) -s -r -R -f $$(TOPDIR)/make/Main.gmk \
-I $$(TOPDIR)/make/common SPEC=$$(SPEC_FILE) TOPDIR_ALT=$$(TOPDIR) \
UPDATE_MODULE_DEPS=true NO_RECIPES=true \
$$(MAKE_LOG_VARS) \
create-main-targets-include )

View File

@@ -75,9 +75,6 @@ endif
# 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
@@ -118,6 +115,7 @@ JTREG_COV_OPTIONS :=
ifeq ($(TEST_OPTS_JCOV), true)
JCOV_OUTPUT_DIR := $(TEST_RESULTS_DIR)/jcov-output
JCOV_SUPPORT_DIR := $(TEST_SUPPORT_DIR)/jcov-support
JCOV_GRABBER_LOG := $(JCOV_OUTPUT_DIR)/grabber.log
JCOV_RESULT_FILE := $(JCOV_OUTPUT_DIR)/result.xml
JCOV_REPORT := $(JCOV_OUTPUT_DIR)/report
@@ -537,22 +535,21 @@ define SetupRunGtestTestBody
$$(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; \
} \
} \
END { if (!found) print 0; }' \
$$($1_RESULT_FILE))) \
$$(eval $1_GTEST_DISABLED := $$(shell $$(AWK) '/YOU HAVE .* DISABLED TEST/ \
{ print $$$$3 }' $$($1_RESULT_FILE))) \
$$(if $$($1_GTEST_DISABLED), , $$(eval $1_GTEST_DISABLED := 0)) \
$$(eval $1_GTEST_SKIPPED := $$(shell $$(AWK) '/\[ SKIPPED \] .* tests?.*/ \
{ print $$$$4 }' $$($1_RESULT_FILE))) \
$$(if $$($1_GTEST_SKIPPED), , $$(eval $1_GTEST_SKIPPED := 0)) \
$$(eval $1_SKIPPED := $$(shell \
$$(EXPR) $$($1_GTEST_DISABLED) + $$($1_GTEST_SKIPPED))) \
$$(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_RUN) - $$($1_PASSED) - $$($1_FAILED))) \
$$(EXPR) $$($1_RUN) - $$($1_PASSED) - $$($1_FAILED) - $$($1_GTEST_SKIPPED))) \
$$(eval $1_TOTAL := $$(shell \
$$(EXPR) $$($1_RUN) + $$($1_SKIPPED))) \
$$(EXPR) $$($1_RUN) + $$($1_GTEST_DISABLED))) \
, \
$$(eval $1_PASSED := 0) \
$$(eval $1_FAILED := 0) \
@@ -586,6 +583,8 @@ define SetMicroValue
else
ifneq ($3, )
$1_$2 := $3
else
$1_$2 :=
endif
endif
endef
@@ -712,6 +711,8 @@ define SetJtregValue
else
ifneq ($3, )
$1_$2 := $3
else
$1_$2 :=
endif
endif
endif
@@ -724,6 +725,7 @@ endef
# Parameter 1 is the name of the rule.
#
# Remaining parameters are named arguments.
# TRAINING The AOT training mode: onestep or twostep
# VM_OPTIONS List of JVM arguments to use when creating AOT cache
#
# After calling this, the following variables are defined
@@ -752,23 +754,39 @@ define SetupAOTBody
$$($1_AOT_JDK_CACHE): $$(JDK_IMAGE_DIR)/release
$$(call MakeDir, $$($1_AOT_JDK_OUTPUT_DIR))
$$(call LogWarn, AOT: Create cache configuration) \
$$(call ExecuteWithLog, $$($1_AOT_JDK_OUTPUT_DIR), ( \
cd $$($1_AOT_JDK_OUTPUT_DIR); \
$(JAR) --extract --file $(TEST_IMAGE_DIR)/setup_aot/TestSetupAOT.jar; \
$$(FIXPATH) $(JDK_UNDER_TEST)/bin/java $$($1_VM_OPTIONS) \
-Xlog:class+load,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_OUTPUT_DIR) > $$($1_AOT_JDK_LOG) \
))
ifeq ($$($1_TRAINING), onestep)
$$(call LogWarn, AOT: Generate AOT cache $$($1_AOT_JDK_CACHE) with flags: $$($1_VM_OPTIONS))
$$(call ExecuteWithLog, $$($1_AOT_JDK_OUTPUT_DIR), ( \
$$(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) \
))
$$(call LogWarn, AOT: Create AOT cache $$($1_AOT_JDK_CACHE) in one step with flags: $$($1_VM_OPTIONS)) \
$$(call ExecuteWithLog, $$($1_AOT_JDK_OUTPUT_DIR), ( \
cd $$($1_AOT_JDK_OUTPUT_DIR); \
$(JAR) --extract --file $(TEST_IMAGE_DIR)/setup_aot/TestSetupAOT.jar; \
$$(FIXPATH) $(JDK_UNDER_TEST)/bin/java $$($1_VM_OPTIONS) \
-Xlog:class+load,aot,aot+class=debug:file=$$($1_AOT_JDK_CACHE).log -Xlog:cds*=error -Xlog:aot*=error \
-XX:AOTMode=record -XX:AOTCacheOutput=$$($1_AOT_JDK_CACHE) \
TestSetupAOT $$($1_AOT_JDK_OUTPUT_DIR) > $$($1_AOT_JDK_LOG) \
))
else
$$(call LogWarn, AOT: Create cache configuration) \
$$(call ExecuteWithLog, $$($1_AOT_JDK_OUTPUT_DIR), ( \
cd $$($1_AOT_JDK_OUTPUT_DIR); \
$(JAR) --extract --file $(TEST_IMAGE_DIR)/setup_aot/TestSetupAOT.jar; \
$$(FIXPATH) $(JDK_UNDER_TEST)/bin/java $$($1_VM_OPTIONS) \
-Xlog:class+load,aot,aot+class=debug:file=$$($1_AOT_JDK_CONF).log -Xlog:cds*=error -Xlog:aot*=error \
-XX:AOTMode=record -XX:AOTConfiguration=$$($1_AOT_JDK_CONF) \
TestSetupAOT $$($1_AOT_JDK_OUTPUT_DIR) > $$($1_AOT_JDK_LOG) \
))
$$(call LogWarn, AOT: Generate AOT cache $$($1_AOT_JDK_CACHE) with flags: $$($1_VM_OPTIONS))
$$(call ExecuteWithLog, $$($1_AOT_JDK_OUTPUT_DIR), ( \
$$(FIXPATH) $(JDK_UNDER_TEST)/bin/java \
$$($1_VM_OPTIONS) -Xlog:aot,aot+class=debug:file=$$($1_AOT_JDK_CACHE).log -Xlog:cds*=error -Xlog:aot*=error \
-XX:ExtraSharedClassListFile=$(JDK_UNDER_TEST)/lib/classlist \
-XX:AOTMode=create -XX:AOTConfiguration=$$($1_AOT_JDK_CONF) -XX:AOTCache=$$($1_AOT_JDK_CACHE) \
))
endif
$1_AOT_TARGETS += $$($1_AOT_JDK_CACHE)
@@ -834,7 +852,7 @@ define SetupRunJtregTestBody
JTREG_RETRY_COUNT ?= 0
JTREG_REPEAT_COUNT ?= 0
JTREG_REPORT ?= files
JTREG_AOT_JDK ?= false
JTREG_AOT_JDK ?= none
ifneq ($$(JTREG_RETRY_COUNT), 0)
ifneq ($$(JTREG_REPEAT_COUNT), 0)
@@ -844,6 +862,12 @@ define SetupRunJtregTestBody
endif
endif
ifeq ($$(JTREG_RUN_PROBLEM_LISTS), true)
JTREG_PROBLEM_LIST_PREFIX := -match:
else
JTREG_PROBLEM_LIST_PREFIX := -exclude:
endif
ifneq ($$(JTREG_TEST_THREAD_FACTORY), )
$1_JTREG_BASIC_OPTIONS += -testThreadFactoryPath:$$(JTREG_TEST_THREAD_FACTORY_JAR)
$1_JTREG_BASIC_OPTIONS += -testThreadFactory:$$(JTREG_TEST_THREAD_FACTORY)
@@ -872,7 +896,7 @@ define SetupRunJtregTestBody
# version of the JDK.
$1_JTREG_BASIC_OPTIONS += -$$($1_JTREG_TEST_MODE) \
-verbose:$$(JTREG_VERBOSE) -retain:$$(JTREG_RETAIN) \
-concurrency:$$($1_JTREG_JOBS) -timeoutFactor:$$(JTREG_TIMEOUT_FACTOR) \
-concurrency:$$($1_JTREG_JOBS) \
-vmoption:-XX:MaxRAMPercentage=$$($1_JTREG_MAX_RAM_PERCENTAGE) \
-vmoption:-Dtest.boot.jdk="$$(BOOT_JDK)" \
-vmoption:-Djava.io.tmpdir="$$($1_TEST_TMP_DIR)"
@@ -905,12 +929,6 @@ define SetupRunJtregTestBody
$1_JTREG_BASIC_OPTIONS += -nativepath:$$($1_JTREG_NATIVEPATH)
endif
ifeq ($$(JTREG_RUN_PROBLEM_LISTS), true)
JTREG_PROBLEM_LIST_PREFIX := -match:
else
JTREG_PROBLEM_LIST_PREFIX := -exclude:
endif
ifneq ($$($1_JTREG_PROBLEM_LIST), )
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$($1_JTREG_PROBLEM_LIST))
endif
@@ -933,6 +951,11 @@ define SetupRunJtregTestBody
JTREG_AUTO_PROBLEM_LISTS += ProblemList-shenandoah.txt
endif
ifneq ($$(findstring --enable-preview, $$(JTREG_ALL_OPTIONS)), )
JTREG_AUTO_PROBLEM_LISTS += ProblemList-enable-preview.txt
endif
ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
# Accept both absolute paths as well as relative to the current test root.
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \
@@ -945,6 +968,11 @@ define SetupRunJtregTestBody
$1_JTREG_BASIC_OPTIONS += -e:JIB_HOME=$$(JIB_HOME)
endif
ifneq ($$(JDK_FOR_COMPILE), )
# Allow overriding the JDK used for compilation from the command line
$1_JTREG_BASIC_OPTIONS += -compilejdk:$$(JDK_FOR_COMPILE)
endif
$1_JTREG_BASIC_OPTIONS += -e:TEST_IMAGE_DIR=$(TEST_IMAGE_DIR)
$1_JTREG_BASIC_OPTIONS += -e:DOCS_JDK_IMAGE_DIR=$$(DOCS_JDK_IMAGE_DIR)
@@ -964,12 +992,12 @@ define SetupRunJtregTestBody
endif
endif
ifeq ($$(JTREG_AOT_JDK), true)
ifneq ($$(filter $$(JTREG_AOT_JDK), onestep twostep), )
$$(call LogWarn, Add AOT target for $1)
$$(eval $$(call SetupAOT, $1, VM_OPTIONS := $$(JTREG_ALL_OPTIONS) ))
$$(eval $$(call SetupAOT, $1, \
TRAINING := $$(JTREG_AOT_JDK), \
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
@@ -987,6 +1015,7 @@ define SetupRunJtregTestBody
endif
JTREG_TIMEOUT_FACTOR ?= $$(JTREG_AUTO_TIMEOUT_FACTOR)
$1_JTREG_BASIC_OPTIONS += -timeoutFactor:$$(JTREG_TIMEOUT_FACTOR)
clean-outputdirs-$1:
$$(call LogWarn, Clean up dirs for $1)
@@ -997,7 +1026,6 @@ 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) \
@@ -1016,7 +1044,8 @@ define SetupRunJtregTestBody
$1_COMMAND_LINE := \
for i in {0..$$(JTREG_RETRY_COUNT)}; do \
if [ "$$$$i" != 0 ]; then \
$$(PRINTF) "\nRetrying Jtreg run. Attempt: $$$$i\n"; \
$$(ECHO) ""; \
$$(ECHO) "Retrying Jtreg run. Attempt: $$$$i"; \
fi; \
$$($1_COMMAND_LINE); \
if [ "`$$(CAT) $$($1_EXITCODE)`" = "0" ]; then \
@@ -1029,10 +1058,12 @@ define SetupRunJtregTestBody
ifneq ($$(JTREG_REPEAT_COUNT), 0)
$1_COMMAND_LINE := \
for i in {1..$$(JTREG_REPEAT_COUNT)}; do \
$$(PRINTF) "\nRepeating Jtreg run: $$$$i out of $$(JTREG_REPEAT_COUNT)\n"; \
$$(ECHO) ""; \
$$(ECHO) "Repeating Jtreg run: $$$$i out of $$(JTREG_REPEAT_COUNT)"; \
$$($1_COMMAND_LINE); \
if [ "`$$(CAT) $$($1_EXITCODE)`" != "0" ]; then \
$$(PRINTF) "\nFailures detected, no more repeats.\n"; \
$$(ECHO) ""; \
$$(ECHO) "Failures detected, no more repeats."; \
break; \
fi; \
done
@@ -1335,12 +1366,14 @@ TARGETS += run-all-tests pre-run-test post-run-test run-test-report run-test
ifeq ($(TEST_OPTS_JCOV), true)
JCOV_VM_OPTS := -Xmx4g -Djdk.xml.totalEntitySizeLimit=0 -Djdk.xml.maxGeneralEntitySizeLimit=0
jcov-do-start-grabber:
$(call MakeDir, $(JCOV_OUTPUT_DIR))
if $(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -status 1>/dev/null 2>&1 ; then \
$(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -stop -stoptimeout 3600 ; \
fi
$(JAVA) -Xmx4g -jar $(JCOV_HOME)/lib/jcov.jar Grabber -v -t \
$(JAVA) $(JCOV_VM_OPTS) -jar $(JCOV_HOME)/lib/jcov.jar Grabber -v -t \
$(JCOV_IMAGE_DIR)/template.xml -o $(JCOV_RESULT_FILE) \
1>$(JCOV_GRABBER_LOG) 2>&1 &
@@ -1353,6 +1386,10 @@ ifeq ($(TEST_OPTS_JCOV), true)
$(JAVA) -jar $(JCOV_HOME)/lib/jcov.jar GrabberManager -stop -stoptimeout 3600
JCOV_REPORT_TITLE := JDK code coverage report<br/>
ifneq ($(JCOV_MODULES), )
JCOV_MODULES_FILTER := $(foreach m, $(JCOV_MODULES), -include_module $m)
JCOV_REPORT_TITLE += Included modules: $(JCOV_MODULES)<br>
endif
ifneq ($(JCOV_FILTERS), )
JCOV_REPORT_TITLE += Code filters: $(JCOV_FILTERS)<br>
endif
@@ -1360,11 +1397,12 @@ ifeq ($(TEST_OPTS_JCOV), true)
jcov-gen-report: jcov-stop-grabber
$(call LogWarn, Generating JCov report ...)
$(JAVA) -Xmx4g -jar $(JCOV_HOME)/lib/jcov.jar RepGen -sourcepath \
$(call ExecuteWithLog, $(JCOV_SUPPORT_DIR)/run-jcov-repgen, \
$(JAVA) $(JCOV_VM_OPTS) -jar $(JCOV_HOME)/lib/jcov.jar RepGen -sourcepath \
`$(ECHO) $(TOPDIR)/src/*/share/classes/ | $(TR) ' ' ':'` -fmt html \
$(JCOV_FILTERS) \
$(JCOV_MODULES_FILTER) $(JCOV_FILTERS) \
-mainReportTitle "$(JCOV_REPORT_TITLE)" \
-o $(JCOV_REPORT) $(JCOV_RESULT_FILE)
-o $(JCOV_REPORT) $(JCOV_RESULT_FILE))
TARGETS += jcov-do-start-grabber jcov-start-grabber jcov-stop-grabber \
jcov-gen-report
@@ -1384,7 +1422,7 @@ ifeq ($(TEST_OPTS_JCOV), true)
jcov-gen-diffcoverage: jcov-stop-grabber
$(call LogWarn, Generating diff coverage with changeset $(TEST_OPTS_JCOV_DIFF_CHANGESET) ... )
$(DIFF_COMMAND)
$(JAVA) -Xmx4g -jar $(JCOV_HOME)/lib/jcov.jar \
$(JAVA) $(JCOV_VM_OPTS) -jar $(JCOV_HOME)/lib/jcov.jar \
DiffCoverage -replaceDiff "src/.*/classes/:" -all \
$(JCOV_RESULT_FILE) $(JCOV_SOURCE_DIFF) > \
$(JCOV_DIFF_COVERAGE_REPORT)

View File

@@ -217,9 +217,9 @@ else ifeq ($(OPENJDK_TARGET_OS), macosx)
else ifeq ($(OPENJDK_TARGET_OS), windows)
NUM_CORES := $(NUMBER_OF_PROCESSORS)
MEMORY_SIZE := $(shell \
$(EXPR) `wmic computersystem get totalphysicalmemory -value \
| $(GREP) = | $(SED) 's/\\r//g' \
| $(CUT) -d "=" -f 2-` / 1024 / 1024 \
$(EXPR) `powershell -Command \
"(Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory" \
| $(SED) 's/\\r//g' ` / 1024 / 1024 \
)
endif
ifeq ($(NUM_CORES), )
@@ -298,7 +298,7 @@ test-prebuilt:
@$(RM) -f $(MAKESUPPORT_OUTPUTDIR)/exit-with-error
# We need to fill the FindTest cache before entering RunTests.gmk.
@cd $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) SPEC=$(SPEC) \
-f RunTestsPrebuiltFindTests.gmk
-f GenerateFindTests.gmk
@cd $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f RunTests.gmk run-test \
TEST="$(TEST)"

View File

@@ -55,7 +55,7 @@ ifneq ($(and $(GIT), $(wildcard $(TOPDIR)/.git)), )
SCM_DIR := .git
ID_COMMAND := $(PRINTF) "git:%s%s\n" \
"$$($(GIT) log -n1 --format=%H | cut -c1-12)" \
"$$(if test -n "$$($(GIT) status --porcelain)"; then printf '+'; fi)"
"$$(if test -n "$$($(GIT) status --porcelain)"; then $(PRINTF) '+'; fi)"
endif
ifeq ($(USE_SCM), true)

View File

@@ -134,17 +134,33 @@ AC_DEFUN_ONCE([BASIC_SETUP_BUILD_ENV],
)
AC_SUBST(BUILD_ENV)
AC_MSG_CHECKING([for locale to use])
if test "x$LOCALE" != x; then
# Check if we actually have C.UTF-8; if so, use it
if $LOCALE -a | $GREP -q -E "^C\.(utf8|UTF-8)$"; then
LOCALE_USED=C.UTF-8
AC_MSG_RESULT([C.UTF-8 (recommended)])
elif $LOCALE -a | $GREP -q -E "^en_US\.(utf8|UTF-8)$"; then
LOCALE_USED=en_US.UTF-8
AC_MSG_RESULT([en_US.UTF-8 (acceptable fallback)])
else
AC_MSG_WARN([C.UTF-8 locale not found, using C locale])
LOCALE_USED=C
# As a fallback, check if users locale is UTF-8. USER_LOCALE was saved
# by the wrapper configure script before autconf messed up LC_ALL.
if $ECHO $USER_LOCALE | $GREP -q -E "\.(utf8|UTF-8)$"; then
LOCALE_USED=$USER_LOCALE
AC_MSG_RESULT([$USER_LOCALE (untested fallback)])
AC_MSG_WARN([Could not find C.UTF-8 or en_US.UTF-8 locale. This is not supported, and the build might fail unexpectedly.])
else
AC_MSG_RESULT([no UTF-8 locale found])
AC_MSG_WARN([No UTF-8 locale found. This is not supported. Proceeding with the C locale, but the build might fail unexpectedly.])
LOCALE_USED=C
fi
AC_MSG_NOTICE([The recommended locale is C.UTF-8, but en_US.UTF-8 is also accepted.])
fi
else
AC_MSG_WARN([locale command not not found, using C locale])
LOCALE_USED=C
LOCALE_USED=C.UTF-8
AC_MSG_RESULT([C.UTF-8 (default)])
AC_MSG_WARN([locale command not not found, using C.UTF-8 locale])
fi
export LC_ALL=$LOCALE_USED
@@ -399,11 +415,21 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
[ CONF_NAME=${with_conf_name} ])
# Test from where we are running configure, in or outside of src root.
if test "x$OPENJDK_BUILD_OS" = xwindows || test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
# These systems have case insensitive paths, so convert them to lower case.
[ cmp_configure_start_dir=`$ECHO $CONFIGURE_START_DIR | $TR '[:upper:]' '[:lower:]'` ]
[ cmp_topdir=`$ECHO $TOPDIR | $TR '[:upper:]' '[:lower:]'` ]
[ cmp_custom_root=`$ECHO $CUSTOM_ROOT | $TR '[:upper:]' '[:lower:]'` ]
else
cmp_configure_start_dir="$CONFIGURE_START_DIR"
cmp_topdir="$TOPDIR"
cmp_custom_root="$CUSTOM_ROOT"
fi
AC_MSG_CHECKING([where to store configuration])
if test "x$CONFIGURE_START_DIR" = "x$TOPDIR" \
|| test "x$CONFIGURE_START_DIR" = "x$CUSTOM_ROOT" \
|| test "x$CONFIGURE_START_DIR" = "x$TOPDIR/make/autoconf" \
|| test "x$CONFIGURE_START_DIR" = "x$TOPDIR/make" ; then
if test "x$cmp_configure_start_dir" = "x$cmp_topdir" \
|| test "x$cmp_configure_start_dir" = "x$cmp_custom_root" \
|| test "x$cmp_configure_start_dir" = "x$cmp_topdir/make/autoconf" \
|| test "x$cmp_configure_start_dir" = "x$cmp_topdir/make" ; then
# We are running configure from the src root.
# Create a default ./build/target-variant-debuglevel output root.
if test "x${CONF_NAME}" = x; then
@@ -424,7 +450,12 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
# If configuration is situated in normal build directory, just use the build
# directory name as configuration name, otherwise use the complete path.
if test "x${CONF_NAME}" = x; then
CONF_NAME=`$ECHO $CONFIGURE_START_DIR | $SED -e "s!^${TOPDIR}/build/!!"`
[ if [[ "$cmp_configure_start_dir" =~ ^${cmp_topdir}/build/[^/]+$ ||
"$cmp_configure_start_dir" =~ ^${cmp_custom_root}/build/[^/]+$ ]]; then ]
CONF_NAME="${CONFIGURE_START_DIR##*/}"
else
CONF_NAME="$CONFIGURE_START_DIR"
fi
fi
OUTPUTDIR="$CONFIGURE_START_DIR"
AC_MSG_RESULT([in current directory])

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
@@ -57,6 +57,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS],
UTIL_LOOKUP_PROGS(LOCALE, locale)
UTIL_LOOKUP_PROGS(PATHTOOL, cygpath wslpath)
UTIL_LOOKUP_PROGS(CMD, cmd.exe, $PATH:/cygdrive/c/windows/system32:/mnt/c/windows/system32:/c/windows/system32)
UTIL_LOOKUP_PROGS(LSB_RELEASE, lsb_release)
])
################################################################################
@@ -106,9 +107,6 @@ AC_DEFUN_ONCE([BASIC_SETUP_TOOLS],
UTIL_LOOKUP_PROGS(READLINK, greadlink readlink)
UTIL_LOOKUP_PROGS(WHOAMI, whoami)
# Tools only needed on some platforms
UTIL_LOOKUP_PROGS(LSB_RELEASE, lsb_release)
# For compare.sh only
UTIL_LOOKUP_PROGS(CMP, cmp)
UTIL_LOOKUP_PROGS(UNIQ, uniq)
@@ -470,7 +468,15 @@ AC_DEFUN_ONCE([BASIC_SETUP_PANDOC],
AC_MSG_CHECKING([if the pandoc smart extension needs to be disabled for markdown])
if $PANDOC --list-extensions | $GREP -q '+smart'; then
AC_MSG_RESULT([yes])
PANDOC_MARKDOWN_FLAG="markdown-smart"
PANDOC_MARKDOWN_FLAG="$PANDOC_MARKDOWN_FLAG-smart"
else
AC_MSG_RESULT([no])
fi
AC_MSG_CHECKING([if the pandoc tex_math_dollars extension needs to be disabled for markdown])
if $PANDOC --list-extensions | $GREP -q '+tex_math_dollars'; then
AC_MSG_RESULT([yes])
PANDOC_MARKDOWN_FLAG="$PANDOC_MARKDOWN_FLAG-tex_math_dollars"
else
AC_MSG_RESULT([no])
fi

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, 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
@@ -159,7 +159,7 @@ AC_DEFUN([BASIC_SETUP_PATHS_WINDOWS],
else
WINENV_PREFIX_ARG="$WINENV_PREFIX"
fi
FIXPATH_ARGS="-e $PATHTOOL -p $WINENV_PREFIX_ARG -r ${WINENV_ROOT//\\/\\\\} -t $WINENV_TEMP_DIR -c $CMD -q"
FIXPATH_ARGS="-e $PATHTOOL -p $WINENV_PREFIX_ARG -r ${WINENV_ROOT//\\/\\\\} -t $WINENV_TEMP_DIR -c $CMD"
FIXPATH_BASE="$BASH $FIXPATH_DIR/fixpath.sh $FIXPATH_ARGS"
FIXPATH="$FIXPATH_BASE exec"
@@ -215,7 +215,7 @@ AC_DEFUN([BASIC_WINDOWS_FINALIZE_FIXPATH],
if test "x$OPENJDK_BUILD_OS" = xwindows; then
FIXPATH_CMDLINE=". $TOPDIR/make/scripts/fixpath.sh -e $PATHTOOL \
-p $WINENV_PREFIX_ARG -r ${WINENV_ROOT//\\/\\\\} -t $WINENV_TEMP_DIR \
-c $CMD -q"
-c $CMD"
$ECHO > $OUTPUTDIR/fixpath '#!/bin/bash'
$ECHO >> $OUTPUTDIR/fixpath export PATH='"[$]PATH:'$PATH'"'
$ECHO >> $OUTPUTDIR/fixpath $FIXPATH_CMDLINE '"[$]@"'

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
@@ -180,11 +180,13 @@ AC_DEFUN([BOOTJDK_CHECK_JAVA_HOME],
# Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
AC_DEFUN([BOOTJDK_CHECK_JAVA_IN_PATH_IS_SYMLINK],
[
UTIL_LOOKUP_PROGS(JAVAC_CHECK, javac, , NOFIXPATH)
UTIL_LOOKUP_PROGS(JAVA_CHECK, java, , NOFIXPATH)
BINARY="$JAVAC_CHECK"
if test "x$JAVAC_CHECK" = x; then
BINARY="$JAVA_CHECK"
UTIL_LOOKUP_PROGS(JAVAC_CHECK, javac)
UTIL_GET_EXECUTABLE(JAVAC_CHECK) # Will setup JAVAC_CHECK_EXECUTABLE
UTIL_LOOKUP_PROGS(JAVA_CHECK, java)
UTIL_GET_EXECUTABLE(JAVA_CHECK) # Will setup JAVA_CHECK_EXECUTABLE
BINARY="$JAVAC_CHECK_EXECUTABLE"
if test "x$JAVAC_CHECK_EXECUTABLE" = x; then
BINARY="$JAVA_CHECK_EXECUTABLE"
fi
if test "x$BINARY" != x; then
# So there is a java(c) binary, it might be part of a JDK.

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2021, Azul Systems, Inc. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
@@ -53,10 +53,10 @@ if [ "x$OUT" = x ]; then
fi
fi
# Test and fix cygwin on x86_64
echo $OUT | grep 86-pc-cygwin > /dev/null 2> /dev/null
# Test and fix cygwin/msys CPUs
echo $OUT | grep -e "-pc-cygwin" > /dev/null 2> /dev/null
if test $? != 0; then
echo $OUT | grep 86-pc-mingw > /dev/null 2> /dev/null
echo $OUT | grep -e "-pc-mingw" > /dev/null 2> /dev/null
fi
if test $? = 0; then
case `echo $PROCESSOR_IDENTIFIER | cut -f1 -d' '` in
@@ -64,6 +64,10 @@ if test $? = 0; then
REAL_CPU=x86_64
OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
;;
ARMv8)
REAL_CPU=aarch64
OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
;;
esac
fi

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
@@ -75,7 +75,8 @@ AC_DEFUN([BPERF_CHECK_MEMORY_SIZE],
FOUND_MEM=yes
elif test "x$OPENJDK_BUILD_OS" = xwindows; then
# Windows, but without cygwin
MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-`
MEMORY_SIZE=`powershell -Command \
"(Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory" | $SED 's/\\r//g' `
MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024`
FOUND_MEM=yes
fi

View File

@@ -49,7 +49,9 @@ fi
export CONFIG_SHELL=$BASH
export _as_can_reexec=no
# Make sure all shell commands are executed with the C locale
# Save user's current locale, but make sure all future shell commands are
# executed with the C locale
export USER_LOCALE=$LC_ALL
export LC_ALL=C
if test "x$CUSTOM_CONFIG_DIR" != x; then

View File

@@ -261,6 +261,7 @@ JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH
JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT
JDKOPT_SETUP_MACOSX_SIGNING
JDKOPT_SETUP_SIGNING_HOOK
JDKOPT_SETUP_JAVA_WARNINGS
################################################################################
#

View File

@@ -573,12 +573,20 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
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 -Zc:throwingNew -permissive- -utf-8 -MP"
TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:preprocessor -Zc:inline -Zc:throwingNew -permissive- -utf-8 -Zc:wchar_t-"
TOOLCHAIN_CFLAGS_JVM="-nologo -MD -Zc:preprocessor -Zc:inline -Zc:throwingNew -permissive- -MP"
TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:preprocessor -Zc:inline -Zc:throwingNew -permissive- -Zc:wchar_t-"
fi
# Set character encoding in source
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
CHARSET_CFLAGS="-finput-charset=utf-8"
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
# The -utf-8 option sets both source and execution character sets
CHARSET_CFLAGS="-utf-8 -validate-charset"
fi
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM $CHARSET_CFLAGS"
TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK $CHARSET_CFLAGS"
# CFLAGS C language level for JDK sources (hotspot only uses C++)
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
LANGSTD_CFLAGS="-std=c11"
@@ -721,11 +729,10 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
$1_CFLAGS_CPU="-fsigned-char -Wno-psabi $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'"
$1_CFLAGS_CPU_JVM="-DARM"
elif test "x$FLAGS_CPU_ARCH" = xppc; then
$1_CFLAGS_CPU_JVM="-minsert-sched-nops=regroup_exact -mno-multiple -mno-string"
$1_CFLAGS_CPU_JVM="-mno-multiple -mno-string"
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="-mcpu=powerpc64 -mtune=power5"
$1_CFLAGS_CPU="-mcpu=power8 -mtune=power8"
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -mminimal-toc"
elif test "x$FLAGS_CPU" = xppc64le; then
# Little endian machine uses ELFv2 ABI.
@@ -924,8 +931,9 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
# Check whether the compiler supports the Arm C Language Extensions (ACLE)
# for SVE. Set SVE_CFLAGS to -march=armv8-a+sve if it does.
# ACLE and this flag are required to build the aarch64 SVE related functions in
# libvectormath.
if test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
# libvectormath. Apple Silicon does not support SVE; use macOS as a proxy for
# that check.
if test "x$OPENJDK_TARGET_CPU" = "xaarch64" && test "x$OPENJDK_TARGET_CPU" = "xlinux"; then
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
AC_LANG_PUSH(C)
OLD_CFLAGS="$CFLAGS"

View File

@@ -228,19 +228,19 @@ AC_DEFUN_ONCE([HELP_PRINT_ADDITIONAL_HELP_AND_EXIT],
if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
# Print available toolchains
$PRINTF "The following toolchains are valid as arguments to --with-toolchain-type.\n"
$PRINTF "Which are available to use depends on the build platform.\n"
$ECHO "The following toolchains are valid as arguments to --with-toolchain-type."
$ECHO "Which are available to use depends on the build platform."
for toolchain in $VALID_TOOLCHAINS_all; do
# Use indirect variable referencing
toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
$PRINTF " %-22s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
done
$PRINTF "\n"
$ECHO ""
# Print available JVM features
$PRINTF "The following JVM features are valid as arguments to --with-jvm-features.\n"
$PRINTF "Which are available to use depends on the environment and JVM variant.\n"
$ECHO "The following JVM features are valid as arguments to --with-jvm-features."
$ECHO "Which are available to use depends on the environment and JVM variant."
m4_foreach(FEATURE, m4_split(jvm_features_valid), [
# Create an m4 variable containing the description for FEATURE.
m4_define(FEATURE_DESCRIPTION, [jvm_feature_desc_]m4_translit(FEATURE, -, _))
@@ -257,115 +257,117 @@ AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
[
# Finally output some useful information to the user
printf "\n"
printf "====================================================\n"
$ECHO ""
$ECHO "===================================================="
if test "x$no_create" != "xyes"; then
if test "x$IS_RECONFIGURE" != "xyes"; then
printf "A new configuration has been successfully created in\n%s\n" "$OUTPUTDIR"
$ECHO "A new configuration has been successfully created in"
$ECHO "$OUTPUTDIR"
else
printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUTDIR"
$ECHO "The existing configuration has been successfully updated in"
$ECHO "$OUTPUTDIR"
fi
else
if test "x$IS_RECONFIGURE" != "xyes"; then
printf "A configuration has been successfully checked but not created\n"
$ECHO "A configuration has been successfully checked but not created"
else
printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUTDIR"
$ECHO "The existing configuration has been successfully checked in"
$ECHO "$OUTPUTDIR"
fi
fi
if test "x$CONFIGURE_COMMAND_LINE" != x; then
printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
$ECHO "using configure arguments '$CONFIGURE_COMMAND_LINE'."
else
printf "using default settings.\n"
$ECHO "using default settings."
fi
if test "x$REAL_CONFIGURE_COMMAND_EXEC_FULL" != x; then
printf "\n"
printf "The original configure invocation was '$REAL_CONFIGURE_COMMAND_EXEC_SHORT $REAL_CONFIGURE_COMMAND_LINE'.\n"
$ECHO ""
$ECHO "The original configure invocation was '$REAL_CONFIGURE_COMMAND_EXEC_SHORT $REAL_CONFIGURE_COMMAND_LINE'."
fi
printf "\n"
printf "Configuration summary:\n"
printf "* Name: $CONF_NAME\n"
printf "* Debug level: $DEBUG_LEVEL\n"
printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n"
printf "* JVM variants: $JVM_VARIANTS\n"
printf "* JVM features: "
$ECHO ""
$ECHO "Configuration summary:"
$ECHO "* Name: $CONF_NAME"
$ECHO "* Debug level: $DEBUG_LEVEL"
$ECHO "* HS debug level: $HOTSPOT_DEBUG_LEVEL"
$ECHO "* JVM variants: $JVM_VARIANTS"
$PRINTF "* JVM features: "
for variant in $JVM_VARIANTS; do
features_var_name=JVM_FEATURES_$variant
JVM_FEATURES_FOR_VARIANT=${!features_var_name}
printf "$variant: \'$JVM_FEATURES_FOR_VARIANT\' "
$PRINTF "%s: \'%s\' " "$variant" "$JVM_FEATURES_FOR_VARIANT"
done
printf "\n"
$ECHO ""
printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n"
printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n"
$ECHO "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS"
$ECHO "* Version string: $VERSION_STRING ($VERSION_SHORT)"
if test "x$SOURCE_DATE" != xupdated; then
source_date_info="$SOURCE_DATE ($SOURCE_DATE_ISO_8601)"
else
source_date_info="Determined at build time"
fi
printf "* Source date: $source_date_info\n"
$ECHO "* Source date: $source_date_info"
printf "\n"
printf "Tools summary:\n"
$ECHO ""
$ECHO "Tools summary:"
if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
printf "* Environment: %s version %s; windows version %s; prefix \"%s\"; root \"%s\"\n" \
"$WINENV_VENDOR" "$WINENV_VERSION" "$WINDOWS_VERSION" "$WINENV_PREFIX" "$WINENV_ROOT"
$ECHO "* Environment: $WINENV_VENDOR version $WINENV_VERSION; windows version $WINDOWS_VERSION; prefix \"$WINENV_PREFIX\"; root \"$WINENV_ROOT\""
fi
printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n"
printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n"
$ECHO "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)"
$ECHO "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)"
if test "x$DEVKIT_NAME" != x; then
printf "* Devkit: $DEVKIT_NAME ($DEVKIT_ROOT)\n"
$ECHO "* Devkit: $DEVKIT_NAME ($DEVKIT_ROOT)"
elif test "x$DEVKIT_ROOT" != x; then
printf "* Devkit: $DEVKIT_ROOT\n"
$ECHO "* Devkit: $DEVKIT_ROOT"
elif test "x$SYSROOT" != x; then
printf "* Sysroot: $SYSROOT\n"
$ECHO "* Sysroot: $SYSROOT"
fi
printf "* C Compiler: Version $CC_VERSION_NUMBER (at ${CC#"$FIXPATH "})\n"
printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at ${CXX#"$FIXPATH "})\n"
$ECHO "* C Compiler: Version $CC_VERSION_NUMBER (at ${CC#"$FIXPATH "})"
$ECHO "* C++ Compiler: Version $CXX_VERSION_NUMBER (at ${CXX#"$FIXPATH "})"
printf "\n"
printf "Build performance summary:\n"
printf "* Build jobs: $JOBS\n"
printf "* Memory limit: $MEMORY_SIZE MB\n"
$ECHO ""
$ECHO "Build performance summary:"
$ECHO "* Build jobs: $JOBS"
$ECHO "* Memory limit: $MEMORY_SIZE MB"
if test "x$CCACHE_STATUS" != "x"; then
printf "* ccache status: $CCACHE_STATUS\n"
$ECHO "* ccache status: $CCACHE_STATUS"
fi
printf "\n"
$ECHO ""
if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
printf "NOTE: You have requested to build more than one version of the JVM, which\n"
printf "will result in longer build times.\n"
printf "\n"
$ECHO "NOTE: You have requested to build more than one version of the JVM, which"
$ECHO "will result in longer build times."
$ECHO ""
fi
if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then
printf "WARNING: Your build output directory is not on a local disk.\n"
printf "This will severely degrade build performance!\n"
printf "It is recommended that you create an output directory on a local disk,\n"
printf "and run the configure script again from that directory.\n"
printf "\n"
$ECHO "WARNING: Your build output directory is not on a local disk."
$ECHO "This will severely degrade build performance!"
$ECHO "It is recommended that you create an output directory on a local disk,"
$ECHO "and run the configure script again from that directory."
$ECHO ""
fi
if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then
printf "WARNING: The result of this configuration has overridden an older\n"
printf "configuration. You *should* run 'make clean' to make sure you get a\n"
printf "proper build. Failure to do so might result in strange build problems.\n"
printf "\n"
$ECHO "WARNING: The result of this configuration has overridden an older"
$ECHO "configuration. You *should* run 'make clean' to make sure you get a"
$ECHO "proper build. Failure to do so might result in strange build problems."
$ECHO ""
fi
if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then
printf "WARNING: The result of this configuration was not saved.\n"
printf "You should run without '--no-create | -n' to create the configuration.\n"
printf "\n"
$ECHO "WARNING: The result of this configuration was not saved."
$ECHO "You should run without '--no-create | -n' to create the configuration."
$ECHO ""
fi
if test "x$UNSUPPORTED_TOOLCHAIN_VERSION" = "xyes"; then
printf "WARNING: The toolchain version used is known to have issues. Please\n"
printf "consider using a supported version unless you know what you are doing.\n"
printf "\n"
$ECHO "WARNING: The toolchain version used is known to have issues. Please"
$ECHO "consider using a supported version unless you know what you are doing."
$ECHO ""
fi
])
@@ -381,10 +383,10 @@ AC_DEFUN_ONCE([HELP_REPEAT_WARNINGS],
if test -e "$CONFIG_LOG_PATH/config.log"; then
$GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1
if test $? -eq 0; then
printf "The following warnings were produced. Repeated here for convenience:\n"
$ECHO "The following warnings were produced. Repeated here for convenience:"
# We must quote sed expression (using []) to stop m4 from eating the [].
$GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e [ 's/^configure:[0-9]*: //' ]
printf "\n"
$ECHO ""
fi
fi
])

View File

@@ -405,10 +405,19 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE],
JCOV_FILTERS="$with_jcov_filters"
fi
fi
UTIL_ARG_WITH(NAME: jcov-modules, TYPE: string,
DEFAULT: [], RESULT: JCOV_MODULES_COMMMA_SEPARATED,
DESC: [which modules to include in jcov (comma-separated)],
OPTIONAL: true)
# Replace "," with " ".
JCOV_MODULES=${JCOV_MODULES_COMMMA_SEPARATED//,/ }
AC_SUBST(JCOV_ENABLED)
AC_SUBST(JCOV_HOME)
AC_SUBST(JCOV_INPUT_JDK)
AC_SUBST(JCOV_FILTERS)
AC_SUBST(JCOV_MODULES)
])
################################################################################
@@ -520,8 +529,21 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
# 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 -Wno-array-bounds -Wno-stringop-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-array-bounds -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
if test "x$TOOLCHAIN_TYPE" = "xgcc"; then
UBSAN_CFLAGS="$UBSAN_CFLAGS -Wno-format-overflow -Wno-stringop-overflow -Wno-stringop-truncation"
fi
UBSAN_LDFLAGS="$UBSAN_CHECKS"
# On AIX, the llvm_symbolizer is not found out of the box, so we have to provide the
# full qualified llvm_symbolizer path in the __ubsan_default_options() function in
# make/data/ubsan/ubsan_default_options.c. To get it there we compile our sources
# with an additional define LLVM_SYMBOLIZER, which we set here.
# To calculate the correct llvm_symbolizer path we can use the location of the compiler, because
# their relation is fixed.
if test "x$TOOLCHAIN_TYPE" = "xclang" && test "x$OPENJDK_TARGET_OS" = "xaix"; then
UBSAN_CFLAGS="$UBSAN_CFLAGS -fno-sanitize=function,vptr -DLLVM_SYMBOLIZER=$(dirname $(dirname $CC))/tools/ibm-llvm-symbolizer"
UBSAN_LDFLAGS="$UBSAN_LDFLAGS -fno-sanitize=function,vptr -Wl,-bbigtoc"
fi
UTIL_ARG_ENABLE(NAME: ubsan, DEFAULT: false, RESULT: UBSAN_ENABLED,
DESC: [enable UndefinedBehaviorSanitizer],
CHECK_AVAILABLE: [
@@ -988,6 +1010,18 @@ AC_DEFUN([JDKOPT_SETUP_SIGNING_HOOK],
AC_SUBST(SIGNING_HOOK)
])
################################################################################
#
# Setup how javac should handle warnings.
#
AC_DEFUN([JDKOPT_SETUP_JAVA_WARNINGS],
[
UTIL_ARG_ENABLE(NAME: java-warnings-as-errors, DEFAULT: true,
RESULT: JAVA_WARNINGS_AS_ERRORS,
DESC: [consider java warnings to be an error])
AC_SUBST(JAVA_WARNINGS_AS_ERRORS)
])
################################################################################
#
# fallback linker

View File

@@ -62,19 +62,29 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBJPEG],
if test "x${with_libjpeg}" = "xbundled"; then
USE_EXTERNAL_LIBJPEG=false
LIBJPEG_CFLAGS=""
LIBJPEG_LIBS=""
elif test "x${with_libjpeg}" = "xsystem"; then
AC_CHECK_HEADER(jpeglib.h, [],
[ AC_MSG_ERROR([--with-libjpeg=system specified, but jpeglib.h not found!])])
AC_CHECK_LIB(jpeg, jpeg_CreateDecompress, [],
[ AC_MSG_ERROR([--with-libjpeg=system specified, but no libjpeg found])])
PKG_CHECK_MODULES(LIBJPEG, libjpeg, [LIBJPEG_FOUND=yes], [LIBJPEG_FOUND=no])
if test "x${LIBJPEG_FOUND}" = "xyes"; then
# PKG_CHECK_MODULES will set LIBJPEG_CFLAGS and LIBJPEG_LIBS
USE_EXTERNAL_LIBJPEG=true
else
AC_CHECK_HEADER(jpeglib.h, [],
[ AC_MSG_ERROR([--with-libjpeg=system specified, but jpeglib.h not found!])])
AC_CHECK_LIB(jpeg, jpeg_CreateDecompress, [],
[ AC_MSG_ERROR([--with-libjpeg=system specified, but no libjpeg found])])
USE_EXTERNAL_LIBJPEG=true
LIBJPEG_LIBS="-ljpeg"
USE_EXTERNAL_LIBJPEG=true
LIBJPEG_CFLAGS=""
LIBJPEG_LIBS="-ljpeg"
fi
else
AC_MSG_ERROR([Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'])
fi
AC_SUBST(USE_EXTERNAL_LIBJPEG)
AC_SUBST(LIBJPEG_CFLAGS)
AC_SUBST(LIBJPEG_LIBS)
])
@@ -85,6 +95,10 @@ AC_DEFUN_ONCE([LIB_SETUP_GIFLIB],
[
AC_ARG_WITH(giflib, [AS_HELP_STRING([--with-giflib],
[use giflib from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
AC_ARG_WITH(giflib-include, [AS_HELP_STRING([--with-giflib-include],
[specify directory for the system giflib include files])])
AC_ARG_WITH(giflib-lib, [AS_HELP_STRING([--with-giflib-lib],
[specify directory for the system giflib library])])
AC_MSG_CHECKING([for which giflib to use])
# default is bundled
@@ -97,11 +111,40 @@ AC_DEFUN_ONCE([LIB_SETUP_GIFLIB],
if test "x${with_giflib}" = "xbundled"; then
USE_EXTERNAL_LIBGIF=false
GIFLIB_CFLAGS=""
GIFLIB_LIBS=""
elif test "x${with_giflib}" = "xsystem"; then
AC_CHECK_HEADER(gif_lib.h, [],
[ AC_MSG_ERROR([--with-giflib=system specified, but gif_lib.h not found!])])
AC_CHECK_LIB(gif, DGifGetCode, [],
[ AC_MSG_ERROR([--with-giflib=system specified, but no giflib found!])])
GIFLIB_H_FOUND=no
if test "x${with_giflib_include}" != x; then
GIFLIB_CFLAGS="-I${with_giflib_include}"
GIFLIB_H_FOUND=yes
fi
if test "x$GIFLIB_H_FOUND" = xno; then
AC_CHECK_HEADER(gif_lib.h,
[
GIFLIB_CFLAGS=""
GIFLIB_H_FOUND=yes
])
fi
if test "x$GIFLIB_H_FOUND" = xno; then
AC_MSG_ERROR([--with-giflib=system specified, but gif_lib.h not found!])
fi
GIFLIB_LIB_FOUND=no
if test "x${with_giflib_lib}" != x; then
GIFLIB_LIBS="-L${with_giflib_lib} -lgif"
GIFLIB_LIB_FOUND=yes
fi
if test "x$GIFLIB_LIB_FOUND" = xno; then
AC_CHECK_LIB(gif, DGifGetCode,
[
GIFLIB_LIBS="-lgif"
GIFLIB_LIB_FOUND=yes
])
fi
if test "x$GIFLIB_LIB_FOUND" = xno; then
AC_MSG_ERROR([--with-giflib=system specified, but no giflib found!])
fi
USE_EXTERNAL_LIBGIF=true
GIFLIB_LIBS=-lgif
@@ -110,6 +153,7 @@ AC_DEFUN_ONCE([LIB_SETUP_GIFLIB],
fi
AC_SUBST(USE_EXTERNAL_LIBGIF)
AC_SUBST(GIFLIB_CFLAGS)
AC_SUBST(GIFLIB_LIBS)
])

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
@@ -98,13 +98,7 @@ AC_DEFUN([LIB_SETUP_JVM_LIBS],
# 32-bit platforms needs fallback library for 8-byte atomic ops on Zero
if HOTSPOT_CHECK_JVM_VARIANT(zero); then
if test "x$OPENJDK_$1_OS" = xlinux &&
(test "x$OPENJDK_$1_CPU" = xarm ||
test "x$OPENJDK_$1_CPU" = xm68k ||
test "x$OPENJDK_$1_CPU" = xmips ||
test "x$OPENJDK_$1_CPU" = xmipsel ||
test "x$OPENJDK_$1_CPU" = xppc ||
test "x$OPENJDK_$1_CPU" = xsh ||
test "x$OPENJDK_$1_CPU" = xriscv32); then
test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then
BASIC_JVM_LIBS_$1="$BASIC_JVM_LIBS_$1 -latomic"
fi
fi

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
@@ -454,6 +454,7 @@ JCOV_ENABLED := @JCOV_ENABLED@
JCOV_HOME := @JCOV_HOME@
JCOV_INPUT_JDK := @JCOV_INPUT_JDK@
JCOV_FILTERS := @JCOV_FILTERS@
JCOV_MODULES := @JCOV_MODULES@
# AddressSanitizer
ASAN_ENABLED := @ASAN_ENABLED@
@@ -517,6 +518,7 @@ DISABLED_WARNINGS_CXX := @DISABLED_WARNINGS_CXX@
# A global flag (true or false) determining if native warnings are considered errors.
WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
JAVA_WARNINGS_AS_ERRORS := @JAVA_WARNINGS_AS_ERRORS@
CFLAGS_CCACHE := @CFLAGS_CCACHE@
ADLC_LANGSTD_CXXFLAGS := @ADLC_LANGSTD_CXXFLAGS@
@@ -800,8 +802,10 @@ TAR_SUPPORTS_TRANSFORM := @TAR_SUPPORTS_TRANSFORM@
# Build setup
USE_EXTERNAL_LIBJPEG := @USE_EXTERNAL_LIBJPEG@
LIBJPEG_CFLAGS := @LIBJPEG_CFLAGS@
LIBJPEG_LIBS := @LIBJPEG_LIBS@
USE_EXTERNAL_LIBGIF := @USE_EXTERNAL_LIBGIF@
GIFLIB_CFLAGS := @GIFLIB_CFLAGS@
GIFLIB_LIBS := @GIFLIB_LIBS@
USE_EXTERNAL_LIBZ := @USE_EXTERNAL_LIBZ@
LIBZ_CFLAGS := @LIBZ_CFLAGS@
@@ -843,10 +847,12 @@ SVE_CFLAGS := @SVE_CFLAGS@
JDK_IMAGE_SUBDIR := jdk
JRE_IMAGE_SUBDIR := jre
JCOV_IMAGE_SUBDIR := jdk-jcov
STATIC_JDK_IMAGE_SUBDIR := static-jdk
# Colon left out to be able to override output dir for bootcycle-images
JDK_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
JRE_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
STATIC_JDK_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(STATIC_JDK_IMAGE_SUBDIR)
JCOV_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JCOV_IMAGE_SUBDIR)
# Test image, as above
@@ -926,6 +932,7 @@ DOCS_JAVASE_BUNDLE_NAME := javase-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
DOCS_REFERENCE_BUNDLE_NAME := jdk-reference-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
STATIC_LIBS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs$(DEBUG_PART).tar.gz
STATIC_LIBS_GRAAL_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs-graal$(DEBUG_PART).tar.gz
STATIC_JDK_BUNDLE_NAME := static-jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
@@ -936,6 +943,7 @@ TEST_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
DOCS_JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DOCS_JDK_BUNDLE_NAME)
DOCS_JAVASE_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DOCS_JAVASE_BUNDLE_NAME)
DOCS_REFERENCE_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DOCS_REFERENCE_BUNDLE_NAME)
STATIC_JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(STATIC_JDK_BUNDLE_NAME)
JCOV_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JCOV_BUNDLE_NAME)
# This macro is called to allow inclusion of closed source counterparts.

View File

@@ -291,6 +291,11 @@ AC_DEFUN_ONCE([TOOLCHAIN_PRE_DETECTION],
# For Xcode, we set the Xcode version as TOOLCHAIN_VERSION
TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '`
TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode $TOOLCHAIN_VERSION"
if test "x$TOOLCHAIN_VERSION" = "x16" || test "x$TOOLCHAIN_VERSION" = "x16.1" ; then
AC_MSG_NOTICE([Xcode $TOOLCHAIN_VERSION has a compiler bug that causes the build to fail.])
AC_MSG_NOTICE([Please use Xcode 16.2 or later, or a version prior to 16.])
AC_MSG_ERROR([Compiler version is not supported.])
fi
fi
fi
AC_SUBST(TOOLCHAIN_VERSION)
@@ -622,7 +627,7 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_CORE],
LDCXX="$CXX"
# Force use of lld, since that is what we expect when setting flags later on
if test "x$TOOLCHAIN_TYPE" = xclang; then
if test "x$OPENJDK_BUILD_OS" != "xmacosx"; then
if test "x$OPENJDK_TARGET_OS" = xlinux; then
LD="$LD -fuse-ld=lld"
LDCXX="$LDCXX -fuse-ld=lld"
fi

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
@@ -87,7 +87,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
elif test "x$TARGET_CPU" = xaarch64; then
# for host x86-64, target aarch64
# aarch64 requires Visual Studio 16.8 or higher
VCVARSFILES="vcvarsamd64_arm64.bat vcvarsx86_arm64.bat"
VCVARSFILES="vcvarsarm64.bat vcvarsamd64_arm64.bat vcvarsx86_arm64.bat"
fi
for VCVARSFILE in $VCVARSFILES; do

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
@@ -58,21 +58,32 @@ AC_DEFUN([UTIL_PREPEND_TO_PATH],
# 2) The path will be absolute, and it will be in unix-style (on
# cygwin).
# $1: The name of the variable to fix
# $2: if NOFAIL, errors will be silently ignored
# $2: if NOFAIL, if the path cannot be resolved then errors will not be
# reported and an empty path will be set
AC_DEFUN([UTIL_FIXUP_PATH],
[
# Only process if variable expands to non-empty
path="[$]$1"
if test "x$path" != x; then
if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
if test "x$2" = "xNOFAIL"; then
quiet_option="-q"
imported_path=`$FIXPATH_BASE -q import "$path"`
if test $? -ne 0 || test ! -e $imported_path; then
if test "x$2" != "xNOFAIL"; then
AC_MSG_NOTICE([The path of $1, which is given as "$path", can not be properly resolved.])
AC_MSG_NOTICE([Please see the section "Special Considerations" in building.md.])
AC_MSG_NOTICE([This is the error message given by fixpath:])
# Rerun fixpath without -q to get an error message
$FIXPATH_BASE import "$path"
AC_MSG_ERROR([Cannot continue])
else
imported_path=""
fi
fi
imported_path=`$FIXPATH_BASE $quiet_option import "$path"`
$FIXPATH_BASE verify "$imported_path"
$FIXPATH_BASE -q verify "$imported_path"
if test $? -ne 0; then
if test "x$2" != "xNOFAIL"; then
AC_MSG_ERROR([The path of $1, which resolves as "$path", could not be imported.])
AC_MSG_ERROR([The path of $1, which resolves as "$path", could not be verified.])
else
imported_path=""
fi
@@ -83,7 +94,7 @@ AC_DEFUN([UTIL_FIXUP_PATH],
if test "x$imported_path_lower" != "x$orig_path_lower"; then
$1="$imported_path"
fi
else
else # non-Windows
[ if [[ "$path" =~ " " ]]; then ]
if test "x$2" != "xNOFAIL"; then
AC_MSG_NOTICE([The path of $1, which resolves as "$path", is invalid.])
@@ -186,7 +197,6 @@ AC_DEFUN([UTIL_CHECK_WINENV_EXEC_TYPE],
# it need to be in the PATH.
# $1: The name of the variable to fix
# $2: Where to look for the command (replaces $PATH)
# $3: set to NOFIXPATH to skip prefixing FIXPATH, even if needed on platform
AC_DEFUN([UTIL_FIXUP_EXECUTABLE],
[
input="[$]$1"
@@ -233,15 +243,19 @@ AC_DEFUN([UTIL_FIXUP_EXECUTABLE],
# This is a path with slashes, don't look at $PATH
if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
# fixpath.sh import will do all heavy lifting for us
new_path=`$FIXPATH_BASE import "$path"`
new_path=`$FIXPATH_BASE -q import "$path"`
if test ! -e $new_path; then
if test $? -ne 0 || test ! -e $new_path; then
# It failed, but maybe spaces were part of the path and not separating
# the command and argument. Retry using that assumption.
new_path=`$FIXPATH_BASE import "$input"`
if test ! -e $new_path; then
AC_MSG_NOTICE([The command for $1, which resolves as "$input", can not be found.])
AC_MSG_ERROR([Cannot locate $input])
new_path=`$FIXPATH_BASE -q import "$input"`
if test $? -ne 0 || test ! -e $new_path; then
AC_MSG_NOTICE([The command for $1, which is given as "$input", can not be properly resolved.])
AC_MSG_NOTICE([Please see the section "Special Considerations" in building.md.])
AC_MSG_NOTICE([This is the error message given by fixpath:])
# Rerun fixpath without -q to get an error message
$FIXPATH_BASE import "$input"
AC_MSG_ERROR([Cannot continue])
fi
# It worked, clear all "arguments"
arguments=""
@@ -282,10 +296,6 @@ AC_DEFUN([UTIL_FIXUP_EXECUTABLE],
fi
fi
if test "x$3" = xNOFIXPATH; then
fixpath_prefix=""
fi
# Now join together the path and the arguments once again
new_complete="$fixpath_prefix$new_path$arguments"
$1="$new_complete"
@@ -353,7 +363,15 @@ AC_DEFUN([UTIL_SETUP_TOOL],
else
# Otherwise we believe it is a complete path. Use it as it is.
if test ! -x "$tool_command" && test ! -x "${tool_command}.exe"; then
AC_MSG_ERROR([User supplied tool $1="$tool_command" does not exist or is not executable])
# Maybe the path had spaces in it; try again with the entire argument
if test ! -x "$tool_override" && test ! -x "${tool_override}.exe"; then
AC_MSG_ERROR([User supplied tool $1="$tool_override" does not exist or is not executable])
else
# We successfully located the executable assuming the spaces were part of the path.
# We can't combine using paths with spaces and arguments, so assume tool_args is empty.
tool_command="$tool_override"
tool_args=""
fi
fi
if test ! -x "$tool_command"; then
tool_command="${tool_command}.exe"
@@ -379,7 +397,6 @@ AC_DEFUN([UTIL_SETUP_TOOL],
# $1: variable to set
# $2: executable name (or list of names) to look for
# $3: [path]
# $4: set to NOFIXPATH to skip prefixing FIXPATH, even if needed on platform
AC_DEFUN([UTIL_LOOKUP_PROGS],
[
UTIL_SETUP_TOOL($1, [
@@ -421,10 +438,8 @@ AC_DEFUN([UTIL_LOOKUP_PROGS],
# If we have FIXPATH enabled, strip all instances of it and prepend
# a single one, to avoid double fixpath prefixing.
if test "x$4" != xNOFIXPATH; then
[ if [[ $FIXPATH != "" && $result =~ ^"$FIXPATH " ]]; then ]
result="\$FIXPATH ${result#"$FIXPATH "}"
fi
[ if [[ $FIXPATH != "" && $result =~ ^"$FIXPATH " ]]; then ]
result="\$FIXPATH ${result#"$FIXPATH "}"
fi
AC_MSG_RESULT([$result])
break 2;
@@ -515,6 +530,24 @@ AC_DEFUN([UTIL_ADD_FIXPATH],
fi
])
################################################################################
# Return a path to the executable binary from a command line, stripping away
# any FIXPATH prefix or arguments. The resulting value can be checked for
# existence using "test -e". The result is returned in a variable named
# "$1_EXECUTABLE".
#
# $1: variable describing the command to get the binary for
AC_DEFUN([UTIL_GET_EXECUTABLE],
[
# Strip the FIXPATH prefix, if any
fixpath_stripped="[$]$1"
[ if [[ $FIXPATH != "" && $fixpath_stripped =~ ^"$FIXPATH " ]]; then ]
fixpath_stripped="${fixpath_stripped#"$FIXPATH "}"
fi
# Remove any arguments following the binary
$1_EXECUTABLE="${fixpath_stripped%% *}"
])
################################################################################
AC_DEFUN([UTIL_REMOVE_SYMBOLIC_LINKS],
[

View File

@@ -58,13 +58,15 @@ ifeq ($(GENERATE_FIND_TESTS_FILE), true)
$(TOPDIR)/test/make/TestMake.gmk
$(call MakeTargetDir)
( $(foreach root, $(JTREG_TESTROOTS), \
$(PRINTF) "\n$(root)_JTREG_TEST_GROUPS := " ; \
$(ECHO) ""; \
$(PRINTF) "\n%s_JTREG_TEST_GROUPS := " "$(root)"; \
$(SED) -n -e 's/^\#.*//g' -e 's/\([^ ]*\)\w*=.*/\1/gp' \
$($(root)_JTREG_GROUP_FILES) \
| $(SORT) -u | $(TR) '\n' ' ' ; \
) \
) > $@
$(PRINTF) "\nMAKE_TEST_TARGETS := " >> $@
$(ECHO) "" >> $@
$(PRINTF) "MAKE_TEST_TARGETS := " >> $@
$(MAKE) -s --no-print-directory $(MAKE_ARGS) \
SPEC=$(SPEC) -f $(TOPDIR)/test/make/TestMake.gmk print-targets \
TARGETS_FILE=$@

View File

@@ -256,7 +256,7 @@ define SetupJarArchiveBody
$$(if $$($1_JARMAIN), \
$(ECHO) "Main-Class: $$(strip $$($1_JARMAIN))" >> $$($1_MANIFEST_FILE) $$(NEWLINE)) \
$$(if $$($1_EXTRA_MANIFEST_ATTR), \
$(PRINTF) "$$($1_EXTRA_MANIFEST_ATTR)\n" >> $$($1_MANIFEST_FILE) $$(NEWLINE)) \
$(ECHO) "$$($1_EXTRA_MANIFEST_ATTR)" >> $$($1_MANIFEST_FILE) $$(NEWLINE)) \
$(ECHO) Creating $$($1_NAME) $$(NEWLINE) \
$$($1_JAR_CMD) --create $$($1_JAR_OPTIONS) --file $$@ --manifest $$($1_MANIFEST_FILE) $$(NEWLINE) \
$$($1_SCAPTURE_CONTENTS) \

View File

@@ -80,15 +80,13 @@ endef
#
# The sed expression does this:
# 1. Add a backslash before any :, = or ! that do not have a backslash already.
# 2. Apply the file unicode2x.sed which does a whole bunch of \u00XX to \xXX
# conversions.
# 3. Delete all lines starting with #.
# 4. Delete empty lines.
# 5. Append lines ending with \ with the next line.
# 6. Remove leading and trailing white space. Note that tabs must be explicit
# 2. Delete all lines starting with #.
# 3. Delete empty lines.
# 4. Append lines ending with \ with the next line.
# 5. Remove leading and trailing white space. Note that tabs must be explicit
# as sed on macosx does not understand '\t'.
# 7. Replace the first \= with just =.
# 8. Finally it's all sorted to create a stable output.
# 6. Replace the first \= with just =.
# 7. Finally it's all sorted to create a stable output.
#
# It is assumed that = is the character used for separating names and values.
define add_file_to_clean
@@ -108,7 +106,6 @@ define add_file_to_clean
( $(CAT) $$< && $(ECHO) "" ) \
| $(SED) -e 's/\([^\\]\):/\1\\:/g' -e 's/\([^\\]\)=/\1\\=/g' \
-e 's/\([^\\]\)!/\1\\!/g' -e 's/^[ ]*#.*/#/g' \
| $(SED) -f "$$(TOPDIR)/make/common/support/unicode2x.sed" \
| $(SED) -e '/^#/d' -e '/^$$$$/d' \
-e :a -e '/\\$$$$/N; s/\\\n//; ta' \
-e 's/^[ ]*//;s/[ ]*$$$$//' \
@@ -155,6 +152,7 @@ endef
# 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.
# EXCLUDE_PATTERNS Exclude files matching any of these substrings
# EXTRA_FILES List of extra source files to include in compilation. Can be used to
# specify files that need to be generated by other rules first.
# HEADERS path to directory where all generated c-headers are written.
@@ -264,14 +262,17 @@ define SetupJavaCompilationBody
$$(error Invalid value for COMPILER in SetupJavaCompilation for $1: '$$($1_COMPILER)')
endif
# Allow overriding on the command line
JAVA_WARNINGS_ARE_ERRORS ?= -Werror
# Tell javac to do exactly as told and no more
PARANOIA_FLAGS := -implicit:none -Xprefer:source -XDignore.symbol.file=true -encoding ascii
PARANOIA_FLAGS := -implicit:none -Xprefer:source -XDignore.symbol.file=true
$1_FLAGS += -g -Xlint:all $$($1_TARGET_RELEASE) $$(PARANOIA_FLAGS) $$(JAVA_WARNINGS_ARE_ERRORS)
$1_FLAGS += -g -Xlint:all $$($1_TARGET_RELEASE) $$(PARANOIA_FLAGS)
$1_FLAGS += $$($1_JAVAC_FLAGS)
# Set character encoding in source
$1_FLAGS += -encoding utf-8
ifeq ($$(JAVA_WARNINGS_AS_ERRORS), true)
$1_FLAGS += -Werror
endif
ifneq ($$($1_DISABLED_WARNINGS), )
$1_FLAGS += -Xlint:$$(call CommaList, $$(addprefix -, $$($1_DISABLED_WARNINGS)))
@@ -332,6 +333,20 @@ define SetupJavaCompilationBody
$1_INCLUDE_PATTERN += $$(foreach i, $$($1_SRC), $$(addprefix $$i/, $$(addsuffix /%, $$($1_INCLUDES))))
endif
ifneq ($$($1_EXCLUDE_PATTERNS), )
# We must not match the exclude pattern against the src roots, so first
# strip the src prefixes from the absolute file paths in SRCS.
$1_SRCS_WITHOUT_ROOTS := $$(foreach i, $$($1_SRC), \
$$(patsubst $$i/%,%, $$(filter $$i/%, $$($1_SRCS))))
$1_EXCLUDE_PATTERNS_WITHOUT_ROOTS := $$(call containing, \
$$($1_EXCLUDE_PATTERNS), $$($1_SRCS_WITHOUT_ROOTS))
# The add back all possible src prefixes; this will generate more paths
# than really exists, but it does not matter since we will use this as
# input to filter-out.
$1_EXCLUDE_PATTERN += $$(foreach i, $$($1_SRC), $$(addprefix $$i/, \
$$($1_EXCLUDE_PATTERNS_WITHOUT_ROOTS)))
endif
# Apply include/exclude patterns to java sources
ifneq ($$($1_EXCLUDE_PATTERN), )
$1_SRCS := $$(filter-out $$($1_EXCLUDE_PATTERN), $$($1_SRCS))

View File

@@ -227,6 +227,8 @@ endef
GLOBAL_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/common/version.rc
# \xA9 is the copyright symbol in ANSI encoding (Windows-1252), which rc.exe
# assumes the resource file is in.
JDK_RCFLAGS=$(RCFLAGS) \
-D"JDK_VERSION_STRING=$(VERSION_STRING)" \
-D"JDK_COMPANY=$(JDK_RC_COMPANY_NAME)" \

View File

@@ -47,7 +47,7 @@ endif
# We need spec.gmk to get $(TOPDIR)
include $(SPEC)
THIS_MAKEFILE := $(patsubst make/%,%,$(patsubst $(TOPDIR)/%,%,$(THIS_MAKEFILE_PATH)))
THIS_MAKEFILE := $(patsubst make/%,%,$(patsubst $(TOPDIR_ALT)/make/%,%,$(patsubst $(TOPDIR)/%,%,$(THIS_MAKEFILE_PATH))))
ifeq ($(LOG_FLOW), true)
$(info :Enter $(THIS_MAKEFILE))

View File

@@ -29,7 +29,7 @@
# Get the next to last word (by prepending a padding element)
THIS_INCLUDE_PATH := $(word $(words ${MAKEFILE_LIST}),padding ${MAKEFILE_LIST})
THIS_INCLUDE := $(patsubst $(TOPDIR)/make/%,%,$(THIS_INCLUDE_PATH))
THIS_INCLUDE := $(patsubst $(TOPDIR_ALT)/make/%,%,$(patsubst $(TOPDIR)/make/%,%,$(THIS_INCLUDE_PATH)))
# Print an indented message, also counting the top-level makefile as a level
ifneq ($(INCLUDE_GUARD_$(THIS_INCLUDE)), true)

View File

@@ -180,7 +180,7 @@ ifeq ($(GENERATE_MODULE_DEPS_FILE), true)
$(call MakeTargetDir)
$(RM) $@
$(foreach m, $(MODULE_INFOS), \
( $(PRINTF) "DEPS_$(call GetModuleNameFromModuleInfo, $m) := " && \
( $(PRINTF) "DEPS_%s := " "$(call GetModuleNameFromModuleInfo, $m)" && \
$(AWK) -v MODULE=$(call GetModuleNameFromModuleInfo, $m) ' \
BEGIN { if (MODULE != "java.base") printf(" java.base"); } \
/^ *requires/ { sub(/;/, ""); \
@@ -194,7 +194,7 @@ ifeq ($(GENERATE_MODULE_DEPS_FILE), true)
gsub(/\r/, ""); \
printf(" %s", $$0) } \
END { printf("\n") }' $m && \
$(PRINTF) "TRANSITIVE_MODULES_$(call GetModuleNameFromModuleInfo, $m) := " && \
$(PRINTF) "TRANSITIVE_MODULES_%s := " "$(call GetModuleNameFromModuleInfo, $m)" && \
$(AWK) -v MODULE=$(call GetModuleNameFromModuleInfo, $m) ' \
BEGIN { if (MODULE != "java.base") printf(" java.base"); } \
/^ *requires *transitive/ { \

View File

@@ -41,8 +41,8 @@ include $(TOPDIR)/make/ToolsJdk.gmk
define SetupVersionProperties
$(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)/$$(strip $2):
$$(call MakeTargetDir)
$(PRINTF) "jdk=$(VERSION_NUMBER)\nfull=$(VERSION_STRING)\nrelease=$(VERSION_SHORT)\n" \
> $$@
$(PRINTF) "jdk=%s\nfull=%s\nrelease=%s\n" \
$(VERSION_NUMBER) $(VERSION_STRING) $(VERSION_SHORT) > $$@
$$(strip $1) += $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)/$$(strip $2)
endef

View File

@@ -128,10 +128,9 @@ define SetupSourceFiles
# Extract the C/C++ files.
ifneq ($$($1_EXCLUDE_PATTERNS), )
# We must not match the exclude pattern against the src root(s).
$1_SRCS_WITHOUT_ROOTS := $$($1_SRCS)
$$(foreach i, $$($1_SRC), $$(eval $1_SRCS_WITHOUT_ROOTS := $$(patsubst \
$$i/%,%, $$($1_SRCS_WITHOUT_ROOTS))))
$1_ALL_EXCLUDE_FILES := $$(call containing, $$($1_EXCLUDE_PATTERNS), \
$1_SRCS_WITHOUT_ROOTS := $$(foreach i, $$($1_SRC), \
$$(patsubst $$i/%,%, $$(filter $$i/%, $$($1_SRCS))))
$1_ALL_EXCLUDE_FILES := $$(call containing, $$($1_EXCLUDE_PATTERNS), \
$$($1_SRCS_WITHOUT_ROOTS))
endif
ifneq ($$($1_EXCLUDE_FILES), )

View File

@@ -1,100 +0,0 @@
s/\\u0020/\x20/g
s/\\u003A/\x3A/g
s/\\u006B/\x6B/g
s/\\u0075/\x75/g
s/\\u00A0/\xA0/g
s/\\u00A3/\xA3/g
s/\\u00B0/\xB0/g
s/\\u00B7/\xB7/g
s/\\u00BA/\xBA/g
s/\\u00BF/\xBF/g
s/\\u00C0/\xC0/g
s/\\u00C1/\xC1/g
s/\\u00C2/\xC2/g
s/\\u00C4/\xC4/g
s/\\u00C5/\xC5/g
s/\\u00C8/\xC8/g
s/\\u00C9/\xC9/g
s/\\u00CA/\xCA/g
s/\\u00CD/\xCD/g
s/\\u00CE/\xCE/g
s/\\u00D3/\xD3/g
s/\\u00D4/\xD4/g
s/\\u00D6/\xD6/g
s/\\u00DA/\xDA/g
s/\\u00DC/\xDC/g
s/\\u00DD/\xDD/g
s/\\u00DF/\xDF/g
s/\\u00E0/\xE0/g
s/\\u00E1/\xE1/g
s/\\u00E2/\xE2/g
s/\\u00E3/\xE3/g
s/\\u00E4/\xE4/g
s/\\u00E5/\xE5/g
s/\\u00E6/\xE6/g
s/\\u00E7/\xE7/g
s/\\u00E8/\xE8/g
s/\\u00E9/\xE9/g
s/\\u00EA/\xEA/g
s/\\u00EB/\xEB/g
s/\\u00EC/\xEC/g
s/\\u00ED/\xED/g
s/\\u00EE/\xEE/g
s/\\u00EF/\xEF/g
s/\\u00F1/\xF1/g
s/\\u00F2/\xF2/g
s/\\u00F3/\xF3/g
s/\\u00F4/\xF4/g
s/\\u00F5/\xF5/g
s/\\u00F6/\xF6/g
s/\\u00F9/\xF9/g
s/\\u00FA/\xFA/g
s/\\u00FC/\xFC/g
s/\\u0020/\x20/g
s/\\u003f/\x3f/g
s/\\u006f/\x6f/g
s/\\u0075/\x75/g
s/\\u00a0/\xa0/g
s/\\u00a3/\xa3/g
s/\\u00b0/\xb0/g
s/\\u00ba/\xba/g
s/\\u00bf/\xbf/g
s/\\u00c1/\xc1/g
s/\\u00c4/\xc4/g
s/\\u00c5/\xc5/g
s/\\u00c8/\xc8/g
s/\\u00c9/\xc9/g
s/\\u00ca/\xca/g
s/\\u00cd/\xcd/g
s/\\u00d6/\xd6/g
s/\\u00dc/\xdc/g
s/\\u00dd/\xdd/g
s/\\u00df/\xdf/g
s/\\u00e0/\xe0/g
s/\\u00e1/\xe1/g
s/\\u00e2/\xe2/g
s/\\u00e3/\xe3/g
s/\\u00e4/\xe4/g
s/\\u00e5/\xe5/g
s/\\u00e7/\xe7/g
s/\\u00e8/\xe8/g
s/\\u00e9/\xe9/g
s/\\u00ea/\xea/g
s/\\u00eb/\xeb/g
s/\\u00ec/\xec/g
s/\\u00ed/\xed/g
s/\\u00ee/\xee/g
s/\\u00ef/\xef/g
s/\\u00f0/\xf0/g
s/\\u00f1/\xf1/g
s/\\u00f2/\xf2/g
s/\\u00f3/\xf3/g
s/\\u00f4/\xf4/g
s/\\u00f5/\xf5/g
s/\\u00f6/\xf6/g
s/\\u00f7/\xf7/g
s/\\u00f8/\xf8/g
s/\\u00f9/\xf9/g
s/\\u00fa/\xfa/g
s/\\u00fc/\xfc/g
s/\\u00ff/\xff/g

View File

@@ -29,21 +29,21 @@ GTEST_VERSION=1.14.0
JTREG_VERSION=7.5.1+1
LINUX_X64_BOOT_JDK_EXT=tar.gz
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL/openjdk-23_linux-x64_bin.tar.gz
LINUX_X64_BOOT_JDK_SHA256=08fea92724127c6fa0f2e5ea0b07ff4951ccb1e2f22db3c21eebbd7347152a67
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk24/1f9ff9062db4449d8ca828c504ffae90/36/GPL/openjdk-24_linux-x64_bin.tar.gz
LINUX_X64_BOOT_JDK_SHA256=88b090fa80c6c1d084ec9a755233967458788e2c0777ae2e172230c5c692d7ef
ALPINE_LINUX_X64_BOOT_JDK_EXT=tar.gz
ALPINE_LINUX_X64_BOOT_JDK_URL=https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jdk_x64_alpine-linux_hotspot_23_37.tar.gz
ALPINE_LINUX_X64_BOOT_JDK_SHA256=bff4c78f30d8d173e622bf2f40c36113df47337fc6d1ee5105ed2459841165aa
ALPINE_LINUX_X64_BOOT_JDK_URL=https://github.com/adoptium/temurin24-binaries/releases/download/jdk-24%2B36/OpenJDK24U-jdk_x64_alpine-linux_hotspot_24_36.tar.gz
ALPINE_LINUX_X64_BOOT_JDK_SHA256=a642608f0da78344ee6812fb1490b8bc1d7ad5a18064c70994d6f330568c51cb
MACOS_AARCH64_BOOT_JDK_EXT=tar.gz
MACOS_AARCH64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL/openjdk-23_macos-aarch64_bin.tar.gz
MACOS_AARCH64_BOOT_JDK_SHA256=9527bf080a74ae6dca51df413aa826f0c011c6048885e4c8ad112172be8815f3
MACOS_AARCH64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk24/1f9ff9062db4449d8ca828c504ffae90/36/GPL/openjdk-24_macos-aarch64_bin.tar.gz
MACOS_AARCH64_BOOT_JDK_SHA256=f7133238a12714a62c5ad2bd4da6741130be1a82512065da9ca23dee26b2d3d3
MACOS_X64_BOOT_JDK_EXT=tar.gz
MACOS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL/openjdk-23_macos-x64_bin.tar.gz
MACOS_X64_BOOT_JDK_SHA256=5c3a909fd2079d0e376dd43c85c4f7d02d08914866f196480bd47784b2a0121e
MACOS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk24/1f9ff9062db4449d8ca828c504ffae90/36/GPL/openjdk-24_macos-x64_bin.tar.gz
MACOS_X64_BOOT_JDK_SHA256=6bbfb1d01741cbe55ab90299cb91464b695de9a3ace85c15131aa2f50292f321
WINDOWS_X64_BOOT_JDK_EXT=zip
WINDOWS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL/openjdk-23_windows-x64_bin.zip
WINDOWS_X64_BOOT_JDK_SHA256=cba5013874ba50cae543c86fe6423453816c77281e2751a8a9a633d966f1dc04
WINDOWS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk24/1f9ff9062db4449d8ca828c504ffae90/36/GPL/openjdk-24_windows-x64_bin.zip
WINDOWS_X64_BOOT_JDK_SHA256=11d1d9f6ac272d5361c8a0bef01894364081c7fb1a6914c2ad2fc312ae83d63b

View File

@@ -241,10 +241,10 @@ var getJibProfilesCommon = function (input, data) {
// List of the main profile names used for iteration
common.main_profile_names = [
"linux-x64", "linux-x86", "macosx-x64", "macosx-aarch64",
"macosx-x64", "macosx-aarch64",
"windows-x64", "windows-aarch64",
"linux-aarch64", "linux-arm32", "linux-ppc64le", "linux-s390x",
"linux-riscv64"
"linux-x64", "linux-aarch64",
"linux-arm32", "linux-ppc64le", "linux-s390x", "linux-riscv64"
];
// These are the base settings for all the main build profiles.
@@ -254,7 +254,6 @@ var getJibProfilesCommon = function (input, data) {
configure_args: concat(
"--with-exclude-translations=es,fr,it,ko,pt_BR,sv,ca,tr,cs,sk,ja_JP_A,ja_JP_HA,ja_JP_HI,ja_JP_I,zh_TW,zh_HK",
"--disable-jvm-feature-shenandoahgc",
"--disable-cds-archive-coh",
versionArgs(input, common))
};
@@ -283,9 +282,6 @@ var getJibProfilesCommon = function (input, data) {
labels: "open"
};
common.configure_args_64bit = ["--with-target-bits=64"];
common.configure_args_32bit = ["--with-target-bits=32"];
/**
* Define common artifacts template for all main profiles
* @param o - Object containing data for artifacts
@@ -391,8 +387,8 @@ var getJibProfilesCommon = function (input, data) {
};
};
common.boot_jdk_version = "23";
common.boot_jdk_build_number = "37";
common.boot_jdk_version = "24";
common.boot_jdk_build_number = "36";
common.boot_jdk_home = input.get("boot_jdk", "install_path") + "/jdk-"
+ common.boot_jdk_version
+ (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
@@ -412,58 +408,34 @@ var getJibProfilesProfiles = function (input, common, data) {
// Main SE profiles
var profiles = {
"linux-x64": {
target_os: "linux",
target_cpu: "x64",
dependencies: ["devkit", "gtest", "build_devkit", "graphviz", "pandoc", "tidy"],
configure_args: concat(
(input.build_cpu == "x64" ? common.configure_args_64bit
: "--openjdk-target=x86_64-linux-gnu"),
"--with-zlib=system", "--disable-dtrace",
(isWsl(input) ? [ "--host=x86_64-unknown-linux-gnu",
"--build=x86_64-unknown-linux-gnu" ] : [])),
},
"linux-x86": {
target_os: "linux",
target_cpu: "x86",
build_cpu: "x64",
dependencies: ["devkit", "gtest", "libffi"],
configure_args: concat(common.configure_args_32bit, [
"--with-jvm-variants=minimal,server",
"--with-zlib=system",
"--with-libffi=" + input.get("libffi", "home_path"),
"--enable-libffi-bundling",
"--enable-fallback-linker"
])
},
"macosx-x64": {
target_os: "macosx",
target_cpu: "x64",
dependencies: ["devkit", "gtest", "graphviz", "pandoc", "tidy"],
configure_args: concat(common.configure_args_64bit, "--with-zlib=system",
configure_args: [
"--with-zlib=system",
"--with-macosx-version-max=11.00.00",
"--enable-compatible-cds-alignment",
// Use system SetFile instead of the one in the devkit as the
// devkit one may not work on Catalina.
"SETFILE=/usr/bin/SetFile"),
"SETFILE=/usr/bin/SetFile"
],
},
"macosx-aarch64": {
target_os: "macosx",
target_cpu: "aarch64",
dependencies: ["devkit", "gtest", "graphviz", "pandoc", "tidy"],
configure_args: concat(common.configure_args_64bit,
"--with-macosx-version-max=11.00.00"),
configure_args: [
"--with-macosx-version-max=11.00.00"
],
},
"windows-x64": {
target_os: "windows",
target_cpu: "x64",
dependencies: ["devkit", "gtest", "pandoc"],
configure_args: concat(common.configure_args_64bit),
configure_args: [],
},
"windows-aarch64": {
@@ -475,7 +447,19 @@ var getJibProfilesProfiles = function (input, common, data) {
],
},
"linux-aarch64": {
"linux-x64": {
target_os: "linux",
target_cpu: "x64",
dependencies: ["devkit", "gtest", "build_devkit", "graphviz", "pandoc", "tidy"],
configure_args: concat(
"--with-zlib=system",
"--disable-dtrace",
(cross_compiling ? [ "--openjdk-target=x86_64-linux-gnu" ] : []),
(isWsl(input) ? [ "--host=x86_64-unknown-linux-gnu",
"--build=x86_64-unknown-linux-gnu" ] : [])),
},
"linux-aarch64": {
target_os: "linux",
target_cpu: "aarch64",
dependencies: ["devkit", "gtest", "build_devkit", "graphviz", "pandoc", "tidy"],
@@ -492,8 +476,10 @@ var getJibProfilesProfiles = function (input, common, data) {
build_cpu: "x64",
dependencies: ["devkit", "gtest", "build_devkit"],
configure_args: [
"--openjdk-target=arm-linux-gnueabihf", "--with-freetype=bundled",
"--with-abi-profile=arm-vfp-hflt", "--disable-warnings-as-errors"
"--openjdk-target=arm-linux-gnueabihf",
"--with-freetype=bundled",
"--with-abi-profile=arm-vfp-hflt",
"--disable-warnings-as-errors"
],
},
@@ -503,7 +489,8 @@ var getJibProfilesProfiles = function (input, common, data) {
build_cpu: "x64",
dependencies: ["devkit", "gtest", "build_devkit"],
configure_args: [
"--openjdk-target=ppc64le-linux-gnu", "--with-freetype=bundled",
"--openjdk-target=ppc64le-linux-gnu",
"--with-freetype=bundled",
"--disable-warnings-as-errors"
],
},
@@ -514,7 +501,8 @@ var getJibProfilesProfiles = function (input, common, data) {
build_cpu: "x64",
dependencies: ["devkit", "gtest", "build_devkit"],
configure_args: [
"--openjdk-target=s390x-linux-gnu", "--with-freetype=bundled",
"--openjdk-target=s390x-linux-gnu",
"--with-freetype=bundled",
"--disable-warnings-as-errors"
],
},
@@ -525,7 +513,8 @@ var getJibProfilesProfiles = function (input, common, data) {
build_cpu: "x64",
dependencies: ["devkit", "gtest", "build_devkit"],
configure_args: [
"--openjdk-target=riscv64-linux-gnu", "--with-freetype=bundled",
"--openjdk-target=riscv64-linux-gnu",
"--with-freetype=bundled",
"--disable-warnings-as-errors"
],
},
@@ -586,24 +575,24 @@ var getJibProfilesProfiles = function (input, common, data) {
target_os: "linux",
target_cpu: "x64",
dependencies: ["devkit", "gtest", "libffi"],
configure_args: concat(common.configure_args_64bit, [
configure_args: [
"--with-zlib=system",
"--with-jvm-variants=zero",
"--with-libffi=" + input.get("libffi", "home_path"),
"--enable-libffi-bundling",
])
]
},
"linux-aarch64-zero": {
target_os: "linux",
target_cpu: "aarch64",
dependencies: ["devkit", "gtest", "libffi"],
configure_args: concat(common.configure_args_64bit, [
configure_args: [
"--with-zlib=system",
"--with-jvm-variants=zero",
"--with-libffi=" + input.get("libffi", "home_path"),
"--enable-libffi-bundling"
])
]
},
"linux-x86-zero": {
@@ -611,12 +600,13 @@ var getJibProfilesProfiles = function (input, common, data) {
target_cpu: "x86",
build_cpu: "x64",
dependencies: ["devkit", "gtest", "libffi"],
configure_args: concat(common.configure_args_32bit, [
configure_args: [
"--with-target-bits=32",
"--with-zlib=system",
"--with-jvm-variants=zero",
"--with-libffi=" + input.get("libffi", "home_path"),
"--enable-libffi-bundling"
])
]
}
}
profiles = concatObjects(profiles, zeroProfiles);
@@ -635,8 +625,10 @@ var getJibProfilesProfiles = function (input, common, data) {
target_os: "linux",
target_cpu: "x64",
dependencies: ["devkit", "gtest"],
configure_args: concat(common.configure_args_64bit,
"--with-zlib=system", "--disable-precompiled-headers"),
configure_args: [
"--with-zlib=system",
"--disable-precompiled-headers"
],
},
};
profiles = concatObjects(profiles, noPchProfiles);
@@ -693,9 +685,6 @@ var getJibProfilesProfiles = function (input, common, data) {
"linux-x64": {
platform: "linux-x64",
},
"linux-x86": {
platform: "linux-x86",
},
"macosx-x64": {
platform: "macos-x64",
jdk_subdir: "jdk-" + data.version + ".jdk/Contents/Home",
@@ -872,7 +861,8 @@ var getJibProfilesProfiles = function (input, common, data) {
profiles[cmpBaselineName].configure_args = concat(
profiles[cmpBaselineName].configure_args,
"--with-hotspot-build-time=n/a",
"--disable-precompiled-headers");
"--disable-precompiled-headers",
"--with-source-date=version");
// Do not inherit artifact definitions from base profile
delete profiles[cmpBaselineName].artifacts;
});
@@ -1088,14 +1078,14 @@ var getJibProfilesProfiles = function (input, common, data) {
var getJibProfilesDependencies = function (input, common) {
var devkit_platform_revisions = {
linux_x64: "gcc13.2.0-OL6.4+1.0",
macosx: "Xcode14.3.1+1.0",
windows_x64: "VS2022-17.6.5+1.0",
linux_aarch64: "gcc13.2.0-OL7.6+1.0",
linux_x64: "gcc14.2.0-OL6.4+1.0",
macosx: "Xcode15.4+1.0",
windows_x64: "VS2022-17.13.2+1.0",
linux_aarch64: "gcc14.2.0-OL7.6+1.0",
linux_arm: "gcc8.2.0-Fedora27+1.0",
linux_ppc64le: "gcc13.2.0-Fedora_41+1.0",
linux_s390x: "gcc13.2.0-Fedora_41+1.0",
linux_riscv64: "gcc13.2.0-Fedora_41+1.0"
linux_ppc64le: "gcc14.2.0-Fedora_41+1.0",
linux_s390x: "gcc14.2.0-Fedora_41+1.0",
linux_riscv64: "gcc14.2.0-Fedora_41+1.0"
};
var devkit_platform = (input.target_cpu == "x86"
@@ -1161,10 +1151,7 @@ var getJibProfilesDependencies = function (input, common) {
organization: common.organization,
ext: "tar.gz",
module: "devkit-" + devkit_cross_prefix + devkit_platform,
revision: devkit_platform_revisions[devkit_platform],
environment: {
"DEVKIT_HOME": input.get("devkit", "home_path"),
}
revision: devkit_platform_revisions[devkit_platform]
},
build_devkit: {

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
@@ -37,6 +37,6 @@ DEFAULT_VERSION_DATE=2025-09-16
DEFAULT_VERSION_CLASSFILE_MAJOR=69 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
DEFAULT_VERSION_CLASSFILE_MINOR=0
DEFAULT_VERSION_DOCS_API_SINCE=11
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="23 24 25"
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="24 25"
DEFAULT_JDK_SOURCE_TARGET_VERSION=25
DEFAULT_PROMOTED_VERSION_PRE=ea

View File

@@ -1,4 +1,4 @@
UNICODE LICENSE V3
UNICODE LICENSE V3
COPYRIGHT AND PERMISSION NOTICE

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2023, 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
@@ -43,6 +43,18 @@
#define ATTRIBUTE_USED
#endif
// On AIX, the llvm_symbolizer is not found out of the box, so we have to provide the
// full qualified llvm_symbolizer path in the __ubsan_default_options() function.
// To get it here we compile our sources with an additional define LLVM_SYMBOLIZER
// containing the path, which we set in make/autoconf/jdk-options.m4.
#ifdef LLVM_SYMBOLIZER
#define _LLVM_SYMBOLIZER(X) ",external_symbolizer_path=" X_LLVM_SYMBOLIZER(X)
#define X_LLVM_SYMBOLIZER(X) #X
#else
#define LLVM_SYMBOLIZER
#define _LLVM_SYMBOLIZER(X)
#endif
// Override weak symbol exposed by UBSan to override default options. This is called by UBSan
// extremely early during library loading, before main is called. We need to override the default
// options because by default UBSan only prints a warning for each occurrence. We want jtreg tests
@@ -50,5 +62,5 @@
// thread so it is easier to track down. You can override these options by setting the environment
// variable UBSAN_OPTIONS.
ATTRIBUTE_DEFAULT_VISIBILITY ATTRIBUTE_USED const char* __ubsan_default_options() {
return "halt_on_error=1,print_stacktrace=1";
return "halt_on_error=1,print_stacktrace=1" _LLVM_SYMBOLIZER(LLVM_SYMBOLIZER);
}

View File

@@ -39,6 +39,8 @@
# Fix this...
#
uppercase = $(shell echo $1 | tr a-z A-Z)
$(info TARGET=$(TARGET))
$(info HOST=$(HOST))
$(info BUILD=$(BUILD))
@@ -91,89 +93,28 @@ endif
################################################################################
# Define external dependencies
# Latest that could be made to work.
GCC_VER := 13.2.0
ifeq ($(GCC_VER), 13.2.0)
gcc_ver := gcc-13.2.0
binutils_ver := binutils-2.41
ccache_ver := ccache-3.7.12
mpfr_ver := mpfr-4.2.0
gmp_ver := gmp-6.3.0
mpc_ver := mpc-1.3.1
gdb_ver := gdb-13.2
REQUIRED_MIN_MAKE_MAJOR_VERSION := 4
else ifeq ($(GCC_VER), 11.3.0)
gcc_ver := gcc-11.3.0
binutils_ver := binutils-2.39
ccache_ver := ccache-3.7.12
mpfr_ver := mpfr-4.1.1
gmp_ver := gmp-6.2.1
mpc_ver := mpc-1.2.1
gdb_ver := gdb-11.2
REQUIRED_MIN_MAKE_MAJOR_VERSION := 4
else ifeq ($(GCC_VER), 11.2.0)
gcc_ver := gcc-11.2.0
binutils_ver := binutils-2.37
ccache_ver := ccache-3.7.12
mpfr_ver := mpfr-4.1.0
gmp_ver := gmp-6.2.1
mpc_ver := mpc-1.2.1
gdb_ver := gdb-11.1
REQUIRED_MIN_MAKE_MAJOR_VERSION := 4
else ifeq ($(GCC_VER), 10.3.0)
gcc_ver := gcc-10.3.0
binutils_ver := binutils-2.36.1
ccache_ver := ccache-3.7.11
mpfr_ver := mpfr-4.1.0
gmp_ver := gmp-6.2.0
mpc_ver := mpc-1.1.0
gdb_ver := gdb-10.1
REQUIRED_MIN_MAKE_MAJOR_VERSION := 4
else ifeq ($(GCC_VER), 10.2.0)
gcc_ver := gcc-10.2.0
binutils_ver := binutils-2.35
ccache_ver := ccache-3.7.11
mpfr_ver := mpfr-4.1.0
gmp_ver := gmp-6.2.0
mpc_ver := mpc-1.1.0
gdb_ver := gdb-9.2
REQUIRED_MIN_MAKE_MAJOR_VERSION := 4
else ifeq ($(GCC_VER), 9.2.0)
gcc_ver := gcc-9.2.0
binutils_ver := binutils-2.34
ccache_ver := ccache-3.7.3
mpfr_ver := mpfr-3.1.5
gmp_ver := gmp-6.1.2
mpc_ver := mpc-1.0.3
gdb_ver := gdb-8.3
else ifeq ($(GCC_VER), 8.3.0)
gcc_ver := gcc-8.3.0
binutils_ver := binutils-2.32
ccache_ver := ccache-3.7.3
mpfr_ver := mpfr-3.1.5
gmp_ver := gmp-6.1.2
mpc_ver := mpc-1.0.3
gdb_ver := gdb-8.3
else ifeq ($(GCC_VER), 7.3.0)
gcc_ver := gcc-7.3.0
binutils_ver := binutils-2.30
ccache_ver := ccache-3.3.6
mpfr_ver := mpfr-3.1.5
gmp_ver := gmp-6.1.2
mpc_ver := mpc-1.0.3
gdb_ver := gdb-8.1
else ifeq ($(GCC_VER), 4.9.2)
gcc_ver := gcc-4.9.2
binutils_ver := binutils-2.25
ccache_ver := ccache-3.2.1
mpfr_ver := mpfr-3.0.1
gmp_ver := gmp-4.3.2
mpc_ver := mpc-1.0.1
gdb_ver := gdb-7.12.1
else
$(error Unsupported GCC version)
endif
gcc_ver_only := 14.2.0
binutils_ver_only := 2.43
ccache_ver_only := 4.10.2
CCACHE_CMAKE_BASED := 1
mpfr_ver_only := 4.2.1
gmp_ver_only := 6.3.0
mpc_ver_only := 1.3.1
gdb_ver_only := 15.2
dependencies := gcc binutils ccache mpfr gmp mpc gdb
$(foreach dep,$(dependencies),$(eval $(dep)_ver := $(dep)-$($(dep)_ver_only)))
GCC := http://ftp.gnu.org/pub/gnu/gcc/$(gcc_ver)/$(gcc_ver).tar.xz
BINUTILS := http://ftp.gnu.org/pub/gnu/binutils/$(binutils_ver).tar.gz
CCACHE := https://github.com/ccache/ccache/releases/download/v$(ccache_ver_only)/$(ccache_ver).tar.xz
MPFR := https://www.mpfr.org/$(mpfr_ver)/$(mpfr_ver).tar.bz2
GMP := http://ftp.gnu.org/pub/gnu/gmp/$(gmp_ver).tar.bz2
MPC := http://ftp.gnu.org/pub/gnu/mpc/$(mpc_ver).tar.gz
GDB := http://ftp.gnu.org/gnu/gdb/$(gdb_ver).tar.xz
REQUIRED_MIN_MAKE_MAJOR_VERSION := 4
ifneq ($(REQUIRED_MIN_MAKE_MAJOR_VERSION),)
MAKE_MAJOR_VERSION := $(word 1,$(subst ., ,$(MAKE_VERSION)))
SUPPORTED_MAKE_VERSION := $(shell [ $(MAKE_MAJOR_VERSION) -ge $(REQUIRED_MIN_MAKE_MAJOR_VERSION) ] && echo true)
@@ -182,17 +123,6 @@ ifneq ($(REQUIRED_MIN_MAKE_MAJOR_VERSION),)
endif
endif
ccache_ver_only := $(patsubst ccache-%,%,$(ccache_ver))
GCC := http://ftp.gnu.org/pub/gnu/gcc/$(gcc_ver)/$(gcc_ver).tar.xz
BINUTILS := http://ftp.gnu.org/pub/gnu/binutils/$(binutils_ver).tar.gz
CCACHE := https://github.com/ccache/ccache/releases/download/v$(ccache_ver_only)/$(ccache_ver).tar.xz
MPFR := https://www.mpfr.org/${mpfr_ver}/${mpfr_ver}.tar.bz2
GMP := http://ftp.gnu.org/pub/gnu/gmp/${gmp_ver}.tar.bz2
MPC := http://ftp.gnu.org/pub/gnu/mpc/${mpc_ver}.tar.gz
GDB := http://ftp.gnu.org/gnu/gdb/${gdb_ver}.tar.xz
# RPMs used by all BASE_OS
RPM_LIST := \
$(KERNEL_HEADERS_RPM) \
@@ -262,10 +192,18 @@ define Download
# Allow override
$(1)_DIRNAME ?= $(basename $(basename $(notdir $($(1)))))
$(1)_DIR = $(abspath $(SRCDIR)/$$($(1)_DIRNAME))
$(1)_CFG = $$($(1)_DIR)/configure
ifeq ($$($(1)_CMAKE_BASED),)
$(1)_CFG = $$($(1)_DIR)/configure
$(1)_SRC_MARKER = $$($(1)_DIR)/configure
$(1)_CONFIG = $(CONFIG)
else
$(1)_CFG = cmake
$(1)_SRC_MARKER = $$($(1)_DIR)/CMakeLists.txt
$(1)_CONFIG = $$(CMAKE_CONFIG) $$($(1)_DIR)
endif
$(1)_FILE = $(DOWNLOAD)/$(notdir $($(1)))
$$($(1)_CFG) : $$($(1)_FILE)
$$($(1)_SRC_MARKER) : $$($(1)_FILE)
mkdir -p $$(SRCDIR)
tar -C $$(SRCDIR) -xf $$<
$$(foreach p,$$(abspath $$(wildcard patches/$$(ARCH)-$$(notdir $$($(1)_DIR)).patch)), \
@@ -279,7 +217,7 @@ define Download
endef
# Download and unpack all source packages
$(foreach p,GCC BINUTILS CCACHE MPFR GMP MPC GDB,$(eval $(call Download,$(p))))
$(foreach dep,$(dependencies),$(eval $(call Download,$(call uppercase,$(dep)))))
################################################################################
# Unpack RPMS
@@ -356,7 +294,7 @@ endif
################################################################################
# Define marker files for each source package to be compiled
$(foreach t,binutils mpfr gmp mpc gcc ccache gdb,$(eval $(t) = $(TARGETDIR)/$($(t)_ver).done))
$(foreach dep,$(dependencies),$(eval $(dep) = $(TARGETDIR)/$($(dep)_ver).done))
################################################################################
@@ -365,6 +303,8 @@ CONFIG = --target=$(TARGET) \
--host=$(HOST) --build=$(BUILD) \
--prefix=$(PREFIX)
CMAKE_CONFIG = -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(PREFIX)
PATHEXT = $(PREFIX)/bin:
PATHPRE = PATH=$(PATHEXT)$(PATH)
@@ -576,6 +516,8 @@ ifeq ($(HOST), $(TARGET))
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" $(GDB_CFG) \
$(CONFIG) \
--with-sysroot=$(SYSROOT) \
--with-mpfr=$(PREFIX) \
--with-gmp=$(PREFIX) \
) > $(@D)/log.config 2>&1
@echo 'done'
@@ -591,13 +533,13 @@ endif
################################################################################
# very straightforward. just build a ccache. it is only for host.
$(BUILDDIR)/$(ccache_ver)/Makefile \
: $(CCACHE_CFG)
: $(CCACHE_SRC_MARKER)
$(info Configuring $@. Log in $(@D)/log.config)
@mkdir -p $(@D)
@( \
cd $(@D) ; \
$(PATHPRE) $(ENVS) $(CCACHE_CFG) \
$(CONFIG) \
$(CCACHE_CONFIG) \
) > $(@D)/log.config 2>&1
@echo 'done'
@@ -699,10 +641,18 @@ ifeq ($(TARGET), $(HOST))
ln -s $(TARGET)-$* $@
missing-links := $(addprefix $(PREFIX)/bin/, \
addr2line ar as c++ c++filt dwp elfedit g++ gcc gcc-$(GCC_VER) gprof ld ld.bfd \
addr2line ar as c++ c++filt dwp elfedit g++ gcc gcc-$(gcc_ver_only) gprof ld ld.bfd \
ld.gold nm objcopy objdump ranlib readelf size strings strip)
endif
# Add link to work around "plugin needed to handle lto object" (JDK-8344272)
$(PREFIX)/lib/bfd-plugins/liblto_plugin.so: $(PREFIX)/libexec/gcc/$(TARGET)/$(gcc_ver_only)/liblto_plugin.so
@echo 'Creating missing $(@F) soft link'
@mkdir -p $(@D)
ln -s $$(realpath -s --relative-to=$(@D) $<) $@
missing-links += $(PREFIX)/lib/bfd-plugins/liblto_plugin.so
################################################################################
bfdlib : $(bfdlib)

View File

@@ -1,6 +1,6 @@
#!/bin/bash -e
#
# 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
@@ -24,10 +24,21 @@
# questions.
#
# Create a bundle in the current directory, containing what's needed to run
# Create a bundle in OpenJDK build folder, containing what's needed to run
# the 'autoconf' program by the OpenJDK build. To override TARGET_PLATFORM
# just set the variable before running this script.
# This script fetches sources from network so make sure your proxy is setup appropriately.
# colored print to highlight some of the logs
function print_log()
{
Color_Cyan='\033[1;36m' # Cyan
Color_Off='\033[0m' # Reset color
printf "${Color_Cyan}> $1${Color_Off}\n"
}
# Autoconf depends on m4, so download and build that first.
AUTOCONF_VERSION=2.69
M4_VERSION=1.4.18
@@ -58,11 +69,12 @@ MODULE_NAME=autoconf-$TARGET_PLATFORM-$AUTOCONF_VERSION+$PACKAGE_VERSION
BUNDLE_NAME=$MODULE_NAME.tar.gz
SCRIPT_DIR="$(cd "$(dirname $0)" > /dev/null && pwd)"
OUTPUT_ROOT="${SCRIPT_DIR}/../../build/autoconf"
BASEDIR="$(cd "$SCRIPT_DIR/../.." > /dev/null && pwd)"
OUTPUT_ROOT="$BASEDIR/build/autoconf"
cd $OUTPUT_ROOT
IMAGE_DIR=$OUTPUT_ROOT/$MODULE_NAME
mkdir -p $IMAGE_DIR/usr
cd $OUTPUT_ROOT
# Download and build m4
@@ -76,7 +88,7 @@ elif test "x$TARGET_PLATFORM" = xcygwin_x86; then
cp /usr/bin/m4 $IMAGE_DIR/usr/bin
elif test "x$TARGET_PLATFORM" = xlinux_x64; then
M4_VERSION=1.4.13-5
wget http://yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/getPackage/m4-$M4_VERSION.el6.x86_64.rpm
wget https://yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/getPackage/m4-$M4_VERSION.el6.x86_64.rpm
cd $IMAGE_DIR
rpm2cpio $OUTPUT_ROOT/m4-$M4_VERSION.el6.x86_64.rpm | cpio -d -i
elif test "x$TARGET_PLATFORM" = xlinux_x86; then
@@ -85,27 +97,38 @@ elif test "x$TARGET_PLATFORM" = xlinux_x86; then
cd $IMAGE_DIR
rpm2cpio $OUTPUT_ROOT/m4-$M4_VERSION.el6.i686.rpm | cpio -d -i
else
print_log "m4: download"
wget https://ftp.gnu.org/gnu/m4/m4-$M4_VERSION.tar.gz
tar xzf m4-$M4_VERSION.tar.gz
tar -xzf m4-$M4_VERSION.tar.gz
cd m4-$M4_VERSION
print_log "m4: configure"
./configure --prefix=$IMAGE_DIR/usr CFLAGS="-w -Wno-everything"
print_log "m4: make"
make
print_log "m4: make install"
make install
cd ..
fi
# Download and build autoconf
print_log "autoconf: download"
wget https://ftp.gnu.org/gnu/autoconf/autoconf-$AUTOCONF_VERSION.tar.gz
tar xzf autoconf-$AUTOCONF_VERSION.tar.gz
tar -xzf autoconf-$AUTOCONF_VERSION.tar.gz
cd autoconf-$AUTOCONF_VERSION
print_log "autoconf: configure"
./configure --prefix=$IMAGE_DIR/usr M4=$IMAGE_DIR/usr/bin/m4
print_log "autoconf: make"
make
print_log "autoconf: make install"
make install
cd ..
# The resulting scripts from installation folder use absolute paths to reference other files within installation folder
print_log "replace absolue paths from installation files with a relative ."
perl -pi -e "s!$IMAGE_DIR/!./!" $IMAGE_DIR/usr/bin/auto* $IMAGE_DIR/usr/share/autoconf/autom4te.cfg
print_log "creating $IMAGE_DIR/autoconf wrapper script"
cat > $IMAGE_DIR/autoconf << EOF
#!/bin/bash
# Get an absolute path to this script
@@ -123,6 +146,9 @@ PREPEND_INCLUDE="--prepend-include \$this_script_dir/usr/share/autoconf"
exec \$this_script_dir/usr/bin/autoconf \$PREPEND_INCLUDE "\$@"
EOF
chmod +x $IMAGE_DIR/autoconf
print_log "archiving $IMAGE_DIR directory as $OUTPUT_ROOT/$BUNDLE_NAME"
cd $IMAGE_DIR
tar -cvzf $OUTPUT_ROOT/$BUNDLE_NAME *

View File

@@ -56,16 +56,22 @@ BUILD_DIR="${SCRIPT_DIR}/../../build/devkit"
UNAME_SYSTEM=`uname -s`
UNAME_RELEASE=`uname -r`
UNAME_OS=`uname -o`
# Detect cygwin or WSL
IS_CYGWIN=`echo $UNAME_SYSTEM | grep -i CYGWIN`
IS_WSL=`echo $UNAME_RELEASE | grep Microsoft`
IS_MSYS=`echo $UNAME_OS | grep -i Msys`
MSYS2_ARG_CONV_EXCL="*" # make "cmd.exe /c" work for msys2
CMD_EXE="cmd.exe /c"
if test "x$IS_CYGWIN" != "x"; then
BUILD_ENV="cygwin"
elif test "x$IS_MSYS" != "x"; then
BUILD_ENV="cygwin"
elif test "x$IS_WSL" != "x"; then
BUILD_ENV="wsl"
else
echo "Unknown environment; only Cygwin and WSL are supported."
echo "Unknown environment; only Cygwin/MSYS2/WSL are supported."
exit 1
fi
@@ -76,7 +82,7 @@ elif test "x$BUILD_ENV" = "xwsl"; then
fi
# Work around the insanely named ProgramFiles(x86) env variable
PROGRAMFILES_X86="$($WINDOWS_PATH_TO_UNIX_PATH "$(cmd.exe /c set | sed -n 's/^ProgramFiles(x86)=//p' | tr -d '\r')")"
PROGRAMFILES_X86="$($WINDOWS_PATH_TO_UNIX_PATH "$(${CMD_EXE} set | sed -n 's/^ProgramFiles(x86)=//p' | tr -d '\r')")"
PROGRAMFILES="$($WINDOWS_PATH_TO_UNIX_PATH "$PROGRAMFILES")"
case $VS_VERSION in
@@ -99,13 +105,15 @@ esac
# Find Visual Studio installation dir
VSNNNCOMNTOOLS=`cmd.exe /c echo %VS${VS_VERSION_NUM_NODOT}COMNTOOLS% | tr -d '\r'`
VSNNNCOMNTOOLS=`${CMD_EXE} echo %VS${VS_VERSION_NUM_NODOT}COMNTOOLS% | tr -d '\r'`
VSNNNCOMNTOOLS="$($WINDOWS_PATH_TO_UNIX_PATH "$VSNNNCOMNTOOLS")"
if [ -d "$VSNNNCOMNTOOLS" ]; then
VS_INSTALL_DIR="$($WINDOWS_PATH_TO_UNIX_PATH "$VSNNNCOMNTOOLS/../..")"
VS_INSTALL_DIR="$VSNNNCOMNTOOLS/../.."
else
VS_INSTALL_DIR="${MSVC_PROGRAMFILES_DIR}/Microsoft Visual Studio/$VS_VERSION"
VS_INSTALL_DIR="$(ls -d "${VS_INSTALL_DIR}/"{Community,Professional,Enterprise} 2>/dev/null | head -n1)"
fi
echo "VSNNNCOMNTOOLS: $VSNNNCOMNTOOLS"
echo "VS_INSTALL_DIR: $VS_INSTALL_DIR"
# Extract semantic version
@@ -180,7 +188,11 @@ cp $DEVKIT_ROOT/VC/redist/arm64/$MSVCP_DLL $DEVKIT_ROOT/VC/bin/arm64
################################################################################
# Copy SDK files
SDK_INSTALL_DIR="$PROGRAMFILES_X86/Windows Kits/$SDK_VERSION"
SDK_INSTALL_DIR=`${CMD_EXE} echo %WindowsSdkDir% | tr -d '\r'`
SDK_INSTALL_DIR="$($WINDOWS_PATH_TO_UNIX_PATH "$SDK_INSTALL_DIR")"
if [ ! -d "$SDK_INSTALL_DIR" ]; then
SDK_INSTALL_DIR="$PROGRAMFILES_X86/Windows Kits/$SDK_VERSION"
fi
echo "SDK_INSTALL_DIR: $SDK_INSTALL_DIR"
SDK_FULL_VERSION="$(ls "$SDK_INSTALL_DIR/bin" | sort -r -n | head -n1)"

View File

@@ -125,9 +125,11 @@ endif
ifneq ($(call check-jvm-feature, cds), true)
JVM_CFLAGS_FEATURES += -DINCLUDE_CDS=0
JVM_EXCLUDE_FILES += \
aotCodeCache.cpp \
classLoaderDataShared.cpp \
classLoaderExt.cpp \
systemDictionaryShared.cpp
systemDictionaryShared.cpp \
trainingData.cpp
JVM_EXCLUDE_PATTERNS += cds/
endif

View File

@@ -91,7 +91,6 @@ JVM_CFLAGS += \
$(JVM_CFLAGS_TARGET_DEFINES) \
$(JVM_CFLAGS_FEATURES) \
$(JVM_CFLAGS_INCLUDES) \
$(EXTRA_CFLAGS) \
#
ifneq ($(HOTSPOT_OVERRIDE_LIBPATH), )

View File

@@ -22,7 +22,7 @@
],
// Disable conflicting features from cpptools
"C_Cpp.autocomplete": "Disabled",
"C_Cpp.errorSquiggles": "Disabled",
"C_Cpp.formatting": "Disabled",
"C_Cpp.intelliSenseEngine": "Disabled",
"C_Cpp.autocomplete": "disabled",
"C_Cpp.errorSquiggles": "disabled",
"C_Cpp.formatting": "disabled",
"C_Cpp.intelliSenseEngine": "disabled",

View File

@@ -11,7 +11,7 @@
],
// Disable conflicting features from cpptools
"C_Cpp.autocomplete": "Disabled",
"C_Cpp.errorSquiggles": "Disabled",
"C_Cpp.formatting": "Disabled",
"C_Cpp.intelliSenseEngine": "Disabled",
"C_Cpp.autocomplete": "disabled",
"C_Cpp.errorSquiggles": "disabled",
"C_Cpp.formatting": "disabled",
"C_Cpp.intelliSenseEngine": "disabled",

View File

@@ -8,7 +8,7 @@
"rtags.misc.compilationDatabaseDirectory": "{{OUTPUTDIR}}",
// Disable conflicting features from cpptools
"C_Cpp.autocomplete": "Disabled",
"C_Cpp.errorSquiggles": "Disabled",
"C_Cpp.formatting": "Disabled",
"C_Cpp.intelliSenseEngine": "Disabled",
"C_Cpp.autocomplete": "disabled",
"C_Cpp.errorSquiggles": "disabled",
"C_Cpp.formatting": "disabled",
"C_Cpp.intelliSenseEngine": "disabled",

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
@@ -59,6 +59,7 @@ public class HelloClasslist {
private static final Logger LOGGER = Logger.getLogger("Hello");
@SuppressWarnings("restricted")
public static void main(String ... args) throws Throwable {
FileSystems.getDefault();
@@ -141,6 +142,7 @@ public class HelloClasslist {
HelloClasslist.class.getMethod("staticMethod_V").invoke(null);
var obj = HelloClasslist.class.getMethod("staticMethod_L_L", Object.class).invoke(null, instance);
HelloClasslist.class.getField("field").get(instance);
MethodHandles.Lookup.ClassOption.class.getEnumConstants();
// A selection of trivial and relatively common MH operations
invoke(MethodHandles.identity(double.class), 1.0);
@@ -160,6 +162,9 @@ public class HelloClasslist {
case B b -> b.b;
default -> 17;
};
// record run-time methods
o.equals(new B(5));
o.hashCode();
LOGGER.log(Level.FINE, "Value: " + value);
// The Striped64$Cell is loaded rarely only when there's a contention among

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 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
@@ -1190,7 +1190,7 @@ OUTER: for (int i = 0; i < n; i += m) {
if (Csyntax)
result.append(" static ");
else
result.append(" static final ");
result.append(" @Stable static final ");
result.append(atype);
result.append(" ").append(name).append("[");
if (Csyntax)
@@ -1347,7 +1347,7 @@ OUTER: for (int i = 0; i < n; i += m) {
}
static void genCaseMapTableDeclaration(StringBuffer result) {
result.append(" static final char[][][] charMap;\n");
result.append(" @Stable static final char[][][] charMap;\n");
}
static void genCaseMapTable(StringBuffer result, SpecialCaseMap[] specialCaseMaps){

View File

@@ -1,3 +1,26 @@
/*
* Copyright (c) 2020, 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.
*
* 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.
*/
package build.tools.pandocfilter;
import build.tools.pandocfilter.json.JSON;

View File

@@ -99,7 +99,7 @@ JVMCFG := $(LIB_DST_DIR)/jvm.cfg
define print-cfg-line
$(call LogInfo, Adding -$1 $2 to jvm.cfg)
$(PRINTF) -- "-$1 $2\n" >> $@ $(NEWLINE)
$(ECHO) "-$1 $2" >> $@ $(NEWLINE)
endef
$(JVMCFG): $(call DependOnVariable, ORDERED_CFG_VARIANTS)

View File

@@ -41,11 +41,6 @@ CLEAN += intrinsic.properties
EXCLUDE_FILES += \
$(TOPDIR)/src/java.base/share/classes/jdk/internal/module/ModuleLoaderMap.java
EXCLUDES += java/lang/doc-files \
java/lang/classfile/snippet-files \
java/lang/classfile/components/snippet-files \
java/lang/foreign/snippet-files
# Exclude BreakIterator classes that are just used in compile process to generate
# data files and shouldn't go in the product
EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java

View File

@@ -158,6 +158,7 @@ endif
$(eval $(call SetupJdkLibrary, BUILD_LIBSYSLOOKUP, \
NAME := syslookup, \
EXTRA_HEADER_DIRS := java.base:libjava, \
LD_SET_ORIGIN := false, \
LDFLAGS_linux := -Wl$(COMMA)--no-as-needed, \
LDFLAGS_aix := -brtl -bexpfull, \

View File

@@ -272,7 +272,7 @@ define SetupGenBuffer
$$($1_long_CMD) -i$$($1_SRC_BIN) -o$$($1_DST).tmp
$$($1_float_CMD) -i$$($1_SRC_BIN) -o$$($1_DST).tmp
$$($1_double_CMD) -i$$($1_SRC_BIN) -o$$($1_DST).tmp
$(PRINTF) "}\n" >> $$($1_DST).tmp
$(ECHO) "}" >> $$($1_DST).tmp
mv $$($1_DST).tmp $$($1_DST)
endif

View File

@@ -163,7 +163,7 @@ $(SCOPED_MEMORY_ACCESS_DEST): $(BUILD_TOOLS_JDK) $(SCOPED_MEMORY_ACCESS_TEMPLATE
$(foreach t, $(SCOPE_MEMORY_ACCESS_TYPES), \
$(TOOL_SPP) -nel -K$(BIN_$t_type) -Dtype=$(BIN_$t_type) -DType=$(BIN_$t_Type) $(BIN_$t_ARGS) \
-i$(SCOPED_MEMORY_ACCESS_BIN_TEMPLATE) -o$(SCOPED_MEMORY_ACCESS_DEST) ;)
$(PRINTF) "}\n" >> $(SCOPED_MEMORY_ACCESS_DEST)
$(ECHO) "}" >> $(SCOPED_MEMORY_ACCESS_DEST)
TARGETS += $(SCOPED_MEMORY_ACCESS_DEST)

View File

@@ -32,6 +32,4 @@
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
EXCLUDES += javax/tools/snippet-files
################################################################################

View File

@@ -31,15 +31,6 @@ DOCLINT += -Xdoclint:all/protected \
COPY += .gif .png .wav .txt .xml .css .pf
CLEAN += iio-plugin.properties cursors.properties
EXCLUDES += \
java/awt/doc-files \
javax/swing/doc-files \
javax/swing/text/doc-files \
javax/swing/plaf/synth/doc-files \
javax/swing/undo/doc-files \
sun/awt/X11/doc-files \
#
EXCLUDE_FILES += \
javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \

View File

@@ -278,7 +278,6 @@ ifeq ($(call isTargetOs, windows macosx)+$(ENABLE_HEADLESS_ONLY), false+false)
DISABLED_WARNINGS_gcc_X11TextRenderer_md.c := unused-but-set-variable, \
DISABLED_WARNINGS_gcc_XlibWrapper.c := type-limits pointer-to-int-cast, \
DISABLED_WARNINGS_gcc_XRBackendNative.c := maybe-uninitialized, \
DISABLED_WARNINGS_gcc_XToolkit.c := unused-result, \
DISABLED_WARNINGS_gcc_XWindow.c := unused-function, \
DISABLED_WARNINGS_clang_awt_Taskbar.c := parentheses, \
DISABLED_WARNINGS_clang_gtk3_interface.c := unused-function parentheses, \

View File

@@ -87,7 +87,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBLCMS, \
libawt/java2d \
java.base:libjvm, \
HEADERS_FROM_SRC := $(LIBLCMS_HEADERS_FROM_SRC), \
DISABLED_WARNINGS_gcc := format-nonliteral stringop-truncation type-limits \
DISABLED_WARNINGS_gcc := format-nonliteral stringop-truncation \
unused-variable, \
DISABLED_WARNINGS_clang := format-nonliteral, \
JDK_LIBS := libawt java.base:libjava, \

View File

@@ -53,7 +53,6 @@ COMPILECREATESYMBOLS_ADD_EXPORTS := \
--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED \
--add-exports jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED \
#
# TODO: Unify with jdk.javadoc-gendata. Should only compile this once and share.
@@ -61,7 +60,7 @@ $(eval $(call SetupJavaCompilation, COMPILE_CREATE_SYMBOLS, \
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK), \
COMPILER := buildjdk, \
SRC := $(TOPDIR)/make/langtools/src/classes, \
INCLUDES := build/tools/symbolgenerator com/sun/tools/classfile, \
INCLUDES := build/tools/symbolgenerator, \
BIN := $(BUILDTOOLS_OUTPUTDIR)/create_symbols_javac, \
DISABLED_WARNINGS := options, \
JAVAC_FLAGS := \

View File

@@ -27,51 +27,46 @@
include LibCommon.gmk
################################################################################
## Build libjsvml
################################################################################
ifeq ($(INCLUDE_COMPILER2), true)
ifeq ($(call isTargetOs, linux windows)+$(call isTargetCpu, x86_64)+$(INCLUDE_COMPILER2), true+true+true)
$(eval $(call SetupJdkLibrary, BUILD_LIBJSVML, \
NAME := jsvml, \
LDFLAGS_windows := -defaultlib:msvcrt, \
))
##############################################################################
## Build libjsvml
##############################################################################
ifeq ($(call isTargetOs, linux windows)+$(call isTargetCpu, x86_64), true+true)
$(eval $(call SetupJdkLibrary, BUILD_LIBJSVML, \
NAME := jsvml, \
LDFLAGS_windows := -defaultlib:msvcrt, \
))
TARGETS += $(BUILD_LIBJSVML)
endif
##############################################################################
## Build libsleef
##############################################################################
ifeq ($(call isTargetOs, linux macosx)+$(call isTargetCpu, aarch64 riscv64), true+true)
ifeq ($(call isTargetCpu, riscv64), true)
LIBSLEEF_CFLAGS := -march=rv64gcv
endif
$(eval $(call SetupJdkLibrary, BUILD_LIBSLEEF, \
NAME := sleef, \
OPTIMIZATION := HIGH, \
SRC := libsleef/lib, \
EXTRA_SRC := libsleef/generated, \
DISABLED_WARNINGS_gcc := unused-function sign-compare \
tautological-compare ignored-qualifiers, \
DISABLED_WARNINGS_clang := unused-function sign-compare \
tautological-compare ignored-qualifiers, \
CFLAGS := $(LIBSLEEF_CFLAGS), \
vector_math_sve.c_CFLAGS := $(SVE_CFLAGS), \
))
TARGETS += $(BUILD_LIBSLEEF)
endif
TARGETS += $(BUILD_LIBJSVML)
endif
################################################################################
## Build libsleef
################################################################################
ifeq ($(call isTargetOs, linux)+$(call isTargetCpu, riscv64)+$(INCLUDE_COMPILER2), true+true+true)
$(eval $(call SetupJdkLibrary, BUILD_LIBSLEEF, \
NAME := sleef, \
OPTIMIZATION := HIGH, \
SRC := libsleef/lib, \
EXTRA_SRC := libsleef/generated, \
DISABLED_WARNINGS_gcc := unused-function sign-compare tautological-compare ignored-qualifiers, \
DISABLED_WARNINGS_clang := unused-function sign-compare tautological-compare ignored-qualifiers, \
CFLAGS := -march=rv64gcv, \
CFLAGS_FILTER_OUT := -ftrivial-auto-var-init=pattern, \
))
TARGETS += $(BUILD_LIBSLEEF)
endif
ifeq ($(call isTargetOs, linux)+$(call isTargetCpu, aarch64)+$(INCLUDE_COMPILER2), true+true+true)
$(eval $(call SetupJdkLibrary, BUILD_LIBSLEEF, \
NAME := sleef, \
OPTIMIZATION := HIGH, \
SRC := libsleef/lib, \
EXTRA_SRC := libsleef/generated, \
DISABLED_WARNINGS_gcc := unused-function sign-compare tautological-compare ignored-qualifiers, \
DISABLED_WARNINGS_clang := unused-function sign-compare tautological-compare ignored-qualifiers, \
vector_math_sve.c_CFLAGS := $(SVE_CFLAGS), \
CFLAGS_FILTER_OUT := -ftrivial-auto-var-init=pattern, \
))
TARGETS += $(BUILD_LIBSLEEF)
endif
################################################################################

View File

@@ -51,7 +51,7 @@ $(eval $(call SetupJavaCompilation, COMPILE_CREATE_SYMBOLS, \
TARGET_RELEASE := $(TARGET_RELEASE_BOOTJDK), \
SRC := $(TOPDIR)/make/langtools/src/classes \
$(TOPDIR)/src/jdk.jdeps/share/classes, \
INCLUDES := build/tools/symbolgenerator com/sun/tools/classfile, \
INCLUDES := build/tools/symbolgenerator, \
BIN := $(BUILDTOOLS_OUTPUTDIR)/create_symbols_javadoc, \
DISABLED_WARNINGS := options, \
JAVAC_FLAGS := \

View File

@@ -31,7 +31,6 @@ EXCLUDES += \
com/sun/tools/example/debug/bdi \
com/sun/tools/example/debug/event \
com/sun/tools/example/debug/gui \
com/sun/jdi/doc-files \
#
EXCLUDE_FILES += jdi-overview.html

View File

@@ -68,6 +68,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJDWP, \
DISABLED_WARNINGS_clang_threadControl.c := unused-but-set-variable \
unused-variable, \
DISABLED_WARNINGS_clang_utf_util.c := unused-but-set-variable, \
DISABLED_WARNINGS_microsoft_debugInit.c := 5287, \
LDFLAGS := $(ICONV_LDFLAGS), \
EXTRA_HEADER_DIRS := \
include \

View File

@@ -0,0 +1,32 @@
#
# 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.
#
################################################################################
# Instruct SetupJavaCompilation for the jdk.jlink module to include
# upgrade_files_<module-name>.conf files
COPY += .conf
################################################################################

View File

@@ -61,7 +61,6 @@ $(eval $(call SetupJdkExecutable, BUILD_JPACKAGEAPPLAUNCHER, \
DISABLED_WARNINGS_clang_Log.cpp := unused-const-variable, \
CFLAGS_FILTER_OUT := -MD, \
CXXFLAGS_FILTER_OUT := -MD, \
CFLAGS_macosx := -Wno-format-nonliteral, \
CFLAGS_windows := -MT $(JPACKAGE_CFLAGS_windows), \
CXXFLAGS_windows := -MT $(JPACKAGE_CXXFLAGS_windows), \
LD_SET_ORIGIN := false, \

View File

@@ -203,12 +203,12 @@ compare_permissions() {
do
if [ ! -f ${OTHER_DIR}/$f ]; then continue; fi
if [ ! -f ${THIS_DIR}/$f ]; then continue; fi
OP=`ls -l ${OTHER_DIR}/$f | awk '{printf("%.10s\n", $1);}'`
TP=`ls -l ${THIS_DIR}/$f | awk '{printf("%.10s\n", $1);}'`
OP=`ls -l ${OTHER_DIR}/$f | $AWK '{printf("%.10s\n", $1);}'`
TP=`ls -l ${THIS_DIR}/$f | $AWK '{printf("%.10s\n", $1);}'`
if [ "$OP" != "$TP" ]
then
if [ -z "$found" ]; then echo ; found="yes"; fi
$PRINTF "\tother: ${OP} this: ${TP}\t$f\n"
$PRINTF "\tother: %s this: %s\t%s\n" "${OP}" "${TP}" "$f"
fi
done
if [ -z "$found" ]; then
@@ -260,7 +260,7 @@ compare_file_types() {
continue
else
if [ -z "$found" ]; then echo ; found="yes"; fi
$PRINTF "\tother: ${OF}\n\tthis : ${TF}\n"
$PRINTF "\tother: %s\n\tthis : %s\n" "${OF}" "${TF}"
fi
fi
done

View File

@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2020, 2023, 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
@@ -157,11 +157,21 @@ function import_path() {
if [[ $? -eq 0 && -e "$unixpath" ]]; then
if [[ ! "$winpath" =~ ^"$ENVROOT"\\.*$ ]] ; then
# If it is not in envroot, it's a generic windows path
if [[ ! $winpath =~ ^[-_.:\\a-zA-Z0-9]*$ ]] ; then
if [[ ! $winpath =~ ^[-_.:~+\\a-zA-Z0-9]*$ ]] ; then
# Path has forbidden characters, rewrite as short name
# This monster of a command uses the %~s support from cmd.exe to
# reliably convert to short paths on all winenvs.
shortpath="$($CMD /q /c for %I in \( "$winpath" \) do echo %~sI 2>/dev/null | tr -d \\n\\r)"
if [[ ! $shortpath =~ ^[-_.:~+\\a-zA-Z0-9]*$ ]] ; then
if [[ $QUIET != true ]]; then
echo fixpath: failure: Path "'"$path"'" could not be converted to short path >&2
fi
if [[ $IGNOREFAILURES != true ]]; then
exit 1
else
shortpath=""
fi
fi
unixpath="$($PATHTOOL -u "$shortpath")"
# unixpath is based on short name
fi

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