Compare commits

...

518 Commits

Author SHA1 Message Date
Bill Huang
e29e7af525 8300912: Update java/nio/MappedByteBuffer/PmemTest.java to run on x86_64 only
Reviewed-by: msheppar
(cherry picked from commit 27cf63853c)
2023-04-13 10:58:55 +07:00
Justin King
18746e71b2 8305484: Compiler::init_c1_runtime unnecessarily uses an Arena that lives for the lifetime of the process
Reviewed-by: thartmann, kvn
(cherry picked from commit 42fa000a7d)
2023-04-13 10:58:55 +07:00
Brian Burkhalter
04ffdce191 8305809: (fs) Review obsolete Linux kernel dependency on os.version (Unix kernel 2.6.39)
Reviewed-by: rriggs, alanb
(cherry picked from commit 475e9a7cad)
2023-04-13 10:58:54 +07:00
Alexey Semenyuk
44b95cd2ef 8294806: jpackaged-app ignores splash screen from jar file
Reviewed-by: almatvee
(cherry picked from commit 1de772cd89)
2023-04-13 10:58:54 +07:00
Thomas Schatzl
2e7f7a7e1f 8305368: G1 remset chunk claiming may use relaxed memory ordering
Reviewed-by: ayang, iwalulya
(cherry picked from commit d9db90636f)
2023-04-13 10:58:53 +07:00
Thomas Schatzl
a062e70931 8305370: Inconsistent use of for_young_only_phase parameter in G1 predictions
Reviewed-by: iwalulya, kbarrett
(cherry picked from commit c789d24039)
2023-04-13 10:58:53 +07:00
Aleksei Voitylov
919386cd70 8305663: Wrong iteration order of pause array in g1MMUTracker
Reviewed-by: ayang, tschatzl
(cherry picked from commit c6d7cf6b48)
2023-04-13 10:58:53 +07:00
Jiangli Zhou
0e776045d2 8305761: Resolve multiple definition of 'jvm' when statically linking with JDK native libraries
Reviewed-by: alanb, kevinw
(cherry picked from commit ce4b995556)
2023-04-13 10:58:52 +07:00
Tom Rodriguez
8a9a80ae54 8305419: JDK-8301995 broke building libgraal
Reviewed-by: matsaave, dnsimon, thartmann
(cherry picked from commit 12946f5748)
2023-04-13 10:58:52 +07:00
Mark Powers
9c1ee8f69a 8302696: Revert API signature changes made in JDK-8285504 and JDK-8285263
Reviewed-by: mullan
(cherry picked from commit 9486969bd3)
2023-04-13 10:58:51 +07:00
Matias Saavedra Silva
8c0a9351ab 8304738: UnregisteredClassesTable_lock never created
Reviewed-by: iklam, jcking, dholmes
(cherry picked from commit 628a3f173a)
2023-04-13 10:58:51 +07:00
Leonid Mesnik
a2a2f85454 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate objects
Reviewed-by: kvn, sspitsyn
(cherry picked from commit 7a5597c34f)
2023-04-13 10:58:50 +07:00
Chen Liang
efca97af15 8284871: Use covariant overrides for the resolveConstantDesc(Lookup) method in sub‑interfaces of java.lang.constant.ConstantDesc
Reviewed-by: mchung
(cherry picked from commit e5ce7d9e43)
2023-04-13 10:58:50 +07:00
Julian Waters
63ba1acbdd 8304717: Declaration aliasing between boolean and jboolean is wrong
Reviewed-by: dholmes
(cherry picked from commit cd7d53c88c)
2023-04-13 10:58:49 +07:00
Alan Bateman
fe53c523d2 8304919: Implementation of Virtual Threads
Reviewed-by: lmesnik, cjplummer, psandoz, mchung, sspitsyn, jpai
(cherry picked from commit 2586f36120)
2023-04-13 10:58:48 +07:00
Matthew Donovan
dc3946f226 8182621: JSSE should reject empty TLS plaintexts
Reviewed-by: xuelei
(cherry picked from commit 39398075b7)
2023-04-13 10:58:47 +07:00
Feilong Jiang
671fee67fc 8305728: RISC-V: Use bexti instruction to do single-bit testing
Reviewed-by: fyang, yzhu
(cherry picked from commit 137513025d)
2023-04-13 10:58:47 +07:00
Eirik Bjorsnos
3c9eb7398d 8304501: Remove orphaned demo netbeans projects
Reviewed-by: serb
(cherry picked from commit 4485737e9b)
2023-04-13 10:58:46 +07:00
Chen Liang
a22f3a210f 8305807: Spurious right brace in ConstantDescs field Javadocs
Reviewed-by: mchung, iris
(cherry picked from commit 0ff2ff6789)
2023-04-13 10:58:46 +07:00
Justin Lu
8c22b06294 6241286: (cal) API: Calendar.DAY_OF_WEEK definition is wrong
Reviewed-by: naoto
(cherry picked from commit 2aeb0e5267)
2023-04-13 10:58:45 +07:00
Justin Lu
218c8984db 6218123: (cal) API: Spec for GregorianCalendar constructors and Calendar getInstance is inconsistent.
Reviewed-by: naoto
(cherry picked from commit 42965d390c)
2023-04-13 10:58:45 +07:00
Mandy Chung
9b0f94573a 8305808: Typo in javadoc of ConstantDescs::BSM_VARHANDLE_STATIC_FIELD
Reviewed-by: rriggs, iris
(cherry picked from commit a43a17c8ea)
2023-04-13 10:58:45 +07:00
Roger Riggs
c6d7e563bf 8304911: Use OperatingSystem enum in some modules
Reviewed-by: naoto, lancea, iris, jpai
(cherry picked from commit ba90dc7795)
2023-04-13 10:58:44 +07:00
Lance Andersen
0e17375610 8305758: Update the JAR tool man page to indicate -i/--generate-file is deprecated
Reviewed-by: alanb, jpai
(cherry picked from commit 76975da59e)
2023-04-13 10:58:43 +07:00
Eirik Bjorsnos
9724e38a2f 8302819: Remove JAR Index
Reviewed-by: mchung, alanb, lancea, jpai
(cherry picked from commit 0d45a524b3)
2023-04-13 10:58:43 +07:00
Vladimir Petko
1834343462 8305481: gtest is_first_C_frame failing on ARM
Reviewed-by: stuefe
(cherry picked from commit 0243da2e4a)
2023-04-13 10:58:42 +07:00
Eirik Bjorsnos
fc8906044f 8205129: Remove java.lang.Compiler
Reviewed-by: alanb, jpai
(cherry picked from commit a8e3a2dd2f)
2023-04-13 10:58:42 +07:00
Prasanta Sadhukhan
5d7d85bd73 4825182: DefaultBoundedRangeModel.setMinimum() changes extent unnecessarily
Reviewed-by: prr
(cherry picked from commit db174a15d1)
2023-04-13 10:58:41 +07:00
Weijun Wang
69221c7333 8305310: Calculate PublicKey from PrivateKey
Reviewed-by: mullan
(cherry picked from commit 97276859ab)
2023-04-13 10:57:40 +07:00
Andrey Turbanov
0b56c7ebbe 8305696: (zipfs) Avoid redundant LinkedHashMap.containsKey call ZipFileSystem.makeParentDirs
Reviewed-by: alanb, jpai, lancea
(cherry picked from commit 50d7335206)
2023-04-13 10:57:40 +07:00
Jaikiran Pai
dec1694bbb 6441827: Documentation mentions nonexistent NullReferenceException
Reviewed-by: iris
(cherry picked from commit ec9d816abf)
2023-04-13 10:57:39 +07:00
Joshua Cao
ef6404b8b3 8305721: add make compile-commands artifacts to .gitignore
Reviewed-by: erikj, jwaters
(cherry picked from commit 9e20382311)
2023-04-13 10:57:38 +07:00
Ioi Lam
552ff88f5d 8305766: ProblemList runtime/CompressedOops/CompressedClassPointers.java
Reviewed-by: cjplummer
(cherry picked from commit f45b01f883)
2023-04-13 10:57:38 +07:00
Jonathan Gibbons
cb577f9bca 8305407: ExternalSpecsWriter should ignore white-space differences in spec titles
Reviewed-by: hannesw
(cherry picked from commit a8871f5d26)
2023-04-13 10:57:37 +07:00
Roland Westrelin
122447d061 8300257: C2: vectorization fails on some simple Memory Segment loops
Reviewed-by: kvn, thartmann
(cherry picked from commit 6b2a86a65e)
2023-04-13 10:57:37 +07:00
Nikita Gubarkov
261f6ce836 8305666: Add system property for fair AWT lock
Reviewed-by: prr
(cherry picked from commit dc81603cbf)
2023-04-13 10:57:04 +07:00
Thomas Stuefe
841145f62f 8305711: Arm: C2 always enters slowpath for monitorexit
Reviewed-by: shade, kvn
(cherry picked from commit c67bbcea92)
2023-04-13 10:56:47 +07:00
Guoxiong Li
6ca264004c 8305118: Add RISC-V related content to building.md
Reviewed-by: erikj
(cherry picked from commit ce6e7461dc)
2023-04-13 10:56:46 +07:00
Joshua Cao
e1bfbbe4b4 8300829: Make CtwRunner available as an independent tool
Reviewed-by: xliu, phh
(cherry picked from commit 314e9b3dcc)
2023-04-13 10:56:45 +07:00
Kevin Walls
2ebe5d1ac6 8305680: Remove Permissions from jcmd help output
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit 0a34018797)
2023-04-13 10:43:17 +07:00
Kevin Walls
e5797bf834 8305622: Remove Permission details from jcmd man page
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit 8db1dd0258)
2023-04-13 10:43:17 +07:00
Chris Plummer
f54d46459a 8305209: JDWP exit error AGENT_ERROR_INVALID_THREAD(203): missing entry in running thread table
Reviewed-by: sspitsyn, lmesnik
(cherry picked from commit 1d517afbd4)
2023-04-13 10:43:16 +07:00
Viktor Klang
330408188c 8272119: Typo in JDK documentation (a -> an)
Reviewed-by: dfuchs, mchung, iris
(cherry picked from commit 08fbb7bb5e)
2023-04-13 10:43:16 +07:00
Quan Anh Mai
76b8ae08fb 8305461: [vectorapi] Add VectorMask::xor
Reviewed-by: psandoz
(cherry picked from commit 536ad9df1a)
2023-04-13 10:43:16 +07:00
Leonid Mesnik
721bab7bca 8305608: Change VMConnection to use "test.class.path"instead of "test.classes"
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit ddd50d0db3)
2023-04-13 10:43:16 +07:00
Matias Saavedra Silva
67e44296ef 8274166: Some CDS tests ignore -Dtest.cds.runtime.options
Reviewed-by: dholmes, iklam, aturbanov
(cherry picked from commit ce10460e94)
2023-04-13 10:43:16 +07:00
Sergey Tsypanov
e4e5ec343a 8304745: Lazily initialize byte[] in java.io.BufferedInputStream
Reviewed-by: liach, bpb, jpai
(cherry picked from commit e52a2aeeac)
2023-04-13 10:43:16 +07:00
Daniel Fuchs
0dea589c47 8267140: Support closing the HttpClient by making it auto-closable
Reviewed-by: jpai
(cherry picked from commit 6580c4e631)
2023-04-13 10:43:15 +07:00
Tingjun Yuan
64f3b054ff 8269843: typo in LinkedHashMap::removeEldestEntry spec
Reviewed-by: martin
(cherry picked from commit b5ea140dff)
2023-04-13 10:43:15 +07:00
Vladimir Petko
00c86ac3af 8305480: test/hotspot/jtreg/runtime/NMT/VirtualAllocCommitMerge.java failing on 32 bit arm
Reviewed-by: stuefe, dholmes
(cherry picked from commit a6a3cf485d)
2023-04-13 10:43:15 +07:00
Leonid Mesnik
f877a4085b 8305607: Remove some unused test parameters in com/sun/jdi tests
Reviewed-by: sspitsyn, amenkov, cjplummer
(cherry picked from commit 35d22930bb)
2023-04-13 10:43:15 +07:00
Serguei Spitsyn
11c2b0207b 8303563: GetCurrentThreadCpuTime and GetThreadCpuTime need further clarification for virtual threads
Reviewed-by: dholmes, alanb
(cherry picked from commit 5764119024)
2023-04-13 10:43:15 +07:00
Mandy Chung
74f178dec9 8305600: java/lang/invoke/lambda/LogGeneratedClassesTest.java fails after JDK-8304846 and JDK-8202110
Reviewed-by: jvernee
(cherry picked from commit 312702567a)
2023-04-13 10:43:15 +07:00
David Holmes
4ef9ae9516 8305425: Thread.isAlive0 doesn't need to call into the VM
Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Reviewed-by: shade, coleenp, alanb
(cherry picked from commit 35cb303a2c)
2023-04-13 10:43:15 +07:00
Daniel D. Daugherty
ef6b151a31 8305678: ProblemList serviceability/sa/ClhsdbInspect.java on windows-x64 in Xcomp
8305679: ProblemList java/util/concurrent/locks/Lock/OOMEInAQS.java on linux-aarch64 with ZGC

Reviewed-by: mikael
(cherry picked from commit b5d204c3a4)
2023-04-13 10:43:14 +07:00
Brian Burkhalter
75e9e5db96 8305664: [BACKOUT] (fs) Remove FileSystem support for resolving against a default directory (chdir configuration)
Reviewed-by: alanb
(cherry picked from commit 507c49a3ab)
2023-04-13 10:43:14 +07:00
Brian Burkhalter
ee41f2f14e 8305596: (fc) Two java/nio/channels tests fail after JDK-8303260
Reviewed-by: alanb
(cherry picked from commit 39f12a88e7)
2023-04-13 10:43:14 +07:00
Naoto Sato
93f00fd71e 8304982: Emit warning for removal of COMPAT provider
Reviewed-by: alanb
(cherry picked from commit 44f33ad1a9)
2023-04-13 10:43:14 +07:00
Naoto Sato
cd0afdaa4b 8305107: Emoji related binary properties in RegEx
Reviewed-by: iris, rriggs, jpai
(cherry picked from commit ee3023359c)
2023-04-13 10:43:14 +07:00
Jonathan Gibbons
3c071bd735 8305591: Cleanup use of newline flag in DocCommentParser
Reviewed-by: hannesw
(cherry picked from commit 5919fad1f4)
2023-04-13 10:43:14 +07:00
Jonathan Gibbons
79dd88ae76 8305620: Missing break in DocCommentParser inlineWord()
Reviewed-by: iris
(cherry picked from commit 022290bdbd)
2023-04-13 10:43:13 +07:00
Daniel D. Daugherty
e95d728707 8305659: ProblemList com/sun/jdi/PopAndInvokeTest.java with virtual threads
Reviewed-by: thartmann
(cherry picked from commit 2e59d21e56)
2023-04-13 10:43:13 +07:00
Nikita Gubarkov
368dae9e2c 8301616: Drag & maximize to another monitor places window incorrectly (Windows)
Reviewed-by: avu, aivanov, serb
(cherry picked from commit f69d88c57f)
2023-04-13 10:43:13 +07:00
Matthias Baesken
f159771cd8 8305646: compile error on Alpine with gcc12 after 8298619 in libGetXSpace.c
Reviewed-by: alanb, shade
(cherry picked from commit a3137c750f)
2023-04-13 10:43:13 +07:00
Adam Sotona
56680fe924 8305490: CommandProcessor command "dumpclass" produces classes with invalid field descriptors
Reviewed-by: cjplummer, fparain
(cherry picked from commit 78ff454f19)
2023-04-13 10:43:13 +07:00
Tobias Holenstein
afe3c1e26f 8305644: IGV: Node text not updated when switching from/to CFG view
Reviewed-by: rcastanedalo, chagedorn
(cherry picked from commit 9f587d272f)
2023-04-13 10:43:13 +07:00
Jan Lahoda
3a37a3d633 8296454: System.console() shouldn't return null in jshell
Reviewed-by: vromero
(cherry picked from commit 4bf1987856)
2023-04-13 10:43:13 +07:00
Jan Lahoda
330d1412ee 8304883: Record Deconstruction causes bytecode error
Reviewed-by: vromero
(cherry picked from commit 2aec910ea4)
2023-04-13 10:43:12 +07:00
Tobias Holenstein
d152543d3d 8305356: Fix ignored bad CompileCommands in tests
Reviewed-by: thartmann, chagedorn
(cherry picked from commit 0e0c022b1f)
2023-04-13 10:43:12 +07:00
Prasanta Sadhukhan
75213f6065 8068824: Exception thrown in JTableHeader after clicking on popupmenu opened with right-click on header
Reviewed-by: abhiscxk, aghaisas
(cherry picked from commit b659c35395)
2023-04-13 10:43:12 +07:00
Emanuel Peter
82da6a91b9 8304042: C2 SuperWord: schedule must remove packs with cyclic dependencies
Reviewed-by: kvn, thartmann
(cherry picked from commit 83a924a100)
2023-04-13 10:43:12 +07:00
Abhishek Kumar
6328ec9c38 7124527: [macosx] SwingSet2, label is not read by VoiceOver when focus is on textfield for Internalframe and Table demo.
Reviewed-by: asemenov, serb
(cherry picked from commit 0ec3d2e363)
2023-04-13 10:43:12 +07:00
Yoshiki Sato
c5dcc1a72e 8305113: (tz) Update Timezone Data to 2023c
Reviewed-by: naoto, andrew, serb
(cherry picked from commit ed9592c6e8)
2023-04-13 10:43:12 +07:00
Kevin Walls
9698121e21 8305237: CompilerDirectives DCmds permissions correction
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit 15fa78e6e7)
2023-04-13 10:43:11 +07:00
Justin Lu
f41c33682c 8305400: ISO 4217 Amendment 175 Update
Reviewed-by: naoto
(cherry picked from commit 7cf24d1c06)
2023-04-13 10:43:11 +07:00
Justin Lu
851fcef43e 8225641: Calendar.roll(int field) does not work correctly for WEEK_OF_YEAR
Reviewed-by: naoto
(cherry picked from commit a324fa2639)
2023-04-13 10:43:11 +07:00
Mandy Chung
4a1979c761 8305602: ProblemList java/lang/invoke/lambda/LogGeneratedClassesTest.java
Reviewed-by: dcubed
(cherry picked from commit 3399fbf9fa)
2023-04-13 10:43:11 +07:00
Brian Burkhalter
49be1ff17b 8305599: (fc) Temporarily problem-list java/nio/channels/{AsyncCloseAndInterrupt.java, FileChannel/Transfer.java}
Reviewed-by: alanb
(cherry picked from commit 94a05e0caa)
2023-04-13 10:43:11 +07:00
Raffaello Giulietti
61c2691a82 8305343: BigDecimal.fractionOnly() erroneously returns true for large scale value
Reviewed-by: darcy
(cherry picked from commit 7c650489d2)
2023-04-13 10:43:11 +07:00
Mandy Chung
26ae8dba5e 8304846: Provide a shared utility to dump generated classes defined via Lookup API
Reviewed-by: jvernee
(cherry picked from commit dd59471798)
2023-04-13 10:43:11 +07:00
Coleen Phillimore
6b7e370e0a 8305509: C1 fails "assert(k != nullptr) failed: illegal use of unloaded klass"
Reviewed-by: dcubed
(cherry picked from commit 2ee4245105)
2023-04-13 10:43:10 +07:00
Brian Burkhalter
9f4ce7156b 8303260: (fc) FileChannel::transferFrom should support position > size()
Reviewed-by: alanb
(cherry picked from commit 7baccd9ee2)
2023-04-13 10:43:10 +07:00
Brian Burkhalter
1806086056 8298619: java/io/File/GetXSpace.java is failing
Reviewed-by: rriggs
(cherry picked from commit 3ef834fc6f)
2023-04-13 10:43:10 +07:00
Leonid Mesnik
c64f3aaf03 8305511: Remove ignore from com/sun/jdi/PopAndInvokeTest.java
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit c59411929d)
2023-04-13 10:43:10 +07:00
Amit Kumar
ee93ade432 8303147: [s390x] fast & slow debug builds are broken
Reviewed-by: mdoerr
(cherry picked from commit 62bd2ebac4)
2023-04-13 10:43:10 +07:00
Deepa Kumari
a282222316 8303082: [AIX] Missing C++ name demangling with XLClang++
Reviewed-by: tsteele, mdoerr, stuefe
(cherry picked from commit f9ed825266)
2023-04-13 10:43:10 +07:00
Jonathan Gibbons
7f38470a46 8305504: stutter typo in java.compiler files
Reviewed-by: darcy, iris
(cherry picked from commit 73a084c24e)
2023-04-13 10:43:09 +07:00
Thomas Stuefe
17c7228b96 8305525: Problemlist runtime/ErrorHandling/TestDwarf on x86
Reviewed-by: shade
(cherry picked from commit 7b922104f5)
2023-04-13 10:43:09 +07:00
Coleen Phillimore
2e2f4c93e6 8305500: SystemDictionary::find_placeholder/find_class declared but not used
Reviewed-by: iklam, dholmes
(cherry picked from commit 5881b099f6)
2023-04-13 10:43:09 +07:00
Markus Grönlund
7ea3861d2b 8304033: JFR: Missing thread
Reviewed-by: egahlin, dholmes
(cherry picked from commit 7ca2aec34c)
2023-04-13 10:43:09 +07:00
Markus Grönlund
9b5a02ddff 8305242: Remove non-invariant assert(EventThreadDump::is_enabled())
Reviewed-by: egahlin
(cherry picked from commit ac01e24eaf)
2023-04-13 10:43:09 +07:00
Jie Fu
9a1c5150af 8305520: ToggleNotifyJvmtiTest.java fails with release VMs
Reviewed-by: sspitsyn
(cherry picked from commit a663d5d694)
2023-04-13 10:43:09 +07:00
Emanuel Peter
c98fc40048 8173709: Fix VerifyLoopOptimizations - step 1 - minimal infrastructure
Reviewed-by: kvn, chagedorn, thartmann
(cherry picked from commit 24c6af0637)
2023-04-13 10:43:08 +07:00
David Holmes
69f9952d7f 8304996: Add missing HandleMarks
Reviewed-by: coleenp, shade, iklam
(cherry picked from commit a7546b3a16)
2023-04-13 10:43:08 +07:00
Eric Liu
85552e41f1 8303278: Imprecise bottom type of ExtractB/UB
Reviewed-by: qamai, thartmann
(cherry picked from commit ac898e9051)
2023-04-13 10:43:08 +07:00
Serguei Spitsyn
94ec07f25a 8297286: runtime/vthread tests crashing after JDK-8296324
Reviewed-by: lmesnik, pchilanomate, cjplummer
(cherry picked from commit a1a9ec6e46)
2023-04-13 10:43:08 +07:00
Jonathan Gibbons
db26ad11d7 8305206: Add @spec tags in java.base/java.* (part 1)
Reviewed-by: alanb, naoto, darcy, lancea, dfuchs, iris, mchung
(cherry picked from commit c6bd489cc8)
2023-04-13 10:43:08 +07:00
Joe Darcy
571a9e4ecf 8303798: REDO - Remove fdlibm C sources
Reviewed-by: alanb, iris, jwaters, erikj, kvn, dholmes
(cherry picked from commit ccbb0e8d89)
2023-04-13 10:43:08 +07:00
Ioi Lam
454fc5829a 8305421: Work around JDK-8305420 in CDSJDITest.java
Reviewed-by: cjplummer
(cherry picked from commit 9ce5fdc962)
2023-04-13 10:43:07 +07:00
Coleen Phillimore
df85716b83 8304743: Compile_lock and SystemDictionary updates
Reviewed-by: vlivanov, dholmes, dlong
(cherry picked from commit b062b1bd81)
2023-04-13 10:43:07 +07:00
Joe Darcy
c387019526 8304945: StringBuilder and StringBuffer should implement Appendable explicitly
Reviewed-by: alanb, rriggs
(cherry picked from commit df819cfa5a)
2023-04-13 10:43:07 +07:00
Thomas Stuefe
40521aa1f0 8305485: Problemlist runtime/Thread/TestAlwaysPreTouchStacks.java
Reviewed-by: shade
(cherry picked from commit 312bbe7d75)
2023-04-13 10:43:07 +07:00
Sergey Tsypanov
e2c714d1b5 8305442: (bf) Direct and view implementations of CharBuffer.toString(int, int) do not need to catch SIOBE
Reviewed-by: alanb, bpb
(cherry picked from commit 50e31e06d7)
2023-04-13 10:43:07 +07:00
Eirik Bjorsnos
fdf85abc1c 8304014: Convert test/jdk/java/util/zip/ZipFile/CorruptedZipFiles.java to junit
Reviewed-by: lancea
(cherry picked from commit 85e3974470)
2023-04-13 10:43:07 +07:00
Markus KARG
87b924d246 8278268: (ch) InputStream returned by Channels.newInputStream should have fast path for FileChannel targets
Reviewed-by: bpb
(cherry picked from commit 40aea04680)
2023-04-13 10:43:06 +07:00
Jim Laskey
4ca6e46d25 8302323: Add repeat methods to StringBuilder/StringBuffer
Reviewed-by: tvaleev, redestad
(cherry picked from commit 9b9b5a7a5c)
2023-04-13 10:43:06 +07:00
Daniel D. Daugherty
7aaca9cfdc 8305478: [REDO] disable gtest/NMTGtests.java sub-tests failing due to JDK-8305414
Reviewed-by: stuefe
(cherry picked from commit dd7ca757a7)
2023-04-13 10:43:06 +07:00
Daniel Jeliński
04428e887f 8288109: HttpExchangeImpl.setAttribute does not allow null value after JDK-8266897
Reviewed-by: dfuchs, jpai
(cherry picked from commit f9827ad172)
2023-04-13 10:43:06 +07:00
Daniel D. Daugherty
a33c15bd39 8305417: disable gtest/NMTGtests.java sub-tests failing due to JDK-8305414
Reviewed-by: alanb
(cherry picked from commit 6010de0f1d)
2023-04-13 10:43:06 +07:00
Matias Saavedra Silva
79b745776a 8241613: Suspicious calls to MacroAssembler::null_check(Register, offset)
Reviewed-by: dholmes, coleenp, fparain, adinn
(cherry picked from commit 127afd3445)
2023-04-13 10:43:06 +07:00
Fredrik Bredberg
6a532b5bf0 8305247: On RISC-V generate_fixed_frame() sometimes generate a relativized locals value which is way too large
Reviewed-by: fyang, rehn
(cherry picked from commit 33d09e587a)
2023-04-13 10:43:06 +07:00
Jim Laskey
8493e97c92 8305100: [REDO] Clean up JavadocTokenizer
Reviewed-by: jjg
(cherry picked from commit 790acedaab)
2023-04-13 10:43:05 +07:00
Hannes Wallnöfer
0b50f64039 8303123: Add line break opportunity to single type parameters
Reviewed-by: jjg
(cherry picked from commit 2e91585ac9)
2023-04-13 10:43:05 +07:00
Hannes Wallnöfer
f1ac00ac55 8299718: JavaDoc: Buttons to copy specific documentation URL are not accessible
Reviewed-by: jjg
(cherry picked from commit 094e03de6a)
2023-04-13 10:43:05 +07:00
Martin Doerr
b5d7a5d133 8303210: [linux, Windows] Make UseSystemMemoryBarrier available as product flag
Reviewed-by: dholmes, rehn
(cherry picked from commit 4de24cdbe6)
2023-04-13 10:43:05 +07:00
Erik Gahlin
32aa834c57 8303229: JFR: Preserve disk repository after exit
Reviewed-by: dholmes, mgronlun
(cherry picked from commit 336a23e70a)
2023-04-13 10:43:05 +07:00
Abhishek Kumar
2162215da7 8283404: [macos] a11y : Screen magnifier does not show JMenu name
Reviewed-by: serb
(cherry picked from commit ecec611af6)
2023-04-13 10:43:05 +07:00
Julian Waters
625d516fe9 8304893: Link Time Optimization with gcc can be faster
Reviewed-by: dholmes, erikj
(cherry picked from commit aa762102e9)
2023-04-13 10:43:04 +07:00
Thomas Stuefe
8dbfa79a14 8294266: Add a way to pre-touch java thread stacks
Reviewed-by: rehn, gziemski
(cherry picked from commit b8c748dbe4)
2023-04-13 10:43:04 +07:00
Thomas Stuefe
9b33dc4179 8304815: Use NMT for more precise hs_err location printing
Reviewed-by: jsjolen, rkennke
(cherry picked from commit 41a3db267d)
2023-04-13 10:43:04 +07:00
Joshua Cao
42393ead2f 8304295: harfbuzz build fails with GCC 7 after JDK-8301998
Reviewed-by: shade, erikj, serb, jwaters
(cherry picked from commit 34e66ce1ef)
2023-04-13 10:43:04 +07:00
Afshin Zafari
2382180a33 8297539: Use PrimitiveConversions::cast for local uses of the int<->float union conversion trick
Reviewed-by: coleenp, kbarrett, dholmes
(cherry picked from commit a19b28ab3e)
2023-04-13 10:43:04 +07:00
Archie L. Cobbs
7fd1bef5f1 8277501: Revisit PathFileObject.getCharContent and friends
Reviewed-by: vromero, jjg
(cherry picked from commit 8eb4e7e07e)
2023-04-13 10:43:04 +07:00
Joe Darcy
2911e8eaba 8304028: Port fdlibm IEEEremainder to Java
Reviewed-by: bpb
(cherry picked from commit abfb900829)
2023-04-13 10:43:04 +07:00
Martin Buchholz
794ccb7210 8297605: improve DelayQueue removal method javadoc
Reviewed-by: alanb
(cherry picked from commit a565be4dc5)
2023-04-13 10:43:03 +07:00
Chen Liang
de24564228 8304928: Optimize ClassDesc.resolveConstantDesc
Reviewed-by: mchung
(cherry picked from commit cccb0191a3)
2023-04-13 10:43:03 +07:00
Chen Liang
3fc92a52a6 8303930: Fix ConstantUtils.skipOverFieldSignature void case return value
Reviewed-by: mchung
(cherry picked from commit bdbf8fc61d)
2023-04-13 10:43:03 +07:00
Amit Kumar
85533df662 8305227: [s390x] build broken after JDK-8231349
Reviewed-by: shade, lucy, kvn
(cherry picked from commit 4a5d7ca7d9)
2023-04-13 10:43:03 +07:00
Erik Gahlin
2ebdde23c0 8304844: JFR: Missing disk parameter in ActiveRecording event
Reviewed-by: mgronlun
(cherry picked from commit dae1ab3aad)
2023-04-13 10:43:03 +07:00
Doug Simon
915754bada 8305066: [JVMCI] guarantee(ik->is_initialized()) failed: java/lang/Long$LongCache must be initialized
Reviewed-by: never, iveresov
(cherry picked from commit e012685051)
2023-04-13 10:43:03 +07:00
Justin King
094dc9a38f 8304820: Statically allocate ObjectSynchronizer mutexes
Reviewed-by: dcubed, dholmes
(cherry picked from commit fe42312f9b)
2023-04-13 10:43:02 +07:00
Daniel Fuchs
e8e90325bd 8305323: Update java/net/httpclient/ContentLengthHeaderTest.java to use new HttpTestServer factory methods
Reviewed-by: jpai
(cherry picked from commit 2f36eb0121)
2023-04-13 10:43:02 +07:00
Tobias Holenstein
f39cdc8422 8305223: IGV: mark osr compiled graphs with [OSR] in the name
Reviewed-by: thartmann, rcastanedalo, eliu
(cherry picked from commit 049b953f8f)
2023-04-13 10:43:02 +07:00
Roberto Castañeda Lozano
0dbe5c52e5 8302738: IGV: refine 'Simplify graph' filter
Reviewed-by: tholenstein, chagedorn
(cherry picked from commit 345669c29d)
2023-04-13 10:43:02 +07:00
Fei Gao
99829d13a0 8305055: IR check fails on some aarch64 platforms
Reviewed-by: epeter, thartmann
(cherry picked from commit dea9db2d0a)
2023-04-13 10:43:02 +07:00
Richard Reingruber
7c2edfc4fd 8305171: PPC: Should use IMA::load_resolved_indy_entry() in TIG::generate_return_entry_for()
Reviewed-by: mdoerr
(cherry picked from commit c8f3a97d46)
2023-04-13 10:43:02 +07:00
Amit Kumar
678ce4e7fb 8305174: disable dtrace for s390x builds
Reviewed-by: erikj, lucy, mbaesken
(cherry picked from commit 7fe5bd2bec)
2023-04-13 10:43:01 +07:00
Jaikiran Pai
f1746df5cb 8304988: unnecessary dash in @param gives double-dash in docs
Reviewed-by: alanb, cjplummer
(cherry picked from commit 787832a586)
2023-04-13 10:43:01 +07:00
Dingli Zhang
dd82b21552 8305008: RISC-V: Factor out immediate checking functions from assembler_riscv.inline.hpp
Reviewed-by: fjiang, fyang
(cherry picked from commit a144c713b7)
2023-04-13 10:43:01 +07:00
Justin Lu
a67254bf03 8304993: bad sentence break in DateFormat
Reviewed-by: rriggs, naoto, lancea, iris
(cherry picked from commit d8158897c3)
2023-04-13 10:43:01 +07:00
Justin Lu
b57fc3d93f 8305111: Locale.lookupTag has typo in parameter
Reviewed-by: lancea, iris, naoto
(cherry picked from commit 5f7b4b8e75)
2023-04-13 10:43:01 +07:00
Xin Liu
03471faec4 8305142: Can't bootstrap ctw.jar
Reviewed-by: shade, phh
(cherry picked from commit 83cf28f996)
2023-04-13 10:43:01 +07:00
Brian Burkhalter
d7d50a5ee2 8202110: (fs) Remove FileSystem support for resolving against a default directory (chdir configuration)
Reviewed-by: alanb
(cherry picked from commit 05cc02b243)
2023-04-13 10:43:00 +07:00
Sergey Bylokhov
9cf9b9b6be 8299333: Unify exceptions used by all variants of ICC_Profile.getInstance(null)
Reviewed-by: prr
(cherry picked from commit d2df36b073)
2023-04-13 10:43:00 +07:00
Mandy Chung
d2659054ca 8304585: Method::invoke rewraps InvocationTargetException if a caller-sensitive method throws IAE
Reviewed-by: darcy, jpai, alanb
(cherry picked from commit 1d7bb1ffa0)
2023-04-13 10:43:00 +07:00
Per Minborg
fc17e14d15 8305157: The java.util.Arrays class should be declared final
Reviewed-by: alanb, rriggs, bpb
(cherry picked from commit 9df2060059)
2023-04-13 10:43:00 +07:00
Ilya Korennoy
1ca2ea13bc 8304445: Remaining uses of NULL in ciInstanceKlass.cpp
Reviewed-by: thartmann
(cherry picked from commit b261e6c43f)
2023-04-13 10:43:00 +07:00
Tobias Holenstein
84bdb2fffd 8302644: IGV: Apply filters per graph tab and not globally
Reviewed-by: rcastanedalo, chagedorn, thartmann
(cherry picked from commit 2c38e67b29)
2023-04-13 10:43:00 +07:00
Severin Gehwolf
1276cea3aa 8304871: Use default visibility for static library builds
Reviewed-by: erikj, dholmes
(cherry picked from commit f0dba218ac)
2023-04-13 10:43:00 +07:00
Emanuel Peter
bd8a05e25e 8305222: Change unique_ctrl_out_or_null to unique_ctrl_out in PhaseCFG::convert_NeverBranch_to_Goto
Reviewed-by: kvn, thartmann
(cherry picked from commit 77811fa39b)
2023-04-13 10:42:59 +07:00
Daniel Jeliński
13ee09f815 8262294: java/net/httpclient/ProxyAuthDisabledSchemes.java fails with HTTP/1.1 parser received no bytes
Reviewed-by: dfuchs, jpai
(cherry picked from commit 2d607c9cd1)
2023-04-13 10:42:59 +07:00
Kim Barrett
e814fdaa56 8303805: [REDO] JDK-8302189 and JDK-8302799
Reviewed-by: dholmes, coleenp
(cherry picked from commit b3ff8d1c89)
2023-04-13 10:42:59 +07:00
Ioi Lam
8971539773 8301106: Allow archived Java strings to be moved by GC
Reviewed-by: dholmes
(cherry picked from commit b524a74165)
2023-04-13 10:42:59 +07:00
Chris Plummer
79e0220da0 8304436: com/sun/jdi/ThreadMemoryLeakTest.java fails with "OutOfMemoryError: Java heap space" with ZGC
8304449: com/sun/jdi/ThreadMemoryLeakTest.java times out

Reviewed-by: lmesnik, dcubed
(cherry picked from commit 9643f654da)
2023-04-13 10:42:59 +07:00
Daniel Fuchs
843a1ec12a 8305202: Fix Copyright Header in ZonedDateTimeFormatterBenchmark
Reviewed-by: rriggs, naoto, dcubed
(cherry picked from commit 69152c3b18)
2023-04-13 10:42:59 +07:00
Sergey Tsypanov
22d3e94fa6 8304976: Optimize DateTimeFormatterBuilder.ZoneTextPrinterParser.getTree()
Reviewed-by: naoto
(cherry picked from commit 438c969b7b)
2023-04-13 10:42:58 +07:00
Roger Riggs
514d6ad75e 8303392: Runtime.exec and ProcessBuilder.start should use System logger
Reviewed-by: stuefe, alanb, mullan
(cherry picked from commit d063b8964f)
2023-04-13 10:42:58 +07:00
SUN Guoyun
475ea618ee 8302814: Delete unused CountLoopEnd instruct with CmpX
Reviewed-by: kvn, fjiang
(cherry picked from commit be764a711c)
2023-04-13 10:42:58 +07:00
Kim Barrett
69d4325bb2 8304759: Add BitMap iterators
Reviewed-by: stefank, aboldtch, tschatzl
(cherry picked from commit 34f4d7f4ad)
2023-04-13 10:42:58 +07:00
Harshitha Onkar
517c785b90 8304991: Redundant hyphen in @param results in double-dash in javadocs
Reviewed-by: psadhukhan
(cherry picked from commit 42df1a99b7)
2023-04-13 10:42:58 +07:00
Naoto Sato
4c7566c19d 8304840: Dangling CharacterCodingException in a few javadoc descriptions
Reviewed-by: alanb, iris, rriggs, jpai
(cherry picked from commit e3855d0054)
2023-04-13 10:42:58 +07:00
Bhavana Kilambi
7e8d171afb 8303161: [vectorapi] VectorMask.cast narrow operation returns incorrect value with SVE
Reviewed-by: eliu, xgong, ngasson
(cherry picked from commit 67274906ae)
2023-04-13 10:42:57 +07:00
Naoto Sato
e2c7729278 8272613: CharsetDecoder.decode(ByteBuffer) throws IllegalArgumentException
Reviewed-by: alanb, bpb
(cherry picked from commit f07decb74b)
2023-04-13 10:42:57 +07:00
Thomas Schatzl
f013d3fdeb 8305086: G1 Redirty Cards phase printed twice
Reviewed-by: ayang, kbarrett
(cherry picked from commit 014c658708)
2023-04-13 10:42:57 +07:00
Lance Andersen
15e8457a5e 8304990: unnecessary dash in @param gives double-dash in docs
Reviewed-by: bpb, naoto
(cherry picked from commit 2fa09333ef)
2023-04-13 10:42:57 +07:00
Daniel Fuchs
b537fba1a8 8305095: Update java/net/httpclient/CustomRequestPublisher.java to use new HttpTestServer factory methods
Reviewed-by: jpai
(cherry picked from commit e56bcb04b1)
2023-04-13 10:42:57 +07:00
Xiaolin Zheng
7d0a8c78cb 8304681: compiler/sharedstubs/SharedStubToInterpTest.java fails after JDK-8304387
Reviewed-by: eastigeevich, kvn, shade
(cherry picked from commit 09852884cc)
2023-04-13 10:42:57 +07:00
Matthias Baesken
51ac81d8fb 8304867: Explicitly disable dtrace for ppc builds
Reviewed-by: erikj, shade, lucy
(cherry picked from commit ff368d504e)
2023-04-13 10:42:57 +07:00
Xiaolin Zheng
ad349fb8a5 8305112: RISC-V: Typo fix for RVC description
Reviewed-by: dholmes
(cherry picked from commit 96fa2751e8)
2023-04-13 10:42:56 +07:00
Jonathan Gibbons
580db148d8 8305094: typo (missing *) in doc comment
Reviewed-by: iris
(cherry picked from commit 7239150f8a)
2023-04-13 10:42:56 +07:00
Matias Saavedra Silva
ff722c3b2a 8301995: Move invokedynamic resolution information out of ConstantPoolCacheEntry
Co-authored-by: Richard Reingruber <rrich@openjdk.org>
Co-authored-by: Dingli Zhang <dzhang@openjdk.org>
Co-authored-by: Gui Cao <gcao@openjdk.org>
Co-authored-by: Amit Kumar <amitkumar@openjdk.org>
Reviewed-by: coleenp, dnsimon, fparain, gcao, aph, fyang, amitkumar, lucy
(cherry picked from commit 3fbbfd1749)
2023-04-13 10:42:56 +07:00
Daniel Fuchs
aefb6b38f3 8304927: Update java/net/httpclient/BasicAuthTest.java to check basic auth over HTTP/2
Reviewed-by: jpai
(cherry picked from commit 50a995f03a)
2023-04-13 10:42:56 +07:00
Raffaello Giulietti
88a6e4fbe9 8291598: Matcher.appendReplacement should not create new StringBuilder instances
Reviewed-by: rriggs
(cherry picked from commit ca745cb426)
2023-04-13 10:42:56 +07:00
Jim Laskey
2e90229395 8305098: [Backout] JDK-8303912 Clean up JavadocTokenizer
Reviewed-by: jjg, mcimadamore
(cherry picked from commit 1683a63a7d)
2023-04-13 10:42:56 +07:00
Jan Lahoda
b41edb2613 8304498: JShell does not switch to raw mode when there is no /bin/test
Reviewed-by: coffeys, vromero
(cherry picked from commit fab23577ab)
2023-04-13 10:42:55 +07:00
Jim Laskey
9f7a36bdb9 8303912: Clean up JavadocTokenizer
Reviewed-by: vromero, jjg
(cherry picked from commit 1fc218c58b)
2023-04-13 10:42:55 +07:00
Archie L. Cobbs
6213bf938c 8303623: Compiler should disallow non-standard UTF-8 string encodings
Reviewed-by: vromero
(cherry picked from commit c1f5ca115d)
2023-04-13 10:42:55 +07:00
Martin Doerr
204e9c9498 8304880: [PPC64] VerifyOops code in C1 doesn't work with ZGC
Reviewed-by: shade
(cherry picked from commit 695683b5b1)
2023-04-13 10:42:55 +07:00
Jonathan Gibbons
5c6579596b 8305004: add @spec tags to langtools modules
Reviewed-by: iris
(cherry picked from commit 83ce65e12c)
2023-04-13 10:42:55 +07:00
Justin King
cbe982bdd5 8304884: Update Bytecodes data to be mostly compile time constants
Reviewed-by: coleenp, dholmes
(cherry picked from commit 32ef452132)
2023-04-13 10:42:55 +07:00
Per Minborg
92f6c637d0 8300977: Retire java.io.ExpiringCache
Reviewed-by: alanb, jpai
(cherry picked from commit 927e674c12)
2023-04-13 10:42:54 +07:00
Jaikiran Pai
162516af00 8304989: unnecessary dash in @param gives double-dash in docs
Reviewed-by: lancea
(cherry picked from commit c90699eae7)
2023-04-13 10:42:54 +07:00
Sergey Tsypanov
978a8e4987 8304591: (fs) UnixPath.stringValue need not be volatile
Reviewed-by: alanb, bpb, shade
(cherry picked from commit 395a4ce0dd)
2023-04-13 10:42:54 +07:00
Per Minborg
110ac542ab 8300979: Lazily initialize (byte, char)arr in java.io.DataInputStream
Reviewed-by: alanb
(cherry picked from commit 60640a216d)
2023-04-13 10:42:54 +07:00
Daniel Jeliński
eda3650f20 8304962: sun/net/www/http/KeepAliveCache/B5045306.java: java.lang.RuntimeException: Failed: Initial Keep Alive Connection is not being reused
Reviewed-by: jpai
(cherry picked from commit cddaf686e1)
2023-04-13 10:42:54 +07:00
nbauma109
abb0d42e3e 8303214: Typo in java.util.Collections#synchronizedNavigableMap javadoc
Reviewed-by: martin, smarks, aturbanov
(cherry picked from commit a06f46196a)
2023-04-13 10:42:54 +07:00
Albert Mingkun Yang
095cc7b743 8304412: Serial: Refactor old generation cards update after Full GC
Reviewed-by: tschatzl, kbarrett
(cherry picked from commit 7987ad427b)
2023-04-13 10:42:53 +07:00
Daniel Jeliński
cdcf23721f 8304963: HttpServer closes connection after processing HEAD after JDK-7026262
Reviewed-by: dfuchs
(cherry picked from commit 3c4cd50e3c)
2023-04-13 10:42:53 +07:00
Eirik Bjorsnos
153c1dfaed 8304543: Modernize debugging jvm args in test/hotspot/jtreg/vmTestbase/nsk/jdi/Argument/value/value004.java
Reviewed-by: dholmes, cjplummer, alanb
(cherry picked from commit 4f625c0b9a)
2023-04-13 10:42:53 +07:00
Archie L. Cobbs
66748d3042 8303526: Changing "arbitrary" Name.compareTo() ordering breaks the regression suite
Reviewed-by: vromero
(cherry picked from commit 426025aab4)
2023-04-13 10:42:53 +07:00
Matias Saavedra Silva
92917137a0 8304931: vm/concepts/methods/methods001/methods00101m1/methods00101m1 failures with already pending exception
Reviewed-by: coleenp, dholmes
(cherry picked from commit 6aec6f3a84)
2023-04-13 10:42:53 +07:00
David Holmes
e1382cbe59 8304147: JVM crash during shutdown when dumping dynamic archive
Reviewed-by: ccheung, matsaave, coleenp
(cherry picked from commit 63ce88b5fb)
2023-04-13 10:42:53 +07:00
Serguei Spitsyn
5e44dc6f22 8304448: Kitchensink failed: assert(!thread->is_in_any_VTMS_transition()) failed: class prepare events are not allowed in any VTMS transition
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Reviewed-by: rpressler, alanb
(cherry picked from commit 554bccf046)
2023-04-13 10:42:53 +07:00
Justin Lu
cff62b56b4 8304761: Update IANA Language Subtag Registry to Version 2023-03-22
Reviewed-by: naoto
(cherry picked from commit 3b88b2a9f8)
2023-04-13 10:42:52 +07:00
Justin Lu
bf0fe5f35f 8177352: Calendar.getDisplayName(s) in non-lenient mode inconsistent, does not match spec
Reviewed-by: naoto
(cherry picked from commit f8e8fc7e29)
2023-04-13 10:42:52 +07:00
Archie L. Cobbs
3b3349e639 8296656: java.lang.NoClassDefFoundError exception on running fully legitimate code
8287885: Local classes cause ClassLoader error if the type names are similar but not same

Reviewed-by: vromero
(cherry picked from commit 14b970dc9e)
2023-04-13 10:42:52 +07:00
Damon Nguyen
8e1aaf6f29 8302558: Editable JComboBox's popup blocks user from seeing characters in Aqua look and feel
Reviewed-by: psadhukhan, azvegint
(cherry picked from commit 80e2d52f76)
2023-04-13 10:42:52 +07:00
Roger Riggs
71b7c31631 8303485: Replacing os.name for operating system customization
Reviewed-by: naoto, erikj, alanb
(cherry picked from commit 6c3b10fb1d)
2023-04-13 10:42:52 +07:00
Damon Nguyen
5cc904f2f6 7093691: Nimbus LAF: disabled JComboBox using renderer has bad font color
Reviewed-by: honkar, kizune, psadhukhan
(cherry picked from commit 87b314a985)
2023-04-13 10:42:52 +07:00
Jonathan Gibbons
2217cabc74 8304689: Add hidden option to disable external spec page
Reviewed-by: erikj, hannesw
(cherry picked from commit 2f34687ec1)
2023-04-13 10:42:51 +07:00
Julian Waters
992e060471 8304718: GetIntArrayElements should not be passed JNI_FALSE
Reviewed-by: serb
(cherry picked from commit 6b2f34f88a)
2023-04-13 10:42:51 +07:00
Jan Lahoda
b6a2caf7dd 8304694: Runtime exception thrown when break stmt is missing
Reviewed-by: vromero
(cherry picked from commit 138cdc9283)
2023-04-13 10:42:51 +07:00
Eirik Bjorsnos
fdf64a8f5e 8304547: Remove checking of -Djava.compiler in src/jdk.jdi/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java
Reviewed-by: dholmes, cjplummer, alanb
(cherry picked from commit 46b0602376)
2023-04-13 10:42:51 +07:00
Justin King
0f273fe5d6 8304723: Statically allocate global mutexes
8304736: Heap_lock is created twice

Reviewed-by: coleenp, dholmes, tschatzl

(cherry picked from commit 8d423f7305)
2023-04-13 10:42:51 +07:00
Justin King
5caf30ce2b 8304828: Lots of constant static data not declared static const in cpu/x86
Reviewed-by: dholmes, kvn
(cherry picked from commit 20830883df)
2023-04-13 10:42:51 +07:00
Prasanta Sadhukhan
06c4bc578b 7169951: SwingSet2 throws NullPointerException with Nimbus L&F
Reviewed-by: abhiscxk, jdv
(cherry picked from commit 0712adc2dd)
2023-04-13 10:42:51 +07:00
Bhavana Kilambi
c05a4668cf 8301012: [vectorapi]: Intrinsify CompressBitsV/ExpandBitsV and add the AArch64 SVE backend implementation
Co-authored-by: Xiaohong Gong <xgong@openjdk.org>
Co-authored-by: Jatin Bhateja <jbhateja@openjdk.org>
Reviewed-by: ngasson, eliu, thartmann
(cherry picked from commit de1c12ed63)
2023-04-13 10:42:50 +07:00
Thomas Schatzl
e187c66e60 8304804: Remove develop flag G1VerifyCTCleanup
Reviewed-by: ayang, kbarrett
(cherry picked from commit 10fa7d1f9b)
2023-04-13 10:42:50 +07:00
Thomas Schatzl
fd9524ea83 8304809: Remove develop flag G1ExitOnExpansionFailure
Reviewed-by: ayang, kbarrett
(cherry picked from commit 4acf20df7b)
2023-04-13 10:42:50 +07:00
Daniel Jeliński
3cdeab46a9 7026262: HttpServer: improve handling of finished HTTP exchanges
Reviewed-by: dfuchs, michaelm
(cherry picked from commit a5ffa079a0)
2023-04-13 10:42:50 +07:00
Eirik Bjorsnos
917e365540 8304013: Add a fast, non-manual alternative to test/jdk/java/util/zip/ZipFile/TestTooManyEntries
Reviewed-by: lancea, martin
(cherry picked from commit 65e01da925)
2023-04-13 10:42:50 +07:00
Quan Anh Mai
2528d36671 8304258: x86: Improve the code generation of VectorRearrange with int and float
Reviewed-by: kvn, jbhateja, sviswanathan
(cherry picked from commit 38e17148fa)
2023-04-13 10:42:50 +07:00
Weijun Wang
06d10716a0 8304136: Match allocation and free in sspi.cpp
Reviewed-by: djelinski
(cherry picked from commit 765a94258d)
2023-04-13 10:42:49 +07:00
Ian Graves
f881e77bb2 8304898: Fix Copyright Headers for JLink Source Files
Reviewed-by: iris, mchung
(cherry picked from commit 3f59b75bd8)
2023-04-13 10:42:49 +07:00
Kim Barrett
e66db5a1d0 8298725: Add BitMap support for reverse iteration
Reviewed-by: stefank, aboldtch, tschatzl
(cherry picked from commit 501b606816)
2023-04-13 10:42:49 +07:00
Abhishek Kumar
e6ec3a35ab 8273986: JEditorPane HTML Demo - Accessibility issues
Reviewed-by: kizune, serb
(cherry picked from commit 97649489d0)
2023-04-13 10:42:49 +07:00
Zdenek Zambersky
cfcc0b0377 8304353: Add lib-test tier1 testing in GHA
Reviewed-by: shade, ihse
(cherry picked from commit 57276101df)
2023-04-13 10:42:49 +07:00
Matias Saavedra Silva
06e4640331 8304069: ClassFileParser has ad-hoc hashtables
Reviewed-by: coleenp, dholmes
(cherry picked from commit d8ba227aa4)
2023-04-13 10:42:49 +07:00
Brian Burkhalter
4339008cd6 8304833: (fc) Remove dead code in sun.nio.ch.FileChannelImpl::implCloseChannel
Reviewed-by: alanb
(cherry picked from commit 9a8a60f7d6)
2023-04-13 10:42:49 +07:00
Archie L. Cobbs
837628a8a3 8291154: Create a non static nested class without enclosing class throws VerifyError
Reviewed-by: vromero
(cherry picked from commit f96aee7401)
2023-04-13 10:42:48 +07:00
Coleen Phillimore
a1f8411e04 8297977: vmTestbase/nsk/stress/except/except012.java fails with unexpected Exception
Reviewed-by: mseledtsov, lmesnik
(cherry picked from commit 4ec720db9f)
2023-04-13 10:42:48 +07:00
Thomas Schatzl
507ad8bc1c 8304802: After JDK-8297639 the flag G1UsePreventiveGC needs to be added to the obsoletion table
Reviewed-by: ayang, dholmes
(cherry picked from commit 13dd19aac2)
2023-04-13 10:42:48 +07:00
Jatin Bhateja
ebeaff3e8b 8303508: Vector.lane() gets wrong value on x86
Reviewed-by: eliu, thartmann
(cherry picked from commit d61de141eb)
2023-04-13 10:42:48 +07:00
Fei Gao
fe22d14653 8304301: Remove the global option SuperWordMaxVectorSize
Reviewed-by: sviswanathan, kvn
(cherry picked from commit 941a7ac7da)
2023-04-13 10:42:48 +07:00
Archie L. Cobbs
c70a4202ad 7176515: ExceptionInInitializerError for an enum with multiple switch statements
8299760: ExceptionInInitializerError for an enum with multiple switch statements, follow-up

Reviewed-by: vromero
(cherry picked from commit ac6af6a640)
2023-04-13 10:42:48 +07:00
Justin Lu
8495ded689 8303917: Update ISO 639 language codes table
Reviewed-by: naoto
(cherry picked from commit dd23ee9e87)
2023-04-13 10:42:47 +07:00
Viktor Klang
70b3dcb4dc 8304557: java/util/concurrent/CompletableFuture/CompletableFutureOrTimeoutExceptionallyTest.java times out
Reviewed-by: jpai
(cherry picked from commit 6f67abd352)
2023-04-13 10:42:47 +07:00
Thomas Schatzl
3783284869 8304716: Clean up G1Policy::calc_max_old_cset_length()
Reviewed-by: ayang, iwalulya
(cherry picked from commit 568dd57d0d)
2023-04-13 10:42:47 +07:00
Ian Graves
ff7bb3b6c1 8304691: Remove jlink --post-process-path option
Reviewed-by: mchung
(cherry picked from commit af0504e3f3)
2023-04-13 10:42:47 +07:00
Vladimir Kozlov
82947b54dd 8231349: Move intrinsic stubs generation to compiler runtime initialization code
Reviewed-by: redestad, vlivanov
(cherry picked from commit 3859faf183)
2023-04-13 10:42:47 +07:00
Thomas Schatzl
289605891e 8304711: Combine G1 root region abort and wait into a single method
Reviewed-by: ayang, iwalulya
(cherry picked from commit f37674a8f7)
2023-04-13 10:42:47 +07:00
Thomas Schatzl
142de3f84c 8304712: Only pass total number of regions into G1Policy::calc_min_old_cset_length
Reviewed-by: ayang, iwalulya
(cherry picked from commit 7f9e691630)
2023-04-13 10:42:46 +07:00
Brian Burkhalter
48dae282e9 8294137: Review running times of java.math tests
Reviewed-by: darcy
(cherry picked from commit 51035a75e4)
2023-04-13 10:42:46 +07:00
Brian Burkhalter
4df608c0eb 4842457: (bf spec) Clarify meaning of "(optional operation)"
Reviewed-by: alanb
(cherry picked from commit 46cca1a4c5)
2023-04-13 10:42:46 +07:00
Archie L. Cobbs
85de5fe7bf 8184444: The compiler error "variable not initialized in the default constructor" is not apt in case of static final variables
Reviewed-by: vromero
(cherry picked from commit 6fa25cc134)
2023-04-13 10:42:46 +07:00
Archie L. Cobbs
b05a088adc 8027682: javac wrongly accepts semicolons in package and import decls
Reviewed-by: vromero
(cherry picked from commit 4b8f7db6be)
2023-04-13 10:42:46 +07:00
Archie L. Cobbs
e3adb66d7b 8043179: Lambda expression can mutate final field
Reviewed-by: vromero
(cherry picked from commit c00d0885ae)
2023-04-13 10:42:46 +07:00
Daniel Jeliński
9be2be0a39 8219083: java/net/MulticastSocket/SetGetNetworkInterfaceTest.java failed in same binary run on windows x64
Reviewed-by: dfuchs
(cherry picked from commit 147f3473d4)
2023-04-13 10:42:46 +07:00
Coleen Phillimore
4b82aff54f 8304687: Move add_to_hierarchy
Reviewed-by: dholmes, fparain

(cherry picked from commit bf917ba6af)
2023-04-13 10:42:45 +07:00
Jan Lahoda
74012ac22b 8304671: javac regression: Compilation with --release 8 fails on underscore in enum identifiers
Reviewed-by: vromero, darcy
(cherry picked from commit 63d4afbeb1)
2023-04-13 10:42:45 +07:00
Prasanta Sadhukhan
78ba26d001 6817009: Action.SELECTED_KEY not toggled when using key binding
Reviewed-by: tr, jdv
(cherry picked from commit e2cfcfbfa9)
2023-04-13 10:42:45 +07:00
Emanuel Peter
20db172c94 8303951: Add asserts before record_method_not_compilable where possible
Reviewed-by: kvn, thartmann
(cherry picked from commit af4d5600e3)
2023-04-13 10:42:45 +07:00
Prasanta Sadhukhan
7c28e64889 6245410: javax.swing.text.html.CSS.Attribute: BACKGROUND_POSITION is not w3c spec compliant
Reviewed-by: aivanov
(cherry picked from commit c4338620b7)
2023-04-13 10:42:45 +07:00
Archie L. Cobbs
822963c0b2 8029301: Confusing error message for array creation method reference
Reviewed-by: vromero
(cherry picked from commit 91f407d6fe)
2023-04-13 10:42:44 +07:00
Leonid Mesnik
ec3c79427e 8304376: Rename t1/t2 classes in com/sun/jdi/CLETest.java to avoid class duplication error in IDE
Reviewed-by: sspitsyn, cjplummer
(cherry picked from commit e73411a235)
2023-04-13 10:42:44 +07:00
Chen Liang
372b42dacf 8288730: Add type parameter to Lookup::accessClass and Lookup::ensureInitialized
Reviewed-by: mchung
(cherry picked from commit a2d8f634de)
2023-04-13 10:42:44 +07:00
Jan Kratochvil
ac496f72f2 8302191: Performance degradation for float/double modulo on Linux
Reviewed-by: dholmes, sviswanathan
(cherry picked from commit 37774556da)
2023-04-13 10:42:44 +07:00
Justin King
e9800edf2e 8304683: Memory leak in WB_IsMethodCompatible
Reviewed-by: thartmann
(cherry picked from commit 760c0128a4)
2023-04-13 10:42:44 +07:00
Ludvig Janiuk
ac36267b12 8304134: jib bootstrapper fails to quote filename when checking download filetype
Reviewed-by: erikj
(cherry picked from commit 75168eaca3)
2023-04-13 10:42:44 +07:00
Johan Sjölen
7a205e6ecd 8301498: Replace NULL with nullptr in cpu/x86
Reviewed-by: dholmes, kvn
(cherry picked from commit 4154a980ca)
2023-04-13 10:42:43 +07:00
Coleen Phillimore
98e5e9d981 8304089: Convert TraceDependencies to UL
Reviewed-by: vlivanov, dholmes
(cherry picked from commit ddf1e34c1a)
2023-04-13 10:42:43 +07:00
Adam Sotona
8a3942879d 8294972: Convert jdk.jlink internal plugins to use the Classfile API
Reviewed-by: mchung, alanb
(cherry picked from commit 358c61b58d)
2023-04-13 10:42:43 +07:00
Albert Mingkun Yang
38a2b37786 8304657: G1: Rename set_state_empty to set_state_untracked
Reviewed-by: tschatzl
(cherry picked from commit c74507eeb3)
2023-04-13 10:42:42 +07:00
Albert Mingkun Yang
a632b29807 8304144: G1: Remove unnecessary is_survivor check in G1ClearCardTableTask
Reviewed-by: tschatzl, ysr
(cherry picked from commit ca94287d2b)
2023-04-13 10:42:42 +07:00
Daniel Jeliński
c07af0be2b 8304286: java/net/SocketOption/OptionsTest.java failing after JDK-8302659
Reviewed-by: dfuchs
(cherry picked from commit eda0065107)
2023-04-13 10:42:42 +07:00
Wang Haomin
105a955d78 8303804: Fix some errors of If-VectorTest and CMove-VectorTest
Reviewed-by: qamai, thartmann
(cherry picked from commit c039d26603)
2023-04-13 10:42:42 +07:00
Adam Sotona
457079db85 8304502: Classfile API class hierarchy makes assumptions when class is not resolved
Reviewed-by: jpai
(cherry picked from commit 0156909ab3)
2023-04-13 10:42:41 +07:00
Chris Plummer
7196707dd0 8290200: com/sun/jdi/InvokeHangTest.java fails with "Debuggee appears to be hung"
Reviewed-by: amenkov, lmesnik, sspitsyn, dcubed
(cherry picked from commit 0deb648985)
2023-04-13 10:42:41 +07:00
Chen Liang
faed1b9e7c 8304139: Add <init> and <clinit> method constants to ConstantDescs
Reviewed-by: mchung
(cherry picked from commit 019fcd819c)
2023-04-13 10:42:41 +07:00
Christian Hagedorn
4e9a3156b4 8304680: Problemlist compiler/sharedstubs/SharedStubToInterpTest.java
Reviewed-by: thartmann
(cherry picked from commit d6f20e2fbf)
2023-04-13 10:42:41 +07:00
Chen Liang
5b092754d2 8304180: Constant Descriptors for MethodHandles::classData and classDataAt
Reviewed-by: jvernee, mchung
(cherry picked from commit d788a1bb80)
2023-04-13 10:42:41 +07:00
Coleen Phillimore
30e8054cb8 8299494: Test vmTestbase/nsk/stress/except/except011.java failed: ExceptionInInitializerError: target class not found
Reviewed-by: dholmes, dcubed
(cherry picked from commit bbde2158d1)
2023-04-13 10:42:41 +07:00
Xiaolin Zheng
fde0fc8dff 8304387: Fix positions of shared static stubs / trampolines
Reviewed-by: adinn, fyang
(cherry picked from commit 1c04686cd6)
2023-04-13 10:42:40 +07:00
Matthias Baesken
016d719397 8304334: java/awt/color/ICC_ColorSpace/ToFromCIEXYZRoundTrip.java times out on slow platforms
Reviewed-by: lucy, serb, prr
(cherry picked from commit c65bb2c58e)
2023-04-13 10:42:40 +07:00
Raffaello Giulietti
7355b52c89 8303648: Add String.indexOf(String str, int beginIndex, int endIndex)
Reviewed-by: rriggs
(cherry picked from commit 4bf1fbb06d)
2023-04-13 10:42:40 +07:00
Jan Lahoda
200d2a065f 8304537: Ant-based langtools build fails after JDK-8015831 Add lint check for calling overridable methods from a constructor
Reviewed-by: vromero, erikj
(cherry picked from commit c4df9b5f17)
2023-04-13 10:42:40 +07:00
Jasmine K
cba0f0d156 8304230: LShift ideal transform assertion
Reviewed-by: thartmann
(cherry picked from commit a6b72f56f5)
2023-04-13 10:42:40 +07:00
Varada M
2714091bd5 8303948: HsErrFileUtils.checkHsErrFileContent() fails to check the last pattern.
Reviewed-by: dholmes, stuefe
(cherry picked from commit a72ba38347)
2023-04-13 10:42:39 +07:00
Vitaly Provodin
010ecf92da fixup! Added JBR API 2023-04-13 10:42:39 +07:00
Mandy Chung
c1dc56d300 8304542: Convert use of internal VM::classFileVersion to ClassFileFormatVersion
Reviewed-by: alanb
(cherry picked from commit bbca7c3ede)
2023-04-13 10:42:39 +07:00
Naoto Sato
7ecf40de94 8303018: Unicode Emoji Properties
Reviewed-by: prr, erikj, rriggs
(cherry picked from commit f593a6b52e)
2023-04-13 10:42:39 +07:00
Serguei Spitsyn
fdfeedd327 8304303: implement VirtualThread class notifyJvmti methods as C2 intrinsics
Reviewed-by: vlivanov, lmesnik
(cherry picked from commit bc0ed730f2)
2023-04-13 10:42:39 +07:00
Kim Barrett
54dde4eaad 8304016: Add BitMap find_last suite of functions
Reviewed-by: stefank, aboldtch
(cherry picked from commit 2d0d057d66)
2023-04-13 10:42:39 +07:00
Maurizio Cimadamore
5486602524 8304420: Regression ~11% with Javac-Generates on all platforms in b14
Reviewed-by: vromero
(cherry picked from commit 42723dcb18)
2023-04-13 10:42:38 +07:00
Julian Waters
85113292ea 8304541: Modules THROW_MSG_ should return nullptr instead of JNI_FALSE
Reviewed-by: coleenp
(cherry picked from commit 19f2edd9b7)
2023-04-13 10:42:38 +07:00
Mandy Chung
e6619d7f0f 8304163: Move jdk.internal.module.ModuleInfoWriter to the test library
Reviewed-by: jpai, alanb
(cherry picked from commit 622f239448)
2023-04-13 10:42:38 +07:00
Tyler Steele
a6e7576ef9 8304364: [AIX] Build erroneously determines build disk is non-local when using GNU-utils df on AIX
Reviewed-by: erikj
(cherry picked from commit 4c8c9935eb)
2023-04-13 10:42:38 +07:00
Thomas Schatzl
cbd7882da1 8304393: Provide method to iterate over regions of humongous object in G1
Reviewed-by: iwalulya, ayang
(cherry picked from commit 4ed7350573)
2023-04-13 10:42:38 +07:00
Matias Saavedra Silva
8c8629d66c 8301715: CDS should be disabled in exploded JDK
Reviewed-by: ccheung, coleenp
(cherry picked from commit eb73fa833c)
2023-04-13 10:42:37 +07:00
Jonathan Gibbons
355c580bda 8304433: cleanup sentence breaker code in DocTreeMaker
Reviewed-by: hannesw
(cherry picked from commit 80e979720a)
2023-04-13 10:42:37 +07:00
Archie L. Cobbs
db28a91fab 8304443: bootcycle builds fail after JDK-8015831
Reviewed-by: vromero
(cherry picked from commit c396f1ed8b)
2023-04-13 10:42:37 +07:00
Viktor Klang
381e7b9556 8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally
Reviewed-by: jpai, alanb
(cherry picked from commit ded6a81319)
2023-04-13 10:42:37 +07:00
Albert Mingkun Yang
c06a86519f 8304411: Remove unused CardTable::clear
Reviewed-by: tschatzl
(cherry picked from commit 652bda0af8)
2023-04-13 10:42:37 +07:00
Daniel Jeliński
d990ff430b 8304174: Remove delays from httpserver tests
Reviewed-by: jpai, dfuchs
(cherry picked from commit 450567031e)
2023-04-13 10:42:36 +07:00
Feilong Jiang
f9dce4809a 8304293: RISC-V: JDK-8276799 missed atomic intrinsic support for C1
Reviewed-by: fyang, yzhu
(cherry picked from commit c09f83ec25)
2023-04-13 10:42:36 +07:00
Archie L. Cobbs
8d6d49a272 7016187: javac -h could generate conflict .h for inner class and class name with '_'
Reviewed-by: vromero
(cherry picked from commit e339e183c1)
2023-04-13 10:42:36 +07:00
Chris Plummer
dbe02ebb50 8304437: ProblemList com/sun/jdi/ThreadMemoryLeadTest.java with ZGC
Reviewed-by: jpai, dcubed
(cherry picked from commit 033c0b17cb)
2023-04-13 10:42:36 +07:00
Yudi Zheng
34438da9fb 8304138: [JVMCI] Test FailedSpeculation existence before appending.
Reviewed-by: kvn, dnsimon
(cherry picked from commit 7503ecc0f1)
2023-04-13 10:42:36 +07:00
Chris Plummer
ecf685872f 8297638: Memory leak in case of many started-dead threads
Reviewed-by: amenkov, sspitsyn
(cherry picked from commit f8482c20f4)
2023-04-13 10:42:35 +07:00
Alexander Matveev
8c92ebab8f 8298995: tools/jpackage/share/AddLauncherTest.java#id1 failed "AddLauncherTest.test; checks=53"
Reviewed-by: asemenyuk
(cherry picked from commit c56f011baa)
2023-04-13 10:42:35 +07:00
Archie L. Cobbs
c40ebf6e9f 8014021: TreeMaker.Params behaves inconsistently when the owning method has the same number of parameters as the number of parameter types requested
Reviewed-by: vromero, jlahoda
(cherry picked from commit 254288a518)
2023-04-13 10:42:35 +07:00
Archie L. Cobbs
b3362c9611 8015831: Add lint check for calling overridable methods from a constructor
6557145: Warn about calling abstract methods in constructors

Reviewed-by: ihse, vromero, mcimadamore
(cherry picked from commit 8f5bb538ab)
2023-04-13 10:42:35 +07:00
Archie L. Cobbs
704a673e01 8180387: com.sun.source.util.JavacTask should have a protected constructor.
Reviewed-by: vromero
(cherry picked from commit b085ab9316)
2023-04-13 10:42:35 +07:00
Maxim Kartashev
422fdf94b0 JBR-5483 MacOSXWatchService assumes that the default file system is the UnixFileSystem, which might not be the case 2023-04-10 18:46:29 +04:00
Frederic Parain
bb9f30424f 8292818: replace 96-bit representation for field metadata with variable-sized streams
Co-authored-by: John R Rose <jrose@openjdk.org>
Co-authored-by: Chris Plummer <cjplummer@openjdk.org>
Reviewed-by: dholmes, coleenp, cjplummer, dnsimon
2023-04-10 15:04:00 +02:00
Vladimir Dvorak
080d12f48d JBR-5183 - ref openjdk/8292818 - special access flags removed 2023-04-10 14:48:46 +02:00
Tingjun Yuan
233957e1eb 8269843: typo in LinkedHashMap::removeEldestEntry spec
Reviewed-by: martin
2023-04-10 14:48:06 +02:00
Maxim Kartashev
989a28c80f JBR-5466 jb/hotspot/JNIRefsInCrashLog.java: 'hs_err_42.txt' missing from stdout/stderr 2023-04-10 10:13:24 +04:00
Coleen Phillimore
50cb4ab53b 8298469: Obsolete legacy parallel class loading workaround for non-parallel-capable class loaders
Reviewed-by: dholmes, fparain

(cherry picked from commit 932be3542d)
2023-04-09 09:13:36 +07:00
Alex Menkov
1842b6a831 8303921: serviceability/sa/UniqueVtableTest.java timed out
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit 02a4ee206a)
2023-04-09 09:07:43 +07:00
Naoto Sato
77605fc323 8304367: jlink --include-locales=* attempts to parse non .class resource files with classfile reader
Reviewed-by: mchung, lancea, jpai
(cherry picked from commit 4486f1b720)
2023-04-09 09:07:42 +07:00
Leonid Mesnik
31abaf4304 8303697: ProcessTools doesn't print last line of process output
Reviewed-by: dholmes, stuefe
(cherry picked from commit 8d2ebf248e)
2023-04-09 09:07:41 +07:00
Leonid Mesnik
8306ef5103 8304314: StackWalkTest.java fails after CODETOOLS-7903373
Reviewed-by: alanb, mchung
(cherry picked from commit d5a150706e)
2023-04-09 09:07:39 +07:00
Damon Fenacci
a184e6b364 8303069: Memory leak in CompilerOracle::parse_from_line
Reviewed-by: thartmann, jcking
(cherry picked from commit 384a8b85a7)
2023-04-09 09:07:37 +07:00
Afshin Zafari
6828358eaa 8301684: Fix test code to not get finalizer deprecation warnings
Reviewed-by: coleenp, dholmes
(cherry picked from commit 6dd6c15ed4)
2023-04-09 09:07:36 +07:00
Afshin Zafari
85f391aef2 8292059: Do not inline InstanceKlass::allocate_instance()
Reviewed-by: coleenp, stefank
(cherry picked from commit cb4ae1922d)
2023-04-09 09:07:34 +07:00
Adam Sotona
f991c6c31e 8304164: jdk/classfile/CorpusTest.java still fails after JDK-8303910
Reviewed-by: jpai
(cherry picked from commit b2639e1d62)
2023-04-09 09:07:32 +07:00
Johan Sjölen
d10019f897 8304130: Add runtime/StackGuardPages/TestStackGuardPagesNative.java to ProblemList.txt
Reviewed-by: dcubed
(cherry picked from commit 620564ac61)
2023-04-09 09:07:30 +07:00
Richard Reingruber
c02ee26c05 8299375: [PPC64] GetStackTraceSuspendedStressTest tries to deoptimize frame with invalid fp
Reviewed-by: mdoerr
(cherry picked from commit 9d518c528b)
2023-04-09 09:07:29 +07:00
Matthias Baesken
af2b2958c6 8304063: tools/jpackage/share/AppLauncherEnvTest.java fails when checking LD_LIBRARY_PATH
Reviewed-by: asemenyuk, almatvee
(cherry picked from commit ebac7eec8e)
2023-04-09 09:07:27 +07:00
Kosta Stojiljkovic
15f998d2d6 8304242: CPUInfoTest fails because "serialize" CPU feature is not known
Reviewed-by: kvn, sviswanathan, thartmann
(cherry picked from commit 36995c5a75)
2023-04-09 09:07:26 +07:00
Prasanta Sadhukhan
0c80292fab 7154070: in SwingSet2, switching between LaFs it's easy to lose JTable dividers
6788475: Changing to Nimbus LAF and back doesn't reset look and feel of JTable completely

Reviewed-by: tr, abhiscxk, honkar, jdv
(cherry picked from commit 6b42275461)
2023-04-09 09:07:25 +07:00
Pavel Rappo
9c9d9f575a 8304146: Refactor VisibleMemberTable (LocalMemberTable)
Reviewed-by: jjg
(cherry picked from commit 8eed7dea7b)
2023-04-09 09:07:24 +07:00
David Holmes
3410cb59d5 8303150: DCmd framework unnecessarily creates a DCmd instance on registration
Reviewed-by: fparain, stuefe, kevinw
(cherry picked from commit a487a270dc)
2023-04-09 09:07:24 +07:00
Chen Liang
032637611e 8304360: Test to ensure ConstantDescs fields work
Reviewed-by: mchung, jvernee
(cherry picked from commit 2e987d798a)
2023-04-09 09:07:23 +07:00
Jaikiran Pai
8190db36ea 8304225: Remove javax/script/Test7.java from ProblemList
Reviewed-by: naoto
(cherry picked from commit 2f23c80e0d)
2023-04-09 09:07:23 +07:00
Ivan Walulya
dbd2782aed 8191565: Last-ditch Full GC should also move humongous objects
Reviewed-by: tschatzl, sjohanss

(cherry picked from commit 96889bf3e4)
2023-04-09 09:07:13 +07:00
Albert Mingkun Yang
7f0e11a2ff 8304055: G1: Remove OldGCAllocRegion::release
Reviewed-by: iwalulya, tschatzl
(cherry picked from commit f629152021)
2023-04-09 08:36:00 +07:00
Albert Mingkun Yang
aadcb3fb23 8303749: Serial: Use more strict card table API
Reviewed-by: tschatzl, iwalulya
(cherry picked from commit b5108b4f37)
2023-04-09 08:35:59 +07:00
Chen Liang
18aaac1387 8304161: Add TypeKind.from to derive from TypeDescriptor.OfField
Reviewed-by: jvernee
(cherry picked from commit 7dbab81d3c)
2023-04-09 08:35:58 +07:00
Jorn Vernee
2f12efbff9 8303684: Lift upcall sharing mechanism to AbstractLinker (mainline)
Reviewed-by: mcimadamore
(cherry picked from commit d4eb395335)
2023-04-09 08:35:58 +07:00
Per Minborg
e2079c110b 8304283: Modernize the switch statements in jdk.internal.foreign
Reviewed-by: mcimadamore
(cherry picked from commit dfc7214a3e)
2023-04-09 08:35:57 +07:00
Ilya Korennoy
cc11833dce 8293324: ciField.hpp has two methods to return field's offset
Reviewed-by: thartmann
(cherry picked from commit 7277bb19f1)
2023-04-09 08:35:57 +07:00
Damon Fenacci
4b23cf8c74 8303154: Investigate and improve instruction cache flushing during compilation
Reviewed-by: thartmann, kvn
(cherry picked from commit b7945bc9e5)
2023-04-09 08:35:55 +07:00
Abhishek Kumar
5b8bbfb931 8283400: [macos] a11y : Screen magnifier does not reflect JRadioButton value change
Reviewed-by: serb, asemenov
(cherry picked from commit eefbaa2956)
2023-04-09 08:35:53 +07:00
changpeng1997
a412a38ad7 8302906: AArch64: Add SVE backend support for vector unsigned comparison
Reviewed-by: aph, eliu
(cherry picked from commit 42dd9077a0)
2023-04-09 08:35:52 +07:00
Jorn Vernee
4bb8136cad 8303022: "assert(allocates2(pc)) failed: not in CodeBuffer memory" When linking downcall handle
Reviewed-by: kvn, vlivanov
(cherry picked from commit 2b81faeb35)
2023-04-09 08:35:51 +07:00
Weijun Wang
e6a7398b33 8304264: Debug messages always show up for NativeGSS
Reviewed-by: mullan
(cherry picked from commit be08a256ab)
2023-04-09 08:35:50 +07:00
Daniel Jeliński
7ce3c3a48c 8304287: Problemlist java/net/SocketOption/OptionsTest.java
Reviewed-by: dfuchs
(cherry picked from commit 1ae69e3e91)
2023-04-09 08:35:49 +07:00
Vladimir Kozlov
3f4ede1228 8304267: JDK-8303415 missed change in Zero Interpreter
Reviewed-by: dcubed
(cherry picked from commit 116627dfb0)
2023-04-09 08:35:48 +07:00
Matthew Donovan
26486ba9cf 8284047: Harmonize/Standardize the SSLSocket/SSLEngine/SSLSocketSSLEngine test templates
Reviewed-by: rhalade
(cherry picked from commit 824a5e4c60)
2023-04-09 08:35:41 +07:00
Leonid Mesnik
8c5204e7b1 8300317: vmTestbase/nsk/stress/strace/strace* tests fail with "ERROR: wrong lengths of stack traces"
Reviewed-by: dholmes, mseledtsov
(cherry picked from commit 7ad48ea3ad)
2023-04-09 08:35:39 +07:00
Rich DiCroce
979a019155 8302659: Modernize Windows native code for NetworkInterface
Reviewed-by: ihse, djelinski, alanb, michaelm
(cherry picked from commit 35a2969057)
2023-04-09 08:35:36 +07:00
Emanuel Peter
9c4dc04f4e 8298935: fix independence bug in create_pack logic in SuperWord::find_adjacent_refs
Reviewed-by: kvn, jbhateja
(cherry picked from commit 01e6920581)
2023-04-09 08:35:35 +07:00
Julian Waters
3f93227718 8301308: Remove version conditionalization for gcc/clang PRAGMA_DIAG_PUSH/POP
Reviewed-by: kbarrett, dholmes
(cherry picked from commit 3d77e217b2)
2023-04-09 08:35:34 +07:00
Johan Sjölen
86cb03f542 8270865: Print process ID with -Xlog:os
Reviewed-by: dholmes, ccheung
(cherry picked from commit e3777b0c49)
2023-04-09 08:35:32 +07:00
Arno Zeller
4d0e709f64 8304030: Configure call fails on AIX when using --with-gtest option.
Reviewed-by: mbaesken, erikj
(cherry picked from commit 349139b2cc)
2023-04-09 08:35:31 +07:00
Adam Sotona
c3a0f57bea 8294962: Convert java.base/jdk.internal.module package to use the Classfile API to modify and write module-info.class
Reviewed-by: alanb, mchung
(cherry picked from commit 714b5f036f)
2023-04-09 08:35:31 +07:00
Alexandre Iline
f92870a651 8304171: Fix layout of JCov instrumented bundle on Mac OS
Reviewed-by: erikj
(cherry picked from commit 065d3e0d58)
2023-04-09 08:35:29 +07:00
Leonid Mesnik
a1e51a1ff4 8303705: Field sleeper.started should be volatile JdbLockTestTarg.java
Reviewed-by: dholmes
(cherry picked from commit cd41c69d44)
2023-04-09 08:35:28 +07:00
Harshitha Onkar
fdff88860a 8301998: Update HarfBuzz to 7.0.1
Reviewed-by: erikj, prr
(cherry picked from commit f5c8b68c1c)
2023-04-09 08:35:24 +07:00
Daniel D. Daugherty
15af2e6197 8304172: ProblemList serviceability/sa/UniqueVtableTest.java
8304175: ProblemList compiler/vectorapi/VectorLogicalOpIdentityTest.java on 2 platforms

Reviewed-by: azvegint
(cherry picked from commit 617c15f5a1)
2023-04-09 08:35:23 +07:00
Pavel Rappo
be2d39b422 8303882: Refactor some iterators in jdk.compiler
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Reviewed-by: mcimadamore
(cherry picked from commit f81e1def8f)
2023-04-09 08:35:22 +07:00
Julian Waters
3c868f652f 8295884: Implement IDE support for Eclipse
Reviewed-by: erikj

(cherry picked from commit 45809fd0c0)
2023-04-09 08:35:22 +07:00
Daniel Jeliński
4475061aed 8303814: getLastErrorString should avoid charset conversions
Reviewed-by: naoto, cjplummer, rriggs
(cherry picked from commit baf11e734f)
2023-04-09 08:34:33 +07:00
Calvin Cheung
d76c71c743 8302795: Shared archive failed on old version class with jsr bytecode
Reviewed-by: minqi, matsaave
(cherry picked from commit 830fd41346)
2023-04-09 08:34:32 +07:00
Kevin Walls
9b02abdb39 8298966: Deprecate JMX Subject Delegation and the method JMXConnector.getMBeanServerConnection(Subject) for removal.
Reviewed-by: mchung, dfuchs
(cherry picked from commit 4e631fa43f)
2023-04-09 08:34:16 +07:00
Alexey Bakhtin
d08e7d141f 8303809: Dispose context in SPNEGO NegotiatorImpl
Reviewed-by: dfuchs, weijun
(cherry picked from commit 10f1674625)
2023-04-09 08:34:16 +07:00
Hannes Wallnöfer
94990b88ce 8303895: Simplify and clean up LinkFactory code
Reviewed-by: prappo
(cherry picked from commit 9f9ab02ff6)
2023-04-09 08:34:15 +07:00
Thomas Stuefe
7b5cf38285 8303861: Error handling step timeouts should never be blocked by OnError and others
Reviewed-by: dholmes, rkennke
(cherry picked from commit a00f5d24d3)
2023-04-09 08:34:15 +07:00
Jamil Nimeh
c6e0fbd956 8300939: sun/security/provider/certpath/OCSP/OCSPNoContentLength.java fails due to network errors
Reviewed-by: djelinski, weijun
(cherry picked from commit da044dd569)
2023-04-09 08:34:14 +07:00
Christian Hagedorn
7698a4cf53 8299546: C2: MulLNode::mul_ring() wrongly returns bottom type due to casting errors with large numbers
Reviewed-by: iveresov, kvn, qamai
(cherry picked from commit c466cdf973)
2023-04-09 08:34:14 +07:00
Coleen Phillimore
d4fc984bb9 8304059: Use InstanceKlass in dependencies
Reviewed-by: vlivanov, thartmann
(cherry picked from commit 55aa122462)
2023-04-09 08:34:12 +07:00
Vladimir Kozlov
0296c7f697 8303415: Add VM_Version::is_intrinsic_supported(id)
Reviewed-by: thartmann, dholmes
(cherry picked from commit ec1eb00ed3)
2023-04-09 08:34:11 +07:00
Eirik Bjorsnos
bc0f71bf42 8303410: Remove ContentSigner APIs and jarsigner -altsigner and -altsignerpath options
Reviewed-by: weijun
(cherry picked from commit 31680b2bcf)
2023-04-09 08:34:09 +07:00
Ivan Walulya
10b133112a 8304015: G1: Metaspace-induced GCs should not trigger maximal compaction
Reviewed-by: ayang, tschatzl
(cherry picked from commit 0cc0f063e2)
2023-04-09 08:34:08 +07:00
Adam Sotona
14d083c2ef 8303910: jdk/classfile/CorpusTest.java failed 1 of 6754 tests
Reviewed-by: jpai
(cherry picked from commit 43eca1dcb1)
2023-04-09 08:34:07 +07:00
Matthias Baesken
54933abffc 8303973: Library detection in runtime/ErrorHandling/TestDwarf.java fails on ppc64le RHEL8.5 for libpthread-2.28.so
Reviewed-by: chagedorn
(cherry picked from commit b6d70f2c49)
2023-04-09 08:34:06 +07:00
Julian Waters
fb1feaaa37 8301244: Tidy up compiler specific warnings files
Reviewed-by: kbarrett, dholmes
(cherry picked from commit 2bb990edde)
2023-04-09 08:34:05 +07:00
Alisen Chung
c88cf8a482 8303482: Update LCMS to 2.15
Reviewed-by: serb, prr, dnguyen
(cherry picked from commit c073ef2ed5)
2023-04-09 08:34:04 +07:00
Feilong Jiang
b080b5f97b 8303955: RISC-V: Factor out the tmp parameter from copy_memory and copy_memory_v
Reviewed-by: fyang, yzhu
(cherry picked from commit 49181b81dd)
2023-04-09 08:34:03 +07:00
Pavel Rappo
028ee0dd1a 8300517: Refactor VisibleMemberTable (method members)
Reviewed-by: jjg
(cherry picked from commit 7bbc5e0efb)
2023-04-09 08:34:02 +07:00
Patricio Chilano Mateo
8b4f5eeb4f 8303908: Add missing check in VTMS_transition_disable_for_all() for suspend mode
Reviewed-by: sspitsyn, dholmes
(cherry picked from commit a8f662ecb2)
2023-04-09 08:34:01 +07:00
Ilarion Nakonechnyy
1a344b8ecd 8302491: NoClassDefFoundError omits the original cause of an error
Reviewed-by: coleenp, dholmes
(cherry picked from commit 5685107579)
2023-04-09 08:34:01 +07:00
Justin King
855076e436 8303606: Memory leaks in Arguments::parse_each_vm_init_arg
Reviewed-by: dholmes, fparain
(cherry picked from commit 671a45219f)
2023-04-09 08:34:00 +07:00
Adam Sotona
8632cf69f4 8294974: Convert jdk.jshell/jdk.jshell.execution.LocalExecutionControl to use the Classfile API to instrument classes
Reviewed-by: jlahoda
(cherry picked from commit a95bc7acd0)
2023-04-09 08:34:00 +07:00
Alexey Ivanov
93f37e54a1 8300727: java/awt/List/ListGarbageCollectionTest/AwtListGarbageCollectionTest.java failed with "List wasn't garbage collected"
Reviewed-by: prr, tr, serb

(cherry picked from commit f835aaafc7)
2023-04-09 08:33:59 +07:00
Daniel Fuchs
a35eae7f52 8303965: java.net.http.HttpClient should reset the stream if response headers contain malformed header fields
Reviewed-by: jpai
(cherry picked from commit 466ffebcae)
2023-04-09 08:31:46 +07:00
Andrey Turbanov
29ab4c3c42 8303213: Avoid AtomicReference in TextComponentPrintable
Reviewed-by: serb, aivanov
(cherry picked from commit 431e702b67)
2023-04-09 08:31:46 +07:00
Albert Mingkun Yang
c636f28393 8303824: Parallel: Use more strict card table API
Reviewed-by: tschatzl, iwalulya, ysr
(cherry picked from commit 4cf4c599b9)
2023-04-09 08:31:45 +07:00
Jasmine K
47a71c8aac 8303238: Create generalizations for existing LShift ideal transforms
Reviewed-by: redestad, thartmann
(cherry picked from commit 8e41bf222f)
2023-04-09 08:31:45 +07:00
Thomas Schatzl
ede04aef2a 8303883: Confusing parameter name in G1UpdateRemSetTrackingBeforeRebuild::distribute_marked_bytes
Reviewed-by: ayang, iwalulya
(cherry picked from commit 805a4e6806)
2023-04-09 08:31:44 +07:00
Adam Sotona
460b1a02fd 8294966: Convert jdk.jartool/sun.tools.jar.FingerPrint to use the ClassFile API to parse JAR entries
Reviewed-by: mchung
(cherry picked from commit 25e7ac226a)
2023-04-09 08:31:44 +07:00
Thomas Schatzl
e173983252 8303969: Limit printed failures within an object during G1 heap verification
Reviewed-by: ayang, iwalulya
(cherry picked from commit 3018b4705e)
2023-04-09 08:31:44 +07:00
Thomas Schatzl
5b8e810161 8303963: Replace various encodings of UINT/SIZE_MAX in gc code
Reviewed-by: ayang, kbarrett
(cherry picked from commit b575e54bc9)
2023-04-09 08:31:43 +07:00
Vladimir Dvorak
609cfba72f JBR-5183 - add new DeoptimizationScope from openjdk 2023-04-08 20:15:00 +02:00
Robbin Ehn
f6ed2b217c 8300926: Several startup regressions ~6-70% in 21-b6 all platforms
Reviewed-by: eosterlund, dcubed, coleenp
2023-04-08 19:51:44 +02:00
Tomas Zezula
ab95a18b44 8303646: [JVMCI] Add possibility to lookup ResolvedJavaType from jclass.
Reviewed-by: never
(cherry picked from commit 31e1e3975b)
2023-04-08 04:40:43 +07:00
Tomas Zezula
67ee8abe6a 8303678: [JVMCI] Add possibility to convert object JavaConstant to jobject.
Reviewed-by: never
(cherry picked from commit 1148a659a8)
2023-04-08 04:40:43 +07:00
Daniel Skantz
eb40e2c4b5 8294715: Add IR checks to the reduction vectorization tests
Reviewed-by: rcastanedalo, epeter
(cherry picked from commit d20bde29f2)
2023-04-08 04:40:41 +07:00
Eirik Bjorsnos
c03d9a1d35 8303922: build-test-lib target is broken
Reviewed-by: erikj, jwaters
(cherry picked from commit c313e1ac7b)
2023-04-08 04:40:41 +07:00
Daniel D. Daugherty
40f7ba9393 8304017: ProblemList com/sun/jdi/InvokeHangTest.java on windows-x64 in vthread mode
8304018: ProblemList javax/swing/JColorChooser/Test6827032.java on windows-x64
8304019: ProblemList java/awt/dnd/MissingDragExitEventTest/MissingDragExitEventTest.java on windows-x64

Reviewed-by: stuefe
(cherry picked from commit fbc76c2c78)
2023-04-08 04:40:39 +07:00
Julian Waters
4e3f9c7286 8274400: HotSpot Style Guide should permit use of alignof
Reviewed-by: kbarrett, kvn, dholmes, dcubed
(cherry picked from commit a06426a52f)
2023-04-08 04:40:38 +07:00
Feilong Jiang
68c775f997 8303863: RISC-V: TestArrayStructs.java fails after JDK-8303604
Reviewed-by: jvernee, fyang
(cherry picked from commit 98a7a60fcb)
2023-04-08 04:40:38 +07:00
Alexander Matveev
7ac8ec5034 8299779: Test tools/jpackage/share/jdk/jpackage/tests/MainClassTest.java timed out
Reviewed-by: asemenyuk
(cherry picked from commit 0a4d54f7ce)
2023-04-08 04:40:37 +07:00
Kim Barrett
cd9c3af533 8303900: Rename BitMap search functions
Reviewed-by: stefank, aboldtch
(cherry picked from commit 2116928528)
2023-04-08 04:40:36 +07:00
Daniel D. Daugherty
79638d365b 8304005: ProblemList serviceability/AsyncGetCallTrace/MyPackage/ASGCTBaseTest.java on linux-x64 in Xcomp mode
Reviewed-by: rriggs
(cherry picked from commit d7f4221bfe)
2023-04-08 04:40:35 +07:00
Stuart Marks
44c1a97016 8302513: remove sun.awt.util.IdentityLinkedList
Reviewed-by: serb, prr, aivanov
(cherry picked from commit 94de0a73de)
2023-04-08 04:40:35 +07:00
Man Cao
daef89ad32 8303937: Corrupted heap dumps due to missing retries for os::write()
Reviewed-by: cjplummer, dholmes
(cherry picked from commit bf16b5b988)
2023-04-08 04:40:34 +07:00
Justin Lu
101459c21a 8299088: ClassLoader::defineClass2 throws OOME but JNI exception pending thrown by getUTF
Reviewed-by: mchung, naoto
(cherry picked from commit 6f54eda4a4)
2023-04-08 04:40:34 +07:00
Justin Lu
3885a9ab15 8303853: Update ISO 3166 country codes table
Reviewed-by: naoto
(cherry picked from commit a3358b10ca)
2023-04-08 04:40:33 +07:00
Matias Saavedra Silva
27737c332f 8281941: Change CDS warning messages to use Unified Logging
Reviewed-by: dholmes, ccheung
(cherry picked from commit 206661d45f)
2023-04-08 04:40:32 +07:00
Erik Gahlin
732713e569 8303674: JFR: TypeLibrary class not thread safe
Reviewed-by: mgronlun
(cherry picked from commit 9dd7b87997)
2023-04-08 04:40:32 +07:00
Matias Saavedra Silva
cb27864923 8303495: Unused path parameter in ClassLoader::add_to_app_classpath_entries(JavaThread* current, char* path, ...)
Reviewed-by: ccheung, dholmes
(cherry picked from commit c26e1d0148)
2023-04-08 04:40:31 +07:00
Matias Saavedra Silva
2931d1a0cc 8303548: Arguments::get_default_shared_archive_path() should cache the result for future use
Reviewed-by: ccheung, dholmes
(cherry picked from commit 548d552bc1)
2023-04-08 04:40:31 +07:00
Viktor Klang
9ba0c582a2 8302666: Replace CHM with VarHandle in ForeachOrderedTask
Reviewed-by: psandoz
(cherry picked from commit f2a36b4b52)
2023-04-08 04:40:30 +07:00
Matthias Baesken
69ff690d70 8303949: gcc10 warning Linux ppc64le - note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5
Reviewed-by: erikj, mdoerr
(cherry picked from commit a32ee5dd8b)
2023-04-08 04:40:30 +07:00
Tobias Holenstein
965ff062a9 8300821: UB: Applying non-zero offset to non-null pointer 0xfffffffffffffffe produced null pointer
Reviewed-by: kvn, thartmann
(cherry picked from commit 01312a002b)
2023-04-08 04:40:01 +07:00
Jorn Vernee
966a4a9695 8303001: Add test for re-entrant upcalls
Reviewed-by: mcimadamore
(cherry picked from commit 6d30bbe62c)
2023-04-08 04:40:00 +07:00
Matthew Donovan
73d03c4675 8296400: pointCrlIssuers might be null in DistributionPointFetcher::verifyURL
Reviewed-by: weijun
(cherry picked from commit de9f3b6aac)
2023-04-08 04:39:57 +07:00
Maurizio Cimadamore
e8e98f57e6 8303820: Simplify type metadata
Reviewed-by: vromero
(cherry picked from commit b9951dd639)
2023-04-08 04:39:54 +07:00
Hannes Wallnöfer
4d30a9c016 8303349: Simplify link format for generic types in index pages
Reviewed-by: jjg
(cherry picked from commit 75d630621c)
2023-04-08 04:39:53 +07:00
Adam Sotona
411f8f62be 8294971: jdk.jlink jdk.tools.jimage.JImageTask is using ASM to verify classes
Reviewed-by: mchung
(cherry picked from commit b1d89f3066)
2023-04-08 04:39:52 +07:00
Matthias Baesken
b97a72a11a 8303822: gtestMain should give more helpful output
Reviewed-by: lmesnik
(cherry picked from commit 0f26d09da8)
2023-04-08 04:39:50 +07:00
David Holmes
e5609a5a30 8303624: The java.lang.Thread.FieldHolder can be null for JNI attaching threads
Reviewed-by: alanb, dcubed
(cherry picked from commit e26cc52600)
2023-04-08 04:39:50 +07:00
Viktor Klang
00394ceaf5 8302360: Atomic*.compareAndExchange Javadoc unclear
Reviewed-by: martin, dholmes
(cherry picked from commit d06308c54a)
2023-04-08 04:39:49 +07:00
Patricio Chilano Mateo
82f22dae24 8302779: HelidonAppTest.java fails with "assert(_cb == CodeCache::find_blob(pc())) failed: Must be the same" or SIGSEGV
Reviewed-by: coleenp, sspitsyn
(cherry picked from commit 8b740b4609)
2023-04-08 04:39:47 +07:00
Christoph Langer
5c06bb4302 8303691: Fedora based devkit build should load more packages from archive location
Reviewed-by: mbaesken, erikj
(cherry picked from commit 562c8fc668)
2023-04-08 04:39:47 +07:00
Alex Menkov
90d7b4ee34 8303924: ProblemList serviceability/sa/UniqueVtableTest.java on Linux
Reviewed-by: dcubed
(cherry picked from commit e930b63a8f)
2023-04-08 04:39:46 +07:00
Chris Plummer
c1fbe6fc47 8303609: ProblemList serviceability/sa/TestSysProps.java with ZGC
Reviewed-by: dcubed
(cherry picked from commit af0ca78a8f)
2023-04-08 04:39:44 +07:00
Chris Plummer
3c2e9b99a5 8289765: JDI EventSet/resume/resume008 failed with "ERROR: suspendCounts don't match for : VirtualThread-unparker"
Reviewed-by: sspitsyn, kevinw
(cherry picked from commit 8b0eb7299a)
2023-04-08 04:39:43 +07:00
Johan Sjölen
705f5d6922 8301074: Replace NULL with nullptr in share/opto/
Reviewed-by: kvn, jwilhelm
(cherry picked from commit 5726d31e56)
2023-04-08 04:39:43 +07:00
Justin King
917b5b0774 8300783: Consolidate byteswap implementations
Reviewed-by: kbarrett, kvn
(cherry picked from commit a9dba56568)
2023-04-08 04:39:42 +07:00
Adam Sotona
abc9a8f780 8303915: javadoc build failure after JDK-8294959
Reviewed-by: jjg
(cherry picked from commit 769e740181)
2023-04-08 04:39:40 +07:00
Alex Menkov
5921c637a8 8303489: Add a test to verify classes in vmStruct have unique vtables
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit f9aadb943c)
2023-04-08 04:39:38 +07:00
Adam Sotona
211e652303 8294959: java.base java.lang.Module uses ASM to load module-info.class
Reviewed-by: mchung
(cherry picked from commit 595645c76d)
2023-04-08 04:39:37 +07:00
Thomas Schatzl
84719a5511 8303334: Further improve liveness/remembered set verification for G1
Reviewed-by: ayang, iwalulya
(cherry picked from commit 68b5eef44f)
2023-04-08 04:39:36 +07:00
Julian Waters
8730eaff5f 8303760: Visual Studio should use the primary variant in the IDE
Reviewed-by: erikj
(cherry picked from commit 3227b49a7a)
2023-04-08 04:39:34 +07:00
Leonid Mesnik
18377b4d1f 8303702: Provide ThreadFactory to create platform/virtual threads for com/sun/jdi tests
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit cdcf5c1ed8)
2023-04-08 04:39:31 +07:00
Adam Sotona
af12220bd0 8294982: Implementation of Classfile API
Reviewed-by: ihse, psandoz, mcimadamore
(cherry picked from commit 4655b790d0)
2023-04-08 04:39:28 +07:00
Pavel Rappo
f006d92931 8303881: Mixed, minor cleanup in jdk.compiler
Reviewed-by: mcimadamore
(cherry picked from commit 1e9942aa11)
2023-04-08 04:39:26 +07:00
Albert Mingkun Yang
d0bce7a94c 8303467: Serial: Refactor reference processor
Reviewed-by: tschatzl, iwalulya
(cherry picked from commit 7e01534590)
2023-04-08 04:39:24 +07:00
Jatin Bhateja
27a5c0abea 8303105: LoopRangeStrideTest fails IR verification on x86
Reviewed-by: thartmann
(cherry picked from commit 713def0bf2)
2023-04-08 04:39:23 +07:00
Ahmed Muhsin
3cd14b6e28 8274264: Not all of G1 young collection verification honors the verification type
Reviewed-by: ayang, tschatzl
(cherry picked from commit 34a92466a6)
2023-04-08 04:39:21 +07:00
Matthias Baesken
2eb2c301ae 8303576: addIdentitiesToKeystore in KeystoreImpl.m needs CFRelease call in early potential CHECK_NULL return
Reviewed-by: weijun
(cherry picked from commit a7e308ab6e)
2023-04-08 04:39:21 +07:00
Alan Bateman
1b39c22fee 8303509: Socket setTrafficClass does not work for IPv4 connections when IPv6 enabled
Reviewed-by: djelinski, michaelm
(cherry picked from commit dd79410824)
2023-04-08 04:39:20 +07:00
Roland Westrelin
26e814c8d5 8300258: C2: vectorization fails on simple ByteBuffer loop
Co-authored-by: Emanuel Peter <epeter@openjdk.org>
Reviewed-by: epeter, kvn
(cherry picked from commit dc523a58a6)
2023-04-08 04:39:18 +07:00
Roland Westrelin
38a4839775 8303564: C2: "Bad graph detected in build_loop_late" after a CMove is wrongly split thru phi
Reviewed-by: kvn, thartmann
(cherry picked from commit 5e232cf0a9)
2023-04-08 04:39:12 +07:00
Vladimir Kozlov
c926d740f2 8302976: C2 intrinsification of Float.floatToFloat16 and Float.float16ToFloat yields different result than the interpreter
Reviewed-by: sviswanathan, jbhateja, vlivanov
(cherry picked from commit 8cfd74f76a)
2023-04-08 04:39:10 +07:00
Justin Lu
e1e3df9569 8171156: Class java.util.LocaleISOData has outdated information for country Code NP
Reviewed-by: naoto
(cherry picked from commit 02875e77fd)
2023-04-08 04:39:08 +07:00
Doug Simon
4bdd8428ab 8299570: [JVMCI] Insufficient error handling when CodeBuffer is exhausted
Reviewed-by: never, adinn, aph
(cherry picked from commit ad326fc62b)
2023-04-08 04:39:06 +07:00
Eirik Bjorsnos
35e3c19f9b 8303833: java.util.LocaleISOData has wrong comments for 'Norwegian Bokmål' and 'Volapük'
Reviewed-by: naoto
(cherry picked from commit 05ceb37a2c)
2023-04-08 04:39:03 +07:00
Daniel D. Daugherty
44866278ca 8303839: [BACKOUT] JDK-8302799 and JDK-8302189
Reviewed-by: dholmes
(cherry picked from commit 25de2228ac)
2023-04-08 04:39:01 +07:00
Rajan Halade
d5cd0bb624 8282201: Consider removal of expiry check in VerifyCACerts.java test
Reviewed-by: xuelei, mullan
(cherry picked from commit 5b43804b79)
2023-04-08 04:38:59 +07:00
Vladimir Kozlov
3835a665dd 8302508: Add timestamp to the output TraceCompilerThreads
Reviewed-by: thartmann
(cherry picked from commit f813dc7183)
2023-04-08 04:38:57 +07:00
Hannes Wallnöfer
0ed94b65b4 8302161: Upgrade jQuery UI to version 1.13.2
Reviewed-by: jjg
(cherry picked from commit 404d5bddb9)
2023-04-08 04:38:56 +07:00
Xue-Lei Andrew Fan
a020197f36 8303617: update for deprecated sprintf for jdk.jdwp.agent
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit d287a5e9d8)
2023-04-08 04:38:55 +07:00
Justin King
193235c9c4 8303605: Memory leaks in Metaspace gtests
Reviewed-by: stuefe, dholmes
(cherry picked from commit ddcb369cea)
2023-04-08 04:38:52 +07:00
Daniel Fuchs
0b197536bd 8303682: Simplify HttpClient DebugLogger
Reviewed-by: jpai
(cherry picked from commit 56512cfe1f)
2023-04-08 04:38:50 +07:00
Matthias Baesken
e15da5944e 8303575: adjust Xen handling on Linux aarch64
Reviewed-by: lucy, mdoerr
(cherry picked from commit 8eaf84f094)
2023-04-08 04:38:47 +07:00
Tobias Holenstein
e1df12f823 8303443: IGV: Syntax highlighting and resizing for filter editor
Reviewed-by: rcastanedalo, thartmann
(cherry picked from commit d988252378)
2023-04-08 04:38:46 +07:00
Kevin Walls
6fd19e4179 8303136: MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded005 failed with "isCollectionUsageThresholdExceeded() returned true, while threshold = 1 and used = 0"
Reviewed-by: cjplummer, sspitsyn
(cherry picked from commit afda8fbf0b)
2023-04-08 04:38:45 +07:00
Andrey Turbanov
f08154f799 8303690: Prefer ArrayList to LinkedList in com.sun.jmx.mbeanserver.Introspector
Reviewed-by: stsypanov, kevinw, cjplummer, sspitsyn
(cherry picked from commit 1d071d0817)
2023-04-08 04:38:43 +07:00
Prasanta Sadhukhan
6f71ea5f3c 8252255: Blurry rendering of SwingNode with HiDPI scaling in JavaFX
Reviewed-by: kcr, aghaisas
(cherry picked from commit 09d469e5ad)
2023-04-08 04:38:38 +07:00
David Holmes
1a9f1fc9bb 8303799: [BACKOUT] JDK-8302801 Remove fdlibm C sources
Reviewed-by: darcy, bpb
(cherry picked from commit 21a6ab1e3e)
2023-04-08 04:38:36 +07:00
Kim Barrett
497619ddc2 8302189: Mark assertion failures noreturn
8302799: Refactor Debugging variable usage for noreturn crash reporting

Reviewed-by: dholmes, coleenp
(cherry picked from commit 5fa9bd4582)
2023-04-08 04:38:35 +07:00
Erik Gahlin
865734eafe 8303622: JFR: Missing message with Objects.requireNonNull
Reviewed-by: mgronlun
(cherry picked from commit 9b10c69475)
2023-04-08 04:38:33 +07:00
David Holmes
d6d89ca837 8286781: Replace the deprecated/obsolete gethostbyname and inet_addr calls
Co-authored-by: Daniel Jeliński <djelinski@openjdk.org>
Reviewed-by: kbarrett, djelinski
(cherry picked from commit d7298245d6)
2023-04-08 04:38:33 +07:00
David Holmes
bae4b9b831 8303151: DCmd framework cleanups
Reviewed-by: jsjolen, stuefe, yyang
(cherry picked from commit 5f1108f8f0)
2023-04-08 04:38:31 +07:00
Erik Gahlin
0df9b5aeab 8303681: JFR: RemoteRecordingStream::setMaxAge() should accept null
Reviewed-by: mgronlun
(cherry picked from commit 32f4d8b5ea)
2023-04-08 04:38:31 +07:00
Ravali Yatham
7609acdf32 8302791: Add specific ClassLoader object to Proxy IllegalArgumentException message
Reviewed-by: alanb, mchung
(cherry picked from commit 9f9d678591)
2023-04-08 04:38:29 +07:00
Joe Darcy
e3ae771ddb 8302801: Remove fdlibm C sources
Reviewed-by: bpb, dholmes, alanb, kvn
(cherry picked from commit b5b5cba7fe)
2023-04-08 04:38:28 +07:00
Yudi Zheng
8a001403c3 8302452: [JVMCI] Export _poly1305_processBlocks, JfrThreadLocal fields to JVMCI compiler.
Reviewed-by: dnsimon, never
(cherry picked from commit 4d4eadeae3)
2023-04-08 04:38:28 +07:00
Justin Lu
930a4e6b13 6453901: (cal) clean up sun.util.calendar classes
Reviewed-by: naoto, lancea
(cherry picked from commit f1f4e1de44)
2023-04-08 04:38:27 +07:00
Justin Lu
1e0de7e009 8303275: Use {@Return and @linkplain in Locale and related classes
Reviewed-by: naoto
(cherry picked from commit acf899612f)
2023-04-08 04:38:27 +07:00
Ian Graves
4cec7f2d9a 8217496: Matcher.group() can return null after usePattern
Reviewed-by: smarks
(cherry picked from commit ac3ab5b007)
2023-04-08 04:38:26 +07:00
Pavel Rappo
32cc508f76 8303480: Miscellaneous fixes to mostly invisible doc comments
Reviewed-by: mullan, prr, cjplummer, aivanov, jjg, lancea, rriggs, ihse

(cherry picked from commit 45a616a891)
2023-04-08 04:37:10 +07:00
Johan Sjölen
6ed5f1aed6 8301477: Replace NULL with nullptr in os/aix
Reviewed-by: stuefe, coleenp, tsteele
(cherry picked from commit 43288bbd68)
2023-04-07 20:44:40 +07:00
Kim Barrett
31eb316de5 8303621: BitMap::iterate should support lambdas and other function objects
Reviewed-by: aboldtch, tschatzl, stefank
(cherry picked from commit 008c5eb4dd)
2023-04-07 20:44:39 +07:00
Amit Kumar
00aa39117b 8303497: [s390x] ProblemList TestUnreachableInnerLoop.java
Reviewed-by: thartmann
(cherry picked from commit 52d3008773)
2023-04-07 20:44:37 +07:00
Roland Westrelin
084a0925c0 8303511: C2: assert(get_ctrl(n) == cle_out) during unrolling
Reviewed-by: kvn, thartmann
(cherry picked from commit 3f2d929dc3)
2023-04-07 20:44:37 +07:00
Albert Mingkun Yang
26ba5c07fc 8303534: Merge CompactibleSpace into ContiguousSpace
Reviewed-by: cjplummer, tschatzl

(cherry picked from commit 7fbfc884f0)
2023-04-07 20:44:36 +07:00
Johan Sjölen
cc4c1474f0 8204550: NMT: RegionIterator does not need to keep _current_size
Reviewed-by: stuefe, gziemski
(cherry picked from commit 97c25df4b8)
2023-04-07 19:57:52 +07:00
Tobias Hartmann
61fc19fc17 8201516: DebugNonSafepoints generates incorrect information
Reviewed-by: kvn, roland
(cherry picked from commit 94eda53d98)
2023-04-07 19:57:51 +07:00
Mat Carter
888fae5dac 8303607: SunMSCAPI provider leaks memory and keys
Reviewed-by: weijun
(cherry picked from commit c51d40cfeb)
2023-04-07 19:57:49 +07:00
Jonathan Gibbons
2a0ab100ce 8303540: Eliminate unnecessary reference to javac internal class
Reviewed-by: hannesw
(cherry picked from commit f64ed09e9a)
2023-04-07 19:57:48 +07:00
Matthew Donovan
e371ba49a7 8298939: Refactor open/test/jdk/javax/rmi/ssl/SSLSocketParametersTest.sh to jtreg java test
Reviewed-by: dfuchs, smarks
(cherry picked from commit ccfe1675a2)
2023-04-07 19:57:45 +07:00
Naoto Sato
76a2d9b990 8303440: The "ZonedDateTime.parse" may not accept the "UTC+XX" zone id
Reviewed-by: iris, jpai, rriggs, lancea
(cherry picked from commit cfb0a25a4e)
2023-04-07 19:57:44 +07:00
Weijun Wang
54ce5c27ea 8301793: AlgorithmId should not encode a missing parameters field as NULL unless hardcoded
Reviewed-by: mullan
(cherry picked from commit a97271e3b5)
2023-04-07 19:57:43 +07:00
Doug Simon
cc5be6245f 8303577: [JVMCI] OOME causes crash while translating exceptions
Reviewed-by: kvn, never
(cherry picked from commit cac81ddc92)
2023-04-07 19:57:38 +07:00
Leonid Mesnik
9b165d463a 8303264: Refactor nsk/stress/strace to extract shared and remove redundant code
Reviewed-by: mseledtsov, dholmes
(cherry picked from commit 877ab659b9)
2023-04-07 19:57:34 +07:00
Leonid Mesnik
b27e205b67 8303486: [REDO] Update ProcessTools.startProcess(...) to exit early if process exit before linePredicate is printed.
Reviewed-by: dholmes
(cherry picked from commit ae8730fd62)
2023-04-07 19:57:33 +07:00
Jorn Vernee
5d547da954 8303604: Passing by-value structs whose size is not power of 2 doesn't work on all platforms (mainline)
Reviewed-by: mcimadamore
(cherry picked from commit 5977f266d0)
2023-04-07 19:57:31 +07:00
Jorn Vernee
bd65a061d8 8303582: Reduce duplication in jdk/java/foreign tests
Reviewed-by: mcimadamore
(cherry picked from commit dccfe8a2ee)
2023-04-07 19:57:29 +07:00
Afshin Zafari
0376e28cb1 8300654: Remove JVMFlag::flag_error_str as it is unused
Reviewed-by: dholmes, fparain
(cherry picked from commit 8e2014527e)
2023-04-07 19:57:27 +07:00
Erik Österlund
0df0dcc86b 8301222: Generalize check_release_entry in OopStorage
Reviewed-by: tschatzl, kbarrett
(cherry picked from commit bdffe460cd)
2023-04-07 19:57:25 +07:00
Albert Mingkun Yang
f8bd030298 8303244: G1: call CardTable::clear_MemRegion directly
Reviewed-by: ysr, kbarrett
(cherry picked from commit ec4e8aa4f7)
2023-04-07 19:57:23 +07:00
Prasanta Sadhukhan
52ad2fa77c 8297454: javax/swing/JComponent/7154030/bug7154030.java failed with "Exception: Failed to show opaque button"
Reviewed-by: tr, jdv
(cherry picked from commit 5753ab5c47)
2023-04-07 19:57:20 +07:00
Andrey Turbanov
5a3e06f017 8303266: Prefer ArrayList to LinkedList in JImageTask
Reviewed-by: jlaskey
(cherry picked from commit fa1cebedb5)
2023-04-07 19:57:19 +07:00
Erik Österlund
7e7650a1ad 8302780: Add support for vectorized arraycopy GC barriers
Co-authored-by: Yadong Wang <yadongwang@openjdk.org>
Reviewed-by: ayang, fyang, rcastanedalo, aph
(cherry picked from commit 5f153e056b)
2023-04-07 19:57:17 +07:00
Alexander Scherbatiy
63623ff541 8295737: macOS: Print content cut off when width > height with portrait orientation
Reviewed-by: prr
(cherry picked from commit d00a767047)
2023-04-07 19:57:15 +07:00
Alexander Scherbatiy
9fd20e43eb 8301254: UNIX sun/font coding does not detect SuSE in openSUSE Leap distribution
Reviewed-by: prr
(cherry picked from commit 15c76e4c02)
2023-04-07 19:57:14 +07:00
Chris Plummer
041cb900c6 8303630: Move nsk/jvmti/AttachOnDemand/attach002a/TestDescription.java back to general problem list
Reviewed-by: dholmes
(cherry picked from commit 3eff1a0225)
2023-04-07 19:57:13 +07:00
Yi Yang
fa8e2b85de 8299518: HotSpotVirtualMachine shared code across different platforms
Reviewed-by: cjplummer, dholmes
(cherry picked from commit 10d6a8e66a)
2023-04-07 19:57:13 +07:00
Fei Yang
edf783ad9a 8303562: Remove obsolete comments in os::pd_attempt_reserve_memory_at
Reviewed-by: stuefe
(cherry picked from commit 148900c2dc)
2023-04-07 19:57:12 +07:00
Joe Darcy
0336c0966e 8302027: Port fdlibm trig functions (sin, cos, tan) to Java
Reviewed-by: bpb
(cherry picked from commit 1bb39a95eb)
2023-04-07 19:57:09 +07:00
Doug Simon
a8ec2602e2 8303588: [JVMCI] make JVMCI source directories conform with standard layout
Reviewed-by: kvn
(cherry picked from commit 9fdbf3cfc4)
2023-04-07 19:57:02 +07:00
Alan Bateman
7d5e03a8b3 8303242: ThreadMXBean issues with virtual threads
Reviewed-by: mchung, pchilanomate
(cherry picked from commit 629a9053f0)
2023-04-07 19:56:59 +07:00
Raffaello Giulietti
3a85c9f7ea 8302590: Add String.indexOf(int ch, int fromIndex, int toIndex)
Reviewed-by: rriggs, alanb
(cherry picked from commit 5b2e2e4695)
2023-04-07 19:56:57 +07:00
Matias Saavedra Silva
503cb635d4 8292269: Replace FileMapInfo::fail_continue() with Unified Logging
Reviewed-by: iklam, dholmes, ccheung
(cherry picked from commit cd4b88d0d2)
2023-04-07 19:56:55 +07:00
Brian Burkhalter
e88270fa51 8303175: (fs) Deprecate com.sun.nio.file.SensitivityWatchEventModifier for removal
Reviewed-by: lancea, alanb
(cherry picked from commit ae290541d1)
2023-04-07 19:56:52 +07:00
Brian Burkhalter
7a2ae0234b 8303413: (fs) Ignore polling interval sensitivity modifiers in PollingWatchService
Reviewed-by: alanb
(cherry picked from commit a04b1049ff)
2023-04-07 19:56:49 +07:00
Roger Riggs
dd94945f89 8303587: Remove VMOutOfMemoryError001 test from the problem list after 8303198
Reviewed-by: cjplummer
(cherry picked from commit 99443142cc)
2023-04-07 19:56:47 +07:00
Xue-Lei Andrew Fan
1953539bfd 8303527: update for deprecated sprintf for jdk.hotspot.agent
Reviewed-by: cjplummer
(cherry picked from commit a50dc67a4f)
2023-04-07 19:56:45 +07:00
Justin King
33d4f54bfd 8303181: Memory leak in ClassLoaderExt::setup_app_search_path
Reviewed-by: ccheung, dholmes
(cherry picked from commit 40c5edfcc4)
2023-04-07 19:56:43 +07:00
Chris Plummer
7925c398d4 8303523: Cleanup problem listing of nsk/jvmti/AttachOnDemand/attach002a/TestDescription.java
Reviewed-by: dholmes, kevinw
(cherry picked from commit 29ee7c3b70)
2023-04-07 19:56:40 +07:00
Justin Lu
7d89dfe0b9 8303472: Display name for region TR
Reviewed-by: naoto
(cherry picked from commit e3016c1142)
2023-04-07 19:56:38 +07:00
Afshin Zafari
70dbe20e2c 8301117: Remove old_size param from ResizeableResourceHashtable::resize()
Reviewed-by: dholmes, coleenp
(cherry picked from commit ae797c64af)
2023-04-07 19:56:36 +07:00
Afshin Zafari
f026e35092 8297936: Use reachabilityFence to manage liveness in ClassUnload tests
Reviewed-by: coleenp, dholmes
(cherry picked from commit 5085bd5f05)
2023-04-07 19:56:34 +07:00
Roger Riggs
d050f57f0f 8303198: System and Runtime.exit() resilience to logging errors
Reviewed-by: dholmes, jpai, alanb
(cherry picked from commit 379f2061aa)
2023-04-07 19:56:33 +07:00
Doug Simon
f9fe01f256 8279619: [JVMCI] improve EncodedSpeculationReason
Reviewed-by: never
(cherry picked from commit 80739e11b5)
2023-04-07 19:56:32 +07:00
Glavo
79ac69c412 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets
Reviewed-by: rriggs
(cherry picked from commit 7449e1c661)
2023-04-07 19:56:30 +07:00
Jorn Vernee
ec53d0cb5c 8303516: HFAs with nested structs/unions/arrays not handled correctly on AArch64
Reviewed-by: mcimadamore
(cherry picked from commit c6de66c03f)
2023-04-07 19:56:29 +07:00
Daniel Fuchs
27bce1828e 8303481: CancelRequestTest assertTrue failing with AssertionError due to java.util.concurrent.CompletionException: java.io.EOFException: EOF reached while reading
Reviewed-by: jpai, djelinski
(cherry picked from commit cbdc7a6f88)
2023-04-07 19:56:27 +07:00
Amit Kumar
6eedba1820 8303499: [s390x] ProblemList StressStackOverflow
Reviewed-by: alanb
(cherry picked from commit 8bf084ced9)
2023-04-07 19:56:26 +07:00
Afshin Zafari
e7093d80b3 8301622: ProcessTools.java compilation gets ThreadDeath deprecation warning
Reviewed-by: dholmes, alanb
(cherry picked from commit ff364c1906)
2023-04-07 19:56:24 +07:00
Sean Mullan
fb22bc68fa 8297955: LDAP CertStore should use LdapName and not String for DNs
Reviewed-by: weijun, rhalade
(cherry picked from commit df9aad018a)
2023-04-07 19:56:22 +07:00
changpeng1997
3036cf1408 8297753: AArch64: Add optimized rules for vector compare with zero on NEON
Reviewed-by: aph
(cherry picked from commit d23a8bfb14)
2023-04-07 19:56:22 +07:00
Vicente Romero
5b5b65cc51 8303539: javadoc typos in Attr
Reviewed-by: iris, jjg
(cherry picked from commit 339ca88783)
2023-04-07 19:56:21 +07:00
Pavel Rappo
36e7162788 8303473: Add implied {@code} in java.lang.invoke.MethodHandles
Reviewed-by: jjg, lancea, mchung
(cherry picked from commit e1745bc981)
2023-04-07 19:56:20 +07:00
Yi Yang
c432c85feb 8143900: OptimizeStringConcat has an opaque dependency on Integer.sizeTable field
Reviewed-by: kvn, thartmann
(cherry picked from commit c961a918ad)
2023-04-07 19:56:20 +07:00
Hao Sun
7a460b7f11 8302830: AArch64: Fix the mismatch between cas.m4 and aarch64.ad
Reviewed-by: aph, xgong
(cherry picked from commit 35003b5f7b)
2023-04-07 19:56:19 +07:00
Sergey Shelomentsev
e3d14e116c JBR-5505 update exclude list for a11y testing on Windows 2023-04-07 13:02:21 +03:00
Sergey Shelomentsev
f806731d98 JBR-5397 update exclude list for a11y testing on MacOS 2023-04-07 13:02:15 +03:00
Vladimir Dvorak
e2b67bb46d JBR-5183 clean DCEVM code separation in standard jdk code + typo fix 2023-04-05 18:55:36 +02:00
Nikita Gubarkov
1ff4742c50 JBR-5238 Disable AwtWindow::CheckWindowDPIChange() hack on Aero Snap. 2023-04-05 16:54:19 +03:00
Vladimir Dvorak
a70ed21975 JBR-5464 Fix native method registration 2023-04-04 19:44:04 +02:00
Dmitry Batrak
4b8f93d782 JBR-5458 Exception at dialog closing
(cherry picked from commit acde759572)
2023-03-31 21:10:24 +03:00
3077 changed files with 161317 additions and 69458 deletions

View File

@@ -64,6 +64,7 @@ jobs:
- 'hs/tier1 gc'
- 'hs/tier1 runtime'
- 'hs/tier1 serviceability'
- 'lib-test/tier1'
include:
- test-name: 'jdk/tier1 part 1'
@@ -98,6 +99,10 @@ jobs:
test-suite: 'test/hotspot/jtreg/:tier1_serviceability'
debug-suffix: -debug
- test-name: 'lib-test/tier1'
test-suite: 'test/lib-test/:tier1'
debug-suffix: -debug
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3

7
.gitignore vendored
View File

@@ -18,5 +18,8 @@ NashornProfile.txt
/src/utils/LogCompilation/target/
/.project/
/.settings/
*.class
.idea/workspace.xml
/.project
/.classpath
/.cproject
/compile_commands.json
/.cache

View File

@@ -130,7 +130,7 @@ install_jib() {
fi
# Want to check the filetype using file, to see if we got served a HTML error page.
# This is sensitive to the filename containing a specific string, but good enough.
file ${installed_jib_script}.gz | grep "gzip compressed data" > /dev/null
file "${installed_jib_script}.gz" | grep "gzip compressed data" > /dev/null
if [ $? -ne 0 ]; then
echo "Warning: ${installed_jib_script}.gz is not a gzip file."
echo "If you are behind a proxy you may need to configure exceptions using no_proxy."

View File

@@ -134,6 +134,8 @@ id="toc-cross-compiling-with-debian-sysroots">Cross compiling with
Debian sysroots</a></li>
<li><a href="#building-for-armaarch64"
id="toc-building-for-armaarch64">Building for ARM/aarch64</a></li>
<li><a href="#building-for-risc-v" id="toc-building-for-risc-v">Building
for RISC-V</a></li>
<li><a href="#building-for-musl" id="toc-building-for-musl">Building for
musl</a></li>
<li><a href="#verifying-the-build"
@@ -1376,10 +1378,10 @@ No such file or directory cp: cannot stat
Debian sysroots</h3>
<p>Fortunately, you can create sysroots for foreign architectures with
tools provided by your OS. On Debian/Ubuntu systems, one could use
<code>qemu-deboostrap</code> to create the <em>target</em> system
chroot, which would have the native libraries and headers specific to
that <em>target</em> system. After that, we can use the cross-compiler
on the <em>build</em> system, pointing into chroot to get the build
<code>debootstrap</code> to create the <em>target</em> system chroot,
which would have the native libraries and headers specific to that
<em>target</em> system. After that, we can use the cross-compiler on the
<em>build</em> system, pointing into chroot to get the build
dependencies right. This allows building for foreign architectures with
native compilation speed.</p>
<p>For example, cross-compiling to AArch64 from x86_64 could be done
@@ -1389,7 +1391,7 @@ like this:</p>
<code>apt install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu</code></p></li>
<li><p>Create chroot on the <em>build</em> system, configuring it for
<em>target</em> system:
<code>sudo qemu-debootstrap \ --arch=arm64 \ --verbose \ --include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev,libffi-dev \ --resolve-deps \ buster \ ~/sysroot-arm64 \ http://httpredir.debian.org/debian/</code></p></li>
<code>sudo debootstrap \ --arch=arm64 \ --verbose \ --include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev,libffi-dev \ --resolve-deps \ buster \ ~/sysroot-arm64 \ http://httpredir.debian.org/debian/ # If the target architecture is `riscv64`, # the path should be `debian-ports` instead of `debian`.</code></p></li>
<li><p>Make sure the symlinks inside the newly created chroot point to
proper locations:
<code>sudo chroot ~/sysroot-arm64 symlinks -cr .</code></p></li>
@@ -1516,6 +1518,13 @@ are:</p>
<td style="text-align: left;">sh4-linux-gnu</td>
<td>zero</td>
</tr>
<tr class="even">
<td style="text-align: left;">riscv64</td>
<td style="text-align: left;">sid</td>
<td style="text-align: left;">riscv64</td>
<td style="text-align: left;">riscv64-linux-gnu</td>
<td>(all)</td>
</tr>
</tbody>
</table>
<h3 id="building-for-armaarch64">Building for ARM/aarch64</h3>
@@ -1525,6 +1534,21 @@ profiles are available using <code>--with-abi-profile</code>:
arm-vfp-sflt, arm-vfp-hflt, arm-sflt, armv5-vfp-sflt, armv6-vfp-hflt.
Note that soft-float ABIs are no longer properly supported by the
JDK.</p>
<h3 id="building-for-risc-v">Building for RISC-V</h3>
<p>The RISC-V community provides a basic <a
href="https://github.com/riscv-collab/riscv-gnu-toolchain">GNU compiler
toolchain</a>, but the <a href="#External-Library-Requirements">external
libraries</a> required by OpenJDK complicate the building process. The
placeholder <code>&lt;toolchain-installed-path&gt;</code> shown below is
the path where you want to install the toolchain.</p>
<ul>
<li><p>Install the RISC-V GNU compiler toolchain:
<code>git clone --recursive https://github.com/riscv-collab/riscv-gnu-toolchain cd riscv-gnu-toolchain ./configure --prefix=&lt;toolchain-installed-path&gt; make linux export PATH=&lt;toolchain-installed-path&gt;/bin:$PATH</code></p></li>
<li><p>Cross-compile all the required libraries:
<code># An example for libffi git clone https://github.com/libffi/libffi cd libffi ./configure --host=riscv64-unknown-linux-gnu --prefix=&lt;toolchain-installed-path&gt;/sysroot/usr make make install</code></p></li>
<li><p>Configure and build OpenJDK:
<code>bash configure \ --with-boot-jdk=$BOOT_JDK \ --openjdk-target=riscv64-linux-gnu \ --with-sysroot=&lt;toolchain-installed-path&gt;/sysroot \ --with-toolchain-path=&lt;toolchain-installed-path&gt;/bin \ --with-extra-path=&lt;toolchain-installed-path&gt;/bin make images</code></p></li>
</ul>
<h3 id="building-for-musl">Building for musl</h3>
<p>Just like it's possible to cross-compile for a different CPU, it's
possible to cross-compile for musl libc on a glibc-based <em>build</em>

View File

@@ -1147,7 +1147,7 @@ Note that X11 is needed even if you only want to build a headless JDK.
### Cross compiling with Debian sysroots
Fortunately, you can create sysroots for foreign architectures with tools
provided by your OS. On Debian/Ubuntu systems, one could use `qemu-deboostrap` to
provided by your OS. On Debian/Ubuntu systems, one could use `debootstrap` to
create the *target* system chroot, which would have the native libraries and headers
specific to that *target* system. After that, we can use the cross-compiler on the *build*
system, pointing into chroot to get the build dependencies right. This allows building
@@ -1162,7 +1162,7 @@ For example, cross-compiling to AArch64 from x86_64 could be done like this:
* Create chroot on the *build* system, configuring it for *target* system:
```
sudo qemu-debootstrap \
sudo debootstrap \
--arch=arm64 \
--verbose \
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev,libffi-dev \
@@ -1170,6 +1170,8 @@ For example, cross-compiling to AArch64 from x86_64 could be done like this:
buster \
~/sysroot-arm64 \
http://httpredir.debian.org/debian/
# If the target architecture is `riscv64`,
# the path should be `debian-ports` instead of `debian`.
```
* Make sure the symlinks inside the newly created chroot point to proper locations:
@@ -1217,6 +1219,7 @@ Architectures that are known to successfully cross-compile like this are:
m68k sid m68k m68k-linux-gnu zero
alpha sid alpha alpha-linux-gnu zero
sh4 sid sh4 sh4-linux-gnu zero
riscv64 sid riscv64 riscv64-linux-gnu (all)
### Building for ARM/aarch64
@@ -1226,6 +1229,44 @@ available using `--with-abi-profile`: arm-vfp-sflt, arm-vfp-hflt, arm-sflt,
armv5-vfp-sflt, armv6-vfp-hflt. Note that soft-float ABIs are no longer
properly supported by the JDK.
### Building for RISC-V
The RISC-V community provides a basic
[GNU compiler toolchain](https://github.com/riscv-collab/riscv-gnu-toolchain),
but the [external libraries](#External-Library-Requirements) required by OpenJDK
complicate the building process. The placeholder `<toolchain-installed-path>`
shown below is the path where you want to install the toolchain.
* Install the RISC-V GNU compiler toolchain:
```
git clone --recursive https://github.com/riscv-collab/riscv-gnu-toolchain
cd riscv-gnu-toolchain
./configure --prefix=<toolchain-installed-path>
make linux
export PATH=<toolchain-installed-path>/bin:$PATH
```
* Cross-compile all the required libraries:
```
# An example for libffi
git clone https://github.com/libffi/libffi
cd libffi
./configure --host=riscv64-unknown-linux-gnu --prefix=<toolchain-installed-path>/sysroot/usr
make
make install
```
* Configure and build OpenJDK:
```
bash configure \
--with-boot-jdk=$BOOT_JDK \
--openjdk-target=riscv64-linux-gnu \
--with-sysroot=<toolchain-installed-path>/sysroot \
--with-toolchain-path=<toolchain-installed-path>/bin \
--with-extra-path=<toolchain-installed-path>/bin
make images
```
### Building for musl
Just like it's possible to cross-compile for a different CPU, it's possible to

View File

@@ -598,10 +598,17 @@ conventions might appear jarring and reduce readability.</p></li>
<code>std::nothrow</code>, and <code>std::nothrow_t</code>.</li>
<li><code>#include &lt;limits&gt;</code> to use
<code>std::numeric_limits</code>.</li>
<li><code>#include &lt;type_traits&gt;</code>.</li>
<li><code>#include &lt;type_traits&gt;</code> with some restrictions,
listed below.</li>
<li><code>#include &lt;cstddef&gt;</code> to use
<code>std::nullptr_t</code> and <code>std::max_align_t</code>.</li>
</ul>
<p>Certain restrictions apply to the declarations provided by
<code>&lt;type_traits&gt;</code>.</p>
<ul>
<li>The <code>alignof</code> operator should be used rather than
<code>std::alignment_of&lt;&gt;</code>.</li>
</ul>
<p>TODO: Rather than directly #including (permitted) Standard Library
headers, use a convention of #including wrapper headers (in some
location like hotspot/shared/stdcpp). This provides a single place for
@@ -1086,6 +1093,8 @@ function name and the parameter list.</li>
<h3 id="additional-permitted-features">Additional Permitted
Features</h3>
<ul>
<li><p><code>alignof</code> (<a
href="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2341.pdf">n2341</a>)</p></li>
<li><p><code>constexpr</code> (<a
href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf">n2235</a>)
(<a

View File

@@ -572,9 +572,13 @@ There are a few exceptions to this rule.
* `#include <new>` to use placement `new`, `std::nothrow`, and `std::nothrow_t`.
* `#include <limits>` to use `std::numeric_limits`.
* `#include <type_traits>`.
* `#include <type_traits>` with some restrictions, listed below.
* `#include <cstddef>` to use `std::nullptr_t` and `std::max_align_t`.
Certain restrictions apply to the declarations provided by `<type_traits>`.
* The `alignof` operator should be used rather than `std::alignment_of<>`.
TODO: Rather than directly \#including (permitted) Standard Library
headers, use a convention of \#including wrapper headers (in some
location like hotspot/shared/stdcpp). This provides a single place
@@ -1082,6 +1086,9 @@ The following attributes are expressly forbidden:
### Additional Permitted Features
* `alignof`
([n2341](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2341.pdf))
* `constexpr`
([n2235](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf))
([n3652](https://isocpp.org/files/papers/N3652.html))

View File

@@ -79,6 +79,45 @@ native source. After configuring, the project is generated using:</p>
<code>ide\hotspot-visualstudio</code> subfolder of the build output
folder. The file can be opened in Visual Studio via
<code>File -&gt; Open -&gt; Project/Solution</code>.</p>
<h4 id="eclipse-cdt">Eclipse CDT</h4>
<p>The make system can generate an Eclipse CDT Workspace that enables
Eclipse indexing for the C and C++ sources throughout the entire
codebase, as well as registering all common make targets to be runnable
from the Eclipse explorer. This can be done after configuring by
running:</p>
<pre><code>make eclipse-native-env</code></pre>
<p>After this is run, simply open and import the workspace in Eclipse
through
<code>File -&gt; Import -&gt; Projects from Folder or Archive</code> and
at <code>Import source</code> click on the directory
<code>ide\eclipse</code>, which can be found in the build output
folder.</p>
<p>If this doesn't work, you can also try
<code>File -&gt; Import -&gt; Existing Projects into Workspace</code>
instead.</p>
<p>Setting up an Eclipse Workspace is relatively lightweight compared to
other supported IDEs, but requires that your CDT installation has Cross
GCC support enabled at the moment, even if you aren't cross compiling.
The Visual C++ compiler is, at present, not supported as an indexer.</p>
<p>If desired, you can instead request make to only include indexing
support for just the Java Virtual Machine instead of the entire native
codebase, by running:</p>
<pre><code>make eclipse-hotspot-env</code></pre>
<p>If you think your particular Eclipse installation can handle the
strain, the make system also supports generating a combined Java and
C/C++ Workspace for Eclipse which can then conveniently switch between
Java and C/C++ natures during development by running:</p>
<pre><code>make eclipse-mixed-env</code></pre>
<p>Do note that this generates all features that come with both Java and
C/C++ natures.</p>
<p>By default, the Eclipse Workspace is located in the ide subdirectory
in the build output. To share the JDK's source directory with the
Eclipse Workspace, you can instead run:</p>
<pre><code>make eclipse-shared-&lt;ENV&gt;-env</code></pre>
<p>Eclipse support in the JDK is relatively new, so do keep in mind that
not everything may work at the moment. As such, the resulting Workspace
also has compilation database parsing support enabled, so you can pass
Eclipse the compile commands file (see below) if all else fails.</p>
<h4 id="compilation-database">Compilation Database</h4>
<p>The make system can generate generic native code indexing support in
the form of a <a
@@ -105,5 +144,28 @@ select the folder where you ran the above script.</p>
<p>In order to run the tests from the IDE, you can use the JTReg plugin.
Instructions for building and using the plugin can be found <a
href="https://github.com/openjdk/jtreg/tree/master/plugins/idea">here</a>.</p>
<h4 id="eclipse">Eclipse</h4>
<p>Eclipse JDT is a widely used Java IDE and has been for a very long
time, being a popular choice alongside IntelliJ IDEA for Java
development. Likewise, the JDK now includes support for developing its
Java sources with Eclipse, which can be achieved by setting up a Java
Workspace by running:</p>
<pre><code>make eclipse-java-env</code></pre>
<p>After the workspace has been generated you can import it in the same
way as you would with Eclipse CDT:</p>
<p>Follow
<code>File -&gt; Import -&gt; Projects from Folder or Archive</code> and
select the <code>ide\eclipse</code> directory in the build output folder
to import the newly created Java Workspace.</p>
<p>If doing so results in an error, you can also import the JDK via
<code>File -&gt; Import -&gt; Existing Projects into Workspace</code> as
a last resort.</p>
<p>Alternatively, if you want a Java Workspace inside the JDK's source
directory, you can instead run:</p>
<pre><code>make eclipse-shared-java-env</code></pre>
<p>As mentioned above for Eclipse CDT, you can create a combined Java
and C/C++ Workspace which can conveniently switch between Java and C/C++
natures during development by running:</p>
<pre><code>make eclipse-mixed-env</code></pre>
</body>
</html>

View File

@@ -56,6 +56,63 @@ This creates a file named `jvm.vcxproj` in `ide\hotspot-visualstudio`
subfolder of the build output folder. The file can be opened in Visual Studio
via `File -> Open -> Project/Solution`.
#### Eclipse CDT
The make system can generate an Eclipse CDT Workspace that enables Eclipse
indexing for the C and C++ sources throughout the entire codebase, as well as
registering all common make targets to be runnable from the Eclipse explorer.
This can be done after configuring by running:
```
make eclipse-native-env
```
After this is run, simply open and import the workspace in Eclipse through
`File -> Import -> Projects from Folder or Archive` and at
`Import source` click on the directory `ide\eclipse`, which can be
found in the build output folder.
If this doesn't work, you can also try
`File -> Import -> Existing Projects into Workspace`
instead.
Setting up an Eclipse Workspace is relatively lightweight compared to other
supported IDEs, but requires that your CDT installation has Cross GCC support
enabled at the moment, even if you aren't cross compiling. The Visual C++
compiler is, at present, not supported as an indexer.
If desired, you can instead request make to only include indexing support for
just the Java Virtual Machine instead of the entire native codebase, by running:
```
make eclipse-hotspot-env
```
If you think your particular Eclipse installation can handle the strain, the
make system also supports generating a combined Java and C/C++ Workspace for
Eclipse which can then conveniently switch between Java and C/C++ natures
during development by running:
```
make eclipse-mixed-env
```
Do note that this generates all features that come with both Java and C/C++
natures.
By default, the Eclipse Workspace is located in the ide subdirectory in the
build output. To share the JDK's source directory with the Eclipse Workspace,
you can instead run:
```
make eclipse-shared-<ENV>-env
```
Eclipse support in the JDK is relatively new, so do keep in mind that not
everything may work at the moment. As such, the resulting Workspace also
has compilation database parsing support enabled, so you can pass Eclipse
the compile commands file (see below) if all else fails.
#### Compilation Database
The make system can generate generic native code indexing support in the form of
@@ -96,3 +153,40 @@ as the SDK to use.
In order to run the tests from the IDE, you can use the JTReg plugin.
Instructions for building and using the plugin can be found
[here](https://github.com/openjdk/jtreg/tree/master/plugins/idea).
#### Eclipse
Eclipse JDT is a widely used Java IDE and has been for a very long time, being
a popular choice alongside IntelliJ IDEA for Java development. Likewise, the
JDK now includes support for developing its Java sources with Eclipse, which
can be achieved by setting up a Java Workspace by running:
```
make eclipse-java-env
```
After the workspace has been generated you can import it in the same way as
you would with Eclipse CDT:
Follow `File -> Import -> Projects from Folder or Archive` and select the
`ide\eclipse` directory in the build output folder to import the newly created
Java Workspace.
If doing so results in an error, you can also import the JDK via
`File -> Import -> Existing Projects into Workspace`
as a last resort.
Alternatively, if you want a Java Workspace inside the JDK's source directory,
you can instead run:
```
make eclipse-shared-java-env
```
As mentioned above for Eclipse CDT, you can create a combined Java and C/C++
Workspace which can conveniently switch between Java and C/C++ natures during
development by running:
```
make eclipse-mixed-env
```

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -449,7 +449,7 @@ ifneq ($(filter jcov-bundles, $(MAKECMDGOALS)), )
BUNDLE_NAME := $(JCOV_BUNDLE_NAME), \
FILES := $(JCOV_BUNDLE_FILES), \
BASE_DIRS := $(JCOV_IMAGE_DIR), \
SUBDIR := $(JDK_BUNDLE_SUBDIR), \
SUBDIR := jdk-$(VERSION_NUMBER), \
))
JCOV_TARGETS += $(BUILD_JCOV_BUNDLE)

View File

@@ -171,41 +171,41 @@ $(BUILD_DEMO_CodePointIM_JAR): $(CODEPOINT_METAINF_SERVICE_FILE)
$(eval $(call SetupBuildDemo, FileChooserDemo, \
DEMO_SUBDIR := jfc, \
DISABLED_WARNINGS := rawtypes deprecation unchecked, \
DISABLED_WARNINGS := rawtypes deprecation unchecked this-escape, \
))
$(eval $(call SetupBuildDemo, SwingSet2, \
DEMO_SUBDIR := jfc, \
EXTRA_COPY_TO_JAR := .java, \
EXTRA_MANIFEST_ATTR := SplashScreen-Image: resources/images/splash.png, \
DISABLED_WARNINGS := rawtypes deprecation unchecked static serial cast, \
DISABLED_WARNINGS := rawtypes deprecation unchecked static serial cast this-escape, \
))
$(eval $(call SetupBuildDemo, Font2DTest, \
DISABLED_WARNINGS := rawtypes deprecation unchecked serial cast, \
DISABLED_WARNINGS := rawtypes deprecation unchecked serial cast this-escape, \
DEMO_SUBDIR := jfc, \
))
$(eval $(call SetupBuildDemo, J2Ddemo, \
DEMO_SUBDIR := jfc, \
MAIN_CLASS := java2d.J2Ddemo, \
DISABLED_WARNINGS := rawtypes deprecation unchecked cast lossy-conversions, \
DISABLED_WARNINGS := rawtypes deprecation unchecked cast lossy-conversions this-escape, \
JAR_NAME := J2Ddemo, \
))
$(eval $(call SetupBuildDemo, Metalworks, \
DISABLED_WARNINGS := rawtypes unchecked, \
DISABLED_WARNINGS := rawtypes unchecked this-escape, \
DEMO_SUBDIR := jfc, \
))
$(eval $(call SetupBuildDemo, Notepad, \
DISABLED_WARNINGS := rawtypes, \
DISABLED_WARNINGS := rawtypes this-escape, \
DEMO_SUBDIR := jfc, \
))
$(eval $(call SetupBuildDemo, Stylepad, \
DEMO_SUBDIR := jfc, \
DISABLED_WARNINGS := rawtypes unchecked, \
DISABLED_WARNINGS := rawtypes unchecked this-escape, \
EXTRA_SRC_DIR := $(DEMO_SHARE_SRC)/jfc/Notepad, \
EXCLUDE_FILES := $(DEMO_SHARE_SRC)/jfc/Notepad/README.txt, \
))
@@ -215,11 +215,12 @@ $(eval $(call SetupBuildDemo, SampleTree, \
))
$(eval $(call SetupBuildDemo, TableExample, \
DISABLED_WARNINGS := rawtypes unchecked deprecation, \
DISABLED_WARNINGS := rawtypes unchecked deprecation this-escape, \
DEMO_SUBDIR := jfc, \
))
$(eval $(call SetupBuildDemo, TransparentRuler, \
DISABLED_WARNINGS := this-escape, \
DEMO_SUBDIR := jfc, \
MAIN_CLASS := transparentruler.Ruler, \
))

View File

@@ -53,7 +53,7 @@ $(eval $(call SetupJavaCompilation, BUILD_JIGSAW_TOOLS, \
build/tools/jigsaw, \
COPY := .properties .html, \
BIN := $(TOOLS_CLASSES_DIR), \
DISABLED_WARNINGS := fallthrough, \
DISABLED_WARNINGS := fallthrough this-escape, \
JAVAC_FLAGS := \
--add-modules jdk.jdeps \
--add-exports java.base/jdk.internal.module=ALL-UNNAMED \

View File

@@ -1,4 +1,4 @@
# Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -110,13 +110,17 @@ JAVA_WARNINGS_ARE_ERRORS ?= -Werror
JAVADOC_OPTIONS := -use -keywords -notimestamp \
-encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
-splitIndex --system none -javafx --expand-requires transitive \
--override-methods=summary
--enable-preview -source $(JDK_SOURCE_TARGET_VERSION) \
--override-methods=summary \
--no-external-specs-page
# The reference options must stay stable to allow for comparisons across the
# development cycle.
REFERENCE_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
-encoding ISO-8859-1 -breakiterator -splitIndex --system none \
-html5 -javafx --expand-requires transitive
--enable-preview -source $(JDK_SOURCE_TARGET_VERSION) \
-html5 -javafx --expand-requires transitive \
--no-external-specs-page
# Should we add DRAFT stamps to the generated javadoc?
ifeq ($(VERSION_IS_GA), true)

View File

@@ -257,6 +257,46 @@ $(eval $(call SetupTarget, hotspot-ide-project, \
ARGS := -I$(TOPDIR)/make/hotspot, \
))
$(eval $(call SetupTarget, eclipse-java-env, \
MAKEFILE := ide/eclipse/CreateWorkspace, \
ARGS := --always-make WORKSPACE=java SHARED=false, \
))
$(eval $(call SetupTarget, eclipse-hotspot-env, \
MAKEFILE := ide/eclipse/CreateWorkspace, \
ARGS := --always-make WORKSPACE=hotspot SHARED=false, \
))
$(eval $(call SetupTarget, eclipse-native-env, \
MAKEFILE := ide/eclipse/CreateWorkspace, \
ARGS := --always-make WORKSPACE=native SHARED=false, \
))
$(eval $(call SetupTarget, eclipse-mixed-env, \
MAKEFILE := ide/eclipse/CreateWorkspace, \
ARGS := --always-make SHARED=false, \
))
$(eval $(call SetupTarget, eclipse-shared-java-env, \
MAKEFILE := ide/eclipse/CreateWorkspace, \
ARGS := --always-make WORKSPACE=java SHARED=true, \
))
$(eval $(call SetupTarget, eclipse-shared-hotspot-env, \
MAKEFILE := ide/eclipse/CreateWorkspace, \
ARGS := --always-make WORKSPACE=hotspot SHARED=true, \
))
$(eval $(call SetupTarget, eclipse-shared-native-env, \
MAKEFILE := ide/eclipse/CreateWorkspace, \
ARGS := --always-make WORKSPACE=native SHARED=true, \
))
$(eval $(call SetupTarget, eclipse-shared-mixed-env, \
MAKEFILE := ide/eclipse/CreateWorkspace, \
ARGS := --always-make SHARED=true, \
))
ALL_TARGETS += $(HOTSPOT_VARIANT_TARGETS) $(HOTSPOT_VARIANT_GENSRC_TARGETS) \
$(HOTSPOT_VARIANT_LIBS_TARGETS)

View File

@@ -592,7 +592,16 @@ define SetupRunMicroTestBody
endif
# Set library path for native dependencies
$1_JMH_JVM_ARGS := -Djava.library.path=$$(TEST_IMAGE_DIR)/micro/native
$1_JMH_JVM_ARGS := -Djava.library.path=$$(TEST_IMAGE_DIR)/micro/native \
--add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
--add-exports java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.attribute=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.constantpool=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.instruction=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.java.lang.constant=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.components=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.impl=ALL-UNNAMED
ifneq ($$(MICRO_VM_OPTIONS)$$(MICRO_JAVA_OPTIONS), )
$1_JMH_JVM_ARGS += $$(MICRO_VM_OPTIONS) $$(MICRO_JAVA_OPTIONS)

View File

@@ -477,7 +477,11 @@ AC_DEFUN([BASIC_CHECK_DIR_ON_LOCAL_DISK],
# df on AIX does not understand -l. On modern AIXes it understands "-T local" which
# is the same. On older AIXes we just continue to live with a "not local build" warning.
if test "x$OPENJDK_TARGET_OS" = xaix; then
DF_LOCAL_ONLY_OPTION='-T local'
if "$DF -T local > /dev/null 2>&1"; then
DF_LOCAL_ONLY_OPTION='-T local'
else # AIX may use GNU-utils instead
DF_LOCAL_ONLY_OPTION='-l'
fi
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl1"; then
# In WSL1, we can only build on a drvfs file system (that is, a mounted real Windows drive)
DF_LOCAL_ONLY_OPTION='-t drvfs'

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -189,6 +189,10 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
WARNINGS_ENABLE_ALL_CXXFLAGS="$WARNINGS_ENABLE_ALL_CFLAGS $WARNINGS_ENABLE_ADDITIONAL_CXX"
DISABLED_WARNINGS="unused-parameter unused"
# gcc10/11 on ppc generate lots of abi warnings about layout of aggregates containing vectors
if test "x$OPENJDK_TARGET_CPU_ARCH" = "xppc"; then
DISABLED_WARNINGS="$DISABLED_WARNINGS psabi"
fi
;;
clang)
@@ -476,8 +480,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
ALWAYS_DEFINES_JDK="-DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0602 \
-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DWIN32 -DIAL"
ALWAYS_DEFINES_JVM="-DNOMINMAX -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0602 \
-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE \
-D_WINSOCK_DEPRECATED_NO_WARNINGS"
-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE"
fi
###############################################################################
@@ -634,7 +637,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
STATIC_LIBS_CFLAGS="-DSTATIC_BUILD=1"
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -ffunction-sections -fdata-sections \
-DJNIEXPORT='__attribute__((visibility(\"hidden\")))'"
-DJNIEXPORT='__attribute__((visibility(\"default\")))'"
else
STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -DJNIEXPORT="
fi

View File

@@ -70,7 +70,7 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
fi
fi
BASIC_LDFLAGS_JVM_ONLY="-Wl,-O1"
BASIC_LDFLAGS_JVM_ONLY=""
elif test "x$TOOLCHAIN_TYPE" = xclang; then
BASIC_LDFLAGS_JVM_ONLY="-mno-omit-leaf-frame-pointer -mstack-alignment=16 \

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -247,8 +247,14 @@ AC_DEFUN_ONCE([JVM_FEATURES_CHECK_CDS],
AC_DEFUN_ONCE([JVM_FEATURES_CHECK_DTRACE],
[
JVM_FEATURES_CHECK_AVAILABILITY(dtrace, [
AC_MSG_CHECKING([for dtrace tool])
if test "x$DTRACE" != "x" && test -x "$DTRACE"; then
AC_MSG_CHECKING([for dtrace tool and platform support])
if test "x$OPENJDK_TARGET_CPU_ARCH" = "xppc"; then
AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU_ARCH])
AVAILABLE=false
elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xs390"; then
AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU_ARCH])
AVAILABLE=false
elif test "x$DTRACE" != "x" && test -x "$DTRACE"; then
AC_MSG_RESULT([$DTRACE])
else
AC_MSG_RESULT([no])

View File

@@ -61,7 +61,7 @@ AC_DEFUN_ONCE([LIB_TESTS_SETUP_GTEST],
# Verify that the version is the required one.
# This is a simplified version of TOOLCHAIN_CHECK_COMPILER_VERSION
gtest_version="`$GREP GOOGLETEST_VERSION $GTEST_FRAMEWORK_SRC/CMakeLists.txt | $SED -E -e 's/set\(GOOGLETEST_VERSION (.*)\)/\1/'`"
gtest_version="`$GREP GOOGLETEST_VERSION $GTEST_FRAMEWORK_SRC/CMakeLists.txt | $SED -e 's/set(GOOGLETEST_VERSION \(.*\))/\1/'`"
comparable_actual_version=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", [$]1, [$]2, [$]3, [$]4) }' <<< "$gtest_version"`
comparable_minimum_version=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", [$]1, [$]2, [$]3, [$]4) }' <<< "$GTEST_MINIMUM_VERSION"`
if test $comparable_actual_version -lt $comparable_minimum_version ; then

View File

@@ -187,7 +187,7 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
if test "x$OPENJDK_TARGET_OS" = xwindows; then
BASIC_JVM_LIBS="$BASIC_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib powrprof.lib uuid.lib \
wsock32.lib winmm.lib version.lib psapi.lib"
ws2_32.lib winmm.lib version.lib psapi.lib"
fi
LIB_SETUP_JVM_LIBS(BUILD)
LIB_SETUP_JVM_LIBS(TARGET)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -130,7 +130,6 @@ define SetupBuildLauncherBody
$$(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_libs/java.base -name "*.a") \
$(SUPPORT_OUTPUTDIR)/modules_libs/jdk.jdwp.agent/libdt_socket.a \
$(SUPPORT_OUTPUTDIR)/modules_libs/jdk.jdwp.agent/libjdwp.a \
$(SUPPORT_OUTPUTDIR)/native/java.base/$(LIBRARY_PREFIX)fdlibm$(STATIC_LIBRARY_SUFFIX) \
-framework CoreFoundation \
-framework Foundation \
-framework SystemConfiguration \

View File

@@ -851,7 +851,7 @@ var getJibProfilesProfiles = function (input, common, data) {
[ "linux-aarch64", "linux-x64", "macosx-x64", "macosx-aarch64", "windows-x64" ]
.forEach(function (name) {
var o = artifactData[name]
var jdk_subdir = (o.jdk_subdir != null ? o.jdk_subdir : "jdk-" + data.version);
var jdk_subdir = "jdk-" + data.version;
var jdk_suffix = (o.jdk_suffix != null ? o.jdk_suffix : "tar.gz");
var pf = o.platform
var jcovName = name + "-jcov";

View File

@@ -1193,8 +1193,8 @@ annotations.
<territory type="TM">Turkmenistan</territory>
<territory type="TN">Tunisia</territory>
<territory type="TO">Tonga</territory>
<territory type="TR">Turkey</territory>
<territory type="TR" alt="variant">Türkiye</territory>
<territory type="TR">Türkiye</territory>
<territory type="TR" alt="variant">Turkey</territory>
<territory type="TT">Trinidad &amp; Tobago</territory>
<territory type="TV">Tuvalu</territory>
<territory type="TW">Taiwan</territory>

View File

@@ -162,7 +162,6 @@ JVM_IsRecord
JVM_IsSameClassPackage
JVM_IsSharingEnabled
JVM_IsSupportedJNIVersion
JVM_IsThreadAlive
JVM_IsVMGeneratedMethodIx
JVM_LatestUserDefinedLoader
JVM_LoadZipLibrary
@@ -218,10 +217,8 @@ JVM_DefineModule
JVM_SetBootLoaderUnnamedModule
# Virtual thread notifications for JVMTI
JVM_VirtualThreadMountBegin
JVM_VirtualThreadMountEnd
JVM_VirtualThreadUnmountBegin
JVM_VirtualThreadUnmountEnd
JVM_VirtualThreadMount
JVM_VirtualThreadUnmount
JVM_VirtualThreadHideFrames
# Scoped values

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -71,6 +71,7 @@ else ifeq ($(BASE_OS), Fedora)
BASE_URL := http://fedora.riscv.rocks/repos-dist/$(BASE_OS_VERSION)/$(ARCH)/Packages/
else
DEFAULT_OS_VERSION := 27
LATEST_ARCHIVED_OS_VERSION := 35
ifeq ($(BASE_OS_VERSION), )
BASE_OS_VERSION := $(DEFAULT_OS_VERSION)
endif
@@ -79,11 +80,11 @@ else ifeq ($(BASE_OS), Fedora)
else
FEDORA_TYPE := fedora/linux
endif
ARCHIVED := $(shell [ $(BASE_OS_VERSION) -lt $(DEFAULT_OS_VERSION) ] && echo true)
ifeq ($(ARCHIVED),true)
BASE_URL := https://archives.fedoraproject.org/pub/archive/$(FEDORA_TYPE)/releases/$(BASE_OS_VERSION)/Everything/$(ARCH)/os/Packages/
else
NOT_ARCHIVED := $(shell [ $(BASE_OS_VERSION) -gt $(LATEST_ARCHIVED_OS_VERSION) ] && echo true)
ifeq ($(NOT_ARCHIVED),true)
BASE_URL := https://dl.fedoraproject.org/pub/$(FEDORA_TYPE)/releases/$(BASE_OS_VERSION)/Everything/$(ARCH)/os/Packages/
else
BASE_URL := https://archives.fedoraproject.org/pub/archive/$(FEDORA_TYPE)/releases/$(BASE_OS_VERSION)/Everything/$(ARCH)/os/Packages/
endif
endif
LINUX_VERSION := Fedora_$(BASE_OS_VERSION)
@@ -449,7 +450,7 @@ $(BUILDDIR)/$(binutils_ver)/Makefile \
$(PATHPRE) $(ENVS) CFLAGS="-O2 $(CFLAGS)" \
$(BINUTILS_CFG) \
$(CONFIG) \
$(LINKER_CONFIG) \
$(LINKER_CONFIG) \
--with-sysroot=$(SYSROOT) \
--disable-nls \
--program-prefix=$(TARGET)- \

View File

@@ -100,7 +100,7 @@ endif
DISABLED_WARNINGS_xlc := tautological-compare shift-negative-value
DISABLED_WARNINGS_microsoft := 4624 4244 4291 4146 4127
DISABLED_WARNINGS_microsoft := 4624 4244 4291 4146 4127 4722
################################################################################
# Platform specific setup

View File

@@ -169,8 +169,12 @@ ifeq ($(call check-jvm-feature, link-time-opt), true)
# later on if desired
JVM_OPTIMIZATION := HIGHEST_JVM
ifeq ($(call isCompiler, gcc), true)
JVM_CFLAGS_FEATURES += -flto -fuse-linker-plugin
JVM_LDFLAGS_FEATURES += -flto -fuse-linker-plugin -fno-strict-aliasing
JVM_CFLAGS_FEATURES += -flto=auto -fuse-linker-plugin -fno-strict-aliasing -fno-fat-lto-objects
JVM_LDFLAGS_FEATURES += $(CXX_O_FLAG_HIGHEST_JVM) -flto=auto -fuse-linker-plugin -fno-strict-aliasing
endif
else
ifeq ($(call isCompiler, gcc), true)
JVM_LDFLAGS_FEATURES += -O1
endif
endif

View File

@@ -0,0 +1,390 @@
#
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
include TextFileProcessing.gmk
include Utils.gmk
include Modules.gmk
JVM_VARIANT := $(JVM_VARIANT_MAIN)
include hotspot/HotspotCommon.gmk
include hotspot/lib/JvmFeatures.gmk
include hotspot/lib/JvmOverrideFiles.gmk
include hotspot/lib/JvmFlags.gmk
# Random number generation, with the amount of specified digits
# No need to check if the parameter passed is a valid number, the shell will
# be more than happy to complain if it isn't ;)
RandomDigits = \
$(shell od -An -N8 -d /dev/urandom | sed -e 's| ||g' -e 's|\(.\{$(strip $1)\}\).*|\1|')
# Modified version of utility from JdkNativeCompilation.gmk
# The full path could be omitted, but it was chosen not to so wildcard
# can work properly for existing directories. The pathsubst below that
# this necessitates is a relatively small price to pay.
FindModuleNativeDirs = \
$(call uniq, $(wildcard \
$(TOPDIR)/src/$(strip $1)/$(OPENJDK_TARGET_OS)/native \
$(TOPDIR)/src/$(strip $1)/$(OPENJDK_TARGET_OS_TYPE)/native \
$(TOPDIR)/src/$(strip $1)/share/native))
# Taken from JdkNativeCompilation.gmk
FindJavaHeaderDir = \
$(if $(strip $1),$(wildcard $(SUPPORT_OUTPUTDIR)/headers/$(strip $1)))
JAVA_DIRS := $(strip $(foreach module, $(call FindAllModules), \
$(patsubst $(TOPDIR)/%,%,$(filter-out $(OUTPUTDIR)%, \
$(call FindModuleSrcDirs, $(module))))))
NATIVE_DIRS := $(strip $(foreach module, $(call FindAllModules), \
$(patsubst $(TOPDIR)/%,%,$(call FindModuleNativeDirs, $(module)))))
# Emit the defines extracted from the list of options specified in the first parameter into
# the language settings file, in Eclipse format.
EmitExtractedDefines = \
$(shell echo $(1) | grep -o "\-D\s\?")
################################################################################
# Create an Eclipse Workspace with the specified nature
#
# Parameter 1 is the name of the rule. This name is used as variable prefix,
# and the targets generated are listed in a variable by that name.
#
# Remaining parameter(s) are named arguments:
# NATURE - Which Eclipse Workspace nature to generate for the Workspace. Can
# be one of JAVA, HOTSPOT, NATIVE, or MIXED.
# SHARED - Workspace will share the same directory as the JDK if true. Can be
# either true or false. Defaults to false if not specified.
SetupEclipseWorkspace = $(NamedParamsMacroTemplate)
define SetupEclipseWorkspaceBody
$1_NATURES :=
$1_BUILD_MANAGERS :=
$1_LINKED_RESOURCES :=
ifeq ($$($1_NATURE), )
$$(error No nature specified for Eclipse Workspace, cannot continue)
endif
ifeq ($$(findstring $$($1_NATURE), JAVA HOTSPOT NATIVE MIXED), )
$$(error Unrecognised nature $$($1_NATURE) specified for Eclipse Workspace)
endif
ifeq ($$($1_SHARED), )
$$(info Workspace sharing option not given, assuming non-shared Eclipse Workspace)
$1_SHARED := false
else ifeq ($$(findstring $$($1_SHARED), true false), )
$$(error $$($1_NATURE) is not a boolean word)
endif
ifeq ($$($1_SHARED), true)
$1_CLASSPATH_FILE := $(TOPDIR)/.classpath
$1_WORKSPACE_FILE := $(TOPDIR)/.project
$1_NATIVE_FILE := $(TOPDIR)/.cproject
$1_SETTINGS_FILE := $(TOPDIR)/.settings/language.settings.xml
else
$1_IDE_OUTPUTDIR := $(OUTPUTDIR)/ide/eclipse
$1_CLASSPATH_FILE := $$($1_IDE_OUTPUTDIR)/.classpath
$1_WORKSPACE_FILE := $$($1_IDE_OUTPUTDIR)/.project
$1_NATIVE_FILE := $$($1_IDE_OUTPUTDIR)/.cproject
$1_SETTINGS_FILE := $$($1_IDE_OUTPUTDIR)/.settings/language.settings.xml
$$(call MakeDir, $$($1_IDE_OUTPUTDIR))
endif
ifneq ($$(findstring $$($1_NATURE), HOTSPOT NATIVE MIXED), )
ifeq ($$(call isCompiler, microsoft), true)
$$(error Visual C++ is not yet supported as an indexer for Native Workspaces!)
endif
endif
ifneq ($$(findstring $$($1_NATURE), JAVA MIXED), )
$1_CLASSPATH :=
# Eclipse crashes when processing multiple module-info.java files
# This is an annoying bug that has not been fixed for some time now
$1_CLASSPATH += $$(foreach src,$(JAVA_DIRS), \
<classpathentry excluding="module-info.java|module-info.java.extra" kind="src" path="$$(src)"/>$$(NEWLINE))
$$(eval $$(call SetupTextFileProcessing, $1_CREATE_CLASSPATH_FILE, \
SOURCE_FILES := $(TOPDIR)/make/ide/eclipse/classpath.template, \
OUTPUT_FILE := $$($1_CLASSPATH_FILE), \
REPLACEMENTS := \
@@CLASSPATH@@ => $$($1_CLASSPATH), \
))
TARGETS += $$($1_CREATE_CLASSPATH_FILE)
$1_NATURES += <nature>org.eclipse.jdt.core.javanature</nature>$$(NEWLINE)
endif
ifneq ($$(findstring $$($1_NATURE), HOTSPOT NATIVE MIXED), )
$1_NATIVE_SRCS :=
$1_BUILD_MANAGERS += \
<buildCommand> \
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> \
<triggers>clean$$(COMMA)full$$(COMMA)incremental$$(COMMA)</triggers> \
<arguments> \
</arguments> \
</buildCommand> \
<buildCommand> \
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> \
<triggers>full$$(COMMA)incremental$$(COMMA)</triggers> \
<arguments> \
</arguments> \
</buildCommand>$$(NEWLINE)
$1_NATURES += \
<nature>org.eclipse.cdt.core.cnature</nature> \
<nature>org.eclipse.cdt.core.ccnature</nature> \
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> \
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>$$(NEWLINE)
# This is always emitted, no matter which of the 3 natures were selected
$1_NATIVE_SRCS += \
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src/hotspot"/>$$(NEWLINE)
ifneq ($$(findstring $$($1_NATURE), NATIVE MIXED), )
$1_NATIVE_SRCS += $$(foreach src,$(NATIVE_DIRS), \
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="$$(strip $$(src))"/>$$(NEWLINE))
endif
$1_WORKSPACE_MAJOR := $$(call RandomDigits, 10)
$1_WORKSPACE_MINOR := $$(call RandomDigits, 9)
# FixPath already removes $(FIXPATH) automatically, but if we rely on FixPath
# to do it for us dir won't be able to handle the converted path (if on Windows).
# Reversing the order causes dir to mangle the preceeding $(FIXPATH) which breaks
# the ability of FixPath to remove it, so it has to be manually removed here.
#
# Note that the workspace setup system currently does not support Visual C++ when
# extracting compiler and/or system headers vital to the build!
$1_ENV := $$(call FixPath, $$(dir $$(patsubst $(FIXPATH), , $(CC))))
# Sidestep annoying issue of WSL path conversion not working properly with true
# Unix paths. Eclipse can't run the WSL make by itself anyway, even if we could
# properly convert the path.
ifeq ($$(call isBuildOsEnv, windows.wsl1 windows.wsl2), true)
$1_MAKE := wsl.exe $(MAKE)
else
$1_MAKE := $$(call FixPath, $(MAKE))
endif
$1_MATCHING_MAKE_TARGETS :=
$1_PLAIN_MAKE_TARGETS := update-build-docs docs gensrc gendata \
copy java launchers libs hotspot jdk product-images all-images test-image clean
# make reconfigure omitted since it is sensitive to which make was used
ifeq ($$($1_SHARED), true)
$1_PLAIN_MAKE_TARGETS += dist-clean
endif
$1_MATCHING_MAKE_TARGETS += $$(foreach name,$$($1_PLAIN_MAKE_TARGETS), \
<target name="$$(strip $$(name))" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> \
<buildCommand>$$($1_MAKE)</buildCommand> \
<buildArguments>-C $$(call FixPath, $(TOPDIR))</buildArguments> \
<buildTarget>$$(strip $$(name))</buildTarget> \
<stopOnError>true</stopOnError> \
<useDefaultCommand>false</useDefaultCommand> \
<runAllBuilders>true</runAllBuilders> \
</target>$$(NEWLINE))
$$(eval $$(call SetupTextFileProcessing, $1_CREATE_NATIVE_FILE, \
SOURCE_FILES := $(TOPDIR)/make/ide/eclipse/native.template, \
OUTPUT_FILE := $$($1_NATIVE_FILE), \
REPLACEMENTS := \
@@DIR@@ => $$(call FixPath, $(TOPDIR)) ; \
@@ENV@@ => $$($1_ENV) ; \
@@WORKSPACE@@ => $$($1_WORKSPACE_MAJOR) ; \
@@MINOR@@ => $$($1_WORKSPACE_MINOR) ; \
@@MAKE@@ => $$($1_MAKE) ; \
@@SRC@@ => $$($1_NATIVE_SRCS) ; \
@@MAKE_TARGETS@@ => $$($1_MATCHING_MAKE_TARGETS), \
))
TARGETS += $$($1_CREATE_NATIVE_FILE)
ifeq ($$($1_SHARED), true)
$$(call MakeDir, $(TOPDIR)/.settings)
else
$$(call MakeDir, $$($1_IDE_OUTPUTDIR)/.settings)
endif
$1_CSETTINGS :=
$1_CXXSETTINGS :=
ifneq ($$(findstring $$($1_NATURE), NATIVE MIXED), )
$1_CSETTINGS += $$(foreach module, $$(call FindAllModules), $$(if $$(call FindJavaHeaderDir, $$(module)), \
$$(foreach dirs, $$(strip $$(patsubst $(TOPDIR)/%,%,$$(call FindModuleNativeDirs, $$(module)))), \
<resource project-relative-path="$$(dirs)"> \
<entry flags="LOCAL" kind="includePath" name="$$(call FixPath, $$(call FindJavaHeaderDir, $$(module)))"/> \
$$(if $$(findstring jdk.sctp,$$(module)), <entry flags="LOCAL" kind="includePath" name="$$(call FixPath, $$(call FindJavaHeaderDir, java.base))"/>) \
</resource>$$(NEWLINE))))
# main.c source file used for generic launchers
$1_CSETTINGS += \
<resource project-relative-path="src/java.base/share/native/launcher/main.c"> \
<entry kind="macro" name="LAUNCHER_NAME" value="&quot;$(LAUNCHER_NAME)&quot;"/> \
</resource>$$(NEWLINE)
endif
# HotSpot first
$1_CXXSETTINGS += <resource project-relative-path="src/hotspot">$$(NEWLINE)
# If only the Java Virtual Machine sources were requested, headers from other parts of
# the native source that it needs will not be available. Add them as include paths here
# instead.
ifeq ($$($1_NATURE), HOTSPOT)
$1_CXXSETTINGS += $$(foreach src, $$(strip $$(patsubst %,%/include,$$(call FindModuleNativeDirs, java.base))), \
$(X) $(X)<entry flags="LOCAL" kind="includePath" name="$$(call FixPath, $$(src))"/>$$(NEWLINE))
$1_CXXSETTINGS += $(X) $(X)<entry flags="LOCAL" kind="includePath" name="$$(call FixPath, $(TOPDIR)/src/java.base/share/native/libjimage)"/>$$(NEWLINE)
endif
$1_CXXSETTINGS += $(X) $(X)<entry flags="LOCAL" kind="includePath" name="$$(call FixPath, $(JVM_VARIANT_OUTPUTDIR)/gensrc)"/>$$(NEWLINE)
ifeq ($$(call check-jvm-feature, compiler2), true)
$1_CXXSETTINGS += $(X) $(X)<entry flags="LOCAL" kind="includePath" name="$$(call FixPath, $(JVM_VARIANT_OUTPUTDIR)/gensrc/adfiles)"/>$$(NEWLINE)
endif
$1_CXXSETTINGS += </resource>$$(NEWLINE)
$1_CXXSETTINGS += \
<resource project-relative-path="src/hotspot/share/runtime/abstract_vm_version.cpp"> \
<entry kind="macro" name="HOTSPOT_VERSION_STRING" value="&quot;$(VERSION_STRING)&quot;"/> \
<entry kind="macro" name="DEBUG_LEVEL" value="&quot;$(DEBUG_LEVEL)&quot;"/> \
<entry kind="macro" name="HOTSPOT_BUILD_USER" value="&quot;$(USERNAME)&quot;"/> \
<entry kind="macro" name="HOTSPOT_VM_DISTRO" value="&quot;$(HOTSPOT_VM_DISTRO)&quot;"/> \
<entry kind="macro" name="CPU" value="&quot;$(OPENJDK_TARGET_CPU_VM_VERSION)&quot;"/> \
<entry kind="macro" name="HOTSPOT_BUILD_TIME" value="&quot;$(if $(HOTSPOT_BUILD_TIME),$(HOTSPOT_BUILD_TIME),$(call EpochToISO8601,$(shell $(DATE) +"%s")))&quot;"/> \
</resource> \
<resource project-relative-path="src/hotspot/share/runtime/arguments.cpp"> \
<entry kind="macro" name="HOTSPOT_VERSION_STRING" value="&quot;$(VERSION_STRING)&quot;"/> \
<entry kind="macro" name="DEBUG_LEVEL" value="&quot;$(DEBUG_LEVEL)&quot;"/> \
<entry kind="macro" name="HOTSPOT_BUILD_USER" value="&quot;$(USERNAME)&quot;"/> \
<entry kind="macro" name="HOTSPOT_VM_DISTRO" value="&quot;$(HOTSPOT_VM_DISTRO)&quot;"/> \
<entry kind="macro" name="CPU" value="&quot;$(OPENJDK_TARGET_CPU_VM_VERSION)&quot;"/> \
<entry kind="macro" name="HOTSPOT_BUILD_TIME" value="&quot;$(if $(HOTSPOT_BUILD_TIME),$(HOTSPOT_BUILD_TIME),$(call EpochToISO8601,$(shell $(DATE) +"%s")))&quot;"/> \
</resource>$$(NEWLINE)
# Now the rest of the C++ sources in the codebase
ifneq ($$(findstring $$($1_NATURE), NATIVE MIXED), )
$1_CXXSETTINGS += $$(foreach module, $$(call FindAllModules), $$(if $$(call FindJavaHeaderDir, $$(module)), \
$$(foreach dirs, $$(strip $$(patsubst $(TOPDIR)/%,%,$$(call FindModuleNativeDirs, $$(module)))), \
<resource project-relative-path="$$(dirs)"> \
<entry flags="LOCAL" kind="includePath" name="$$(call FixPath, $$(call FindJavaHeaderDir, $$(module)))"/> \
</resource>$$(NEWLINE))))
endif
$$(eval $$(call SetupTextFileProcessing, $1_CREATE_SETTINGS_FILE, \
SOURCE_FILES := $(TOPDIR)/make/ide/eclipse/settings.template, \
OUTPUT_FILE := $$($1_SETTINGS_FILE), \
REPLACEMENTS := \
@@WORKSPACE@@ => $$($1_WORKSPACE_MAJOR) ; \
@@CSETTINGS@@ => $$($1_CSETTINGS) ; \
@@CXXSETTINGS@@ => $$($1_CXXSETTINGS), \
))
TARGETS += $$($1_CREATE_SETTINGS_FILE)
endif
ifeq ($$($1_SHARED), false)
ifneq ($$(findstring $$($1_NATURE), JAVA MIXED), )
$1_LINKED_RESOURCES += $$(foreach src,$(JAVA_DIRS), \
<link> \
<name>$$(strip $$(src))</name> \
<type>2</type> \
<location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/$$(src)))</location> \
</link>$$(NEWLINE))
endif
ifneq ($$(findstring $$($1_NATURE), HOTSPOT NATIVE MIXED), )
# CDT includes a Makefile editor, so if CDT support was indicated there's no harm in
# including the make sources as well, since the cost of indexing them is miniscule
$1_LINKED_RESOURCES += \
<link> \
<name>make</name> \
<type>2</type> \
<location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/make))</location> \
</link> \
<link> \
<name>src/hotspot</name> \
<type>2</type> \
<location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/src/hotspot))</location> \
</link>$$(NEWLINE)
endif
ifneq ($$(findstring $$($1_NATURE), NATIVE MIXED), )
$1_LINKED_RESOURCES += $$(foreach src,$(NATIVE_DIRS), \
<link> \
<name>$$(strip $$(src))</name> \
<type>2</type> \
<location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/$$(src)))</location> \
</link>$$(NEWLINE))
endif
endif
$$(eval $$(call SetupTextFileProcessing, $1_CREATE_WORKSPACE_FILE, \
SOURCE_FILES := $(TOPDIR)/make/ide/eclipse/workspace.template, \
OUTPUT_FILE := $$($1_WORKSPACE_FILE), \
REPLACEMENTS := \
@@BUILD_MANAGERS@@ => $$($1_BUILD_MANAGERS) ; \
@@NATURES@@ => $$($1_NATURES) ; \
@@LINKED_RESOURCES@@ => $$($1_LINKED_RESOURCES), \
))
TARGETS += $$($1_CREATE_WORKSPACE_FILE)
endef
ifeq ($(WORKSPACE), java)
$(eval $(call SetupEclipseWorkspace, SETUP_WORKSPACE, \
NATURE := JAVA, \
SHARED := $(SHARED), \
))
else ifeq ($(WORKSPACE), hotspot)
$(eval $(call SetupEclipseWorkspace, SETUP_WORKSPACE, \
NATURE := HOTSPOT, \
SHARED := $(SHARED), \
))
else ifeq ($(WORKSPACE), native)
$(eval $(call SetupEclipseWorkspace, SETUP_WORKSPACE, \
NATURE := NATIVE, \
SHARED := $(SHARED), \
))
else
$(eval $(call SetupEclipseWorkspace, SETUP_WORKSPACE, \
NATURE := MIXED, \
SHARED := $(SHARED), \
))
endif
all: $(TARGETS)

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
@@CLASSPATH@@
</classpath>

View File

@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
<project-mappings>
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="org.eclipse.cdt.core.c"/>
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="org.eclipse.cdt.core.c"/>
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="org.eclipse.cdt.core.c++"/>
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="org.eclipse.cdt.core.c++"/>
</project-mappings>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="cdt.managedbuild.toolchain.gnu.cross.base.@@WORKSPACE@@">
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.cross.base.@@WORKSPACE@@" moduleId="org.eclipse.cdt.core.settings" name="C/C++">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration buildProperties="" description="" id="cdt.managedbuild.toolchain.gnu.cross.base.@@WORKSPACE@@" name="C/C++" parent="org.eclipse.cdt.build.core.emptycfg">
<folderInfo id="cdt.managedbuild.toolchain.gnu.cross.base.@@WORKSPACE@@.@@MINOR@@" name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.cross.base.@@MINOR@@" name="Cross GCC" superClass="cdt.managedbuild.toolchain.gnu.cross.base">
<option id="cdt.managedbuild.option.gnu.cross.path.@@MINOR@@" name="Path" superClass="cdt.managedbuild.option.gnu.cross.path" value="@@ENV@@" valueType="string"/>
<targetPlatform archList="all" binaryParser="" id="cdt.managedbuild.targetPlatform.gnu.cross.@@WORKSPACE@@" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
<builder command="@@MAKE@@" arguments="-C @@DIR@@" id="cdt.managedbuild.builder.gnu.cross.@@MINOR@@" incrementalBuildTarget="jdk" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="false" superClass="cdt.managedbuild.builder.gnu.cross"/>
</toolChain>
</folderInfo>
<sourceEntries>
@@SRC@@
</sourceEntries>
</configuration>
</storageModule>
</cconfiguration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
<buildTargets>
@@MAKE_TARGETS@@
</buildTargets>
</storageModule>
</cproject>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project>
<configuration id="cdt.managedbuild.toolchain.gnu.cross.base.@@WORKSPACE@@" name="C/C++">
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider build-parser-id="" cdb-modified-time="" class="org.eclipse.cdt.managedbuilder.internal.language.settings.providers.CompilationDatabaseParser" id="org.eclipse.cdt.managedbuilder.core.CompilationDatabaseParser" name="Compilation Database Parser" prefer-non-shared="true" store-entries-with-project="true"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuildCommandParser" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser" keep-relative-paths="false" name="CDT GCC Build Output Parser" parameter="([^/\\\\]*)((g?cc)|([gc]\+\+)|(clang))" prefer-non-shared="true" store-entries-with-project="true"/>
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="true" env-hash="" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true" store-entries-with-project="true">
<language-scope id="org.eclipse.cdt.core.c"/>
<language-scope id="org.eclipse.cdt.core.c++"/>
</provider>
<provider class="org.eclipse.cdt.core.language.settings.providers.LanguageSettingsGenericProvider" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider" name="CDT User Setting Entries" prefer-non-shared="true" store-entries-with-project="true">
<language id="org.eclipse.cdt.core.c">
@@CSETTINGS@@
</language>
<language id="org.eclipse.cdt.core.c++">
@@CXXSETTINGS@@
</language>
</provider>
</extension>
</configuration>
</project>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>jdk</name>
<comment>The HotSpot Virtual Machine, Runtime Environment, and Development Kit</comment>
<projects>
</projects>
<buildSpec>
@@BUILD_MANAGERS@@
</buildSpec>
<natures>
@@NATURES@@
</natures>
<linkedResources>
@@LINKED_RESOURCES@@
</linkedResources>
</projectDescription>

View File

@@ -54,7 +54,7 @@ public final class LangtoolsIdeaAntLogger extends DefaultLogger {
/**
* This is just a way to pass in customized binary string predicates;
*
* TODO: replace with @code{BiPredicate<String, String>} and method reference when moving to 8
* TODO: replace with {@code BiPredicate<String, String>} and method reference when moving to 8
*/
enum StringBinaryPredicate {
CONTAINS() {

View File

@@ -35,8 +35,8 @@ ifeq ($(call isTargetOs, windows), true)
# The next part is a bit hacky. We include the CompileJvm.gmk to be
# able to extract flags, but we do not wish to execute the rules.
# Use server as base for defines and includes
JVM_VARIANT=server
# Use primary variant for defines and includes
JVM_VARIANT := $(JVM_VARIANT_MAIN)
include HotspotCommon.gmk
include lib/CompileJvm.gmk

View File

@@ -0,0 +1,93 @@
/*
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. 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.
*/
package build.tools.generatecharacter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.util.AbstractMap;
import java.util.Map;
import java.util.Set;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
/**
* A class holding emoji character properties
* https://unicode.org/reports/tr51/#Emoji_Properties_and_Data_Files
*/
class EmojiData {
// Emoji properties map
private final Map<Integer, Long> emojiProps;
static EmojiData readSpecFile(Path file, int plane) throws IOException {
return new EmojiData(file, plane);
}
EmojiData(Path file, int plane) throws IOException {
emojiProps = Files.readAllLines(file).stream()
.map(line -> line.split("#", 2)[0])
.filter(Predicate.not(String::isBlank))
.map(line -> line.split("[ \t]*;[ \t]*", 2))
.flatMap(map -> {
var range = map[0].split("\\.\\.", 2);
var start = Integer.valueOf(range[0], 16);
if ((start >> 16) != plane) {
return Stream.empty();
} else {
return range.length == 1 ?
Stream.of(new AbstractMap.SimpleEntry<>(start, convertType(map[1].trim()))) :
IntStream.rangeClosed(start, Integer.valueOf(range[1], 16))
.mapToObj(cp -> new AbstractMap.SimpleEntry<>(cp, convertType(map[1].trim())));
}
})
.collect(Collectors.toMap(AbstractMap.SimpleEntry::getKey,
AbstractMap.SimpleEntry::getValue,
(v1, v2) -> v1 | v2));
}
long properties(int cp) {
return emojiProps.get(cp);
}
Set<Integer> codepoints() {
return emojiProps.keySet();
}
private static long convertType(String type) {
return switch (type) {
case "Emoji" -> GenerateCharacter.maskEmoji;
case "Emoji_Presentation" -> GenerateCharacter.maskEmojiPresentation;
case "Emoji_Modifier" -> GenerateCharacter.maskEmojiModifier;
case "Emoji_Modifier_Base" -> GenerateCharacter.maskEmojiModifierBase;
case "Emoji_Component" -> GenerateCharacter.maskEmojiComponent;
case "Extended_Pictographic" -> GenerateCharacter.maskExtendedPictographic;
default -> throw new InternalError("Unrecognizable Emoji type: " + type);
};
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -33,6 +33,7 @@ import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.File;
import java.nio.file.Paths;
import java.util.List;
import build.tools.generatecharacter.CharacterName;
@@ -74,6 +75,7 @@ public class GenerateCharacter {
static String DefaultSpecialCasingFileName = ROOT + "SpecialCasing.txt";
static String DefaultPropListFileName = ROOT + "PropList.txt";
static String DefaultDerivedPropsFileName = ROOT + "DerivedCoreProperties.txt";
static String DefaultEmojiDataFileName = ROOT + "emoji-data.txt";
static String DefaultJavaTemplateFileName = ROOT + "Character.java.template";
static String DefaultJavaOutputFileName = ROOT + "Character.java";
static String DefaultCTemplateFileName = ROOT + "Character.c.template";
@@ -105,7 +107,7 @@ public class GenerateCharacter {
entries are short rather than byte).
*/
/* The character properties are currently encoded into A (32 bits) and B (8 bits)
/* The character properties are currently encoded into A (32 bits) and B (16 bits)
two parts.
A: the low 32 bits are defined in the following manner:
@@ -160,6 +162,13 @@ public class GenerateCharacter {
1 bit Ideographic property
1 bit ID_Start property
1 bit ID_Continue property
6 bits for Emoji properties :-
1 bit for Emoji
1 bit for Emoji_Presentation
1 bit for Emoji_Modifier
1 bit for Emoji_Modifier_Base
1 bit for Emoji_Component
1 bit for Extended_Pictographic
*/
@@ -188,15 +197,21 @@ public class GenerateCharacter {
// maskMirrored needs to be long, if up 16-bit
private static final long maskMirrored = 0x80000000L;
// bit masks identify the 8-bit property field described above, in B
// bit masks identify the 16-bit property field described above, in B
// table
private static final long
maskOtherLowercase = 0x0100000000L,
maskOtherUppercase = 0x0200000000L,
maskOtherAlphabetic = 0x0400000000L,
maskIdeographic = 0x0800000000L,
maskIDStart = 0x1000000000L,
maskIDContinue = 0x2000000000L;
static final long
maskOtherLowercase = 1L << 32,
maskOtherUppercase = 1L << 33,
maskOtherAlphabetic = 1L << 34,
maskIdeographic = 1L << 35,
maskIDStart = 1L << 36,
maskIDContinue = 1L << 37,
maskEmoji = 1L << 38,
maskEmojiPresentation = 1L << 39,
maskEmojiModifier = 1L << 40,
maskEmojiModifierBase = 1L << 41,
maskEmojiComponent = 1L << 42,
maskExtendedPictographic = 1L << 43;
// Can compare masked values with these to determine
// numeric or lexical types.
@@ -304,7 +319,7 @@ public class GenerateCharacter {
* @see GenerateCharacter#buildOne
*/
static long[] buildMap(UnicodeSpec[] data, SpecialCaseMap[] specialMaps, PropList propList)
static long[] buildMap(UnicodeSpec[] data, SpecialCaseMap[] specialMaps, PropList propList, EmojiData emojiData)
{
long[] result = new long[bLatin1 ? 256 : 1 << 16];
int k = 0;
@@ -361,6 +376,9 @@ public class GenerateCharacter {
addExProp(result, propList, "ID_Start", maskIDStart);
addExProp(result, propList, "ID_Continue", maskIDContinue);
// add Emoji properties to the upper 16-bit
addEmojiProps(result, emojiData);
return result;
}
@@ -583,6 +601,14 @@ public class GenerateCharacter {
}
}
static void addEmojiProps(long[] map, EmojiData emojiData) {
for (int cp : emojiData.codepoints()) {
var index = cp & 0xFFFF;
if (index < map.length)
map[index] |= emojiData.properties(cp);
}
}
/**
* This is the heart of the table compression strategy. The inputs are a map
* and a number of bits (size). The map is simply an array of long integer values;
@@ -776,6 +802,12 @@ OUTER: for (int i = 0; i < n; i += m) {
if (x.equals("maskIdeographic")) return "0x" + hex4(maskIdeographic >> 32);
if (x.equals("maskIDStart")) return "0x" + hex4(maskIDStart >> 32);
if (x.equals("maskIDContinue")) return "0x" + hex4(maskIDContinue >> 32);
if (x.equals("maskEmoji")) return "0x" + hex4(maskEmoji >> 32);
if (x.equals("maskEmojiPresentation")) return "0x" + hex4(maskEmojiPresentation >> 32);
if (x.equals("maskEmojiModifier")) return "0x" + hex4(maskEmojiModifier >> 32);
if (x.equals("maskEmojiModifierBase")) return "0x" + hex4(maskEmojiModifierBase >> 32);
if (x.equals("maskEmojiComponent")) return "0x" + hex4(maskEmojiComponent >> 32);
if (x.equals("maskExtendedPictographic")) return "0x" + hex4(maskExtendedPictographic >> 32);
if (x.equals("valueIgnorable")) return "0x" + hex8(valueIgnorable);
if (x.equals("valueJavaUnicodeStart")) return "0x" + hex8(valueJavaUnicodeStart);
if (x.equals("valueJavaOnlyStart")) return "0x" + hex8(valueJavaOnlyStart);
@@ -952,7 +984,7 @@ OUTER: for (int i = 0; i < n; i += m) {
// If we ever need more than 32 bits to represent the character properties,
// then a table "B" may be needed as well.
genTable(result, "B", tables[n - 1], 32, 8, sizes[n - 1], false, 0, true, true, false);
genTable(result, "B", tables[n - 1], 32, 16, sizes[n - 1], false, 0, true, true, false);
totalBytes += ((((tables[n - 1].length * (identifiers ? 2 : 32)) + 31) >> 5) << 2);
result.append(commentStart);
@@ -1434,6 +1466,42 @@ OUTER: for (int i = 0; i < n; i += m) {
result.append(", supradecimal ");
result.append((val & maskDigitOffset) >> shiftDigitOffset);
}
if ((val & maskOtherLowercase) == maskOtherLowercase) {
result.append(", otherLowercase");
}
if ((val & maskOtherUppercase) == maskOtherUppercase) {
result.append(", otherUppercase");
}
if ((val & maskOtherAlphabetic) == maskOtherAlphabetic) {
result.append(", otherAlphabetic");
}
if ((val & maskIdeographic) == maskIdeographic) {
result.append(", ideographic");
}
if ((val & maskIDStart) == maskIDStart) {
result.append(", IDStart");
}
if ((val & maskIDContinue) == maskIDContinue) {
result.append(", IDContinue");
}
if ((val & maskEmoji) == maskEmoji) {
result.append(", emoji");
}
if ((val & maskEmojiPresentation) == maskEmojiPresentation) {
result.append(", emojiPresentation");
}
if ((val & maskEmojiModifier) == maskEmojiModifier) {
result.append(", emojiModifier");
}
if ((val & maskEmojiModifierBase) == maskEmojiModifierBase) {
result.append(", emojiModifierBase");
}
if ((val & maskEmojiComponent) == maskEmojiComponent) {
result.append(", emojiComponent");
}
if ((val & maskExtendedPictographic) == maskExtendedPictographic) {
result.append(", extendedPictographic");
}
}
static String[] tableNames = { "X", "Y", "Z", "P", "Q", "R", "S", "T", "U", "V", "W" };
@@ -1512,6 +1580,7 @@ OUTER: for (int i = 0; i < n; i += m) {
static String SpecialCasingFileName = null;
static String PropListFileName = null;
static String DerivedPropsFileName = null;
static String EmojiDataFileName = null;
static boolean useCharForByte = false;
static int[] sizes;
static int bins = 0; // liu; if > 0, then perform search
@@ -1649,6 +1718,14 @@ OUTER: for (int i = 0; i < n; i += m) {
DerivedPropsFileName = args[++j];
}
}
else if (args[j].equals("-emojidata")) {
if (j == args.length -1) {
FAIL("File name missing after -emojidata");
}
else {
EmojiDataFileName = args[++j];
}
}
else if (args[j].equals("-plane")) {
if (j == args.length -1) {
FAIL("Plane number missing after -plane");
@@ -1717,6 +1794,10 @@ OUTER: for (int i = 0; i < n; i += m) {
DerivedPropsFileName = DefaultDerivedPropsFileName;
desc.append(" [-derivedprops " + DerivedPropsFileName + ']');
}
if (EmojiDataFileName == null) {
EmojiDataFileName = DefaultEmojiDataFileName;
desc.append(" [-emojidata " + EmojiDataFileName + ']');
}
if (TemplateFileName == null) {
TemplateFileName = (Csyntax ? DefaultCTemplateFileName
: DefaultJavaTemplateFileName);
@@ -1871,11 +1952,12 @@ OUTER: for (int i = 0; i < n; i += m) {
specialCaseMaps = SpecialCaseMap.readSpecFile(new File(SpecialCasingFileName), plane);
PropList propList = PropList.readSpecFile(new File(PropListFileName), plane);
propList.putAll(PropList.readSpecFile(new File(DerivedPropsFileName), plane));
EmojiData emojiData = EmojiData.readSpecFile(Paths.get(EmojiDataFileName), plane);
if (verbose) {
System.out.println(data.length + " items read from Unicode spec file " + UnicodeSpecFileName); // liu
}
long[] map = buildMap(data, specialCaseMaps, propList);
long[] map = buildMap(data, specialCaseMaps, propList, emojiData);
if (verbose) {
System.err.println("Completed building of initial map");
}

View File

@@ -1,155 +0,0 @@
/*
* Copyright (c) 2019, 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. 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.
*/
package build.tools.generateemojidata;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* Generate EmojiData.java
* args[0]: Full path string to the template file
* args[1]: Full path string to the directory that contains "emoji-data.txt"
* args[2]: Full path string to the generated .java file
*/
public class GenerateEmojiData {
public static void main(String[] args) {
try {
final Range[] last = new Range[1]; // last extended pictographic range
last[0] = new Range(0, 0);
List<Range> extPictRanges = Files.lines(Paths.get(args[1], "emoji", "emoji-data.txt"))
.filter(Predicate.not(l -> l.startsWith("#") || l.isBlank()))
.filter(l -> l.contains("; Extended_Pictograph"))
.map(l -> new Range(l.replaceFirst(" .*", "")))
.sorted()
.collect(ArrayList<Range>::new,
(list, r) -> {
// collapsing consecutive pictographic ranges
int lastIndex = list.size() - 1;
if (lastIndex >= 0) {
Range lastRange = list.get(lastIndex);
if (lastRange.last + 1 == r.start) {
list.set(lastIndex, new Range(lastRange.start, r.last));
return;
}
}
list.add(r);
},
ArrayList<Range>::addAll);
// make the code point conditions
// only very few codepoints below 0x2000 are "emojis", so separate them
// out to generate a fast-path check that can be efficiently inlined
String lowExtPictCodePoints = extPictRanges.stream()
.takeWhile(r -> r.last < 0x2000)
.map(r -> rangeToString(r))
.collect(Collectors.joining(" ||\n", "", ";\n"));
String highExtPictCodePoints = extPictRanges.stream()
.dropWhile(r -> r.last < 0x2000)
.map(r -> rangeToString(r))
.collect(Collectors.joining(" ||\n", "", ";\n"));
// Generate EmojiData.java file
Files.write(Paths.get(args[2]),
Files.lines(Paths.get(args[0]))
.flatMap(l -> {
if (l.equals("%%%EXTPICT_LOW%%%")) {
return Stream.of(lowExtPictCodePoints);
} else if (l.equals("%%%EXTPICT_HIGH%%%")) {
return Stream.of(highExtPictCodePoints);
} else {
return Stream.of(l);
}
})
.collect(Collectors.toList()),
StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);
} catch (IOException e) {
e.printStackTrace();
}
}
static String rangeToString(Range r) {
if (r.start == r.last) {
return (" ".repeat(16) + "cp == 0x" + toHexString(r.start));
} else if (r.start == r.last - 1) {
return " ".repeat(16) + "cp == 0x" + toHexString(r.start) + " ||\n" +
" ".repeat(16) + "cp == 0x" + toHexString(r.last);
} else {
return " ".repeat(15) + "(cp >= 0x" + toHexString(r.start) +
" && cp <= 0x" + toHexString(r.last) + ")";
}
}
static int toInt(String hexStr) {
return Integer.parseUnsignedInt(hexStr, 16);
}
static String toHexString(int cp) {
String ret = Integer.toUnsignedString(cp, 16).toUpperCase();
if (ret.length() < 4) {
ret = "0".repeat(4 - ret.length()) + ret;
}
return ret;
}
static class Range implements Comparable<Range> {
int start;
int last;
Range (int start, int last) {
this.start = start;
this.last = last;
}
Range (String input) {
input = input.replaceFirst("\\s#.*", "");
start = toInt(input.replaceFirst("[\\s\\.].*", ""));
last = input.contains("..") ?
toInt(input.replaceFirst(".*\\.\\.", "")
.replaceFirst(";.*", "").trim())
: start;
}
@Override
public String toString() {
return "Start: " + toHexString(start) + ", Last: " + toHexString(last);
}
@Override
public int compareTo(Range other) {
return Integer.compare(start, other.start);
}
}
}

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -34,7 +34,6 @@ include gensrc/GensrcBuffer.gmk
include gensrc/GensrcExceptions.gmk
include gensrc/GensrcVarHandles.gmk
include gensrc/GensrcModuleLoaderMap.gmk
include gensrc/GensrcEmojiData.gmk
include gensrc/GensrcScopedMemoryAccess.gmk
# GensrcLocaleData.gmk does not set TARGETS, so we must choose which targets

View File

@@ -23,9 +23,13 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
JAVAC_FLAGS += -XDstringConcat=inline
JAVAC_FLAGS += -XDstringConcat=inline \
--enable-preview
DISABLED_WARNINGS_java += preview
COPY += .icu .dat .spp .nrm content-types.properties \
hijrah-config-Hijrah-umalqura_islamic-umalqura.properties
CLEAN += intrinsic.properties
@@ -33,7 +37,9 @@ CLEAN += intrinsic.properties
EXCLUDE_FILES += \
$(TOPDIR)/src/java.base/share/classes/jdk/internal/module/ModuleLoaderMap.java
EXCLUDES += java/lang/doc-files
EXCLUDES += java/lang/doc-files \
jdk/internal/classfile/snippet-files \
jdk/internal/classfile/components/snippet-files
# Exclude BreakIterator classes that are just used in compile process to generate
# data files and shouldn't go in the product

View File

@@ -47,8 +47,6 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBNET, \
DISABLED_WARNINGS_gcc_NetworkInterface.c := unused-function, \
DISABLED_WARNINGS_clang_net_util_md.c := format-nonliteral, \
DISABLED_WARNINGS_microsoft_InetAddress.c := 4244, \
DISABLED_WARNINGS_microsoft_NetworkInterface.c := 4133, \
DISABLED_WARNINGS_microsoft_NetworkInterface_winXP.c := 4133, \
DISABLED_WARNINGS_microsoft_ResolverConfigurationImpl.c := 4996, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN), \

View File

@@ -49,6 +49,7 @@ define SetupCharacterData
-specialcasing $(UNICODEDATA)/SpecialCasing.txt \
-proplist $(UNICODEDATA)/PropList.txt \
-derivedprops $(UNICODEDATA)/DerivedCoreProperties.txt \
-emojidata $(UNICODEDATA)/emoji/emoji-data.txt \
-o $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/$1.java \
-usecharforbyte $3

View File

@@ -1,43 +0,0 @@
#
# Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# Rules to create $(SUPPORT_OUTPUTDIR)/gensrc/java.base/jdk/internal/util/regex/EmojiData.java
#
GENSRC_EMOJIDATA := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/jdk/internal/util/regex/EmojiData.java
EMOJIDATATEMP = $(MODULE_SRC)/share/classes/jdk/internal/util/regex/EmojiData.java.template
UNICODEDATA = $(MODULE_SRC)/share/data/unicodedata
$(GENSRC_EMOJIDATA): $(BUILD_TOOLS_JDK) $(EMOJIDATATEMP) $(UNICODEDATA)/emoji/emoji-data.txt
$(call LogInfo, Generating $@)
$(call MakeTargetDir)
$(TOOL_GENERATEEMOJIDATA) \
$(EMOJIDATATEMP) \
$(UNICODEDATA) \
$(GENSRC_EMOJIDATA)
TARGETS += $(GENSRC_EMOJIDATA)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -50,8 +50,14 @@ $(eval $(call SetupTextFileProcessing, BUILD_VERSION_JAVA, \
@@VENDOR_URL_VM_BUG@@ => $(VENDOR_URL_VM_BUG), \
))
TARGETS += $(BUILD_VERSION_JAVA)
$(eval $(call SetupTextFileProcessing, BUILD_PLATFORMPROPERTIES_JAVA, \
SOURCE_FILES := $(TOPDIR)/src/java.base/share/classes/jdk/internal/util/OperatingSystemProps.java.template, \
OUTPUT_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/jdk/internal/util/OperatingSystemProps.java, \
REPLACEMENTS := \
@@OPENJDK_TARGET_OS@@ => $(OPENJDK_TARGET_OS), \
))
TARGETS += $(BUILD_VERSION_JAVA) $(BUILD_PLATFORMPROPERTIES_JAVA)
################################################################################
ifneq ($(filter $(TOOLCHAIN_TYPE), gcc clang), )

View File

@@ -23,43 +23,6 @@
# questions.
#
##########################################################################################
# libfdlibm is statically linked with libjava below and not delivered into the
# product on its own.
BUILD_LIBFDLIBM_OPTIMIZATION := NONE
# If FDLIBM_CFLAGS is non-empty we know that we can optimize
# fdlibm when adding those extra C flags. Currently GCC,
# and clang only.
ifneq ($(FDLIBM_CFLAGS), )
BUILD_LIBFDLIBM_OPTIMIZATION := LOW
endif
LIBFDLIBM_SRC := $(TOPDIR)/src/java.base/share/native/libfdlibm
LIBFDLIBM_CFLAGS := -I$(LIBFDLIBM_SRC) $(FDLIBM_CFLAGS)
$(eval $(call SetupNativeCompilation, BUILD_LIBFDLIBM, \
NAME := fdlibm, \
TYPE := STATIC_LIBRARY, \
OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \
SRC := $(LIBFDLIBM_SRC), \
OPTIMIZATION := $(BUILD_LIBFDLIBM_OPTIMIZATION), \
CFLAGS := $(CFLAGS_JDKLIB) $(LIBFDLIBM_CFLAGS), \
CFLAGS_windows_debug := -DLOGGING, \
CFLAGS_aix := -qfloat=nomaf, \
DISABLED_WARNINGS_gcc := sign-compare, \
DISABLED_WARNINGS_gcc_k_rem_pio2.c := maybe-uninitialized, \
DISABLED_WARNINGS_clang := sign-compare, \
DISABLED_WARNINGS_microsoft := 4146, \
DISABLED_WARNINGS_microsoft_e_exp.c := 4244, \
DISABLED_WARNINGS_microsoft_s_ceil.c := 4018, \
DISABLED_WARNINGS_microsoft_s_expm1.c := 4244, \
DISABLED_WARNINGS_microsoft_s_floor.c := 4018, \
ARFLAGS := $(ARFLAGS), \
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfdlibm, \
))
##########################################################################################
LIBVERIFY_OPTIMIZATION := HIGH
@@ -96,14 +59,12 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJAVA, \
CFLAGS := $(CFLAGS_JDKLIB) \
$(LIBJAVA_CFLAGS), \
jdk_util.c_CFLAGS := $(VERSION_CFLAGS), \
EXTRA_HEADER_DIRS := libfdlibm, \
WARNINGS_AS_ERRORS_xlc := false, \
DISABLED_WARNINGS_gcc_ProcessImpl_md.c := unused-result, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN), \
LDFLAGS_macosx := -L$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/, \
LDFLAGS_windows := -delayload:shell32.dll, \
LIBS := $(BUILD_LIBFDLIBM_TARGET), \
LIBS_unix := -ljvm, \
LIBS_linux := $(LIBDL), \
LIBS_aix := $(LIBDL) $(LIBM),\
@@ -119,7 +80,6 @@ TARGETS += $(BUILD_LIBJAVA)
$(BUILD_LIBJAVA): $(BUILD_LIBVERIFY)
$(BUILD_LIBJAVA): $(BUILD_LIBFDLIBM)
##########################################################################################

View File

@@ -23,6 +23,8 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
COPY += flavormap.properties

View File

@@ -23,7 +23,7 @@
# questions.
#
DISABLED_WARNINGS_java += lossy-conversions
DISABLED_WARNINGS_java += lossy-conversions this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
COPY += .gif .png .wav .txt .xml .css .pf

View File

@@ -511,7 +511,7 @@ else
-DHB_NO_PRAGMA_GCC_DIAGNOSTIC
endif
ifeq ($(call isTargetOs, linux macosx), true)
HARFBUZZ_CFLAGS += -DHAVE_INTEL_ATOMIC_PRIMITIVES
HARFBUZZ_CFLAGS += -DHAVE_INTEL_ATOMIC_PRIMITIVES -DHB_NO_VISIBILITY
endif
# Early re-canonizing has to be disabled to workaround an internal XlC compiler error
@@ -525,7 +525,8 @@ else
HARFBUZZ_DISABLED_WARNINGS_gcc := missing-field-initializers strict-aliasing \
unused-result
HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := class-memaccess
# noexcept-type required for GCC 7 builds. Not required for GCC 8+.
HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := class-memaccess noexcept-type
HARFBUZZ_DISABLED_WARNINGS_clang := missing-field-initializers range-loop-analysis
HARFBUZZ_DISABLED_WARNINGS_microsoft := 4267 4244

View File

@@ -23,5 +23,7 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'

View File

@@ -23,5 +23,7 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'

View File

@@ -23,6 +23,8 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
CLEAN += jndiprovider.properties

View File

@@ -1,9 +1,12 @@
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
#
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@@ -18,6 +21,6 @@
# 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.
#
# The contents of this file do not matter. It exists
# simply to have a service defined in META-INF/services.
DISABLED_WARNINGS_java += this-escape

View File

@@ -23,6 +23,8 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
CLEAN_FILES += $(wildcard \

View File

@@ -23,5 +23,7 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'

View File

@@ -1,9 +1,12 @@
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
#
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@@ -18,6 +21,6 @@
# 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.
#
corporate=/fonts/Company-corporate.ttf
crazy-looking=/fonts/kidpr.ttf
DISABLED_WARNINGS_java += this-escape

View File

@@ -23,6 +23,8 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
CLEAN_FILES += $(wildcard \

View File

@@ -23,5 +23,7 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'

View File

@@ -23,6 +23,8 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
COPY += .dtd .xml

View File

@@ -23,7 +23,7 @@
# questions.
#
DISABLED_WARNINGS_java += lossy-conversions
DISABLED_WARNINGS_java += lossy-conversions this-escape
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:$(call CommaList, javax.xml.catalog javax.xml.datatype \
javax.xml.transform javax.xml.validation javax.xml.xpath)'

View File

@@ -23,4 +23,6 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
COPY += .dat

View File

@@ -57,7 +57,7 @@ $(eval $(call SetupJavaCompilation, COMPILE_CREATE_SYMBOLS, \
$(TOPDIR)/src/jdk.jdeps/share/classes, \
INCLUDES := build/tools/symbolgenerator com/sun/tools/classfile, \
BIN := $(BUILDTOOLS_OUTPUTDIR)/create_symbols, \
DISABLED_WARNINGS := options, \
DISABLED_WARNINGS := options this-escape, \
JAVAC_FLAGS := \
$(INTERIM_LANGTOOLS_ARGS) \
$(COMPILECREATESYMBOLS_ADD_EXPORTS), \

View File

@@ -1,9 +1,12 @@
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
#
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@@ -18,6 +21,6 @@
# 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.
#
# The contents of this file do not matter. It exists
# simply to have a file under META-INF.
DISABLED_WARNINGS_java += this-escape

View File

@@ -0,0 +1,26 @@
#
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. 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.
#
DISABLED_WARNINGS_java += this-escape

View File

@@ -24,5 +24,5 @@
#
DISABLED_WARNINGS_java += rawtypes serial cast static overrides \
fallthrough
fallthrough this-escape
COPY += .gif .png .properties

View File

@@ -23,4 +23,4 @@
# questions.
#
DISABLED_WARNINGS_java += missing-explicit-ctor
DISABLED_WARNINGS_java += missing-explicit-ctor this-escape

View File

@@ -23,4 +23,6 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
COPY += aliasmap

View File

@@ -23,4 +23,6 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
COPY += .properties .caps .txt

View File

@@ -23,4 +23,6 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
COPY += .properties

View File

@@ -23,16 +23,10 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
# -parameters provides method's parameters information in class file,
# JVMCI compilers make use of that information for various sanity checks.
# Don't use Indy strings concatenation to have good JVMCI startup performance.
# The exports are needed since JVMCI is dynamically exported (see
# jdk.vm.ci.services.internal.ReflectionAccessJDK::openJVMCITo).
JAVAC_FLAGS += -parameters -XDstringConcat=inline
## WORKAROUND jdk.internal.vm.ci source structure issue
JVMCI_MODULESOURCEPATH := $(MODULESOURCEPATH) \
$(subst /$(MODULE)/,/*/, $(filter-out %processor/src, \
$(wildcard $(TOPDIR)/src/$(MODULE)/share/classes/*/src)))
MODULESOURCEPATH := $(call PathList, $(JVMCI_MODULESOURCEPATH))

View File

@@ -25,3 +25,5 @@
DISABLED_WARNINGS_java += missing-explicit-ctor
JAVAC_FLAGS += -XDstringConcat=inline
JAVAC_FLAGS += --enable-preview
DISABLED_WARNINGS_java += preview

View File

@@ -55,7 +55,7 @@ $(eval $(call SetupJavaCompilation, COMPILE_CREATE_SYMBOLS, \
$(TOPDIR)/src/jdk.jdeps/share/classes, \
INCLUDES := build/tools/symbolgenerator com/sun/tools/classfile, \
BIN := $(BUILDTOOLS_OUTPUTDIR)/create_symbols_javadoc, \
DISABLED_WARNINGS := options, \
DISABLED_WARNINGS := options this-escape, \
JAVAC_FLAGS := \
$(INTERIM_LANGTOOLS_ARGS) \
$(COMPILECREATESYMBOLS_ADD_EXPORTS), \

View File

@@ -23,4 +23,6 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
COPY += .xml .css .svg .js .js.template .png .txt

View File

@@ -23,4 +23,6 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
COPY += _options

View File

@@ -23,6 +23,8 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
COPY += .gif .png
CLEAN_FILES += $(wildcard \

View File

@@ -26,6 +26,8 @@
include GensrcCommon.gmk
include GensrcProperties.gmk
DISABLED_WARNINGS_java += this-escape
$(eval $(call SetupVersionProperties, JAVAP_VERSION, \
com/sun/tools/javap/resources/version.properties))

View File

@@ -25,6 +25,8 @@
include LauncherCommon.gmk
DISABLED_WARNINGS_java += this-escape
$(eval $(call SetupBuildLauncher, javap, \
MAIN_CLASS := com.sun.tools.javap.Main, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \

View File

@@ -23,6 +23,8 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
EXCLUDES += \
com/sun/tools/example/debug/bdi \
com/sun/tools/example/debug/event \

View File

@@ -0,0 +1,26 @@
#
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. 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.
#
DISABLED_WARNINGS_java += this-escape

View File

@@ -23,6 +23,8 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
COPY += .gif .png .txt .spec .script .prerm .preinst \
.postrm .postinst .list .sh .desktop .copyright .control .plist .template \
.icns .scpt .wxs .wxl .wxi .ico .bmp .tiff .service

View File

@@ -0,0 +1,26 @@
#
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. 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.
#
DISABLED_WARNINGS_java += this-escape

View File

@@ -23,6 +23,8 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
COPY += _dict _th
# Exclude BreakIterator classes that are just used in compile process to generate
# data files and shouldn't go in the product

View File

@@ -0,0 +1,26 @@
#
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. 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.
#
DISABLED_WARNINGS_java += this-escape

View File

@@ -23,6 +23,8 @@
# questions.
#
DISABLED_WARNINGS_java += this-escape
# No SCTP implementation on Mac OS X or AIX. These classes should be excluded.
SCTP_IMPL_CLASSES = \
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java \

View File

@@ -51,7 +51,7 @@ $(eval $(call SetupJavaCompilation, BUILD_FAILURE_HANDLER, \
TARGET_RELEASE := $(TARGET_RELEASE_BOOTJDK), \
SRC := $(FH_BASEDIR)/src/share/classes $(FH_BASEDIR)/src/share/conf, \
BIN := $(FH_SUPPORT)/classes, \
DISABLED_WARNINGS := options serial try, \
DISABLED_WARNINGS := options serial try this-escape, \
COPY := .properties, \
CLASSPATH := $(JTREG_JAR) $(TOOLS_JAR), \
JAR := $(FH_JAR), \

View File

@@ -76,7 +76,7 @@ $(eval $(call SetupJavaCompilation, BUILD_INDIFY, \
TARGET_RELEASE := $(TARGET_RELEASE_BOOTJDK), \
SRC := $(TOPDIR)/test/jdk/java/lang/invoke, \
INCLUDE_FILES := indify/Indify.java, \
DISABLED_WARNINGS := rawtypes serial options, \
DISABLED_WARNINGS := this-escape rawtypes serial options, \
BIN := $(MICROBENCHMARK_TOOLS_CLASSES), \
JAVAC_FLAGS := -XDstringConcat=inline -Xprefer:newer, \
))
@@ -91,11 +91,20 @@ $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
SMALL_JAVA := false, \
CLASSPATH := $(MICROBENCHMARK_CLASSPATH), \
DISABLED_WARNINGS := processing rawtypes cast serial preview, \
DISABLED_WARNINGS := this-escape processing rawtypes cast serial preview, \
SRC := $(MICROBENCHMARK_SRC), \
BIN := $(MICROBENCHMARK_CLASSES), \
JAVAC_FLAGS := --add-exports java.base/sun.security.util=ALL-UNNAMED \
--add-exports java.base/sun.invoke.util=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.attribute=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.constantpool=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.instruction=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.java.lang.constant=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.components=ALL-UNNAMED \
--add-exports java.base/jdk.internal.classfile.impl=ALL-UNNAMED \
--add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
--add-exports java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED \
--add-exports java.base/jdk.internal.vm=ALL-UNNAMED \
--enable-preview, \
JAVA_FLAGS := --add-modules jdk.unsupported --limit-modules java.management \

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -36,10 +36,11 @@ TEST_LIB_SUPPORT := $(SUPPORT_OUTPUTDIR)/test/lib
$(eval $(call SetupJavaCompilation, BUILD_WB_JAR, \
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
SRC := $(TEST_LIB_SOURCE_DIR)/sun $(TEST_LIB_SOURCE_DIR)/jdk/test/whitebox/parser, \
SRC := $(TEST_LIB_SOURCE_DIR)/jdk/test/whitebox/parser, \
BIN := $(TEST_LIB_SUPPORT)/wb_classes, \
JAR := $(TEST_LIB_SUPPORT)/wb.jar, \
DISABLED_WARNINGS := deprecation removal, \
DISABLED_WARNINGS := deprecation removal preview, \
JAVAC_FLAGS := --enable-preview, \
))
TARGETS += $(BUILD_WB_JAR)
@@ -51,7 +52,8 @@ $(eval $(call SetupJavaCompilation, BUILD_TEST_LIB_JAR, \
BIN := $(TEST_LIB_SUPPORT)/test-lib_classes, \
HEADERS := $(TEST_LIB_SUPPORT)/test-lib_headers, \
JAR := $(TEST_LIB_SUPPORT)/test-lib.jar, \
DISABLED_WARNINGS := try deprecation rawtypes unchecked serial cast removal, \
DISABLED_WARNINGS := try deprecation rawtypes unchecked serial cast removal preview, \
JAVAC_FLAGS := --enable-preview, \
))
TARGETS += $(BUILD_TEST_LIB_JAR)

View File

@@ -79,10 +79,12 @@ ifeq ($(call isTargetOs, windows), true)
BUILD_JDK_JTREG_LIBRARIES_LIBS_libTracePinnedThreads := jvm.lib
BUILD_JDK_JTREG_LIBRARIES_LIBS_libNewDirectByteBuffer := $(WIN_LIB_JAVA)
BUILD_JDK_JTREG_LIBRARIES_LIBS_libGetXSpace := $(WIN_LIB_JAVA)
else
BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := -ljava
BUILD_JDK_JTREG_LIBRARIES_LIBS_libDirectIO := -ljava
BUILD_JDK_JTREG_LIBRARIES_LIBS_libNewDirectByteBuffer := -ljava
BUILD_JDK_JTREG_LIBRARIES_LIBS_libGetXSpace := -ljava
BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libNativeThread := -pthread
# java.lang.foreign tests

View File

@@ -1,6 +1,6 @@
/*
*
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -271,6 +271,7 @@ public class InternalFrameDemo extends DemoModule {
windowTitleField = new JTextField(getString("InternalFrameDemo.frame_label"));
windowTitleLabel = new JLabel(getString("InternalFrameDemo.title_text_field_label"));
windowTitleLabel.setLabelFor(windowTitleField);
p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS));
p.add(Box.createRigidArea(HGAP5));

View File

@@ -1,6 +1,6 @@
/*
*
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -281,6 +281,7 @@ public class TableDemo extends DemoModule {
selectionModeComboBox.addItem(getString("TableDemo.one_range"));
selectionModeComboBox.addItem(getString("TableDemo.multiple_ranges"));
selectionModeComboBox.setSelectedIndex(tableView.getSelectionModel().getSelectionMode());
selectionModeComboBox.getAccessibleContext().setAccessibleName(getString("TableDemo.selection_mode"));
selectionModeComboBox.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
JComboBox<?> source = (JComboBox<?>)e.getSource();
@@ -310,6 +311,7 @@ public class TableDemo extends DemoModule {
resizeModeComboBox.addItem(getString("TableDemo.last_column"));
resizeModeComboBox.addItem(getString("TableDemo.all_columns"));
resizeModeComboBox.setSelectedIndex(tableView.getAutoResizeMode());
resizeModeComboBox.getAccessibleContext().setAccessibleName(getString("TableDemo.autoresize_mode"));
resizeModeComboBox.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
JComboBox<?> source = (JComboBox<?>)e.getSource();
@@ -330,6 +332,9 @@ public class TableDemo extends DemoModule {
footerTextField = new JTextField(getString("TableDemo.footerText"), 15);
fitWidth = new JCheckBox(getString("TableDemo.fitWidth"), true);
printButton = new JButton(getString("TableDemo.print"));
headerLabel.setLabelFor(headerTextField);
footerLabel.setLabelFor(footerTextField);
printButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
printTable();

View File

@@ -1,24 +0,0 @@
main.dir=${basedir}/../../../jfc/SwingApplet
src.dir=${main.dir}/src
build.dir=build
classes.dir=${build.dir}/classes
jar=${main.dir}/SwingApplet.jar
javadoc.dir=${build.dir}/javadoc
build.sysclasspath=ignore
# E.g.: cp=lib/x.jar:lib/y.jar
cp=
extra.run.cp=
#main.class=
run.cp=${cp}:${classes.dir}:${extra.run.cp}
debug=true
deprecation=false
nbjdk.home=${basedir}/../../../..
applet.html=${main.dir}/SwingApplet.html

View File

@@ -1,100 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Oracle nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<project name="SwingApplet" basedir="." default="jar">
<import file="nbproject/jdk.xml"/>
<target name="-prop-init">
<property file="user.build.properties"/>
<property file="build.properties"/>
</target>
<target name="-init" depends="-prop-init,-jdk-init"/>
<target name="compile" depends="-init" description="Compile main sources.">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">
<classpath path="${cp}"/>
</javac>
<copy todir="${classes.dir}">
<fileset dir="${src.dir}"/>
</copy>
</target>
<target name="jar" depends="compile" description="Build JAR file for main sources.">
<jar jarfile="${jar}" compress="true">
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
</manifest>
<fileset dir="${classes.dir}"/>
</jar>
</target>
<target name="run" depends="compile" description="Run application.">
<fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>
<java classname="${main.class}" fork="true" failonerror="true">
<classpath path="${run.cp}"/>
</java>
</target>
<target name="run-applet" depends="jar" description="Run applet.">
<exec executable="${nbjdk.appletviewer}">
<arg file="${applet.html}"/>
</exec>
<!-- To view in regular web browser instead:
<nbbrowse file="${applet.html}"/>
-->
</target>
<target name="javadoc" depends="-init" description="Build Javadoc.">
<mkdir dir="${javadoc.dir}"/>
<javadoc destdir="${javadoc.dir}">
<classpath path="${cp}"/>
<sourcepath>
<pathelement location="${src.dir}"/>
</sourcepath>
<fileset dir="${src.dir}"/>
</javadoc>
</target>
<target name="clean" depends="-init" description="Clean build products.">
<delete dir="${build.dir}"/>
<delete file="${jar}"/>
</target>
<target name="profile">
<ant antfile="nbproject/netbeans-targets.xml" target="profile"/>
</target>
</project>

View File

@@ -1,46 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Oracle nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<project basedir=".." name="SwingApplet/file">
<import file="../build.xml"/>
<target name="compile-selected" depends="-init">
<fail unless="includes">Must set property 'includes'</fail>
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}" includes="${includes}">
<classpath path="${cp}"/>
</javac>
</target>
</project>

View File

@@ -1,98 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Oracle nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<project name="jdk" basedir=".">
<target name="-jdk-preinit">
<condition property=".exe" value=".exe">
<os family="windows"/>
</condition>
<property name=".exe" value=""/>
<property name="nbjdk.javac" value="${nbjdk.home}/bin/javac${.exe}"/>
<property name="nbjdk.java" value="${nbjdk.home}/bin/java${.exe}"/>
<property name="nbjdk.javadoc" value="${nbjdk.home}/bin/javadoc${.exe}"/>
<property name="nbjdk.appletviewer" value="${nbjdk.home}/bin/appletviewer${.exe}"/>
<property name="nbjdk.bootclasspath" value="${nbjdk.home}/jre/lib/rt.jar"/>
</target>
<target name="-jdk-presetdef-basic" depends="-jdk-preinit" unless="nbjdk.presetdef.basic.done">
<macrodef name="javac-presetdef">
<attribute name="javacval"/>
<sequential>
<presetdef name="javac">
<javac fork="yes" executable="@{javacval}"/>
</presetdef>
</sequential>
</macrodef>
<javac-presetdef javacval="${nbjdk.javac}"/>
<macrodef name="java-presetdef">
<attribute name="javaval"/>
<sequential>
<presetdef name="java">
<java fork="yes" jvm="@{javaval}"/>
</presetdef>
</sequential>
</macrodef>
<java-presetdef javaval="${nbjdk.java}"/>
<macrodef name="javadoc-presetdef">
<attribute name="javadocval"/>
<sequential>
<presetdef name="javadoc">
<javadoc executable="@{javadocval}"/>
</presetdef>
</sequential>
</macrodef>
<javadoc-presetdef javadocval="${nbjdk.javadoc}"/>
<property name="nbjdk.presetdef.basic.done" value="true"/>
</target>
<target name="-jdk-presetdef-nbjpdastart" depends="-jdk-preinit" unless="nbjdk.presetdef.nbjpdastart.done">
<macrodef name="nbjpdastart-presetdef">
<attribute name="bootcpval"/>
<sequential>
<presetdef name="nbjpdastart">
<nbjpdastart>
<bootclasspath>
<path path="@{bootcpval}"/>
</bootclasspath>
</nbjpdastart>
</presetdef>
</sequential>
</macrodef>
<nbjpdastart-presetdef bootcpval="${nbjdk.bootclasspath}"/>
<property name="nbjdk.presetdef.nbjpdastart.done" value="true"/>
</target>
<target name="-jdk-init" depends="-jdk-preinit,-jdk-presetdef-basic"/>
</project>

View File

@@ -1,81 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Oracle nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<project basedir=".." name="SwingApplet/NB">
<import file="../build.xml"/>
<target name="debug" depends="compile,-jdk-presetdef-nbjpdastart">
<nbjpdastart addressproperty="jpda.address" name="SwingApplet" transport="dt_socket">
<classpath path="${run.cp}"/>
</nbjpdastart>
<java classname="${main.class}" failonerror="true" fork="true">
<classpath path="${run.cp}"/>
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xnoagent"/>
<jvmarg value="-Djava.compiler=none"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
</java>
</target>
<target name="debug-fix" depends="-init">
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" deprecation="${deprecation}">
<classpath path="${cp}"/>
<include name="${class}.java"/>
</javac>
<nbjpdareload>
<fileset dir="${classes.dir}">
<include name="${class}.class"/>
</fileset>
</nbjpdareload>
</target>
<target name="show-javadoc" depends="javadoc">
<nbbrowse file="${javadoc.dir}/index.html"/>
</target>
<target name="profile" depends="compile">
<nbprofiledirect>
<classpath path="${run.cp}"/>
</nbprofiledirect>
<property environment="env"/>
<java classname="${main.class}" fork="true" failonerror="true" dir="${profiler.session.working.dir}" jvm="${profiler.info.jvm}">
<classpath path="${run.cp}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg line="${profiler.info.jvmargs}"/>
<env key="LD_LIBRARY_PATH" path="${profiler.info.agentpath}:${env.LD_LIBRARY_PATH}"/>
<env key="Path" path="${profiler.info.agentpath}:${env.Path}"/>
</java>
</target>
</project>

View File

@@ -1,180 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Oracle nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.ant.freeform</type>
<configuration>
<general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
<name>SwingApplet</name>
<properties>
<property-file>user.build.properties</property-file>
<property-file>build.properties</property-file>
<property name="nbjdk.bootclasspath">${nbjdk.home}/jre/lib/rt.jar</property>
</properties>
<folders>
<source-folder>
<label>JDK Demo</label>
<location>${main.dir}</location>
</source-folder>
<source-folder>
<label>Sources</label>
<type>java</type>
<location>${src.dir}</location>
</source-folder>
<build-folder>
<location>${build.dir}</location>
</build-folder>
</folders>
<ide-actions>
<action name="build">
<target>jar</target>
</action>
<action name="clean">
<target>clean</target>
</action>
<action name="rebuild">
<target>clean</target>
<target>jar</target>
</action>
<action name="run">
<target>run</target>
</action>
<action name="javadoc">
<script>nbproject/netbeans-targets.xml</script>
<target>show-javadoc</target>
</action>
<action name="debug">
<script>nbproject/netbeans-targets.xml</script>
<target>debug</target>
</action>
<action name="compile.single">
<script>nbproject/file-targets.xml</script>
<target>compile-selected</target>
<context>
<property>includes</property>
<folder>${src.dir}</folder>
<pattern>\.java$</pattern>
<format>relative-path</format>
<arity>
<separated-files>,</separated-files>
</arity>
</context>
</action>
<action name="run.single">
<target>run</target>
<context>
<property>main.class</property>
<folder>${src.dir}</folder>
<pattern>\.java$</pattern>
<format>java-name</format>
<arity>
<one-file-only/>
</arity>
</context>
</action>
<action name="debug.single">
<script>nbproject/netbeans-targets.xml</script>
<target>debug</target>
<context>
<property>main.class</property>
<folder>${src.dir}</folder>
<pattern>\.java$</pattern>
<format>java-name</format>
<arity>
<one-file-only/>
</arity>
</context>
</action>
<action name="debug.fix">
<script>nbproject/netbeans-targets.xml</script>
<target>debug-fix</target>
<context>
<property>class</property>
<folder>${src.dir}</folder>
<pattern>\.java$</pattern>
<format>relative-path-noext</format>
<arity>
<one-file-only/>
</arity>
</context>
</action>
</ide-actions>
<export>
<type>jar</type>
<location>${jar}</location>
<build-target>jar</build-target>
<clean-target>clean</clean-target>
</export>
<view>
<items>
<source-folder style="packages">
<label>Sources</label>
<location>${src.dir}</location>
</source-folder>
<source-file>
<location>${applet.html}</location>
</source-file>
<source-file>
<location>${main.dir}/README.txt</location>
</source-file>
</items>
<context-menu>
<ide-action name="build"/>
<ide-action name="rebuild"/>
<ide-action name="clean"/>
<ide-action name="javadoc"/>
<separator/>
<ide-action name="run"/>
<action>
<label>Run Project as Applet</label>
<target>run-applet</target>
</action>
<ide-action name="debug"/>
</context-menu>
</view>
<subprojects/>
</general-data>
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
<compilation-unit>
<package-root>${src.dir}</package-root>
<classpath mode="compile">${cp}</classpath>
<classpath mode="execute">${run.cp}</classpath>
<classpath mode="boot">${nbjdk.bootclasspath}</classpath>
<built-to>${classes.dir}</built-to>
<built-to>${jar}</built-to>
<javadoc-built-to>${javadoc.dir}</javadoc-built-to>
<source-level>1.5</source-level>
</compilation-unit>
</java-data>
</configuration>
</project>

View File

@@ -1,22 +0,0 @@
main.dir=${basedir}/../../../management/FullThreadDump
src.dir=${main.dir}/src
build.dir=build
classes.dir=${build.dir}/classes
jar=${main.dir}/FullThreadDump.jar
javadoc.dir=${build.dir}/javadoc
build.sysclasspath=ignore
# E.g.: cp=lib/x.jar:lib/y.jar
cp=
extra.run.cp=
main.class=FullThreadDump
run.cp=${cp}:${classes.dir}:${extra.run.cp}
debug=true
deprecation=false
nbjdk.home=${basedir}/../../../..

View File

@@ -1,91 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Oracle nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<project name="FullThreadDump" basedir="." default="jar">
<import file="nbproject/jdk.xml"/>
<target name="-prop-init">
<property file="user.build.properties"/>
<property file="build.properties"/>
</target>
<target name="-init" depends="-prop-init,-jdk-init"/>
<target name="compile" depends="-init" description="Compile main sources.">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}">
<classpath path="${cp}"/>
</javac>
<copy todir="${classes.dir}">
<fileset dir="${src.dir}"/>
</copy>
</target>
<target name="jar" depends="compile" description="Build JAR file for main sources.">
<jar jarfile="${jar}" compress="true">
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
</manifest>
<fileset dir="${classes.dir}"/>
</jar>
</target>
<target name="run" depends="compile" description="Run application.">
<fail unless="main.class">Must set property 'main.class' (e.g. in build.properties)</fail>
<java classname="${main.class}" fork="true" failonerror="true">
<classpath path="${run.cp}"/>
</java>
</target>
<target name="javadoc" depends="-init" description="Build Javadoc.">
<mkdir dir="${javadoc.dir}"/>
<javadoc destdir="${javadoc.dir}">
<classpath path="${cp}"/>
<sourcepath>
<pathelement location="${src.dir}"/>
</sourcepath>
<fileset dir="${src.dir}"/>
</javadoc>
</target>
<target name="clean" depends="-init" description="Clean build products.">
<delete dir="${build.dir}"/>
<delete file="${jar}"/>
</target>
<target name="profile">
<ant antfile="nbproject/netbeans-targets.xml" target="profile"/>
</target>
</project>

View File

@@ -1,46 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Oracle nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<project basedir=".." name="FullThreadDump/file">
<import file="../build.xml"/>
<target name="compile-selected" depends="-init">
<fail unless="includes">Must set property 'includes'</fail>
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="${debug}" deprecation="${deprecation}" includes="${includes}">
<classpath path="${cp}"/>
</javac>
</target>
</project>

View File

@@ -1,98 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Oracle nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<project name="jdk" basedir=".">
<target name="-jdk-preinit">
<condition property=".exe" value=".exe">
<os family="windows"/>
</condition>
<property name=".exe" value=""/>
<property name="nbjdk.javac" value="${nbjdk.home}/bin/javac${.exe}"/>
<property name="nbjdk.java" value="${nbjdk.home}/bin/java${.exe}"/>
<property name="nbjdk.javadoc" value="${nbjdk.home}/bin/javadoc${.exe}"/>
<property name="nbjdk.appletviewer" value="${nbjdk.home}/bin/appletviewer${.exe}"/>
<property name="nbjdk.bootclasspath" value="${nbjdk.home}/jre/lib/rt.jar"/>
</target>
<target name="-jdk-presetdef-basic" depends="-jdk-preinit" unless="nbjdk.presetdef.basic.done">
<macrodef name="javac-presetdef">
<attribute name="javacval"/>
<sequential>
<presetdef name="javac">
<javac fork="yes" executable="@{javacval}"/>
</presetdef>
</sequential>
</macrodef>
<javac-presetdef javacval="${nbjdk.javac}"/>
<macrodef name="java-presetdef">
<attribute name="javaval"/>
<sequential>
<presetdef name="java">
<java fork="yes" jvm="@{javaval}"/>
</presetdef>
</sequential>
</macrodef>
<java-presetdef javaval="${nbjdk.java}"/>
<macrodef name="javadoc-presetdef">
<attribute name="javadocval"/>
<sequential>
<presetdef name="javadoc">
<javadoc executable="@{javadocval}"/>
</presetdef>
</sequential>
</macrodef>
<javadoc-presetdef javadocval="${nbjdk.javadoc}"/>
<property name="nbjdk.presetdef.basic.done" value="true"/>
</target>
<target name="-jdk-presetdef-nbjpdastart" depends="-jdk-preinit" unless="nbjdk.presetdef.nbjpdastart.done">
<macrodef name="nbjpdastart-presetdef">
<attribute name="bootcpval"/>
<sequential>
<presetdef name="nbjpdastart">
<nbjpdastart>
<bootclasspath>
<path path="@{bootcpval}"/>
</bootclasspath>
</nbjpdastart>
</presetdef>
</sequential>
</macrodef>
<nbjpdastart-presetdef bootcpval="${nbjdk.bootclasspath}"/>
<property name="nbjdk.presetdef.nbjpdastart.done" value="true"/>
</target>
<target name="-jdk-init" depends="-jdk-preinit,-jdk-presetdef-basic"/>
</project>

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