Compare commits

...

1697 Commits

Author SHA1 Message Date
Maxim Kartashev
7237744e78 JBR-1430 (8195129) Windows: use UTF16 version of Win32 API to load DLL
Also correct library name encoding in exception messages.

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 12:03:10 +04:00
Alexey Ushakov
0be90f059e JBR-5559 SwingMark performance drop after removing additional command queue
Added command queue and provided synchronization between the command queues
2023-04-21 02:01:52 +02:00
Nikita Provotorov
8b03357f8a JBR-5536: Crash on macOS bad JNI lookup in Java_sun_swing_AccessibleAnnouncer_nativeAnnounce
Stop using the JNIEnv instance bound to EDT in the AppKit thread.

(cherry picked from commit 0f49341f4d)
2023-04-21 02:01:52 +02:00
Maxim Kartashev
82c8df25ab JBR-5480 Include more information in OOME crash reports 2023-04-21 02:01:52 +02:00
Alexey Ushakov
a80aff7211 JBR-4883 macOS: SIGSEGV at MTLVertexCache_FlushGlyphVertexCache
Use separate glyph cache for each MTLContext instance. Refactored MTLGlyphCache
2023-04-21 02:01:52 +02:00
Alexey Ushakov
fdd39946e6 JBR-5193 Do not use extra commandQueue in metal pipeline
Removed extra command queue
2023-04-21 02:01:52 +02:00
Alexey Ushakov
71fb92c63e JBR-4959 [macOS Ventura] Screen flickering after OS update when IDE is full screen
This includes displaySync changes as well as fixes for JBR-5157 and JBR-5321.
2023-04-21 02:01:52 +02:00
Vitaly Provodin
887618b067 Update README.md 2023-04-21 02:01:52 +02:00
Maxim Kartashev
72d198ab86 jb/branchdiff.py is a lot faster 2023-04-21 02:01:52 +02:00
Sergey Shelomentsev
3674203cd2 JBR-5505 update exclude list for a11y testing on Windows 2023-04-21 02:01:52 +02:00
Sergey Shelomentsev
a016b020d7 JBR-5397 update exclude list for a11y testing on MacOS 2023-04-21 02:01:51 +02:00
Dmitrii
fb62d8aa3b JBR-5246 add OpenType's features support 2023-04-21 02:01:51 +02:00
Maxim Kartashev
fc407330aa JBR-5466 jb/hotspot/JNIRefsInCrashLog.java: 'hs_err_42.txt' missing from stdout/stderr 2023-04-21 02:01:51 +02:00
Maxim Kartashev
ba1ca53131 JBR-5483 MacOSXWatchService assumes that the default file system is the UnixFileSystem, which might not be the case 2023-04-21 02:01:51 +02:00
Sergey Shelomentsev
dce3ce2ff5 JBR-5441 fix wait for idle 2023-04-21 02:01:51 +02:00
Maxim Kartashev
2d98d3698c jb/branchdiff.py to warn if it can't differentiate between commits 2023-04-21 02:01:51 +02:00
Sergey Shelomentsev
3d410744d2 JBR-5440 fix calculations for double click location 2023-04-21 02:01:51 +02:00
Maxim Kartashev
557aa733e6 JBR-5431 Include memory used by JNI references into crash reports 2023-04-21 02:01:51 +02:00
Nikita Gubarkov
7c96951389 JBR-5274 recreate CGraphicsDevice if it was changed.
- AWT code heavily relies on reference comparison when updating graphics devices & configurations, so we need to actually re-create CGraphicsDevice if it was changed.

- Also do not rely on graphicsConfig.getDefaultTransform() when firing `graphicsContextScaleTransform` property change, as graphics devices are mutable and returned default transform may change over time, e.g. when device is invalidated.
2023-04-21 02:01:51 +02:00
Artem Bochkarev
14b2d947de JBR-5426 write JCEF version info inside release file 2023-04-21 02:01:51 +02:00
Maxim Kartashev
d83e455aab JBR-5445 JBRApiTest test fails on development builds 2023-04-21 02:01:51 +02:00
ngubarkov
953f421199 JBR-5438 Fix window bounds in XWM#setShellResizable 2023-04-21 02:01:51 +02:00
Maxim Kartashev
9778255d6a JBR-5084 Add ability to log additional data to jstack output
The data can be provided via this JBR API call:
JBR.getJstack().includeInfoFrom(Supplier<String>)
2023-04-21 02:01:51 +02:00
Sergey Shelomentsev
6d7cef6cb1 JBR-5433 add typing latency text for JTextArea 2023-04-21 02:01:51 +02:00
ngubarkov
27b2b20362 JBR-5240 Fix XToolkit#getScreenInsets in Xinerama mode. 2023-04-21 02:01:51 +02:00
ngubarkov
b98d7296dd JBR-5265 Workaround incorrect position of content window in queryXLocation. 2023-04-21 02:01:50 +02:00
Vitaly Provodin
249ed1677e JBR-5432 increase setAutoDelay for Robot 2023-04-21 02:01:50 +02:00
Maxim Kartashev
98c0e3dc32 JBR-5230 Wanted: an ability to use Unix Domain sockets with overridden default NIO file system 2023-04-21 02:01:50 +02:00
ngubarkov
44a87607db JBR-5316 Fix fractional scaling HIDPI. 2023-04-21 02:01:50 +02:00
Sergey Shelomentsev
54aad88b5a fixup! JBR-4875 set proper OS to run ComboBoxTransparentTittleBarTest 2023-04-21 02:01:50 +02:00
ngubarkov
99f4b08f1c JBR-5417 Fix flickering in multi-monitor setups on Linux. 2023-04-21 02:01:50 +02:00
Sergey Shelomentsev
ea56565983 fix controls width calculation 2023-04-21 02:01:50 +02:00
Sergey Shelomentsev
914c85ec30 split ActionListenerTest 2023-04-21 02:01:50 +02:00
Sergey Shelomentsev
afad5e8bc9 JBR-5345 native controls detection and scale fixes 2023-04-21 02:01:50 +02:00
Maxim Kartashev
f6c2e2558f README.md: spelled out JBR distinctive features 2023-04-21 02:01:50 +02:00
Vitaly Provodin
0988bc7494 update exclude list on results of 21_b28.1 test runs 2023-04-21 02:01:50 +02:00
Alexey Ushakov
a77acd4c33 JBR-5330 Blank Welcome screen after moving to another display
Initialize currentDisplayID on AWTWindow creation
2023-04-21 02:01:50 +02:00
Nikita Gubarkov
03f2ae7cd5 Added Clion project setup 2023-04-21 02:01:50 +02:00
Nikita Gubarkov
2e6e6b8c8c Updated IDEA project setup 2023-04-21 02:01:50 +02:00
Nikita Tsarev
273f0eaa6f JBR-5369: Update failing tests list in response to macOS keyboard support rewrite 2023-04-21 02:01:50 +02:00
Nikita Tsarev
56915cd94f JBR-5295: Fix wrong keycodes for non-letter keys that lack a corresponding VK_ constant on macOS 2023-04-21 02:01:49 +02:00
Vitaly Provodin
e38caca640 Update README.md 2023-04-21 02:01:49 +02:00
Vitaly Provodin
ce2b476853 update exclude list on results of 21_b24.2 test runs 2023-04-21 02:01:49 +02:00
Sergey Shelomentsev
2b3d692877 Don't trigger workflow on push 2023-04-21 02:01:49 +02:00
Vitaly Provodin
4967fc1a84 Update README.md 2023-04-21 02:01:49 +02:00
Sergey Shelomentsev
9bf56e1563 JBR-5350 Separate test for Mac OS 2023-04-21 02:01:49 +02:00
Sergey Shelomentsev
0ef45571bf JBR-5318 add Github workflow usage for pull requests pre-commit testing 2023-04-21 02:01:49 +02:00
Sergey Shelomentsev
0f05382e44 JBR-5346 run MaximizedCustomDecorationsTest on windows/mac only 2023-04-21 02:01:49 +02:00
Sergey Shelomentsev
1befce48cd JBR-5350 fix FrameNativeControlTest checks on MacOS 2023-04-21 02:01:49 +02:00
Sergey Shelomentsev
b3ea9b844b JBR-5344 fix incorrectly specified VM options 2023-04-21 02:01:49 +02:00
Vitaly Provodin
16285fd1d9 Update README.md 2023-04-21 02:01:49 +02:00
Vitaly Provodin
0519a4128d update exclude list on results of 17.0.6_b855.1 test runs 2023-04-21 02:01:49 +02:00
Sergey Shelomentsev
d99e1c9253 JBR-5313 fix broken custom decoration tests on Windows 2023-04-21 02:01:49 +02:00
Sergey Shelomentsev
6a1def5f06 JBR-5253 Use new JBR API for custom decorations 2023-04-21 02:01:49 +02:00
Vitaly Provodin
6239b387ae JBR-5300 move jbr-api.jar into test artefact 2023-04-21 02:01:48 +02:00
Vitaly Provodin
7e3ee9e331 update exclude list on results of 17.0.6_b837.3 test runs 2023-04-21 02:01:48 +02:00
Maxim Kartashev
e6b08bf45c JBR-4544 Enable OpenGL pipeline by default for Wayland sessions
The OpenGL pipeline is enabled only if all of the following is true:
- WAYLAND is detected,
- VMWare virtualization is detected,
- rendering pipeline is not a software one (llvmpipe).
As a side effect, a system property 'jbr.virtualization.information'
is set to the value of detected virtualization type. The value is the
same as provided by JFR.
2023-04-21 02:01:48 +02:00
Dmitry Batrak
d7f7c0dbbe JBR-5300 Change source code and test files to use GPL license
fix copyright profile in generated IDE project

(cherry picked from commit 43ebbe3cd1)
2023-04-21 02:01:48 +02:00
Maxim Kartashev
f47c179a22 JBR-3323 Exclude parts of VM code from sanitizer checks
Exclude VM error-reporting code that treats memory as a raw sequence of
bytes from address sanitizer checks. This is needed to only get true
reports when running tests against the --enable-asan build.
2023-04-21 02:01:48 +02:00
Sergey Shelomentsev
0f2a3ae4d2 set version for building jbr-api 2023-04-21 02:01:48 +02:00
Sergey Shelomentsev
fab9f657e8 get rid of build-jbr-api scripts 2023-04-21 02:01:48 +02:00
Vitaly Provodin
b62c75da0b clean up exclude lists 2023-04-21 02:01:48 +02:00
Sergey Shelomentsev
645aefae70 JBR-5194 add regressions tests for custom decorations support
with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:48 +02:00
Sergey Shelomentsev
f57e6c8697 build jbr-api as a part of bundle build 2023-04-21 02:01:48 +02:00
Vitaly Provodin
59f2f61d90 Update README.md 2023-04-21 02:01:48 +02:00
Vitaly Provodin
a0159db94f Update README.md 2023-04-21 02:01:48 +02:00
Artem Semenov
6e1636d2f4 JBR-5289 If the label has the role of a hyperlink, VO still pronounces it as plain text (#215) 2023-04-21 02:01:47 +02:00
Alexey Ushakov
0b7ae6a82e JBR-5279 restore saving jbr native symbols bin/server/jvm.pdb 2023-04-21 02:01:47 +02:00
Sergey Shelomentsev
b869e0e574 JBR-4875 update test to use new JBR API window custom decorations 2023-04-21 02:01:47 +02:00
Nikita Gubarkov
fcd069244b JBR-5186 Make MouseInfo.getPointerInfo more robust
Do not search for the containing monitor in MouseInfo.getPointerInfo, this must be handled by peers (yes, this goes against the spec of MouseInfoPeer.fillPointWithCoords).

JBR-5268 Fix coordinates conversion in XMouseInfoPeer.fillPointWithCoords
2023-04-21 02:01:47 +02:00
Vitaly Provodin
a0d8082592 Update README.md 2023-04-21 02:01:47 +02:00
Nikita Tsarev
93d1e801ab JBR-5254: Fix Caps Lock not working properly on certain Chinese IMs
with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:47 +02:00
Nikita Tsarev
fcac531d26 Revert "8230926: [macosx] Two apostrophes are entered instead of one with "U.S. International - PC" layout"
This reverts commit 5049cad2b0.

After JBR-5173 this workaround is no longer necessary
2023-04-21 02:01:47 +02:00
Artem Semenov
76f796d4f2 JBR-5269 Announcement priorities not set correctly (#214) 2023-04-21 02:01:47 +02:00
Nikita Tsarev
a07eed8937 JBR-5233 Setup/teardown necessary keyboard layouts in macOS keyboard tests 2023-04-21 02:01:47 +02:00
Vitaly Provodin
b82f0a934f Update README.md 2023-04-21 02:01:47 +02:00
Artem Semenov
d641541d28 JBR-5248 exception in accessible announcing 2023-04-21 02:01:47 +02:00
Vitaly Provodin
558ed60190 update exclude list on results of 21_b9 test runs 2023-04-21 02:01:47 +02:00
Vitaly Provodin
754fe77545 JBR-5217 enable NVDA support in Windows builds 2023-04-21 02:01:47 +02:00
Nikita Gubarkov
ecae9ceac0 JBR-5124 Rewrite custom decorations support
JBR API v0.0.8
Added new WindowDecorations API, deprecated old CustomWindowDecoration.

JBR-4641 JBR-4630 Fix client area calculation with custom decorations on Windows.

- Window insets are rounded up, which causes visible & unusable border in fullscreen on some scales, round down instead.

- Clipping in Swing components sometimes cuts what it shouldn't, fixed.
2023-04-21 02:01:47 +02:00
Nikita Tsarev
0744d5c3ca JBR-5173 macOS keyboard support rewrite
with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:47 +02:00
Nikita Tsarev
cb7f035088 Revert "macOS national keyboard support"
This reverts commit 21bffd06bc.
2023-04-21 02:01:46 +02:00
Vitaly Provodin
fdbac3eaf4 Update README.md 2023-04-21 02:01:46 +02:00
AMPivovarov
37502a7119 JBR-5213 JBR API v0.0.9 - add GraphicsUtils (#208)
* relax type constraints in BltBufferStrategy.getDrawGraphics
2023-04-21 02:01:46 +02:00
Artem Semenov
2649b80138 JBR-5221 Add announcing to JBRAPI 2023-04-21 02:01:46 +02:00
Vitaly Provodin
5d1ed7183d update exclude list on results of 21_b8 test runs 2023-04-21 02:01:46 +02:00
Artem Semenov
a8954c71e0 JBR-4170 Implement API for announcing 2023-04-21 02:01:46 +02:00
Vitaly Provodin
8a04ef9f3e update exclude list on results of 21_b7 test runs 2023-04-21 02:01:46 +02:00
Vitaly Provodin
f145c515f5 update exclude list on results of stability checking runs due to 8253184 2023-04-21 02:01:46 +02:00
Artem Bochkarev
5ead6d1b66 JBR-3575 use flag processEvents in LWCToolkit.invokeAndWait 2023-04-21 02:01:46 +02:00
Vitaly Provodin
1cb3138ec9 exclude several tests from runs on machines with enabled VoiceOver 2023-04-21 02:01:46 +02:00
Anton Tarasov
e37dd90849 JBR-4355 javax/swing/GraphicsConfigNotifier/StalePreferredSize.java: # C [libobjc.A.dylib+0x90ff] objc_release+0x1f
(cherry picked from commit c0b2b59d4a)
2023-04-21 02:01:46 +02:00
Anton Tarasov
8e03165121 JBR-4362 [mac] system menu opens with duplicated items
(cherry picked from commit e32defe49d)
2023-04-21 02:01:46 +02:00
Anton Tarasov
de6217ea60 JBR-4328 remove LWCToolkit.unsafeNonblockingExecute
(cherry picked from commit 9a3f31a6c4)
2023-04-21 02:01:46 +02:00
Anton Tarasov
77e132591b JBR-4134 PyCharm is slow and unusable on MacBook Pro with M1
(cherry picked from commit 36190505f5)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:46 +02:00
Anton Tarasov
439dd2c26c JBR-4284 Sub items of main menu options are not displayed
A regression of JBR-4208 LWCToolkit.invokeAndWait should not stuck on invocation loss

(cherry picked from commit c464e4748e)
2023-04-21 02:01:46 +02:00
Anton Tarasov
b81b2a5820 JBR-4119 UI freezes at sun.lwawt.macosx.CAccessibility.getChildrenAndRoles
(cherry picked from commit 6ba79774d8)
2023-04-21 02:01:45 +02:00
Anton Tarasov
8348502d62 JBR-4106 PyCharm hangs with 100% CPU usage on one core
with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:45 +02:00
Anton Tarasov
3957725c93 JBR-4208 LWCToolkit.invokeAndWait should not stuck on invocation loss
including JBR-4543 (NPE: IdeEventQueue.lambda$getNextEvent$0)
2023-04-21 02:01:45 +02:00
Anton Tarasov
6a629f94ea JBR-3413 use timeout in CAccessibility.invokeAndWait
(cherry picked from commit e7009db076)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:45 +02:00
Vitaly Provodin
15fd96a97d update exclude list on results of 21_b1447 test runs 2023-04-21 02:01:45 +02:00
Vitaly Provodin
aa87f36869 Update README.md 2023-04-21 02:01:45 +02:00
Vitaly Provodin
e2a91066af update exclude list on results of main.1441 test runs 2023-04-21 02:01:45 +02:00
Alexey Ushakov
ed575696c6 JBR-5112 Large bold square whitespaces after waking up the laptop / connecting display
Clear primary surface data of VolatileSurfaceManager on display change event
2023-04-21 02:01:45 +02:00
Artem Semenov
f1d4bd9978 JBR-5118 VoiceOver does not speak the label associated with the combobox (#194)
JBR-5118 VoiceOver does not speak the label associated with the combobox
2023-04-21 02:01:45 +02:00
Artem Semenov
e7fdb3cd08 JBR-4235 Context menu not readable after opening on Mac OS 2023-04-21 02:01:45 +02:00
Artem Semenov
19d0c67a3e JBR-4012 On Idea Vo often speeks selected element of tables, lists, and trees. 2023-04-21 02:01:45 +02:00
Artem Semenov
e4cf79711f JBR-3868 Combobox list is not voiced of VoiceOver 2023-04-21 02:01:45 +02:00
Alexey Ushakov
e1a80c341f JBR-5041 macOS: SIGSEGV at [libawt_lwawt] getRenderEncoder:(dstOps == NULL)
Protected code from using NULL dstOps
2023-04-21 02:01:45 +02:00
Alexey Ushakov
520a916c0f JBR-4856 macOS: SIGSEGV at [libawt_lwawt] MTLTR_DrawGlyphList
Clear glyph caches after switching contexts. Keep encoders in sync with graphics devices. Minor refactoring
2023-04-21 02:01:45 +02:00
Nikita Provotorov
63de74ac46 JBR-5107, JBR-5114: SIGILL/OOM from Java_sun_lwawt_macosx_LWCToolkit_getKeyboardLayoutNativeId.
A theoretical fix, it should:
- Catch any NSException (as it was initially expected);
- Probably fix possible memory leaks (by moving the layoutId var inside autoreleasepool).
2023-04-21 02:01:45 +02:00
Dmitry Batrak
e95066f366 JBR-5109 New frame doesn't get focused sometimes if it's shown right after popup is closed
(cherry picked from commit 693d317c0c)
2023-04-21 02:01:45 +02:00
Vitaly Provodin
2fd42ff114 Update README.md 2023-04-21 02:01:44 +02:00
Alexey Ushakov
07b11b0d3f JBR-4959 [macOS Ventura] Screen flickering after OS update when IDE is full screen
Do not fire deliverChangeBackingProperties notification for the view if there is no change between layer and window scales. Also, do not fire displayChanged for display profile only changes.
2023-04-21 02:01:44 +02:00
Nikita Provotorov
78ab0fef6c JBR-5075: macOS: KEY_PRESSED event for "Cmd N" is not emitted if used as a JMenuItem accelerator and apple.laf.useScreenMenuBar=true.
- Improves the fix of JBR-3544 to allow "Cmd N" and "Ctrl N" to reach AWT if they're actually the ones which were pressed.
- Adds a regression test.

(cherry picked from commit 61a1b70d73)
2023-04-21 02:01:44 +02:00
Dmitry Batrak
822eabe867 JBR-5095 Incorrect initial window's location under GNOME
(cherry picked from commit 6995ce47fd)

with fix for JBR-5189 Can't exit fullscreen mode on ubuntu 22.10

(cherry picked from commit b933660cf1)
2023-04-21 02:01:44 +02:00
Victor Kropp
2331834953 Update README.md
Mention Toolbox App in the list of applications built on JetBrains Runtime.

(cherry picked from commit cfa9789515)
2023-04-21 02:01:44 +02:00
Nikita Provotorov
642d87bbfa Update README.md
Replaced jbr-dev to main and other minor fixes.
2023-04-21 02:01:44 +02:00
Vitaly Provodin
059b0cfbb9 update exclude list on results of 17.0.5_b721.3 test runs 2023-04-21 02:01:44 +02:00
Alexey Ushakov
86bf9a5ae7 JBR-5073 [Double-Monitor] java/awt/Window/LocationAtScreenCorner/LocationAtScreenCorner.java: Wrong location
Added check for nil displayID of the window
2023-04-21 02:01:44 +02:00
Nikita Tsarev
18f4f14f21 JBR-4990: Undo changes to ExtendedKeyCodes 2023-04-21 02:01:44 +02:00
Vitaly Provodin
2170568b65 update exclude list on results of 17.0.5_b712.2 test runs 2023-04-21 02:01:44 +02:00
Vitaly Provodin
d851bd45f8 JBR-4956 reduce width of screenshot by one pixel to exclude caret 2023-04-21 02:01:44 +02:00
ngubarkov
85ad6b2aaa IDEA-141456 Multimonitor HIDPI support for Linux 2023-04-21 02:01:44 +02:00
ngubarkov
4b5c3f3b20 JBR-4840 cache screen resolution in XToolkit 2023-04-21 02:01:44 +02:00
Vitaly Provodin
a8453cfba8 JBR-5058 set default locale as UK for RenderPerf 2023-04-21 02:01:44 +02:00
Alexey Ushakov
90c4736eed JBR-4959 [macOS Ventura] Screen flickering after OS update when IDE is full screen
Moving NSWindowDidChangeScreenNotification handler to AWTWindow

fixup! JBR-4959 [macOS Ventura] Screen flickering after OS update when IDE is full screen
2023-04-21 02:01:44 +02:00
Dmitry Batrak
48c5b44bbb JBR-5045 Invisible component can break focus cycle
(cherry picked from commit 0f57a27879)
2023-04-21 02:01:43 +02:00
Alexey Ushakov
1d2678b661 JBR-5025 Reduce latency during display reconfiguration in Metal
Moved metal load library checks to CGraphicsEnvironment
2023-04-21 02:01:43 +02:00
Nikita Tsarev
e94af4cdf1 JBR-3860: Fix shortcut behavior when Shift is the only modifier 2023-04-21 02:01:43 +02:00
Vitaly Provodin
3a7614e32f Update README.md 2023-04-21 02:01:43 +02:00
Vitaly Provodin
788526432d Update README.md 2023-04-21 02:01:43 +02:00
Vitaly Provodin
d8ed1504ad update exclude list on results of 17.0.5_b691.6 test runs 2023-04-21 02:01:43 +02:00
Vitaly Provodin
815429c6aa Update README.md 2023-04-21 02:01:43 +02:00
Nikita Tsarev
592098f414 JBR-4990: Fix regression tests for national keyboard layouts on macOS 2023-04-21 02:01:43 +02:00
Alexey Ushakov
21f70bce22 JBR-4959 [macOS Ventura] Screen flickering after OS update when IDE is full screen
Replace multiple CHANGE_SCREEN notifications fired around the same time with just one
2023-04-21 02:01:43 +02:00
Dmitry Batrak
60c08e76ac JBR-4988 Transient Z-order violations on macOS
(cherry picked from commit bcba97511c)
2023-04-21 02:01:43 +02:00
Maxim Kartashev
43c4221ddf JBR-4982 keycode_cache.c:60:37: error: format '%d' expects argument of type 'int', but argument 3 has type 'KeySym' 2023-04-21 02:01:43 +02:00
Vitaly Provodin
c57cc8b591 JBR-4947 update alpine x64 image up to 3.14 2023-04-21 02:01:43 +02:00
Vitaly Provodin
3b14e94d44 update exclude list on results of 17.0.5_b469.67 test runs 2023-04-21 02:01:43 +02:00
Vitaly Provodin
5bbc014f66 Update README.md 2023-04-21 02:01:43 +02:00
Alexey Ushakov
89ee3aa0e9 JBR-4950 src\java.desktop\windows\native\libawt\windows\awt_FileDialog.cpp: warning C4267: '+=': conversion from 'size_t' to 'UINT', possible loss of data
Added casts to resolve warnings
2023-04-21 02:01:43 +02:00
Vitaly Provodin
f3c884afbb update Commit and Full testing exclude list on results of jbr17.668 test runs 2023-04-21 02:01:42 +02:00
Maxim Kartashev
93c5ba4ab7 JBR-4951 In function 'convert_to_java_array': error: comparison of integer expressions of different signedness 2023-04-21 02:01:42 +02:00
Alexey Ushakov
bae8b2e5dc JBR-4859 jbr17: compiler warnings with Xcode 14.0.1 (14A400)
Disabled warnings for liblcms and liblwawt
2023-04-21 02:01:42 +02:00
Vitaly Provodin
8e8203e045 JBR-4089 add modules sun.awt sun.awt.image sun.java2d 2023-04-21 02:01:42 +02:00
Vitaly Provodin
4e00bd32b2 update exclude list for Commit testing 2023-04-21 02:01:42 +02:00
Vitaly Provodin
a5ac7760b5 exclude tests failing because of JBR-4933, JBR-4934 2023-04-21 02:01:42 +02:00
Alexey Ushakov
dde809521e JBR-4666 java.lang.InternalError: Error - unable to initialize Metal after recreation of graphics device.
Reverted fix of the JRE-359 (CGraphicsEnvironment.getDefaultScreenDevice() returns null)
Logged exception after first attempt to create graphics device
2023-04-21 02:01:42 +02:00
Alexey Ushakov
d2160a21fd JBR-4731 SIGILL caused by NPE Cannot invoke "java.awt.GraphicsConfiguration.getDevice()" because "config" is null
Handled null device in platform window
2023-04-21 02:01:42 +02:00
Maxim Kartashev
6a1373169c Move JBR README.md to .github/ 2023-04-21 02:01:42 +02:00
Svyatoslav Vlasov
347487dab5 Add ProjectorUtils to jbr-api (#181)
* Add ProjectorUtils to jbr-api

Co-authored-by: Sviatoslav Vlasov <Sviatoslav.Vlasov@jetbrains.com>
2023-04-21 02:01:42 +02:00
Nikita Tsarev
b120187c0d JBR-3941 Make apple.awt.captureNextAppWinKey default to false 2023-04-21 02:01:42 +02:00
Vitaly Provodin
69f5d67bbd JBR-4912 jb/java/api/frontend/CustomTitleBarDoubleClick.java intermittently throws java.awt.AWTError 2023-04-21 02:01:42 +02:00
Maxim Kartashev
36395bba22 exclude java/awt/dnd/AcceptDropMultipleTimes/AcceptDropMultipleTimes.java due to JBR-4880 on windows 2023-04-21 02:01:42 +02:00
Alexey Ushakov
115ba1189d JBR-4710 macOS: SIGSEGV at sun.java2d.metal.MTLLayer.blitTexture
Added check for disposed texture in the MTLLayer
2023-04-21 02:01:42 +02:00
Nikita Gubarkov
5039622eab JBR-4890 Fix variation selectors font fallback on macOS
If font for a given variation selector not found, try without variation selector
2023-04-21 02:01:42 +02:00
Artem Bochkarev
b3d7d33b18 JBR-4907 remove custom view for osx system menu items
Just revert "JBR-3131: support custom view for system menu items"
2023-04-21 02:01:42 +02:00
Vitaly Provodin
a381da11d2 exclude java/awt/FullScreen/AltTabCrashTest/AltTabCrashTest.java due to JBR-4905 on windows&linux 2023-04-21 02:01:41 +02:00
Alexey Ushakov
9d96a76f12 JBR-4897 Reconnecting multiscreen monitor displays blank IDE
Handled NSWindowDidChangeScreenNotification, resolved race condition in window peer displayChanged listener
2023-04-21 02:01:41 +02:00
Vitaly Provodin
1888dfe887 exclude jb/java/jcef/HandleJSQueryTest3314.sh due to JBR-4866 on linux 2023-04-21 02:01:41 +02:00
Vitaly Provodin
d236b5de9d exclude some tests due to JBR-4880 on windows 2023-04-21 02:01:41 +02:00
Vitaly Provodin
7e1e658775 exclude javax/swing/JInternalFrame/8020708/bug8020708.java due to JBR-4879 on windows 2023-04-21 02:01:41 +02:00
Vitaly Provodin
92c73c7e68 exclude java/awt tests which do not close child processes/windows 2023-04-21 02:01:41 +02:00
Vitaly Provodin
d3dd702796 exclude java/awt/FullScreen/NoResizeEventOnDMChangeTest/NoResizeEventOnDMChangeTest.java and java/awt/FullScreen/UninitializedDisplayModeChangeTest/UninitializedDisplayModeChangeTest.java due to 7188711 on linux-all
j
2023-04-21 02:01:41 +02:00
Maxim Kartashev
9f3540ff0a JBR-4877 WARNING: JNI local refs: 33, exceeds capacity: 32 2023-04-21 02:01:41 +02:00
Artem Bochkarev
cdc0b1a2e1 JBR-4876 remove test duplicates
Since next jcef tests were moved into junit suite (inside jcef repository):
 HandleJSQueryTest
 JCEFStartupTest
 LoadPageWithoutUI
 MouseEventAfterHideAndShowBrowserTest
 MouseEventScenario
 MouseEventTest
2023-04-21 02:01:41 +02:00
Vitaly Provodin
e8624ec567 JBR-4875 jb/javax/swing/JComboBox/ComboBoxTransparentTittleBarTest.java checks dragging JFrame with Combobox 2023-04-21 02:01:41 +02:00
Dmitry Batrak
e0fde64a31 JBR-4871 Closed project leaked via KeyboardFocusManager#newFocusOwner
(cherry picked from commit 50c0ce58d3)
2023-04-21 02:01:41 +02:00
Maxim Kartashev
fdc2f8a8eb JBR-4839 Report if wrong shared library is detected at run time 2023-04-21 02:01:41 +02:00
Maxim Kartashev
bb9360b6d6 JBR-4848 Cannot invoke "javax.swing.JTextField.getCaret()" because the return value of "java.lang.ref.WeakReference.get()" is null 2023-04-21 02:01:41 +02:00
Alexey Ushakov
6280c802da JBR-4590 macOS: SIGSEGV at [libawt_lwawt] MTLTR_DrawGlyphList
Invalidate glyph cache cell info after switching MTLContext
2023-04-21 02:01:41 +02:00
Nikita Gubarkov
eec3800a8b JBR-4815 force hinting for non-antialiased text 2023-04-21 02:01:41 +02:00
Maxim Kartashev
42d016b9a7 jb/branchdiff.py script to help with release branches 2023-04-21 02:01:40 +02:00
Nikita Gubarkov
6f3dcabdfb JBR-3677 check AppleActionOnDoubleClick property for custom window decorations on macOS
with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:40 +02:00
Alexander Lobas
9f84dc40c3 JBR-4787 Rounded corners for native windows
with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:40 +02:00
Vitaly Provodin
55f620698d updated JTreg exclude list 2023-04-21 02:01:40 +02:00
Maxim Kartashev
4c7d3f6be5 JBR-3862 Implement native WatchService on MacOS
The watch service is based on FSEvents API that notifies about file
system changes at a directory level. It is possible to go back to
using the old polling watch service with -Dwatch.service.polling=true.

Features include:
- support for FILE_TREE option (recursive directory watching),
- minimum necessary I/O (no filesystem access more than once
  unless needed),
- one thread ("run loop") per WatchService instance,
- changes are detected by comparing file modification times with
  millisecond precision,
- a directory tree snapshot is taken at the time of WatchKey creation
  and can take a long time (proportional to the number of files).
2023-04-21 02:01:40 +02:00
Alexey Ushakov
43322afda7 JBR-4696 macOS: NPE in -[AWTView viewDidChangeBackingProperties]
Added null pointer checks
2023-04-21 02:01:40 +02:00
MonoBot
a3914dc9d1 JBR-4809 Update the bundled JetBrains Mono font version
Fonts release 2.242

(cherry picked from commit 641424a3e3)
2023-04-21 02:01:40 +02:00
Alexey Ushakov
de632c0ca6 JBR-4680 idea window flickers while changing the screen brightness
Update insets in separate notification
2023-04-21 02:01:40 +02:00
Maxim Kartashev
b4c37b201c JBR-4562 JBR-4610 Generate hs_err file on SIGABRT
Supported on Linux and MacOS only.
Controlled by -Djbr.catch.SIGABRT=true option; off by default.

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:40 +02:00
Alexey Ushakov
341e2c4dc3 JBR-4807 RenderPerf: Provide tests for VolatileImage rendering
Added VolImage and VolImageAA test cases
2023-04-21 02:01:40 +02:00
Maxim Kartashev
8af7b721b7 JBR-4626 MacOS aarch64: SIGSEGV at RenderCache.get / ScaledBlit.getFromCache
Avoid C2-compiled loop crashes by replacing the handcrafted MRU cache
with a more modern LinkedHashMap-based one.
2023-04-21 02:01:40 +02:00
Alexey Ushakov
732c6528fb JBR-4588 macOS: SIGILL at [libsystem_kernel] __kill in CCE: class sun.java2d.opengl.CGLGraphicsConfig cannot be cast to class sun.java2d.metal.MTLGraphicsConfig
Moved tryLoadMetalLibrary under RQ lock.
Added more diagnostics.
2023-04-21 02:01:40 +02:00
Nikita Gubarkov
ddc2bc7416 Allow registering multiple implementations for JBR API services
This greatly reduces boilerplate when dealing with platform-specific code, one can specify multiple target implementation classes, one per platform. First found will be used.

Also added JBRApi.ServiceNotAvailableException to give services ability to validate any custom condition they want.
2023-04-21 02:01:40 +02:00
Denis Fokin
089ed86b20 JBR-4788 "Activate window by mouse hover" Windows option isn't supported by JBR 17
backport JBR-1991 (Focus problems in Windows with X-Mouse style focus) from JBR 11

(cherry picked from commit c8ad353f45)
(cherry picked from commit a52ed88377)
2023-04-21 02:01:40 +02:00
Alexey Ushakov
ffa4e93903 JBR-4784 Extra allocations of MTLRenderPipelineDescriptor affects performance in metal pipeline
Remove extra allocations
2023-04-21 02:01:40 +02:00
Alexey Ushakov
6bda8d4ffb JBR-4774 macOS: SIGILL at [libsystem_kernel] __kill in NPE / VolatileSurfaceManager.displayChanged / __displaycb_handle_block_invoke
Guarded against multiple displayChanged() notifications
2023-04-21 02:01:39 +02:00
Dmitry Batrak
916a71d294 JBR-4782 Synergy keyboard/mouse input: window disabled after bringing IntelliJ into focus
(cherry picked from commit f863a14b19)
2023-04-21 02:01:39 +02:00
Alexey Ushakov
d7b9ef00c6 JBR-4363 Changes in fonts rendering between JBR11 and JBR17
Do not use hinting for generating outlines
2023-04-21 02:01:39 +02:00
Alexey Ushakov
bda841dad2 JBR-3100 Exception in NSApplicationAWT: java.lang.NullPointerException at java.desktop/sun.lwawt.LWComponentPeer.windowToLocal
Added null check
2023-04-21 02:01:39 +02:00
Alexey Ushakov
f54825d158 JBR-4774 macOS: SIGILL at [libsystem_kernel] __kill in NPE / VolatileSurfaceManager.displayChanged / __displaycb_handle_block_invoke
Added null check
2023-04-21 02:01:39 +02:00
Alexey Ushakov
e309e1f677 JBR-3102 Exception in NSApplicationAWT: Invalid parameter not satisfying: !isnan(newOrigin.y)
Handled NAN values with some defaults
2023-04-21 02:01:39 +02:00
Vladislav Rassokhin
d311c917bd JBR-4263 Improve check_jbr_size.sh
* Fix shellcheck inspections
* Don't silently fail if TOKEN is incorrect
2023-04-21 02:01:39 +02:00
Alexey Ushakov
9561833a5b JBR-4764 RenderPerfTest: provide more reliable data and convenient representation
Added the median instead of the mean (can be enabled using -DuseMean=true)
Provided sorted output and removed FPS suffix
2023-04-21 02:01:39 +02:00
Maxim Kartashev
27e70c1284 JBR API v0.0.4
JBR-4746 Added jetbrains.api.verifyBytecode VM option for generated bytecode verification

JBR-4753 Added JBR API for custom desktop actions

Added jetbrains.api.verbose system property for easier JBR API troubleshooting

Also fixed dependency scanning optimization by allowing search in known proxy interfaces outside com.jetbrains

JBR-3511 Way to customize implementation of java.awt.Desktop.browse()

Provided Desktop.setDesktopActionsHandler() and DesktopActionsHandler
interface, which methods will be invoked instead of the standard actions
provided that DesktopActionsHandler.isSupported() is true for the
corresponding action.
2023-04-21 02:01:39 +02:00
Maxim Kartashev
a0e62955cf JBR-3101 Exception in NSApplicationAWT: java.lang.NullPointerException at java.desktop/sun.lwawt.macosx.CPlatformComponent.setBounds
After CPlatformComponent.setBounds() was changed to allow for platformWindow.getPeer() == null, a few exceptions appeared that suggest platformWindow can also be null. This commit safeguards against this situation as well.

It seems that this can only be the case if the instance is created from outside of JDK, so Objects.requireNonNull() may help to catch the perpetrator.
2023-04-21 02:01:39 +02:00
Dmitry Batrak
f628a42cfc JBR-4720 Focus state is broken after certain operations when VoiceOver is enabled
(cherry picked from commit dc1b49b5a6)
2023-04-21 02:01:39 +02:00
Dmitry Batrak
b0caee161f JBR-4673 Focus moves to another application on file dialog closing
(cherry picked from commit 7468974488)
2023-04-21 02:01:39 +02:00
Dmitry Batrak
c888dbcb77 JBR-4665 Focus 'jitter' on window showing in WSLg
(cherry picked from commit 9b32c2a577)
2023-04-21 02:01:39 +02:00
Nikita Gubarkov
3ed20911b3 JBR-2523 JBR-2917 Fix emoji, ZWJ and font fallback
Implement rendering of colored outlines and bitmap glyphs in OutlineTextRenderer
Add Segoe UI Emoji to font fallback on Windows
Require layout for some emoji-related unicodes
Fix variation selectors and ZWJ
2023-04-21 02:01:39 +02:00
Alexey Ushakov
44b1970bfd JBR-2210 IDEA fails to start (JVM crashes) when using the -Dfile.encoding=UTF-8in IDEA's vmoptions file
Returning devanagari subset back for ja.UTF-8 to get non-null font name from WFontConfiguration.getTextComponentFontName(). It is a regression from JDK-8208179.

(cherry picked from commit b51254a975)
2023-04-21 02:01:39 +02:00
Dmitry Batrak
12aee84873 JBR-1987 Korean/Thai characters not printed properly in annotation tooltip (e.g. spellchecker)
This changes the fonts JDK uses for font fallback on Windows. These used to be DokChampa (for Thai) and Batang/Gulim/Gulim (for Korean).
Those fonts are not available by default on Windows 10, user needs to install supplementary font language packs to get them.
Now the following fonts will be used - Tahoma (for Thai) and Malgun Gothic (for Korean). They are available by default
on Windows 7, 8 and 10.

port from JBR 11 to JBR 15 (cherry picked from commit 850653192b)

cherry picked from commit 2bf43a57ab

Kept only Thai-related changes - Korean-related issues are now fixed in OpenJDK as per JDK-8190907
2023-04-21 02:01:38 +02:00
artem.bochkarev
02fb44b1c4 JBR-4581 JCEF tests fail due to compilation errors
The problem was in commit "JBR-4512 windows: include pdb-files into jbrsdk": rsync can replace file lib/modules.
rsync is replaced with cp
2023-04-21 02:01:38 +02:00
Vitaly Provodin
d1b318934c exclude sun/java2d/DirectX/RenderingToCachedGraphicsTest/RenderingToCachedGraphicsTest.java on linux-all due to 8252812 2023-04-21 02:01:38 +02:00
Vitaly Provodin
64db6ecd7f exclude sanity/client/SwingSet/src/ColorChooserDemoTest.java on windows-all due to 8278582 2023-04-21 02:01:38 +02:00
Alexey Ushakov
989c2a4b67 JBR-4636 Some JWindow tests failed due to wrong scaling
Take into account custom scale via sun.java2d.uiScale
2023-04-21 02:01:38 +02:00
Nikita Gubarkov
f07e7ddfd8 8289189: Fix ./configure on WSL1 2023-04-21 02:01:38 +02:00
Alexey Ushakov
9c6c4293ae JBR-4619 Window content scale wrong after disconnecting external display / waking OS from sleep
Use viewDidChangeBackingProperties notification to adjust a window layer scale
2023-04-21 02:01:38 +02:00
Vitaly Provodin
1fc6b4bf05 exclude vmTestbase/vm/jit/LongTransitions due to 8271615 on macOS 2023-04-21 02:01:38 +02:00
Maxim Kartashev
4454b08644 JBR-4602 Unexpected NoSuchFileException running Rider test
This reverts commits for JBR-3680, JBR-4118, and JBR-4485.
2023-04-21 02:01:38 +02:00
Nikita Gubarkov
9d4047c1dc JBR-4373 Add mapping for .NewYork-* and .SFArabic-* system fonts 2023-04-21 02:01:38 +02:00
Alexander Lobas
3b776083a4 JBR-4563 Rounded corners for native Window on Mac OS (#156)
* JBR-4563 Rounded corners for native Window on Mac OS
2023-04-21 02:01:38 +02:00
Alexander Lobas
6801d9718b JBR-4563 Rounded corners for native Window on Mac OS 2023-04-21 02:01:38 +02:00
Alexander Lobas
22d1801368 JBR-4305 (#119)
* IDEA-283934 Top panel (toolbar, Editor tabs) hides under the Mac menu in full-screen mode

* IDEA-283934 Top panel (toolbar, Editor tabs) hides under the Mac menu in full-screen mode

* JBR-4305 IDEA-283934 Top panel (toolbar, Editor tabs) hides under the Mac menu in full-screen mode

* JBR-4305 IDEA-283934 Top panel (toolbar, Editor tabs) hides under the Mac menu in full-screen mode
2023-04-21 02:01:38 +02:00
Alexey Ushakov
9405dd4a8d JBR-4588 macOS: SIGILL at [libsystem_kernel] __kill in CCE: class sun.java2d.opengl.CGLGraphicsConfig cannot be cast to class sun.java2d.metal.MTLGraphicsConfig
Prevent fall back to OpenGL if Metal has been used before
2023-04-21 02:01:38 +02:00
Alexey Ushakov
fd303e7827 JBR-4591 macOS: SIGILL at [libsystem_kernel] __kill in -[__NSMallocBlock__ removeFromSuperview]: unrecognized selector sent to instance
Verified if windowDragView is present
2023-04-21 02:01:38 +02:00
Artem Bochkarev
33f7e4a526 JBR-4475: fixed browsers numeration in test
theoretically it can cause 2 requests with the same query_id: "cef_query_2" (when first browser finishes loading after the creation of second one)
2023-04-21 02:01:37 +02:00
Artem Bochkarev
68151e48c0 JBR-4456: fixed HandleJSQueryTest
first invocation of dispatch(WindowEvent.WINDOW_CLOSING) calls System.exit() internally (because of setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE))
2023-04-21 02:01:37 +02:00
Vitaly Provodin
5fea57fc5d exclude javax/swing/JToolBar/4529206/bug4529206.java due to 8288707 on linux 2023-04-21 02:01:37 +02:00
Vitaly Provodin
a4ec2932c5 enabling dtrace-tests: added dtrace keyword
(cherry picked from commit 0b5119ca89)
2023-04-21 02:01:37 +02:00
Maxim Kartashev
69b8b1d116 JBR-3101 Exception in NSApplicationAWT: java.lang.NullPointerException at java.desktop/sun.lwawt.macosx.CPlatformComponent.setBounds
CWarningWindow doesn't have a peer, so accomodated for that in
CPlatformComponent.setBounds().
2023-04-21 02:01:37 +02:00
Maxim Kartashev
5e4ec4906a JBR-4485 Windows: EXCEPTION_ACCESS_VIOLATION at sun.nio.fs.WindowsDirectoryStream$WindowsDirectoryIterator.readNextEntry
As a precaution, range-check the offset returned by WinAPI before
using it to read raw memory with Unsafe.
2023-04-21 02:01:37 +02:00
Vitaly Provodin
eca476c1f5 JBR-4570 improve synchronization and increase waiting time 2023-04-21 02:01:37 +02:00
Dmitry Batrak
989baf4b2a JBR-4552 Windows revert back after initial move/resize in Cygwin/X
(cherry picked from commit 6dc194e089)
2023-04-21 02:01:37 +02:00
Manuel Unterhofer
c20b56d39b FL-11598 Fix accidental reset of window configuration for custom decoration on macOS
This also aligns the handling of the style mask with how the other settings are applied: It uses a client property now. This property is now also applied directly on peer initialization so that there is no need to re-apply, and the window directly appears in the correct configuration.
2023-04-21 02:01:37 +02:00
Nikita Provotorov
c2e1e7a508 JBR-4394, IDEA-246833: refactoring and blocking the fix of JBR-1573 to recreate IMs and ICs during preediting.
(cherry picked from commits 7a36587db8d3d5a63c5691243cd5bf56733c06e6, 321a4a3f83)
2023-04-21 02:01:37 +02:00
Nikita Provotorov
3ffaae55b3 JBR-4394, IDEA-246833: fixup of JBR-2444.
(cherry picked from commit ef262dc8bb)
2023-04-21 02:01:37 +02:00
Dmitry Batrak
82105fc310 JBR-4537 Popup windows shown for a background window cause app icon to blink in taskbar on KDE 2023-04-21 02:01:37 +02:00
Dmitry Batrak
cc982db53a JBR-4535 Popup windows disappear on mouse hover when 'Focus strictly under mouse' policy is used in KDE 2023-04-21 02:01:37 +02:00
Alexey Ushakov
9f6e6acc74 JBR-3828 restore details for Java exceptions in crash dumps handled by ObjC
Added exception.toString() to jbr_err_* log

(cherry picked from commit 478bd6cdd7)

Added java stack of the exception to jbr_err_* log

(cherry picked from commit e97f728e93)

Also return the static string "OutOfMemoryError" in case of that
exception has been thrown in order to avoid crashing while reporting an
exception in an out-of-memory situation.
2023-04-21 02:01:37 +02:00
Vitaly Provodin
bbfbea6853 exclude jb/java/awt/Window/ZOrderOnModalDialogActivation.java from S2 runs on Windows and Linux 2023-04-21 02:01:37 +02:00
Vitaly Provodin
5215679c48 exclude javax/swing/plaf/nimbus/TestNimbusOverride.java on windows due to 8253184 2023-04-21 02:01:37 +02:00
Vitaly Provodin
87119cd9d0 exclude java/awt/Graphics2D/DrawString/DrawRotatedStringUsingRotatedFont.java on linux-aarch64 only due to 8266283 2023-04-21 02:01:36 +02:00
Artem Bochkarev
99255f5fd0 JBR-4473: fixed native part of SystemHotkeyReader 2023-04-21 02:01:36 +02:00
Dmitry Batrak
6ab2e74c54 JBR-1740 Menu remains open when application loses focus
(cherry picked from commit f987d22cd2)
2023-04-21 02:01:36 +02:00
Vitaly Provodin
2f390829af exclude Frame/RestoreToOppositeScreen/RestoreToOppositeScreen.java from S2 runs due to 8286840 2023-04-21 02:01:36 +02:00
Vitaly Provodin
6ea6ad2898 exclude java/awt/Mouse/GetMousePositionTest/GetMousePositionWithPopup.java due to 8282232 2023-04-21 02:01:36 +02:00
Maxim Kartashev
415d8c3678 JBR-4471 Linux: popup appears on wrong screen after desktop scale change
When screen scale changes, the cached screen bounds must be explicitly
updated. Call resetBoundsCache() whenever X11GraphicsDevice.scale has
changed.
2023-04-21 02:01:36 +02:00
Manuel Unterhofer
c9395a360a Merge fullscreen handlers for transparent title bar into existing ones 2023-04-21 02:01:36 +02:00
Manuel Unterhofer
9843ce342c FL-11420 Fix view hierarchy restoration for full-screen mode on macOS 2023-04-21 02:01:36 +02:00
Nikita Gubarkov
be9a8abe6e JBR-4364 Port macOS native file dialog patches
IDEA-146669 Enable Mac native file dialogs
IDEA-159507 Mac native dialogs: multiple open dialogs are possible
JBR-1784 File dialogs aren't themed on macOS
JBR-1752 Floating windows overlap modal dialogs
JBR-2005: don't set appearance of file chooser if OSX version < 10.14
JBR-4546 Focus is not returned back to IDE after closing "Open" dialog
2023-04-21 02:01:36 +02:00
Dmitry Batrak
48b8edd190 JBR-4463 Activating app-modal dialog brings all app windows to front
(cherry picked from commit 2b05925276)

includes fix for JBR-4642 regression: "focus follows mouse" broken for modals, I need to click into them

(cherry picked from commits c55bf03680, ec748f84fb)

includes fix for JBR-4957 regression: "Modal dialog is hidden by sibling popup on Linux"

(cherry picked from commit ea8da3cbe5)

includes fix for JBR-4968: jb/java/awt/Window/ModalDialogAndPopup.java intermittently fails by TimeoutException

(cherry picked from commit 2e9ab0cb06)
2023-04-21 02:01:36 +02:00
Maxim Kartashev
fb716e6add JBR-4464 Error building latest jbr-dev after JDK-8285730 2023-04-21 02:01:36 +02:00
Maxim Kartashev
cfd6f23a3e JBR-4118 NIO methods fail on Google Drive's virtual volume
If NtQueryDirectoryFile() failed with STATUS_INVALID_PARAMETER,
try again asking for less information with the FileDirectoryInformation
option as "information class". This option works on a mounted
Google Drive, but it doesn't provide file ids, which speed
up file listing. So it is used only as a fall-back solution.

(cherry picked from commit 82693aa985)
2023-04-21 02:01:36 +02:00
Maxim Kartashev
9359039d48 JBR-3680 Cherry-pick Google's NIO patches to get faster file listing
Fix regression introduced by Google's NIO patches:
- do not attempt to get the next entry after the directory stream has
been closed already,
- fix FaultyFileSystem that is used in StreamTest.java to throw
the right exception even when getFileAttributeView() is used instead of
readAttributes(),
- removed unnecessary type cast that caused a compilation warning.

Added a test for walking a directory with a non-latin name.

(cherry picked from commit 152a4e886d)
2023-04-21 02:01:36 +02:00
Renaud Paquay
7a04998393 JBR-3680 Improve performance of WindowsDirectoryStream
Use `NtQueryDirectoryInformation` instead of `FindFirst/FindNext` to
retrieve the list of entries of a directory.

`NtQueryDirectionInformation` has 2 main benefits over
`FindFist`/`FindNext`:

* Performance is about 40% faster

* Each retrieved entry retrieved contains a 64-bit `FileId` in addition
  to the usual attributes, ensuring that returned `java.nio.Path`
  instances hold onto a `BasicFileAttributes` instance that exposes a
  non-null `java.nio.file.attribute.BasicFileAttributes.fileKey()`.

This change also requires creating a new WindowsFileKey class, similar
to UnixFileKey class, so that
`java.nio.file.attribute.BasicFileAttributes.fileKey()` can return an
Object instance that can be used to compare files for equality.

With this change, the Windows implementation of Files.walkFileTree is
about 40% faster when the FOLLOW_LINKS option is not used, and about
2.5x faster when the FOLLOW_LINKS option is used.

When the FOLLOW_LINKS option is used, most calls to
`Files.isSameFile`, which is expensive as it requires 2 file I/O
operations, are avoided because the Path entries returned by the
new WindowsDirectoryStream implementation now contain a non-null
BasicFileAttributes.fileKey(). The remaining calls to
`Files.isSameFile` are performed when Files.walkFileTree need
to compare the initial directory with other entries.

Change-Id: Id79d89d477a6d5dcf151c63a9d6072c6f7ef43b2

(AKA JBR-3680 Cherry-pick Google's NIO patches to get faster file listing)

(cherry picked from commit 7c2d7541ba)
2023-04-21 02:01:36 +02:00
Maxim Kartashev
2f1215d844 JBR-3498 Windows: exception when trying to delete a directory with a trailing space
Allow Windows Path to have a trailing space despite Windows naming conventions
discouraging it. Many programs - including Explorer - successfully work
with such files or directories.
2023-04-21 02:01:36 +02:00
Dmitry Batrak
6fbb4f2faa JBR-1518 JBR 11 does not support chain of popups on Linux
(cherry picked from commit 849356ee01)
2023-04-21 02:01:35 +02:00
Dmitry Batrak
ccc3bcc029 JBR-4306 Robot doesn't work as expected in some cases on macOS
(cherry picked from commits 7d69734465, 0f33031484, 3b5ded0d02)
2023-04-21 02:01:35 +02:00
Ryan Osial
52ec0c69ed Cache results of font-config pattern search for reuse
(cherry picked from commit 432f637904)
(cherry picked from commit 17bc232f6f)
2023-04-21 02:01:35 +02:00
Maxim Kartashev
11f1aa8ba4 JBR-3948 Linux: SIGSEGV at [libawt_xawt] Java_sun_awt_X11_XInputMethod_createXICNative
The crashes begin with the call to getDefaultConfig() in
createStatusWindow() returning garbage. With 8280468 fixed, there aren't
many reasons left for it to do so; it must be that the argument to the
call (the screen number) is out of range.

This change eliminates the possibilities to get an absolutely incorrect
screen number by checking the return values of several Xlib functions,
which, when fail, will leave their outgoing arguments uninitialized.
This, in turn, can lead to reading some random memory resulting in
equally random screen number that is later being fed to
getDefaultConfig().

Although on modern systems with Xinerama there should really be no
screen other than zero, as the last resort, this number is also
range-checked in getDefaultConfig() itself.
2023-04-21 02:01:35 +02:00
Anton Tarasov
8cdf870d9d JBR-4389 [update_1] IDEA UI font becomes too large after disconnecting the external monitor / sleep 2023-04-21 02:01:35 +02:00
Anton Tarasov
78f82bf460 JBR-4389 IDEA UI font becomes too large after disconnecting the external monitor / sleep 2023-04-21 02:01:35 +02:00
Dmitry Batrak
8ce42e8001 remove duplicate bundled JetBrains Mono bold italic font
following JBR-4402

(cherry picked from commit b7e5d3cfcf)
2023-04-21 02:01:35 +02:00
Dmitry Batrak
548dd2ee9d JBR-4402 The wrong text is rendered in editor 2023-04-21 02:01:35 +02:00
Vitaly Provodin
b98a8d8a64 JBR-4297 add a regression test
(cherry picked from commit 8e94fff6aa)
2023-04-21 02:01:35 +02:00
Konstantin Bulenkov
f502c36e16 Update JetBrains Mono font to 2.225 2023-04-21 02:01:35 +02:00
Alexey Ushakov
753a8549fc JBR-4363 Changes in fonts rendering between JBR11 and JBR17
Resolved merge artifact after applying IDEA-57233 fix
2023-04-21 02:01:35 +02:00
Alexey Ushakov
4dad41e990 JBR-3843 IDE text is misaligned vertically when using Consolas font
Use usWinAscent/usWinDescent for metrics on Windows
2023-04-21 02:01:35 +02:00
Alexey Ushakov
72d75555cf JBR-1110 [JDK11] java/awt/font/Outline/OutlineInvarianceTest.java: Failed for font java.awt.Font[family=Dialog,name=MS Gothic,style=bold,size=30]
Replaced FT_LOAD_NO_HINTING mode for non AA rendering with FT_LOAD_TARGET_LIGHT

(cherry picked from commit 3368768244)
2023-04-21 02:01:35 +02:00
Alexey Ushakov
0361b6e2f8 JBR-2000 RM 2019.3.1 font rendering regression, normal text is heavier
Added -Djava2d.font.loadFontConfig=bundled to force loading bundled font.conf

(cherry picked from commit 788e078f64)
2023-04-21 02:01:35 +02:00
Dmitry Batrak
fd4aa918f3 JBR-4346 [Xfce] Windows are moved unexpectedly between workspaces when modal dialog is shown
(cherry picked from commits ad299f1e74, 800220af16)
2023-04-21 02:01:34 +02:00
Alexey Ushakov
f686a2243d JBR-3827 SIGILL at [libsystem_kernel] __kill in Java Exception at -[CDragSource convertData:]
Added check for drag source
2023-04-21 02:01:34 +02:00
Alexey Ushakov
57c0a2fe53 JBR-3366 SIGILL at [libsystem_kernel] __kill in NSWindowStyleMaskFullScreen cleared on a window outside of a full screen transition
Wrapped the native exception and added logging

JBR-4882 Unable to exit fullscreen mode after Presentation mode was entered (and exited) on macOS

(cherry picked from commit d57e8b631b)
2023-04-21 02:01:34 +02:00
Alexey Ushakov
1bd26d5043 JBR-3365 SIGILL at [libsystem_kernel] __kill in java.lang.RuntimeException: Failed to convert, no screen / primaryScreen
Wrapped the native exception and added logging
2023-04-21 02:01:34 +02:00
Dmitry Batrak
eaf3d45466 JBR-3751 Window content isn't rendered with some window managers on Linux
(cherry picked from commit 8d22e4dcb0)

includes fix for JBR-5046 Incorrect initial window's location in Xfce

(cherry picked from commits 234e705134, 02bc54f864)

includes fix for JBR-5458 Exception at dialog closing

(cherry picked from commit acde759572)
2023-04-21 02:01:34 +02:00
Vitaly Provodin
92a74e8aa4 JBR-4294 split desktop tests to more groups for Commit testing 2023-04-21 02:01:34 +02:00
Dmitry Batrak
ca6779a09d JBR-4281 Window losing focus isn't detected in some cases on macOS
(cherry picked from commit 363650bbf4)

with JBR-4638 Regression: Unable to enter emoji in editor via Emoji & Symbols on macOS

(cherry picked from commit 8b9a00915d)

with JBR-4652 With multiple projects open non-fullscreen, right-click on Dock icon to select the project from the context menu doesn't switch to that project

(cherry picked from commit e34677587d)

with JBR-5134 Input methods can't be dynamically disabled on a focused JComponent

(cherry picked from commit 0a3f4b206d)
2023-04-21 02:01:34 +02:00
greg
41184ce357 macOS: add methods to setup transparent titlebar with custom height (#100)
* macOS: add methods to setup transparent titlebar with custom height

* make windowTransparentTitleBarHeight CPlatfromWindow property

* add windowTransparentTitleBarHeight test

* Prevent mouseUp events on the transparent header on macOS when the window is being dragged

Co-authored-by: Manuel Unterhofer <manuel.unterhofer@jetbrains.com>

Custom macOS window decorations via JBR API

JBR-4460 Fix window drag with custom decorations on macOS

JBR-4553 Add logging to setUpTransparentTitleBar and resetTitleBar
2023-04-21 02:01:34 +02:00
Denis Fokin
20a073ff3a JBR-4038 [JBR17] Force Touch events are not supported on macOS
Added missing files and handlers from JBR11
2023-04-21 02:01:34 +02:00
Alexey Ushakov
a714a30a13 JBR-3901 jbr-dev compile problem
Added transient keyword
2023-04-21 02:01:34 +02:00
Alexander Lobas
f8b5dd186e JBR-2893 Big Sur: Add support of opening project as tabs IDEA-257932 Big Sur: IDEA hangs after closing a project tab after exiting and entering full screen
Converted JNF to JNIUtilites

(cherry picked from commit f02e31a440)
(cherry-picked from commit a84736ebcc)
2023-04-21 02:01:34 +02:00
Dmitry Batrak
00dcdf2a36 JBR-3676 WINDOW_ACTIVATED/DEACTIVATED events sent to a frame when child window closes on macOS
(cherry-picked from commit 824f9ebec3)
2023-04-21 02:01:34 +02:00
Dmitry Batrak
3225557011 JBR-3611, JBR-3633, JBR-3666, JBR-3663, JBR-3671, JBR-3673, JBR-4181, JBR-4186, JBR-4893 Interoperability with macOS desktop spaces
(cherry-picked from commits 43fdd6cd26, 75335543f2, a156c6b9bf, 9fdc75969b, 1dcc612a81, 93588d0738, 94a3885bbe, c040e05703, 67b6cd871f, 9040fd56cd, 6349b86b7f)
2023-04-21 02:01:34 +02:00
Dmitry Batrak
c35d72a736 refactor nativeCreateNSWindow call wrapping
as part of JBR-3017

(cherry picked from commit eeef67a335)
2023-04-21 02:01:34 +02:00
Dmitry Batrak
0fbaebf7f0 remove excessive wrapping with AccessController (AWTThreading does it internally now)
as part of JBR-3017

(cherry picked from commit f1dd523ba8)
2023-04-21 02:01:34 +02:00
Dmitry Batrak
80a7b79d26 JBR-2971 Log more information about window creation and property changes
(cherry picked from commit 9d86b4d235)
2023-04-21 02:01:34 +02:00
Dmitry Batrak
a5a4c40a6c JBR-2533 Popup is not focused on click when switching from another application on macOS
(cherry picked from commits d9ff151211, 67b174dc8c, 72b0add80c, 21af1eba85, 2f1d317d87, 6dd334f9f0, cd863bac0d, 010f6fc951, 25e087d269, parts of 7d5ac56b6c, cd6dd5c3cf, e8bbd8ffdd)

with fix for JBR-3640 (java/awt/Modal/ModalFocusTransferTests/FocusTransferDWFAppModalTest.java: window Open button lost focus when it should not) and JBR-3979 (Focus is not transferred to parent window)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:33 +02:00
Nikita Provotorov
bb98b16660 JBR-4271: JBR17 and dev built without --with-vendor-name parameter have invalid value of the java.vm.vendor property.
Changes the default JBR's vendor from "Oracle Corporation" to "JetBrains s.r.o.".

(cherry picked from commit 0cb7b4565c)
2023-04-21 02:01:33 +02:00
Nikita Gubarkov
e63793e935 JBR API v0.0.3
JBR-4228 report HTMINBUTTON, HTMAXBUTTON, HTCLOSE, HTMENU, HTCAPTION targets via JBR API & handle corresponding non-client mouse events for windows with custom decoration
2023-04-21 02:01:33 +02:00
Alexey Ushakov
55968142aa JBR-4224 java/awt/image/VolatileImage/GradientPaints.java: Number of mismatches (300000) exceeds limit (54000) with tolerance=5
Updated reg test to handle contentLost event
2023-04-21 02:01:33 +02:00
Vitaly Provodin
36d9b5a8b6 exclude javax/swing/border/TestTitledBorderLeak.java on windows due to 8213531 2023-04-21 02:01:33 +02:00
Ivan Lopatin
fe21bc4c25 Scale2: exclude java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java due to 8279190 on macosx-all 2023-04-21 02:01:33 +02:00
Nikita Provotorov
3e8f959cfc JBR-3299: The test /jb/sun/awt/macos/NationalLayoutTest/Layout_ABC.java fails on MacOS.
Fixes the Layout_*.java tests by giving them to know the <Ctrl + key> combinations can generate KEY_TYPED event.

(cherry picked from commit eae5198b20)
2023-04-21 02:01:33 +02:00
Vitaly Provodin
7acf131db4 exclude java/awt/Frame/FrameSetSizeStressTest/FrameSetSizeStressTest.java on Wayland
sun/security/pkcs11/Signature/TestDSAKeyLength.java                                 8279941 linux-all
2023-04-21 02:01:33 +02:00
Alexey Ushakov
4601c434aa JBR-4112 macOS: SIGILL at [libsystem_kernel] __kill in OOME: Java heap space at java.awt.image.DataBufferInt.<init>
Reg test update: replace management api with jfr
2023-04-21 02:01:33 +02:00
Nikita Provotorov
8ebd758165 JBR-4207, IDEA-287559: IDEA incorrectly handles AltGr key modifier.
This commit reverts the fix of JDK-8041928 and disables its regression tests.

(cherry picked from commit ba5209ec06)
2023-04-21 02:01:33 +02:00
Nikita Provotorov
321466d2c8 JBR-4207, IDEA-287559: IDEA incorrectly handles AltGr key modifier.
Renames the test AltGrMustGenerateAltGrModifierTest3838.java to AltGrMustGenerateAltGrModifierTest4207.java.

(cherry picked from commit ed60a9c2bd)
2023-04-21 02:01:33 +02:00
Maxim Kartashev
33b8f3cac8 JBR-4173 Tier1 test failures in jdk/javadoc/doclet/testModules
Introduction of JBR API changed the order of modules appearing in Java
Doc. This commit updates the corresponding tests to match the current
output with JBR API.

(cherry picked from commit 609406c21b)
2023-04-21 02:01:33 +02:00
Nikita Gubarkov
4a444461b8 JBR-2567 Fix max file path buffer size for fontpath.c 2023-04-21 02:01:33 +02:00
Vitaly Provodin
a38faff0ac exclude sun/security/pkcs11/Signature/TestDSAKeyLength.java on Ubuntu 21.04 due to 8279941 2023-04-21 02:01:33 +02:00
Anton Tarasov
7f453c7a51 JBR-4204 provide an option to disable a11y support on macOS
(cherry picked from commit ee3c56abdc)
2023-04-21 02:01:33 +02:00
Vitaly Provodin
085ab2dceb exclude two swing tests on Windows due to JBR-4197 2023-04-21 02:01:32 +02:00
Alexey Ushakov
211f9d248f JBR-4112 macOS: SIGILL at [libsystem_kernel] __kill in OOME: Java heap space at java.awt.image.DataBufferInt.<init>
Removed double allocation of surface data
2023-04-21 02:01:32 +02:00
Alexey Ushakov
c1750720be JBR-4187 java/awt/GraphicsDevice/DisplayModes/UnknownRefrshRateTest.java.UnknownRefrshRateTest fails on mac
Constrained display modes count used by the test
2023-04-21 02:01:32 +02:00
Alexey Ushakov
569fa381e1 JBR-4177 libc++abi: terminating with uncaught exception of type NSException
Added check for AppContext
2023-04-21 02:01:32 +02:00
Alexey Ushakov
b45f4a16a6 JBR-4174 java/awt/FullScreen/FullScreenInsets/FullScreenInsets.java fails on mac aarch64
Hide cursor to fix OGL&Metal Robot issue (it reads cursor image). Added tolerance to fix Metal Robot inaccuracy.
2023-04-21 02:01:32 +02:00
Artem Semenov
028735fc6e JBR-4167 [JCK] AccassibleJTree tests fail on Ubuntu 2023-04-21 02:01:32 +02:00
Alexey Ushakov
c0ffdb879b JBR-4164 IDEs cannot be launched via launch configuration
Moved execution of displayChanged() to EDT
2023-04-21 02:01:32 +02:00
Vitaly Provodin
259bf1219d JBR-4169 add jdk.javadoc into JBR 2023-04-21 02:01:32 +02:00
Alexey Ushakov
7f7b869349 JBR-4150 IDE regularly locks up at sun.lwawt.macosx.LWCToolkit.getScreenInsets
Restored caching screen insets. Added handling of dock resize.
2023-04-21 02:01:32 +02:00
Vitaly Provodin
9a1f5b9805 exclude java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java on Wayland configs due to 8279256 2023-04-21 02:01:32 +02:00
Vitaly Provodin
fa124f99fd exclude java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java on Scale2 configs due to 8279190 2023-04-21 02:01:32 +02:00
Vitaly Provodin
d8de3089b0 exclude java/awt/FullScreen/UninitializedDisplayModeChangeTest/UninitializedDisplayModeChangeTest.java due to 827361 2023-04-21 02:01:32 +02:00
Vitaly Provodin
87482baa18 add exclude list for Wayland failures 2023-04-21 02:01:32 +02:00
Vitaly Provodin
f83d0ff4e8 exclude javax/swing/plaf/basic/BasicComboPopup/JComboBoxPopupLocation /JComboBoxPopupLocation.java on macOS due to 8194945 2023-04-21 02:01:32 +02:00
Vitaly Provodin
d3b4914252 exclude sun/java2d/SunGraphics2D/EmptyClipRenderingTest.java on windows due to 8144029 2023-04-21 02:01:32 +02:00
Maxim Kartashev
da39c0b44f JBR-3948 Linux: SIGSEGV at [libawt_xawt] Java_sun_awt_X11_XInputMethod_createXICNative
The problem: the crashes occur in createStatusWindow() when calls like
adata->AwtColorMatch() end up going to 0x0 pc or some random inaccessible
memory. The only reason for that seems to be the
getDefaultConfig(screen) returning either NULL or garbage. That, in turn, probably
happens because of the wrong screen number provided. Before JBR-3623 was
fixed, awt_numScreens could've changed between the time the screen
number was chosen and the getDefaultConfig() call. After JBR-3623 was
fixed, this change is protected with the AWT lock, which this code
holds.
The fix: obtain the screen number via the Xlib API rather than the
ad-hoc loop though the root windows and return NULL if
getDefaultConfig() doesn't return useable data.

(cherry picked from commit 3d23e8d6a5)
2023-04-21 02:01:32 +02:00
Vitaly Provodin
a6ca7b7d2f add exclude list for Scale2 test runs 2023-04-21 02:01:31 +02:00
Vitaly Provodin
333b1a8286 exclude java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java due to 8134231 2023-04-21 02:01:31 +02:00
Alexey Ushakov
0c63b54fd9 JBR-3773 M1 java/awt/Window/WindowAppearanceTest/WindowAppearanceTest.java: : Incorrect color java.awt.Color[r=75,g=74,b=72]at (140,5)
Added more variants of colors for unfocused and focused titles
2023-04-21 02:01:31 +02:00
Artem Semenov
84b7be8e73 JBR-3775 Optimize the algorithm for obtaining tree elements 2023-04-21 02:01:31 +02:00
Nikita Gubarkov
4e3c482493 JBR API v0.0.2
Added file dialog customization via JBR API & fixed bugs in windows common item dialog

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:31 +02:00
Vitaly Provodin
e3bdcc865b JBR-3931 add the module jdk.unsupported.desktop into jbr
(cherry picked from commit 32def2fd42)
2023-04-21 02:01:31 +02:00
Alexey Ushakov
a1f6d01297 JBR-4111 [JBR17] Make possible to select files and directories independently
Implemented apple.awt.fileDialogForFiles property
2023-04-21 02:01:31 +02:00
Vitaly Provodin
4fec179f92 enable fixed tests to regular runs 2023-04-21 02:01:31 +02:00
Vitaly Provodin
2b7bffcfda exclude javax/swing tests on mac-aarch64 due to 8277816 2023-04-21 02:01:31 +02:00
Aleksandr Veselov
593c5781da JBR-4107 A11y: macOS - wrong frame position if window is not on primary screen 2023-04-21 02:01:31 +02:00
Alexey Ushakov
993f88afd0 JBR-4060 [JBR17+Metal] Flickering on button's shadow
Removed unnecessary global flag. Optimized mask cache texture clearing code.
2023-04-21 02:01:31 +02:00
Alexey Ushakov
83e243c9b0 JBR-3954 Transparent text color rendering (needed for experimental UI)
Performed conversion from ARGB_PRE to ARGB in the grayscale text shader
2023-04-21 02:01:31 +02:00
Alexey Ushakov
9d6fc4715e JBR-3872 [JBR17+Metal] Wrong color for scrollbars and inlay hints
Corrected typo in setTxtUniforms and fixed alpha blending in frag_gmc_text shader
2023-04-21 02:01:31 +02:00
Alexey Ushakov
567ee6b56d JBR-3820 Gamma correction for grayscale text in Metal rendering pipeline
Implemented gamma correction using the same approach that we did for OGL grayscale text rendering (OGLTextRenderer.c)
Optimized shader performance
2023-04-21 02:01:31 +02:00
Alexey Ushakov
1c28037c65 JBR-4104 jbr-dev compilation failure
Corrected suppress warnings
2023-04-21 02:01:31 +02:00
Dmitry Batrak
5e7d003c9a JBR-4084 Default font '. AppleSystemUIFont' does not have bold weight on Chinese characters
(cherry picked from commit 4fde082d53)
2023-04-21 02:01:30 +02:00
Maxim Kartashev
6431cf7d0b JBR-3899 SIGSEGV at [libjvm] _ZN23JfrNetworkInterfaceName11on_rotationEv
Prevent JfrNetworkInterfaceName::on_rotation() to dereference a
potentially NULL pointer.

(cherry picked from commit b2a9372d70)
2023-04-21 02:01:30 +02:00
Dmitry Batrak
a71a7543d5 JBR-4021 Unexpected focus event order on window showing
(cherry picked from commit 2a398ebb24)

includes fix for JBR-4131 Popup doesn't get focus if created from context menu

(cherry picked from commit 685562aafc)
2023-04-21 02:01:30 +02:00
Maxim Kartashev
e0064704bb JBR-4020 Test ObsoleteFlagErrorMessage fails after +IgnoreUnrecognizedVMOptions has become the default
(cherry picked from commit ae5963a094)
2023-04-21 02:01:30 +02:00
Maxim Kartashev
95f9b3161c JBR-3923 Internal Error in c1_Instruction.cpp
Make C1 hotspot compiler bail out during CFG construction if there's a
cycle in the graph that isn't a natural loop and that has led to an
unexpected state of stack/locals like missing a phi function.

This is a temporary measure that lets hotspot continue working
even after encountering such bytecode patterns. The full solution
will probably involve more sophisticated CFG checks.

(cherry picked from commit aa0b61cb75)
2023-04-21 02:01:30 +02:00
Vitaly Provodin
cacd2af748 exclude tests spontaneously creating windows during test execution 2023-04-21 02:01:30 +02:00
Maxim Kartashev
07b7ec100a JBR-2755 IDE UI became slow via remote X Server connection from Windows
When XGetImage() calls become slow in a remote X11 session, fake
XGetImage() with client-side XCreateImage() that is filled with some
background color. The color is chosen from several top left corner
pixels of the "slow" images obtained with XGetImage().

This feature activates in a remote X11 session only and is
controlled with -Dremote.x11.workaround={true|false|auto}.
2023-04-21 02:01:30 +02:00
Alexey Ushakov
fc2850fba4 JBR-3924 CMD+Tilda does not switch app windows
Introduced vm property to disable capturing of next app window shortcut
2023-04-21 02:01:30 +02:00
Nikita Gubarkov
95b00a8db3 JBR-2917 Added emoji support for Windows
JBR-3951 Pass real glyph type from native code instead of guessing it by rowBytes & width
2023-04-21 02:01:30 +02:00
Pavel
4deb72d9eb JBR-3926 make AwtComponent transparent for hit events by default
* JBR-3926 make AwtComponent transparent for hit events by default

* [WIP] pass hittest event to frame only if custom decoration is enabled and frame ready to handle it
(cherry picked from commit c0e26ff5d5)
2023-04-21 02:01:30 +02:00
Maxim Kartashev
f3999071ff JBR-3896 Abysmally slow input and UI performance since upgrade to IU-213.4928.7 from previous 2021.3 EAP version
The slowness was the result of XWM.getInsetsFromExtents() repeated
attempts to acquire frame extents from a property that under Sway is
simply unavailable. Each attempt added at least 20ms to every re-draw.

Prior to (repeatedly) checking for NET_FRAME_EXTENTS property of a
window, check that the property is supported by the window manager.

(cherry picked from commit b40cc1c791)
2023-04-21 02:01:30 +02:00
Maxim Kartashev
b5736ebcde JBR-3916 Deadlock in pGetBounds() on Linux
The deadlock occurred because one thread was holding the AWT lock and
waiting for boundsCacheLock in resetBoundsCache() and the other vice
versa stuck in pGetBounds() owning boundsCacheLock and waiting for the
AWT lock.

The solution is to get rid of boundsCacheLock altogether. It was
introduced in order to never return null from getBoundsCached() so that
resetBoundsCache() wouldn't interfere. But the same effect can be
achieved by simply using a local variable to hold a copy of the current
bounds. The worst case scenario now is that two threads update
boundsCached immediately one after another (if they both have observed
the null value there at about the same time), but that's harmless as
pGetBounds() grabs the AWT lock when necessary.

(cherry picked from commit dc6ad31524)
2023-04-21 02:01:30 +02:00
Dmitry Batrak
9e4d1b1bf0 log LWCToolkit invokeAndWait requests
as part of JBR-3017, to make investigation of similar issues simpler in the future

(cherry-picked from commit a7fd723e43)
2023-04-21 02:01:30 +02:00
Alexey Ushakov
bacd3c8955 JRE-202 Deadlock in CGLGraphicsConfig.getCGLConfigInfo
Added processing system events while waiting for OGLRenderQueue.lock
Moved getCGLConfigInfo logic execution to AppKit thread so, awt lock is
 taken on one thread

(cherry picked from commit d1c8bf03e1bd41cb075aa73cc39558103af7fe1a)
(cherry picked from commit 6bf9f31986be64acf3755b34568802f9960a66ec)
(cherry picked from commit 4e21d67e0369bffac45662c63699b39946218a7a)
2023-04-21 02:01:30 +02:00
Alexey Ushakov
0286477af0 JRE-193 UI freeze and 12/second thread dumps
Moved CStrikeDisposer dispose code to AppKit

(cherry picked from commit 28774d6878)
2023-04-21 02:01:30 +02:00
Alexander Lobas
18f62fba32 JBR-3660 PhpStorm 2021.2 crashes on selecting iCloud Drive directory in Open dialog
(cherry picked from commit f5434bcaaf)
2023-04-21 02:01:29 +02:00
Alexander Lobas
03ff904bf0 JBR-3629 SIGILL at [libsystem_kernel] __kill NPE at com.intellij.openapi.options.SchemeImportUtil$1.isFileSelectable / -[CFileDialog askFilenameFilter:]
(cherry picked from commit 86c13ecaed)
2023-04-21 02:01:29 +02:00
Alexander Lobas
e348a6ecb7 JBR-3443 Native file dialog on OSX enable filename filter by VM option
(cherry-picked from commit f10e324538)
2023-04-21 02:01:29 +02:00
Alexander Lobas
358ccefe59 JBR-3442 Native file dialog on OSX (for open file) doesn't allow pasting path
(cherry-picked from commit 7d8cc524ca)
2023-04-21 02:01:29 +02:00
Maxim Kartashev
7c1e3ca4c6 Revert "JBR-2755 IDE UI became slow via remote X Server connection from Windows"
This reverts commit cd9138844da770ae60806fd7dbc1e85c773882a8.
2023-04-21 02:01:29 +02:00
Konstantin Aleev
576969cbcd fix memory leaks in AccessibleJTree
(cherry picked from commit 561a7b8def)
2023-04-21 02:01:29 +02:00
Maxim Kartashev
ecaf4610f8 JBR-3835 Cropped messages in all Message Dialogs in Idea on Ubuntu 18.04.5 LTS with swing alerts enabled
The _NET_FRAME_EXTENTS property that is used to obtain the initial
insets of a dialog window does not immediately get its value and may be
returned as 0 if queried too soon after the window creation.

In order to avoid (incorrect) guessing of dialog's insets, make 3
attempts at getting the insets with a small but increasing pause
in between them.
2023-04-21 02:01:29 +02:00
Maxim Kartashev
629b23860e Revert "JBR-3835 Cropped messages in all Message Dialogs in Idea on Ubuntu 18.04.5 LTS with swing alerts enabled"
This reverts commit 8e7aed70976ec0f90c736d86b9cd3e9cf09ff6d4.
2023-04-21 02:01:29 +02:00
Nikita Provotorov
84f07e0e27 JBR-3838 AltGr on Polish keyboard triggers Ctrl+Alt shortcut.
Add regression test.

(cherry picked from commit 8df43eef4b)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:29 +02:00
Maxim Kartashev
6007e1a704 JBR-3835 Cropped messages in all Message Dialogs in Idea on Ubuntu 18.04.5 LTS with swing alerts enabled
The _NET_FRAME_EXTENTS property that is used to obtain the initial
insets of a dialog window does not immediately get its value and may be
returned as 0 if queried too soon after the window creation.

In order to avoid (incorrect) guessing of dialog's insets, add an
artificial delay if getInsets() is called too soon.
2023-04-21 02:01:29 +02:00
Alexey Ushakov
489e173e57 JBR-3820 Gamma correction for grayscale text in Metal rendering pipeline
Added regression test to compare OGL and Metal text rendering
2023-04-21 02:01:29 +02:00
Artem Bochkarev
10e8426ac8 JBR-1762: request focus of immediate parent when dispose popup
because requesting focus for frame-parent causes to close whole popup chain

(cherry picked from commit 7a2ccfc521)

JBR-1762: fixed review comments

(cherry picked from commit 0efbe5d9b9)
2023-04-21 02:01:29 +02:00
Dmitry Batrak
2689e266e6 JBR-2759 Typeahead issue on Linux
(cherry picked from commits 76bdaf1131, b20c56ff3e, c9609330f2, a170b4e4ae)
2023-04-21 02:01:29 +02:00
Artem Bochkarev
79077d5f39 JBR-1762: request focus of immediate parent when dispose popup
because requesting focus for frame-parent causes to close whole popup chain

(cherry picked from commit 7a2ccfc521)

JBR-1762: fixed review comments

(cherry picked from commit 0efbe5d9b9)
2023-04-21 02:01:29 +02:00
Maxim Kartashev
4d16e7bb2f JBR-3813 Regression after fix for JBR-3688
1. Cached bounds and insets must be cloned before return because they
aren't immutable objects.
2. Fixed the deadlock in resetBoundsCache() by synchronizing on a dedicated
lock.

(cherry picked from commit cd5314db8b)
2023-04-21 02:01:29 +02:00
Renaud Paquay
b49cb9e3dd Add BasicWithKeyFileAttributeView interface
This new interface is similar to `BasicFileAttributeView` except it
gives implementations a hint that the fileKey() should be acquired
even at some performance cost.

`FileTreeWalker` uses this new interface to request a file key
in addition to regular file attributes so that file equality can
be efficiently performed when checking for loops during file
tree traversal.

This makes `FileTreeWalker` about 2x faster when traversing non
trivial file system trees with the FOLLOW_LINKS option.

Change-Id: I8de047c8fc241dbab9ad57c5e361118a3a94893d

(AKA JBR-3680 Cherry-pick Google's NIO patches to get faster file listing)

(cherry picked from commit 6d1c3f06c4)
2023-04-21 02:01:28 +02:00
Ivan Migalev
ba09e6020f JBR-3785: don't touch the active keyboard layout on input method activation / deactivation.
origin PR: github.com/JetBrains/JetBrainsRuntime/pull/78.

(cherry picked from commit 2f772fd1a2)
2023-04-21 02:01:28 +02:00
Dmitry Batrak
1311df96ca JBR-3779 Unexpected Alt+Tab behaviour for Java frames on Cinnamon DE
(cherry picked from commit 0bf13985d5)
2023-04-21 02:01:28 +02:00
Maxim Kartashev
4054c82519 JBR-3688 PyCharm incredibly slow with fakexrandr
Cache screen bounds and insets and (conservatively) reset those caches
upon any possibility of a change.
This feature can be disabled with -Dx11.cache.screen.insets=false and
-Dx11.cache.screen.bounds=false.

Based on commit accef6f21e.
2023-04-21 02:01:28 +02:00
Maxim Kartashev
dee6000aa8 JBR-3772 java/beans/PropertyEditor/TestFontClass.java: access denied ("java.util.PropertyPermission" "sun.awt.x11.trace" "read")
Instead of using System.getProperty() directly, wrap the call into
GetPropertyAction and use AccessController to execute it.
2023-04-21 02:01:28 +02:00
Dmitry Batrak
b8e507039b JBR-3504 a11y focus is set on the wrong element when opening popups
(cherry-picked from commit a69e12e0d2)
2023-04-21 02:01:28 +02:00
Maxim Kartashev
f31a94d8b7 JBR-3665 Typing is slow in remote X session
Only call XGetKeyboardMapping() once for all valid codes and cache the
resulting table. Use the cache on the subsequent calls to
keycodeToKeysym().
2023-04-21 02:01:28 +02:00
Maxim Kartashev
0a50d44f95 JBR-2273 JBR musl port
Detect if we're running on a musl-based system by checking for the presence
of the libgcompat.so glibc compatibility library in the process' map.
If so, java is re-started with LD_LIBRARY_PATH set to point to the right
directory with libjvm.so. This works around the problem with the musl
dynamic library loader.

(based on commit 13a904ddb5)
2023-04-21 02:01:28 +02:00
Alexey Ushakov
14740337a7 Added support for otf into the build scripts. Updated prebuild maps.
Applied code from jbr-dev
2023-04-21 02:01:28 +02:00
Konstantin Bulenkov
2a0112c47e bundle Inter font 2023-04-21 02:01:28 +02:00
Maxim Kartashev
d3055ec4a5 JBR-3664 Logging for communications with X server
Introduced logging controlled with -Dsun.awt.x11.trace.
Currently, only looks at the AWT lock and reports methods holding it
sorted by average hold time.

(based on commit 792a58ea0e)
(based on commit 770b4dc9c1)
2023-04-21 02:01:28 +02:00
Dmitry Batrak
23a900b080 JBR-3726 Modal windows 'disappear' on minimize in KDE
(cherry picked from commits d9baf2d9db, 9c2841028f, 5c4fd9ceaf, f0ed32fca4)
2023-04-21 02:01:28 +02:00
Maxim Kartashev
95f6d629c6 JBR-3542 Fix -Xcheck:jni warnings
Fixes warnings coming from JBR-specific code in addition to those fixed
by 8269223.
2023-04-21 02:01:28 +02:00
Dmitry Batrak
79765c88c0 JBR-3706 Toggling full screen mode for two frames doesn't work on macOS if invoked without delay
(cherry picked from commit 28cfc4815f)
2023-04-21 02:01:28 +02:00
Dmitry Batrak
dc57a892be JBR-3686 Background window steals focus when converted to full screen on macOS
(cherry-picked from commit 07a5b9672e)
2023-04-21 02:01:28 +02:00
Dmitry Batrak
fc1efde2c5 JBR-3662, JBR-3672 Focus jumps to another project tab after closing modal dialog
(cherry picked from commit bfd01081c3, 2a71dc5981)
2023-04-21 02:01:27 +02:00
Nikita Gubarkov
d41a7f3a1c JBR-3648 Replace CacheCellInfo usages with MTLCacheCellInfo in metal rendering code 2023-04-21 02:01:27 +02:00
Dmitry Batrak
c1770faf8d JBR-3642 java/awt/Window/8159168/SetShapeTest.java fails on macOS-x64 & macOS-aarch64
make sure jb/java/awt/Focus/Typeahead* tests still pass

includes fixes for JBR-3786 javax/swing/plaf/aqua/CustomComboBoxFocusTest.java fails on MacOS by timeout
(cherry picked from commit f5c5388fb5)

and JBR-4113 java/awt/KeyboardFocusmanager/TypeAhead/TestDialogTypeAhead.java fails by time out on macOS

(cherry picked from commit d8d4c55a61)
2023-04-21 02:01:27 +02:00
Anton Tarasov
18f7516396 JBR-1834 [linux] runtime hidpi switch is broken
(cherry picked from commit eaa04303a7)
2023-04-21 02:01:27 +02:00
Anton Tarasov
8b867e453c JBR-1429 Scale is huge due to GDK_SCALE
(cherry-picked from commit 1c3477df2e)
2023-04-21 02:01:27 +02:00
Anton Tarasov
0c7036dfae JBR-1365 force IDE-managed HiDPI on Linux for fractional scales
(cherry picked from commit f092ff3962)
2023-04-21 02:01:27 +02:00
Anton Tarasov
e93e62095f Allow HiDPI mode on Linux 2023-04-21 02:01:27 +02:00
Anton Tarasov
6bb2f36cc1 JRE-489 -Dswing.bufferPerWindow is fractional scale unfriendly 2023-04-21 02:01:27 +02:00
Anton Tarasov
41094d8d58 JRE-310 check for Windows8.1 when enabling ui scale
Was "don't fallback on fractional scale" in JBSDK9.
2023-04-21 02:01:27 +02:00
Vitaly.Provodin
2b3eee7525 add 32-sizes for native data types
(cherry picked from commit 3a79870da8)
2023-04-21 02:01:27 +02:00
Nikita Gubarkov
834987a717 Added JBR-specific .idea project files 2023-04-21 02:01:27 +02:00
Alexey Ushakov
d0592b6238 JBR-3344 "Exit Full Screen" action doesn't work, the only way is mouse click on window's native "green" button.
Restored JBR-1931 fix partially reverted by JBR-1718

(cherry picked from commit c0be778e20)
2023-04-21 02:01:27 +02:00
Anton Tarasov
95f9c0393e JBR-3337 jb/java/jcef/HandleJSQueryTest3314.sh: fails on macOS-aarch64 with "JS Query was not handled in 2nd opened browser"
(cherry picked from commit 8678f41971)
2023-04-21 02:01:27 +02:00
Anton Tarasov
e89b309146 JBR-3545 Window.setMinimumSize does not respect DPI scaling
(cherry picked from commit 9b4f72ad18)
2023-04-21 02:01:27 +02:00
Denis Fokin
4a874a880d JRE-408 JBR-3515 fix NullPointerException in MetalRootPaneUI.installWindowListeners
(cherry picked from commit 584d554af529cff445b0f09bc2d57be55e138b7a)
(cherry picked from commit 6a42bb54bd)
2023-04-21 02:01:27 +02:00
Elena Sayapina
0b4587ea2e JBR-2657 [TESTBUG] ChainOfPopupsFocusTest misbehaving on Windows
- changed open popup shortcut from Ctrl+N to Ctrl+M, so no new explorer windows appear if desktop gets focused by error
- added a click on the main test frame, so it gets focus when running from background cygwin process on Windows, otherwise it just flashes on the taskbar

(cherry picked from commit eda8e4d50e)
2023-04-21 02:01:26 +02:00
Maxim Kartashev
8b890646de JBR-3572 Wayland: java/awt/Window/WindowTitleVisibleTest/WindowTitleVisibleTestLinuxGnome.java: title bar shown and hidden are the same.
Exclude the test when running under XWayland that doesn't implement
screen capture necessary for the test to function.
2023-04-21 02:01:26 +02:00
Denis Konoplev
6dc42047ff EA-252361: Check window for null
(cherry picked from commit 23a7dbd486)
2023-04-21 02:01:26 +02:00
Artem Bochkarev
3759c45030 JBR-3131: support custom view for system menu items
(cherry picked from commit 78d509ac0f)
2023-04-21 02:01:26 +02:00
Artem Bochkarev
db01274de2 JBR-3127: set NSWindowAllowsImplicitFullScreen=NO
fixed JBR-3127 Modal dialogs invoked from modal or floating dialogs are opened in full screen

(cherry picked from commit 0b8ff1a7e6)

JBR-3127: add possibility to load NSJavaVirtualMachine

JavaVM framework is deprecated but this class is still checked by AppKit, see https://youtrack.jetbrains.com/issue/JBR-3127#focus=Comments-27-4684465.0-0

(cherry picked from commit be6a2c4f0c)
2023-04-21 02:01:26 +02:00
Nikita Gubarkov
f1c83b2ffd JBR-3376 Added check for -1 glyph info pointer in OGLTextRenderer.c 2023-04-21 02:01:26 +02:00
Dmitry Batrak
e149020baa JBR-3024 Popups are shown with 1x1 size sometimes
test case only

(cherry picked part of commit ee298f5287)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:26 +02:00
Vitaly Provodin
612ca84a6f JBR-3314 add regression test
(cherry picked from commit c81adfed61)
2023-04-21 02:01:26 +02:00
Ivan Migalev
8e17cdf616 JBR-3227 Reload type of required native file dialogs each time a file dialog is requested
(cherry picked from commit 26dd87ab7c)
2023-04-21 02:01:26 +02:00
Ivan Migalev
038e97991c JBR-3068 Update path selector behavior when sun.awt.windows.useCommonItemDialog is enabled
(cherry picked from commit 442bb7eecc)
2023-04-21 02:01:26 +02:00
Alexey Ushakov
7dbde9c86a JBR-2996 M1 warnings: CoreText note: Client requested name “.SFCompact-Black”, it will get Times-Roman rather than the intended font
Cached system fonts family names

(cherry picked from commit 56629e4c90)
2023-04-21 02:01:26 +02:00
Alexey Ushakov
310a98e031 JBR-3023 Gray idea frame after project open with ide.mac.transparentTitleBarAppearance.
Initiate move/resize event on first appearance of window having FULL_WINDOW_CONTENT property set

(cherry picked from commit a6ea081ba2)
2023-04-21 02:01:26 +02:00
Dmitry Batrak
b587d05e71 JBR-3017 Focus issue in presence of third-party accessibility tool
use the new invocation approach for 'makeKeyAndOrderFront' as well, as it can also cause synchronous back-calls to accessibility subsystem, and change the global call order unexpectedly

this commit fixes TypeaheadSetVisibleTest and TypeaheadToFrontTest, when they are run with AltTab active

Guard against possible deadlocks, if UI-related methods are invoked not on EDT.
Sample deadlock scenario:
* Application thread attempts to show the window, this involves calling CWrapper.NSWindow.makeKeyAndOrderFront under AWT tree lock, which blocks till 'makeKeyAndOrderFront' completes on AppKit thread
* AppKit thread, while executing 'makeKeyAndOrderFront' performs 'back-call' to CAccessibility.getFocusOwner, which waits for execution on EDT
* EDT performs some activity requiring AWT tree lock (e.g. processing of PaintEvent)

(cherry picked from commits e3aaff5db4, 09941119e1)
2023-04-21 02:01:26 +02:00
Dmitry Batrak
f014ab005f JBR-3072 Deadlock on nested dialog hiding
(cherry picked from commits 99242748ee, ad1595b5c2)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:26 +02:00
Dmitry Batrak
50bc83580e fix occasional freezes of JBR-3017 reproducer after the fix
(cherry picked from commit 7e6db54f77)
2023-04-21 02:01:26 +02:00
Dmitry Batrak
47f4d5d011 JBR-2819 Create API to determine typographic family/subfamily for available fonts
(cherry picked from commit 89e519a4ef)
2023-04-21 02:01:26 +02:00
Nikita Gubarkov
ce3c440bb9 JBR-2924 Do not try to create native italic font when we're going to make it fake italic 2023-04-21 02:01:25 +02:00
Nikita Gubarkov
6579761411 JBR-3982 Fixed non-antialiased text rendering on macOS
JBR-3269 Disabled subpixel antialiasing for macOS Mojave and newer
2023-04-21 02:01:25 +02:00
Dmitry Batrak
21a5e98d0d JBR-3017 Focus issue in presence of third-party accessibility tool
(cherry picked from commit 88ead5d9e3)
2023-04-21 02:01:25 +02:00
Vitaly Provodin
0aa1d697ba JBR-1718 add a regression test
(cherry picked from commit 84ff4eab21)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:25 +02:00
Elena Sayapina
f762a2bb06 JBR-2890 [TESTUPDATE] Enable jcef tests on macOS aarch64 platform
(cherry picked from commit 1714d7b627)
2023-04-21 02:01:25 +02:00
Nikita Gubarkov
cb08b9d13f Added JBR API
with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:25 +02:00
Artem Bochkarev
3b2eb58ea1 JBR-2562: fixed invokation of parent method
(cherry picked from commit 93cbab2f2d)

JBR-2562: suppress exceptions from [NSWindow _changeJustMain]

temporary workaround to prevent crashes

(cherry picked from commit dd055b5970)
2023-04-21 02:01:25 +02:00
Mikhail Grishchenko
fc122ecb28 JBR-2890 Disable jcef tests on 32-bit and aarch64 platforms
(cherry picked from commit d34d6528fe)
2023-04-21 02:01:25 +02:00
Alexey Ushakov
69510015eb JBR-2879 Big Sur: Opening project in new window results in opening project in another tab
Disabled Tabbing mode for all NSWindows

(cherry picked from commit 8cb0377a31)
2023-04-21 02:01:25 +02:00
Nikita Gubarkov
e429ab4bf7 JBR-2910 Implemented extended glyph cache for macOS
JBR-3976 Fixed text spacing & emoji scaling on macOS

JBR-3638 Adjust subpixel glyph positions for correct rounding in CStrike#getGlyphImageBounds
2023-04-21 02:01:25 +02:00
Alexey Ushakov
a249494810 JBR-2617 Text with opacity renders black
Implemented alpha blending in grayscale text rendering (UX-1320)
Corrected bright text thickness (smooth on), bright and dark text thickness (smooth off)
Added JVM properties for fine tuning

(cherry picked from commit c30306f779)
(cherry picked from commit c95adeb8f2)
(cherry picked from commit 269c9580fb)
(cherry picked from commit 55c7be5fe9)
(cherry picked from commit e28ff71e97)
2023-04-21 02:01:25 +02:00
Alexey Ushakov
80c9bdf700 JBR-2521 Ugly font in all 2020.2 EAPs on macOS
Provide gamma correction for both light and dark text

(cherry picked from commit 5953202a7e)
2023-04-21 02:01:25 +02:00
Alexey Ushakov
9e7a8b3d1a JBR-2591 Repainting is broken (was: Icons in tree list widgets became dark)
Save current blend mode before cached grayscale rendering

(cherry picked from commit 7beb75ccec)
(cherry picked from commit ed52fde57d)
2023-04-21 02:01:25 +02:00
Alexey Ushakov
e84ecfc4d1 JBR-1986 Enabling fractional metrics causes visual artifacts in font rendering on macOS 10.14+
Disable subpixel positioning for macOS 10.13+ if legacy LCD rendering is disabled

(cherry picked from commit dbd24232e4)
2023-04-21 02:01:25 +02:00
Vitaly Provodin
66e8a2d994 exclude bug7154030 on macosx-aarch64 due to 8268284 2023-04-21 02:01:25 +02:00
Vitaly Provodin
0eede8c0d4 exclude SharedMemoryPixmapsTest on macosx-all due to 8221451 2023-04-21 02:01:24 +02:00
Vyacheslav Moklev
b1dbdf1bd8 JBR-2442 fix memory leak of fileBuffer
fix was suggested by Nikita Gubarkov
2023-04-21 02:01:24 +02:00
Andrey Starovoyt
7c4148803c JBR-2736 provide writeObjects implementation for copying files/folders from Project Explorer to the Finder
(cherry picked from commit 33db034d49)
(cherry picked from commit d3ec3d899d)
2023-04-21 02:01:24 +02:00
Sergey Malenkov
99d269f63e EA-235126 - CME: HighlightableComponent.getPreferredSize
(cherry picked from commit 523d80cafd)
2023-04-21 02:01:24 +02:00
Kirill Kirichenko
81bd238f7a JBR-2667 Post review: rename win.darkTheme.on to win.lightTheme.on and reversed the logic
(cherry picked from commit eeab5252e6)
2023-04-21 02:01:24 +02:00
Kirill Kirichenko
1b720b06c7 JBR-2667 Add new AWT desktop property for light/dark theme detection on Windows 10
(cherry picked from commit 0e4ad056dd)
2023-04-21 02:01:24 +02:00
Alexey Ushakov
0647480692 JBR-2593 Wide ligatures not rendered in Grayscale mode
Added missing flush of cached vertices

(cherry picked from commit ad409b4370)
2023-04-21 02:01:24 +02:00
Nikita Gubarkov
af837192ba JBR-2910 Implemented extended glyph cache for Linux 2023-04-21 02:01:24 +02:00
Nikita Gubarkov
6435d34bd7 JBR-2910 Implemented extended glyph cache for Windows 2023-04-21 02:01:24 +02:00
Nikita Gubarkov
280b6df77a JBR-2614 Fixed LCD glyph width to include both left & right padding, so that rowBytes = width * 3 2023-04-21 02:01:24 +02:00
Alexey Ushakov
2da1103d43 JBR-2463 Font rendering problem on macOS Mojave
Use adjusted advances for glyphs

(cherry picked from commit 1af5dd4aae)
2023-04-21 02:01:24 +02:00
Denis Konoplev
991b9e8de4 JBR-3544: Generate popup invoked instead of New in this directory.
- A fix
- A regression test (cherry picked from commit 7995574c09)
2023-04-21 02:01:24 +02:00
Vitaly Provodin
1d62121e30 JBR-2545 Clean up the list of ignored Render tests
(cherry picked from commit f7b4c42e1d)
2023-04-21 02:01:24 +02:00
Jayathirth D V
8cf04cb628 8241490: Add large text performance tests in RenderPerfTest
(cherry picked from commit 803ee2f2b5)
2023-04-21 02:01:24 +02:00
Alexey Ushakov
82af29c3ba 8230657: Create fine grained render perf test for metal pipeline
Converted gradle JUnit test to plain java for ant and gnumake

To run the tests:
cd src/demo/share/java2d/RenderPerfTest

ant run
or
java -jar dist/RenderPerfTest.jar
or
java -jar dist/RenderPerfTest.jar testWhiteTextBubblesGray

(cherry picked from commit 356121b18f)
(cherry picked from commit 8bd8d2d132)
2023-04-21 02:01:24 +02:00
Konstantin Bulenkov
b0e31c826f Update FiraCode to 5.2
(cherry picked from commit 71e2a8d8ad)
2023-04-21 02:01:24 +02:00
Alexey Ushakov
0fe89779ec JBR-1929 Improve rendering of San Francisco font of macOS Catalina
Reverting gamma correction because of rendering artifacts in the light theme

This reverts commit 5016db51

(cherry picked from commit c1d644a004)
2023-04-21 02:01:23 +02:00
Alexey Ushakov
e4883f6b37 JBR-1929 Improve rendering of San Francisco font of macOS Catalina
Added gamma correction to match grayscale rendering with subpixel one

(cherry picked from commit 5016db518a)
2023-04-21 02:01:23 +02:00
Alexey Ushakov
6495886061 JBR-2463 Font rendering problem on macOS Mojave
Use adjusted advances for glyphs

(cherry picked from commit 1af5dd4aae)
2023-04-21 02:01:23 +02:00
Anton Tarasov
abb617d7e0 revert: JBR-1434 "New file dialog" popup remains above all windows on switching application
java.awt.peer.WindowPeer.isLightweightDialog() method does not exist.

(cherry picked from commit 7d8aeaf7de)
2023-04-21 02:01:23 +02:00
Anton Tarasov
fce3b7b675 JBR-2872 improve: JBR-2866 JCEF: Markdown editor steals focus from a different frame
(cherry picked from commit bad748e3d0)
2023-04-21 02:01:23 +02:00
Anton Tarasov
44fd1ba930 JBR-2866 JCEF: Markdown editor steals focus from a different frame
with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:23 +02:00
Anton Tarasov
f08c835c3f JBR-2645 enable CefBrowser.close(true) in jcef reg tests
(cherry picked from commit 492c217125)
2023-04-21 02:01:23 +02:00
Anton Tarasov
2a74c92a2f JBR-2259 WebSite isn't loaded with .loadUrl method if browser isn't shown in UI
(cherry picked from commit 57bbddf071)
2023-04-21 02:01:23 +02:00
Anton Tarasov
6cf7798955 JBR-2557 use com.jetbrains.cef.JCefAppConfig in JCEF tests
(cherry picked from commit e30a309f92)
2023-04-21 02:01:23 +02:00
Anton Tarasov
77331c0191 JBR-2489 Git branch operations (switch to another branch, rebase) sometimes crash WebStorm 202.5428.27
(cherry picked from commit 81d2156fb1)
2023-04-21 02:01:23 +02:00
Anton Tarasov
c6d75ba2cc JBR-2282 [jcef] update to JCEF/80.0.4+g74f7b0c+chromium-80.0.3987.122
(cherry picked from commit a5adc725df)
2023-04-21 02:01:23 +02:00
Anton Tarasov
560408acd6 JBR-2305 jcef: jb/java/jcef/JCEFStartupTest.java throws java.lang.ExceptionInInitializerError
(cherry picked from commit f0385f01ec)
2023-04-21 02:01:23 +02:00
Anton Tarasov
a961d0eb03 JBR-2306 jcef: jb/java/jcef/JCEFStartupTest.java unexpectedly exits with the exit code: 0
(cherry picked from commit ff7d7bd43c)
2023-04-21 02:01:23 +02:00
Anton Tarasov
048155f682 JBR-2299 [mac] jcef requests for "chromium safe storage" keychain access
(cherry picked from commit dd1334a352)
2023-04-21 02:01:23 +02:00
Anton Tarasov
11db4b71eb JBR-2222 Crash during closing IDE
(cherry picked from commit d0c367b31f)
2023-04-21 02:01:23 +02:00
Anton Tarasov
e6e3ec1ecd JBR-2287 [jcef] add CefBrowser wrapper to jtreg tests
(cherry picked from commit fa961d1769)
2023-04-21 02:01:23 +02:00
Anton Tarasov
98cf1c897e JBR-2169 AWTThreading: remove tracked invocation event from completion listener
(cherry picked from commit a855f3b835)
2023-04-21 02:01:22 +02:00
Anton Tarasov
f2e07f6fe2 JBR-2159 Native crash in thread AWT-EventQueue-0 when trying to push commit
(cherry picked from commit bba297b4a4)
2023-04-21 02:01:22 +02:00
Anton Tarasov
0bf6fa9ba8 JBR-2148 JCEF: JBR bundle has invalid app structure
(cherry picked from commit f45f84d7ed)
2023-04-21 02:01:22 +02:00
Anton Tarasov
1af2f09533 JBR-2146 improve InvokeOnToolkitHelper to cover more generic case 2023-04-21 02:01:22 +02:00
Anton Tarasov
87439f7456 JBR-2139 Idea freeze on dynamic plugin unloading
(cherry picked from commit e57bae4f66)
2023-04-21 02:01:22 +02:00
Anton Tarasov
808b8907ad JBR-2099 jb/java/jcef/JCEFStartupTest.java fails on Windows, Linux
(cherry picked from commit 3dfb0aa16a)
2023-04-21 02:01:22 +02:00
Anton Tarasov
0cdd3cc162 JBR-2093 create reg test for JCEF startup
(cherry picked from commit e8c2761f5b)
2023-04-21 02:01:22 +02:00
Anton Tarasov
a683750904 JBR-2082 Revealing taskbar does not work when "Automatically hide the taskbar"
(cherry picked from commit b31a41fb2f)
2023-04-21 02:01:22 +02:00
Mikhail Grishchenko
c8de1879b6 JBR-2639, JBR-2412 [jcef] Tests that checks mouse events
JBR-2412 [windows] mouse listener does not work for jcef

(cherry picked from commit 66ad6472ae)
(cherry picked from commit 04246aac57)
(cherry picked from commit b7cde4fd05)
2023-04-21 02:01:22 +02:00
Mikhail Grishchenko
e2620305d6 JBR-2639 [win] jcef does not recognize vertical mouse wheel events
added regression test

(cherry picked from commit e8e4741bb0)
2023-04-21 02:01:22 +02:00
Mikhail Grishchenko
f3880c2138 JBR-2412 [windows] mouse listener does not work for jcef
added regression test

(cherry picked from commit d1479872f2)
2023-04-21 02:01:22 +02:00
Elena Sayapina
1ef24fa15b JBR-2630 Typing speed in IDE editor was dropped after switching to 11.0.8
Introduced sun.awt.osx.RobotSafeDelayMillis property to control macOS specific safe delay for Robot methods.
50 ms safe delay was initially hardcoded in 3862142d (JDK-8242174: [macos] The NestedModelessDialogTest test make the macOS unstable) which affected performance tests execution.

(cherry picked from commit 5f691bb788)
2023-04-21 02:01:22 +02:00
Mikhail Grishchenko
8441a918e2 JBR-2430 [jcef] Added Regression test
Checks that JS Query is handled in 2nd opened browser

(cherry picked from commit 404ff84565)

Refactoring + changed EDT awaiting method

(cherry picked from commit dc24658b31)
2023-04-21 02:01:22 +02:00
Vitaly Provodin
899c2e7b6e exclude the new printer test 8262731 2023-04-21 02:01:22 +02:00
Alexey Ushakov
90814e6e15 JBR-2419 Improve performance of CStrike.getNativeGlyphOutlineBounds
Do not pass the result via java object. Use more straight api.

(cherry picked from commit 9f91fe91f5)
(cherry picked from commit c0fd2daf5c)
2023-04-21 02:01:22 +02:00
Alexey Ushakov
ee5887cc46 JBR-2382 Provide detailed stack trace in crash dumps for unhandled ObjC exceptions
Used user home dir for jbr_err files. Removed logging with reportException method

(cherry picked from commit 2c8cdb221b)

JBR-2382 Provide detailed stack trace in crash dumps for unhandled ObjC exceptions

Used process workdir for jbr_err files. Added one more logging to reportException method

(cherry picked from commit 95a47810d5)

JBR-2382 Provide detailed stack trace in crash dumps for unhandled ObjC exceptions

Generate jbr_err_pidXX.log file with detailed stack trace of the exception

(cherry picked from commit 4c42f75021)
2023-04-21 02:01:21 +02:00
Artem Bochkarev
a9d9faca5f JBR-2253: unset LD_PRELOAD just after VM loaded
workaround for JBR-2253 Preload libjsig.so to fix JNA crashes

(cherry picked from commit 127a2deddf)
2023-04-21 02:01:21 +02:00
Kirill Kirichenko
22b972592b JBR-1874 Cursor not changing from 'default' to 'text'. Additional fix after reopening.
(cherry picked from commit 5a29d4ade9)
2023-04-21 02:01:21 +02:00
Elena Sayapina
8726009b45 JBR-2585 [TESTBUG] TouchScreenEvent tests affect tests simulating mouse actions
- added workaround for JBR-2585
- added README.md about manual test run
- made an update to close LinuxTouchScreenDevice properly
- added an error exit from linux shell script if sudo password is empty or chown fails

(cherry picked from commit 4deb3bbe61)
2023-04-21 02:01:21 +02:00
Denis Konoplev
a82646def5 fixup! macOS national keyboard support
Remove unused import that broke compilation
2023-04-21 02:01:21 +02:00
Elena Sayapina
0eaf9ac731 IDEA-165950 [TESTUPDATE] National keyboard layouts support
Update regression test after the following commits:

02fad83c: Remove public constants from KeyEvent
f4227faf: Impossible to assign cmd+ß shortcuts
(cherry picked from commit 264802cf4b)
2023-04-21 02:01:21 +02:00
Elena Sayapina
892d5bfa34 JBR-2328 [TESTBUG] Regression test java/awt/keyboard/AllKeyCode/AllKeyCode.java is not correct
(cherry picked from commit 861f73c393)
(cherry picked from commit bfab6a9364)
(cherry picked from commit e9fa7a0882)
2023-04-21 02:01:21 +02:00
Mikhail Grishchenko
ee0fe26990 JBR-2259 WebSite isn't loaded with .loadUrl method if browser isn't shown in UI
Added reproducer

(cherry picked from commit e875bf72c9)
2023-04-21 02:01:21 +02:00
Denis Konoplev
96f8cd82e6 JBR-2490 Add option to work with Surface Pen
(cherry picked from commit 5acc7680a1)
2023-04-21 02:01:21 +02:00
Denis Konoplev
0bb329c002 JBR-2669: set unicode for both keyCode and extendedKeyCode
(cherry picked from commit ba3f14c83a)
2023-04-21 02:01:21 +02:00
Denis Konoplev
2a1cf443f2 JBR-2554: Proper unicode values in KeyEvent.keyCode
(cherry picked from commit 703d77a927)
2023-04-21 02:01:21 +02:00
Denis Konoplev
926fe44852 JBR-215: Remove SystemInfo
(cherry picked from commit 9adf77a512)
2023-04-21 02:01:21 +02:00
Denis Konoplev
f02124e271 JBR-215: Separate LatinNonAlphaNumKeycodes option
(cherry picked from commit caf366f6f3)
2023-04-21 02:01:21 +02:00
Denis Konoplev
2d2a7ae249 JBR-215: Windows non-alphanumeric shortcuts
(cherry picked from commit 4f60efebe2)
2023-04-21 02:01:21 +02:00
Denis Konoplev
702f7315ac JBR-2280: Fix regression. Mode compatible with old option.
(cherry picked from commit a3e3c23cb1)
2023-04-21 02:01:21 +02:00
Denis Fokin
67db68e460 macOS national keyboard support 2023-04-21 02:01:21 +02:00
Sergey Malenkov
ad0dd5a299 JBR-1929 FractionalMetricsSupport
(cherry picked from commit bbdc159762)
2023-04-21 02:01:20 +02:00
Mikhail Grishchenko
796ee0168c JBR-2256 JEditorPane with test/html type and zero margins is not shown
Updated reproducer

(cherry picked from commit 529a188b8b)

JBR-2256 JEditorPane with test/html type and zero margins is not shown

Added reproducer

(cherry picked from commit 41578a40b5)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:20 +02:00
Mikhail Grishchenko
4892e31371 JBR-2210 IDEA fails to start (JVM crashes) when using the -Dfile.encoding=UTF-8in IDEA's vmoptions file
Added regression test

(cherry picked from commit 4e1f5a43b3)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:20 +02:00
Mikhail Grishchenko
3f4edcf3c3 JBR-1414 [Test] downscale frames to run on low-dpi screens
(cherry picked from commit b46e74fe6f)
2023-04-21 02:01:20 +02:00
Elena Sayapina
c00c7160c1 JBR-1905 [TESBUG] java/awt/TextArea/DisposeTest/TestDispose.java: frame is not disposed
- java/awt/TextArea/DisposeTest/TestDispose.java, java/awt/TextField/DisposeTest/TestDispose.java: fixed test frame disposal
- java/awt/Frame/DisposeStressTest/DisposeStressTest.java: decreased test timeout from 2h to 10 min, added minor diagnostic logging

(cherry picked from commit 7f025f4e16)
(cherry picked from commit dda7f3d871)
(cherry picked from commit bc09aadadb)
2023-04-21 02:01:20 +02:00
Alexey Ushakov
78644464ec JBR-2135 Use CoreText api to select the font with the most recent version
Added a property to force loading bundled fonts: -Djava2d.font.noVersionCheck=true

(cherry picked from commit cbb148dff4)
2023-04-21 02:01:20 +02:00
Alexey Ushakov
eefaf4258d JBR-2137 JetBrainsMono fonts update to v1.0.3
(cherry picked from commit a6e441828a)
2023-04-21 02:01:20 +02:00
Mikhail Grishchenko
0fe4a36a41 JBR-1414: Added regression test for dnd with HiDPI scaling
(cherry picked from commit 1f4ab12fbb)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:20 +02:00
Elena Sayapina
7bdb119b1e JBR-2041 [TEST] Added new regression test (Touchscreen devices support)
(cherry picked from commit 2d587b3728)
(cherry picked from commit 92606f2c7f)
(cherry picked from commit 05af375909)
(cherry picked from commit 0f895bf1b2)
(cherry picked from commit 08aa0852b7)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:20 +02:00
Konstantin Bulenkov
cbb934e161 Update JetBrains Mono to 1.0.2
(cherry picked from commit 6f4a13e46f)
2023-04-21 02:01:20 +02:00
Ivan Migalev
13282a01f8 Extract the DWM colorization parameters from registry (JBR-2070)
(cherry picked from commit 0330cab60b)
2023-04-21 02:01:20 +02:00
Ivan Migalev
7bfb56e410 Refresh desktop properties on WM_DWMCOLORIZATIONCOLORCHANGED (JBR-2070)
(cherry picked from commit 06086f4a7e)
2023-04-21 02:01:20 +02:00
Ivan Migalev
c80f906608 Fix a possible resource leak in ColorizationColorAffectsBorders
(cherry picked from commit 0c911b6ffe)
2023-04-21 02:01:20 +02:00
Elena Sayapina
884b3cf5f5 JBR-2086 JetBrainsMono fonts update to v1.0.1
(cherry picked from commit a4b373e631)
2023-04-21 02:01:20 +02:00
Konstantin Bulenkov
64d04a5247 JetBrains Mono 1.0
(cherry picked from commit d514f7a982)
2023-04-21 02:01:20 +02:00
Denis Konoplev
6def89f122 JBR-3444: Return NullSurfaceData when gc == null
(cherry picked from commit 01ad15e61c)
2023-04-21 02:01:19 +02:00
Denis Konoplev
f57812fa8f JBR-1995: Last character issue with korean
Fix for JTextComponent

(cherry picked from commit a7c8b0b535)
2023-04-21 02:01:19 +02:00
Denis Konoplev
94a321bf23 JBR-2891: Post PhaseEvents in the begin and end of Magnify and Rotate
(cherry picked from commit c811c295c2)
2023-04-21 02:01:19 +02:00
Denis Konoplev
b3985729b0 JBR-2444: Turn on IM workaround by default
(cherry picked from commit 15c4ce1d3e)
2023-04-21 02:01:19 +02:00
Denis Konoplev
a934b04de2 Fix build: add import & fix jwhen 2023-04-21 02:01:19 +02:00
Denis Konoplev
44122cf972 JBR-2795: Add explicit conversion
(cherry picked from commit bf3e1c0c31)
2023-04-21 02:01:19 +02:00
Denis Konoplev
d3d6f84a2d IDEA-237231: Correct signarute mask
(cherry picked from commit 6974131eec)
2023-04-21 02:01:19 +02:00
Denis Konoplev
b37829e6f2 IDEA-237231: Possible fix for pen interraction
(cherry picked from commit 33a8c95d39)
2023-04-21 02:01:19 +02:00
Denis Konoplev
26fe155b01 JBR-2041: Project view tap fix, recovery? constants & logging
(cherry picked from commit 1e904db3b0)
2023-04-21 02:01:19 +02:00
Denis Konoplev
6d35836266 IDEA-229135: Fling animation stop on tap
(cherry picked from commit 7ce0f79561)
2023-04-21 02:01:19 +02:00
Denis Konoplev
fac18bbc73 Windows touch screen support
(cherry picked from commit cab3f28907)
2023-04-21 02:01:19 +02:00
Denis Konoplev
b93191ac94 Turn off multitouch
(cherry picked from commit a2576ffa9a)
2023-04-21 02:01:19 +02:00
Denis Konoplev
43c6f2678f Check XInput extension && touch inertia
(cherry picked from commit cca7fb97f4)
2023-04-21 02:01:19 +02:00
Denis Konoplev
46c51a8d21 Touch scroll handling
(cherry picked from commit 6dcec3dc31)
2023-04-21 02:01:19 +02:00
Denis Konoplev
135f84aa37 XI2 Constants
(cherry picked from commit 588cd6ee73)
2023-04-21 02:01:19 +02:00
Denis Konoplev
dffb5e8cdd XLibWrapper XI2 functions
(cherry picked from commit d6bd1bfa2b)
2023-04-21 02:01:18 +02:00
Denis Konoplev
f620cb834b X11 native get put double
(cherry picked from commit f101bc1108)
2023-04-21 02:01:18 +02:00
Denis Konoplev
09b7d80c55 Native data types
(cherry picked from commit 9504574dbb)
2023-04-21 02:01:18 +02:00
Denis Konoplev
d86e36b4e7 XI2 headers in xlib wrapper generator
(cherry picked from commit ef108067a1)
2023-04-21 02:01:18 +02:00
Denis Konoplev
32bbcde552 Revert "Turn off multitouch"
This reverts commit 90ea3bf57e4c687e9d9bf0a37f2f64c82a81f4eb.
2023-04-21 02:01:18 +02:00
Denis Konoplev
f7021d0f59 Turn off multitouch
(cherry picked from commit a2576ffa9a)
2023-04-21 02:01:18 +02:00
Alexey Ushakov
722e792576 JBR-1962 Allow to change font config
Replaced several privileged blocks with just one

(cherry picked from commit faa8d3d258)
2023-04-21 02:01:18 +02:00
Vitaly Provodin
dad04514c8 JBR-572: Regression test on the crash caused by the fix
(cherry picked from commit 6cc380ffb5)
(cherry picked from commit 958e25ed21)
(cherry picked from commit a7de601d5f)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:18 +02:00
Dennis Ushakov
fd71aebd98 JBR-1863, JBR-1868 correct advances on Catalina 2023-04-21 02:01:18 +02:00
Dennis Ushakov
aa27a3d6b7 JBR-1850: on macOS fonts should be sorted by weight to ensure proper population of the families 2023-04-21 02:01:18 +02:00
Dennis Ushakov
760fb05ebb faster font family loading & lazy font family population
1. NSFont.familyName is faster than loading allFamilyNames
2. Prebuilt list of system fonts
3. Cleanup San Francisco family loading
4. Avoid calling expensive native getWidth on font when creating font family, load styles only when they would be used.
2023-04-21 02:01:18 +02:00
Dennis Ushakov
c4a28d5562 JBR-1756 use CoreText for all font rendering on Catalina 2023-04-21 02:01:18 +02:00
Nikita Gubarkov
3e25ea7a67 JBR-410 Added emoji support for Linux 2023-04-21 02:01:18 +02:00
Alexey Ushakov
db00b22f3e JBR-1997 JetBrainsMono fonts update to v0.22
(cherry picked from commit 41f4fddd34)
(cherry picked from commit f5302a02f4)
(cherry picked from commit 5d7fd2e1e5)
2023-04-21 02:01:18 +02:00
Anton Tarasov
208d4f69b8 JRE-729 [windows] unreasonable IME activity consumes CPU 2023-04-21 02:01:18 +02:00
Dmitry Batrak
be06874617 JBR-3119 Application's panel in KDE taskbar blinks when popup window is shown
this re-fixes JBR-2934 in a different way

(cherry picked from commit 63134e091b)
2023-04-21 02:01:17 +02:00
Dmitry Batrak
2dc768acc0 JBR-3038 Unexpected windows z-order change on workspace switch
(cherry picked from commit ddda860f42)
2023-04-21 02:01:17 +02:00
Dmitry Batrak
2290c4dcd2 JBR-3035 The Confirm Exit pop-up window remains hidden behind a window of another application
(cherry picked from commit 470c3bd1b5)
2023-04-21 02:01:17 +02:00
Dmitry Batrak
b2c1a20219 JBR-2934 Serious usability issue with GoLand 2020.3 caused by JBR
(cherry picked from commit 95be4351d4)
2023-04-21 02:01:17 +02:00
Dmitry Batrak
db5a6e7fa6 JBR-2977 Opening a recent project in a new window doesn't bring this window to the front
(cherry picked from commit 2d9fb9e7b8)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:17 +02:00
Dmitry Batrak
801e8b21df JBR-2698 setAutoRequestFocus(false) breaks focus logic under i3 window manager on Linux
(cherry picked from commit ebcdeb7d80)
2023-04-21 02:01:17 +02:00
Dmitry Batrak
a6cd798e95 JBR-2696 Log focus API invocations with stack traces
(cherry picked from commits 0f038754e5, a507cab6d3)
2023-04-21 02:01:17 +02:00
Dmitry Batrak
0aa80ac68d JBR-2496 Prevent JVM stealing focus from other applications on Linux (JBR-2497, JBR-2499, JBR-2503, JBR-2652)
(cherry picked from commits 87525d1d2a, 66381f0dec, 8a789e04e9, 665ebc5d47, 98a9219c23)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:17 +02:00
Alexey Ushakov
cb7277a9da JBR-3509 Extend JDK-8267521 (Post JEP 411 refactoring: maximum covering > 50K) to JBR specific changes
Marked all the usages of SecurityManager related api
2023-04-21 02:01:17 +02:00
Artem Bochkarev
870727786d JBR-1851: check NSArray length
and make more exception-safe
and minor optimization for logging (cache jobjects)

(cherry picked from commit 5839539379)
2023-04-21 02:01:17 +02:00
Artem Bochkarev
97ac7223c1 JBR-1841: allow deferred disabling of InputMethods-support
(cherry picked from commit 969255904b)
2023-04-21 02:01:17 +02:00
Artem Bochkarev
a3cd7ccdbf JBR-1668: add hardcoded default values for preferences node NSServicesStatus
(cherry picked from commit 8445f53d85)
2023-04-21 02:01:17 +02:00
Artem Bochkarev
de7703b331 JBR-1515: obtain shortcut from OS to check inside AWTView.performKeyEquivalent
(cherry picked from commit 30d479fbd4)

JBR-4899 Activate Previous Window doesn't work sometimes

(cherry picked from commit 63cb726f3c)
2023-04-21 02:01:17 +02:00
Artem Bochkarev
1f50cb7a02 JBR-1668: add hardcoded descriptions of system actions
and minor fixes

fix memory management

(cherry picked from commit 15f7368309)
2023-04-21 02:01:17 +02:00
Elena Sayapina
1d49daf0cc JBR-1417 [TEST] Added new regression test (JBR 11 does not support chain of popups)
(cherry picked from commit 41e89505be)
(cherry picked from commit 9fe5c778d9)
(cherry picked from commit 6ea9530d9f)
(cherry picked from commit d757108517)
(cherry picked from commit b99c1e7b5c)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:17 +02:00
Alexey Ushakov
220a9ab96e JBR-1690 Bundle new fonts
Test correction
Restored RenderUtil.java
Removed obsolete golden images
(cherry picked from commits:
aa13c8b4ea
943b1472c7
cab6dd5087
7997c7a5ee
cab6dd5087
7997c7a5ee
d3731df79d)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:17 +02:00
Dmitry Batrak
3106b68713 IDEA-257525 Unable to show Chinese when using IDEA mac ARM version
The proposed solution is to use a 'normal' font as a base for 'San Francisco' font fallback.
Most of its fallback components/candidates (provided by the OS) are expected to be normal
fonts as well, and so the resulting coverage of Unicode character repertoire should be much better.

(cherry picked from commits 9b7113a6cf, 92b00d50b5, 53489fab27)
2023-04-21 02:01:16 +02:00
Dmitry Batrak
7c4f00e9b0 JRE-469 Console with emoji output becomes slow
The fix consists of two parts:
* Making CCharToGlyphMapper remember that a particular character cannot be displayed (isn't mapped to glyph with given font). Checking this repeatedly in native code is very slow.
* Make CCompositeGlyphMapper remember the results of char-to-glyph mapping, this was missing in previous implementation. This reuses caching code in CompositeGlyphMapper, extending the range of characters for which the results are cached to include Supplementary Multilingual Plane (most emoji characters belong to it).

port commit 4e0ccde2 from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commit 394e055ae6)

cherry picked from commit 0db7e948af
2023-04-21 02:01:16 +02:00
Dmitry Batrak
45a368bae2 reimplement JDK-7162125 to fix JDK-8147002
port commit ba38e5c4 from JBR 9

port from JBR 11 to JBR 15(cherry picked from commit a949f9d220)

cherry-picked from commit f309844f75

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:16 +02:00
Artem Bochkarev
e5f0b40729 JBR-1771: fixed compilation errors (macosx-x86_64-normal-server-fastdebug)
(cherry picked from commit 1acada7cac)
2023-04-21 02:01:16 +02:00
Artem Bochkarev
e36943386e JBR-1668: minor fixes
fixed review comments

(cherry picked from commit 9dbcf194c9)
2023-04-21 02:01:16 +02:00
Vitaly Provodin
25a4c7eeed JBR-1618: fixed misprint, added saving screenshots in case of failure
(cherry picked from commit e4a3889cf0)
2023-04-21 02:01:16 +02:00
Alexey Ushakov
06e4de92a7 JBR-1624 Fonts rendering is broken in the 2019.2 EAP (Fira Code)
Corrected lookup for bold fonts

(cherry picked from commit 114b8af38f)
2023-04-21 02:01:16 +02:00
Alexey Ushakov
ea3de2cbf6 JBR-1399 Improve font discovery and loading by introducing font cache
Added unit test

(cherry picked from commit b4f5bf8bd3)
2023-04-21 02:01:16 +02:00
Elena Sayapina
8bef0fce24 IDEA-165950 [TEST] Added new regression test (National keyboard layouts support)
(cherry picked from commit 0900a705bc)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:16 +02:00
Artem Bochkarev
c82ab03cea JBR-1668: read system keyboard shortcuts
initial support for OS X

(cherry picked from commit 6bbe7102e2)
2023-04-21 02:01:16 +02:00
Artem Bochkarev
0efaea00dd JBR-1573: restore current input context after cleanup
(cherry picked from commit b7acd7f6f6)
2023-04-21 02:01:16 +02:00
Alexey Ushakov
fcb2683231 JBR-1624 Fonts rendering is broken in the 2019.2 EAP (Fira Code)
Restored old behaviour of registerFontsInDir as it does not affect idea bundled fonts

(cherry picked from commit cef29e8100)
2023-04-21 02:01:16 +02:00
Alexey Ushakov
67193db5db JBR-1874 Cursor not changing from 'default' to 'text'
Prevent OS from changing cursor

(cherry picked from commit 94a4eb7002)
2023-04-21 02:01:16 +02:00
Alexey Ushakov
11bd75df15 JBR-1778 Font in editor incorrect (always italics)
Added -it pattern into italic detection code
Added some more patterns to bold and italic detection code
'Anka/Coder' font support

(cherry picked from commit 5119eeee12)
(cherry picked from commit ec241e4a0a)
(cherry picked from commit 251068294e)
(cherry picked from commit 08ae9ff034)
2023-04-21 02:01:16 +02:00
Alexey Ushakov
3f095229df JBR-1699 Use platform font rendering for bundled fonts on MacOS
Use different family for specific font faces. Refactoring

JBR-3071 Remove naming workaround for Fira Code

(cherry picked from commits c423003bd4, aee4b48d20)
2023-04-21 02:01:16 +02:00
Alexey Ushakov
a218698b9c JBR-1624 Fonts rendering is broken in the 2019.2 EAP (Fira Code)
Lower priority for idea bundled fonts to pickup platform ones
(if installed)

(cherry picked from commit e838103a24)
2023-04-21 02:01:15 +02:00
Alexey Ushakov
a483727744 JBR-1885 JetBrainsMono fonts update to v0.19
Updated the fonts to v0.19. Bundled italic fonts

(cherry picked from commit 7f032e3fe7)
(cherry picked from commit a7b4c9449a)
2023-04-21 02:01:15 +02:00
Alexey Ushakov
9bc0e00547 JBR-1624 Fonts rendering is broken in the 2019.2 EAP (Fira Code)
Lower priority for idea bundled fonts to pickup platform ones
(if installed)

(cherry picked from commit e838103a24)
2023-04-21 02:01:15 +02:00
Alexey Ushakov
ff321fc7f2 JBR-1699 Use platform font rendering for bundled fonts on MacOS
Used CFont instead of TrueTypeFont for bundled fonts on mac
Use different family for specific font faces. Refactoring

(cherry picked from commit 8c86ad3e96)
(cherry picked from commit c423003bd4)
(cherry picked from commit bcae402dc8)
2023-04-21 02:01:15 +02:00
Alexey Ushakov
209279bd25 JBR-1690 Bundle new fonts
Update family name for JetBrainsMono-Thin

(cherry picked from commit 0d2326ff34)
(cherry picked from commit 83843f9124)
(cherry picked from commit 2a2e1cfb36)
(cherry picked from commit 76abb69262)
2023-04-21 02:01:15 +02:00
Alexey Ushakov
8268679b0e JBR-1645 javax/swing/JTextArea/TestTabSize.java: Tab width calculation wrong
Corrected idea font filter

(cherry picked from commit 62f9d1f46a)
2023-04-21 02:01:15 +02:00
Artem Bochkarev
d4991c5c56 JBR-1573: workaround for 'Sudden keyboard death on Ubuntu 18'
recreate instance of system InputMethod when starts filter all events

(cherry picked from commit 3ad94911af)

(cherry picked from commit c8533a1219)
2023-04-21 02:01:15 +02:00
Alexey Ushakov
1b2dac956c JBR-1399 Improve font discovery and loading by introducing font cache
Bundle IDEA fonts to improve startup performance

(cherry picked from commit 350a3fdef3)
2023-04-21 02:01:15 +02:00
Artem Bochkarev
440717177d JBR-1541: activate menu in completion handler of modal dialog
(cherry picked from commit e57384c1d6)
2023-04-21 02:01:15 +02:00
Alexey Ushakov
9050868206 JBR-1314 Font difference in pycharm 2019.1 on Ubuntu
Removed disabling hints on MAX_FCSIZE_LTL_DISABLED font size

(cherry picked from commit 2b99dfed40)
2023-04-21 02:01:15 +02:00
Alexey Ushakov
300d93ca30 JBR-1412 [fwp to JBR11] JBR-1393 RubyMine is hanging after log in (macOS)
Modified version of JBR8 fix

(cherry picked from commit 434166fe63)
2023-04-21 02:01:15 +02:00
Alexey Ushakov
7638d8c059 JBR-1394 JBR11 does not support LCD text on Mac
Enable LCD rendering for transparent destinations

(cherry picked from commit 207c6b92ff)
2023-04-21 02:01:15 +02:00
Elena Sayapina
77a5c9d488 JBR-1372: [TESTBUG] JDialog1054.java, MoveFocusShortcutTest.java regression tests need update
(cherry picked from commit a5948894bf)
2023-04-21 02:01:15 +02:00
Maxim Kartashev
bd1ef62aaf JBR-2755 IDE UI became slow via remote X Server connection from Windows
When XGetImage() calls become slow in a remote X11 session, fake
XGetImage() with client-side XCreateImage() that is filled with some
background color. The color is chosen from several top left corner
pixels of the "slow" images obtained with XGetImage().

This feature activates in a remote X11 session only and is
controlled with -Dremote.x11.workaround={true|false|auto}.
2023-04-21 02:01:15 +02:00
Vyacheslav Moklev
14c7a4c98f Fix const pointer after JDK-8225032 fix 2023-04-21 02:01:15 +02:00
Vyacheslav Moklev
398ad87d4b Fix compilation on windows platform: awt_ole.h must be included before awt.h 2023-04-21 02:01:14 +02:00
Vyacheslav Moklev
85303de2ad JBR-1269 Common Item Dialog does not appear on Alt+Tab or click in windows toolbar
JBR-1270 Common Item Dialog does not have an icon

Select a proper window handle
2023-04-21 02:01:14 +02:00
Vyacheslav Moklev
aaec789cc6 JBR-1271 Wrong parent of native windows dialogs
Set a proper parent to a dialog window
2023-04-21 02:01:14 +02:00
Vyacheslav Moklev
8cc677cd7f JBR-1273 Common Item Dialog does not open when wrong path to directory is passed
Handle set directory / set file properly
2023-04-21 02:01:14 +02:00
Vyacheslav Moklev
ae3a8f3cf3 JBR-1274 Common Item Dialog sometimes crash the process
Prevent from freeing memory with CoTaskMemFree twice
2023-04-21 02:01:14 +02:00
Vyacheslav Moklev
fb9c7f3789 JBR-1257 CommonItemDialog modal window has no owner
Fix modality for Common Item Dialog

squash! JBR-1257 CommonItemDialog modal window has no owner

JBR-2478 java/awt/Modal/FileDialog/FileDialogNonModal7Test.java: DummyButton on Dialog did not gain focus when clicked

revert part of JBR-1271, that's related to 'old' file dialogs
2023-04-21 02:01:14 +02:00
Vyacheslav Moklev
97e283145f JBR-1258 CommonItemDialog ignores directory to open
Fix parsing of directory path / file path
2023-04-21 02:01:14 +02:00
Vyacheslav Moklev
dd8d573c89 JRE-1216 Implement Windows native file dialogs with the new Common Item Dialog API
Add implementation of file dialogs with the new Common Items Dialog API
2023-04-21 02:01:14 +02:00
Alexey Ushakov
d0202558e6 JBR-1144 [JDK11] [macos] Held down key is not deleted when press backspace after accent menu popup (Mojave)
Handled both Delete and ForwardDelete keys

(cherry picked from commit e3ba0bd651)
2023-04-21 02:01:14 +02:00
Alexey Ushakov
10050e92db JBR-1144 [JDK11] [macos] Held down key is not deleted when press backspace after accent menu popup (Mojave)
Handled backspace separately

(cherry picked from commit 81916a92af)
2023-04-21 02:01:14 +02:00
Elena Sayapina
45b80e2703 JBR-1102: [TESTBUG] java/awt/Paint/ComponentIsNotDrawnAfterRemoveAddTest/ComponentIsNotDrawnAfterRemoveAddTest.java: 'paint' method of 60 components was not called
(cherry picked from commit dc7abebe17)
(cherry picked from commit c8d631a142)
2023-04-21 02:01:14 +02:00
Elena Sayapina
743161e4f2 JBR-998: [TEST] Added new regression test (Input freezes after MacOS key-selector on Mojave)
(cherry picked from commit 3d898a8024)
(cherry picked from commit f368f0f101)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:14 +02:00
Elena Sayapina
31d2dd4f24 JBR-318: [TEST] Added new regression test (Cmd+` doesn't work after update to JDK 152_*)
(cherry picked from commit 0be0a018b5)
(cherry picked from commit 5bb4c2a1d6)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:14 +02:00
Elena Sayapina
85203aa089 JBR-1054: [TEST] Added new regression test (Weird non-modal dialog above modal dialog behaviour)
(cherry picked from commit b808be6a6a)
(cherry picked from commit 48b7dd874f)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:14 +02:00
Vitaly Provodin
ce9ed2eacb JRE-1117 J2DBench: introduced result reader for TC's charts (follow up)
separated printing values fo TC charts and values for comparisons

(cherry picked from commit bbdbe17e2a)
2023-04-21 02:01:14 +02:00
Vitaly Provodin
f5bff3d7c7 JRE-1117 J2DBench: introduced result reader for TC's charts
(cherry picked from commit 422fa59643)
2023-04-21 02:01:14 +02:00
Alexey Ushakov
f2ac66ad92 JRE-60 Editor font is distorted on Kubuntu Linux 16.04 with HiDPI
Override FC_HINT_SLIGHT only for small font sizes

(cherry picked from commit 0e1d23c807)
2023-04-21 02:01:13 +02:00
Alexey Ushakov
a6de5c080f JRE-471 Crash on macOS Sierra after Sleep
Replaced [NSScreen screens] 'objectAtIndex' with 'firstObject' to get nil instead of NSRangeException. Added nil checks

(cherry picked from commit d6b98511262055c01522d9ec8024253af7e91564)
(cherry picked from commit cef970e1ba)
2023-04-21 02:01:13 +02:00
Alexey Ushakov
fee0732c22 JRE-608 J2DBench metrics: up to 20x degradation
Increased rendering queue buffer up to 6.4 MB

(cherry picked from commit 9ef00f00a7fb6e14835393f8d3944157c6800727)
(cherry picked from commit 2a61e9e997a880a60c5acb361849205170501b91)
(cherry picked from commit 68ca9f00ded004c970b94bd047a04b9f09237047)
(cherry picked from commit 2fe5289178)
2023-04-21 02:01:13 +02:00
Alexey Ushakov
76bda4efd2 JRE-1028 fwport(9): JRE-1008 Do not use LCD shader on macOS 10.14+ in font rendering
Disable LCD text shader on macOS 10.14+ if LCD rendering is not explicitly specified

(cherry picked from commit dffea9d701)
2023-04-21 02:01:13 +02:00
Konstantin Bulenkov
49a4118b6f update icons
(cherry picked from commit dfe387ff5037deda29d8d522cba6cc5370796ff4)
(cherry picked from commit de1e4a9d71)
2023-04-21 02:01:13 +02:00
Vitaly Provodin
c8b3fe4f3d Update README.md 2023-04-21 02:01:13 +02:00
Vitaly Provodin
b69f925333 Regression test on https://bugs.openjdk.java.net/browse/JDK-8139176
JBR-5008 remove extra file jb/java/awt/font/DrawTest.java from colliding group

(cherry picked from commit 6f1c0a6)
(cherry picked from commit 63130fd461)

add regression test on https://bugs.openjdk.java.net/browse/JDK-8139176

(cherry picked from commit 380c17456c)

(cherry picked from commit 6f1c0a6)
(cherry picked from commit 63130fd461)
2023-04-21 02:01:13 +02:00
Vitaly Provodin
b380fe7261 not for upstream: added disposing frames in order to provide the test with the chance on the second run
(cherry picked from commit 8170635)
(cherry picked from commit 7fc924f065)
2023-04-21 02:01:13 +02:00
Vitaly Provodin
73669b7f30 JRE-9: added regression test
(cherry picked from commit 4ffb665)
(cherry picked from commit 00a29ad129)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:13 +02:00
Sergey Malenkov
d227569e58 JRE-100 Scroll with inertia (Mac os) should only work in the initial component
(cherry picked from commit e79502c708)
2023-04-21 02:01:13 +02:00
Sergey Malenkov
a2103baa3a IDEA-161965 ignore dragged event that does not change mouse location Sierra is more sensit
(cherry picked from commit ef490fa465)
2023-04-21 02:01:13 +02:00
Stanislav Dombrovsky
7d686138fc Fix rendering of HTML list dots + better vertical align for them.
(cherry picked from commit fa4a404533ba1ef638fe523adc74391aee8a3ebf)

(cherry picked from commit 9f079c66e9)
2023-04-21 02:01:13 +02:00
Dmitry Batrak
cc7984b8bc JBR-3353 Sibling popup window is shown below dialog on macOS
(cherry picked from commit 4c6f3e4510)
2023-04-21 02:01:13 +02:00
Dmitry Batrak
9935b2a108 JBR-3339 Window requests focus on horizontal scroll (on Linux)
(cherry picked from commit 8d74e8e30b)
2023-04-21 02:01:13 +02:00
Anton Tarasov
2e228c0ab2 JRE-166 [macOS] deadlock with JFXPanel
(cherry picked from commit a9dbb6990fac0c659297487a261ba9170e5fb3ad)

(cherry picked from commit 8a44e1bb37)
2023-04-21 02:01:13 +02:00
Alexey Ushakov
491d2f35cd 8265445: Introduce the new client property for mac: apple.awt.windowAppearance
Implemented apple.awt.windowAppearance client property
2023-04-21 02:01:12 +02:00
Anton Tarasov
5212dc0c73 JBR-3306 jbr-dev warnings: incompatible pointer to integer conversion returning 'void *' from a function with result type 'jlong' 2023-04-21 02:01:12 +02:00
Dmitry Batrak
c9e1fdef89 JBR-2498 Fix unexpected window raising under Mutter WM
re-implement the fix, so that ChildAlwaysOnTopTest isn't failing
2023-04-21 02:01:12 +02:00
Alexey Ushakov
910fdf84fe JBR-3327 [jbr-dev] Adjust mac window appearance according to AppleInterfaceStyle property
Set window appearance according to AppleInterfaceStyle default
2023-04-21 02:01:12 +02:00
Alexey Ushakov
6049f1192e JRE-238 [736] java.awt.AWTError: access denied ("java.lang.RuntimePermission" "canInvokeInSystemThreadGroup")
Moved task execution on AppKit to the privileged block. Minor refactoring

(cherry picked from commit 5dbb88471115c9e4a536ae37d0e6794de9e5ac9c)
2023-04-21 02:01:12 +02:00
Alexey Ushakov
3c6c05a823 JRE-359 CGraphicsEnvironment.getDefaultScreenDevice() returns null
Moved CG api calls to AppKit thread

(cherry picked from commit fd0210f035199e8612097a2c1d42b90cfd2111f8)
(cherry picked from commit 5e99e376d9dfe477401121878704630c3c13f9f7)

(cherry picked from commit 6d73b25130)
2023-04-21 02:01:12 +02:00
Dmitry Batrak
bbb445448d JBR-2973 Copy/Move dialog not in the focus on drag-n-drop to Project Tool window from external application
(cherry picked from commit 20fe78b650)
2023-04-21 02:01:12 +02:00
Alexey Ushakov
580a7f06d7 JRE-444 CPlatformWindow.nativeGetTopmostPlatformWindowUnderMouse is slow
Replaced number of CGWindowListCopyWindowInfo for each window layer with [NSWindow windowNumberAtPoint: belowWindowWithWindowNumber:]

(cherry picked from commit 2a143af4d62340acdfd9c94d876f684385febbc8)
(cherry picked from commit 6fc369e8bf)
2023-04-21 02:01:12 +02:00
Alexey Ushakov
dfd7fd4b8f JRE-482 Java_sun_font_CStrike_getNativeGlyphOutline takes too much time in scrolling
Replaced glyph outlines with bounding boxes for glyph boundaries calculation for most common usages. Also, skipped unnecessary OGL flushes in OGL rendering queue

(cherry picked from commit c58dc052af48887338a38beb0c721eddca3af481)
(cherry picked from commit 7f6be7cfb907bbf1c3572b911df5690fa3039fde)
(cherry picked from commit c68913d82c0ba4b4c509179123f0a4bf7971f857)
(cherry picked from commit 9cfa04c93ad416a8177d9e7ca410850bd3ff880f)
(cherry picked from commit 0e930841704e4e98ecc0c888b144245e74218799)
(cherry picked from commit 8ffc190fbdb059d5a24842115c0bc3ade8b351b9)
(cherry picked from commit 0f7c26186a)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:12 +02:00
Alexey Ushakov
20e0b6eb14 JBR-3316 Reimplement CThreading functionality on top of OpenJDK17 sourcebase
Adopted CThreading related code to OpenJDK17 source base

(cherry picked from commit 5dfb30ae68b2c54d58c98a9195709c031f823581)
(cherry picked from commit 94163bd69f64616836523e81567aa1141480d841)
2023-04-21 02:01:12 +02:00
Alexey Ushakov
d8b93f4272 JBR-3304 jbr-dev warnings: 'getPhysFontName' defined but not used [-Werror=unused-function]
Removed unused code
2023-04-21 02:01:12 +02:00
Vitaly Provodin
ca92c810ea exclude javax/swing/JTabbedPane/4624207/bug4624207.java failing on windows due to 8197552 2023-04-21 02:01:12 +02:00
Alexey Ushakov
74d5ca0444 JRE-366 Add support for Awesome WM
Added detection of Awesome WM and handled similar to Sawfish WM

(cherry picked from commit 6742077ed198975949af567e8ef543f853397351)
(cherry picked from commit 2847be73c6)
2023-04-21 02:01:12 +02:00
Alexey Ushakov
3f39352983 JRE-353 Fedora 25 + XMonad rendering issues
Added support for Xmonad WM

(cherry picked from commit c690c3c7fdf1390e6b1a8d388ff752a09391ae3c)
(cherry picked from commit 6851dc3441)
2023-04-21 02:01:12 +02:00
Denis Konoplev
c917efac9c 8264143: Change uint8_t to unsigned char 2023-04-21 02:01:12 +02:00
Dmitry Batrak
9e2a58f8b6 JBR-3255 Applying 'incline' transform might change character's advance
(cherry picked from commit b37f7cfdb1)
2023-04-21 02:01:12 +02:00
Dmitry Batrak
015451c8a5 JBR-3215 'deriveFont(float)' can return a different font (not just change the size)
(cherry picked from commit 8eafcaab24)
2023-04-21 02:01:11 +02:00
Dmitry Batrak
0090de9454 JBR-3157 Maximized window with custom decorations isn't focused on showing
(cherry picked from commit 62b04983f2)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:11 +02:00
Dmitry Batrak
d63e5a7bdb JBR-1752 Floating windows overlap modal dialogs
(cherry picked from commit 0161050077)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:11 +02:00
Dmitry Batrak
3d658bf7e8 JBR-3054 Focus is not returned to frame after closing of second-level popup on Windows
(cherry picked from commit 0c2b6e1c04)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:11 +02:00
Dmitry Batrak
b0bf473d7d JBR-2702 Tooltips display through other applications on hover
(cherry picked from commits 11732c2469, 0ed7deabaa)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:11 +02:00
Dmitry Batrak
ad3ce8ff55 added RobotSmokeTest
this test failing in jtreg launch most probably indicates either some problem with the environment (e.g. some windows left open from previously launched processes) or with java.awt.Robot implementation

(cherry picked from commit 1d525a2d2f)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:11 +02:00
Dmitry Batrak
c161654213 JBR-2847 Always dispatch KEY_TYPED event to the same component as KEY_PRESSED event
also fixes JBR-2834, IDEA-254466, IDEA-254466
squashed with fixes for JBR-3291, JBR-3307, JBR-3598

(cherry picked from commits e94f6057a4, ba6b9c085e, 2ccf6b65a7, 3b0708af7d, 3674766d65)
2023-04-21 02:01:11 +02:00
Dmitry Batrak
0a2e7defce JBR-2712 Typeahead mechanism doesn't work on Windows
(cherry picked from commits 1a9838082e, f5b6222835, acd7e3b2da, cd6dd5c3cf8556f97f3113cb7d615a92393b57bf(partially), e8bbd8ffdd90f57cd12d7d7e89188be97ee4be0b(partially), 37901295e1, cafb374afc, 12034dcf61)

includes fix for JBR-4974 jb/java/awt/Focus/ModalDialogFromMenuTest.java intermittently clicks at tittle bar

Pause before getting the coordinates of the component to be clicked on,
not right before the click itself.

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:11 +02:00
Denis Konoplev
22b30f5da2 8264143: Lanai: RenderPerfTest.BgrSwBlitImage has artefacts on apple M1
Add stdint include to fix x64 build
2023-04-21 02:01:11 +02:00
Dmitry Batrak
3b14db1a81 JBR-2498 Fix unexpected window raising under Mutter WM
(cherry picked from commit 73b45fb899)
2023-04-21 02:01:11 +02:00
Dmitry Batrak
91f62d1ad2 JBR-2248 Support text wrapping in a <pre> tag in JEditorPane
port from JBR 11 to JBR 15 (cherry picked from commit ff2e915371)

cherry picked from commit 6a30c56138
2023-04-21 02:01:11 +02:00
Dmitry Batrak
cc33ecfcaa JBR-2234 Support CSS setting overflow-wrap:anywhere in JEditorPane
port from JBR 11 to JBR 15 (cherry picked from commits b6583d0a71, 6003abc15f)

cherry picked from commit 93ad4f06dd

also includes JBR-4006 [JCK] javax.swing.text.html.CSS$Attribute.OVERFLOW_WRAP field breaks public API
(cherry picked from commit f20a3d8679)
and JBR-4007 [JCK] javax.swing.text.GlyphView.calcBreakSpots method breaks public API
(cherry picked from commit 1002eff4f3)
2023-04-21 02:01:11 +02:00
Dmitry Batrak
506c1bb72c JBR-2050 Issue with keycap emojis
port from JBR 11 to JBR 15 (cherry picked from commit ae91e1d7f1)

cherry picked from commit d3018a1837
2023-04-21 02:01:11 +02:00
Dmitry Batrak
50bb4c9a7a JBR-1714 Italic text is displayed using incorrect glyphs on Windows
port from JBR 11 to JBR 15 (cherry picked from commits 46e4cdfcbd, 9cc5cbc99b)

cherry picked from commit 6769b27e53
2023-04-21 02:01:11 +02:00
Dmitry Batrak
047dd80ad4 JBR-1689 Incorrect painting of long strings on linux
port from JBR 11 to JBR 15 (cherry picked from commits e12c1d6f0d, 0429e74e9d)

cherry picked from commit e43cfd198f
2023-04-21 02:01:11 +02:00
Dmitry Batrak
755fcbe688 JBR-1248 Exception caused by broken font
port from JBR 11 to JBR 15 (cherry picked from commit 4efa7eab3e)

cherry picked from commit 6e1c514c6c
2023-04-21 02:01:10 +02:00
Dmitry Batrak
7a286b501a JBR-1245 [JDK 11] There are different letter spacings in some controls
port from JBR 11 to JBR 15 (cherry picked from commit a26b70568a)

cherry picked from commit e2637199e9
2023-04-21 02:01:10 +02:00
Dmitry Batrak
6a03d31ef8 JRE-927 Unexpected wrapping of bidirectional text in JEditorPane on HiDPI screens
port commit 11a5a4a2 from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commit 65a5e450d5)

cherry picked from commit 47ff31ae82
2023-04-21 02:01:10 +02:00
Dmitry Batrak
c655466881 JRE-774 Don't paste BOM from clipboard on Mac
port commit ea9b75b3 from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commit c6fed2cf58)

cherry picked from commit a5e25d1ef9
2023-04-21 02:01:10 +02:00
Dmitry Batrak
943bcdf72a JRE-847 Box drawing characters have different widths with Monospaced font on Windows
port commit 778cef18 from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commit 9caaac4a5a)

cherry picked from commit eea293f4a4
2023-04-21 02:01:10 +02:00
Dmitry Batrak
bb1503f127 JRE-748 Strange dots with fractional metrics turned on
port commit 82e7c82d from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commit e9bd5f5dad)

cherry picked from commit e0475e9ba2
2023-04-21 02:01:10 +02:00
Dmitry Batrak
9e29706b93 JRE-593 Wrong italic font rendering for Source Code Pro
port commit 1f6bd200 from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commit 32ce109355)

cherry picked from commit 087ff34c2e
2023-04-21 02:01:10 +02:00
Dmitry Batrak
fabfa10eef JRE-430 Font fallback sometimes doesn't work in Swing text components
port commit fc8003ad from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commit 5b814d6b34)

cherry picked from commits b871188f44, 0a9f16dc90, 9cc82c39d9
2023-04-21 02:01:10 +02:00
Alexey Ushakov
4cd71f88e7 JRE-303 2017.1.1 update breaks linux fonts
Corrected rendering hints for Non-AA text rendering

(cherry picked from commit b923aa7a0729a10ea47d3438622d659fbead44c9)
(cherry picked from commit b6bdd04e41)
2023-04-21 02:01:10 +02:00
Alexey Ushakov
64afc7850a JRE-205 Font is wrong and without anti aliasing in 2017.1 EAP
Added property to disable bundled font config:
  java2d.font.loadFontConf=false
Do not load custom font.conf by default

Moved hints adjusting logic from code to bundled font.conf file
Applied correction only for regular fonts with platform sizes less than 12
Some fonts are not corrected at all: Consolas, Noto Sans Mono
Used family name instead of physical one in requests to Fontconfig
Removed redundant call to FcConfigBuildFonts
Added privileged access to the properties (JRE-235,JRE-235)

(cherry picked from commit 4d4c915047077ebd966b0e3be056566d56ba11a4)
(cherry picked from commit 9d6f325f72482405264852f3ee2636f5fedaeaf0)
(cherry picked from commit e7e3372bf8db539c0f6bc85db9f1093f8fa4c380)
(cherry picked from commit 3e724caed2f199be50d25d1ecb20b7819c86be2e)
(cherry picked from commit d372b35963c096a32331b05b257e26841ace5d94)
(cherry picked from commit 18a5f5de03eb107f89dca138a44b9aab2151235c)
(cherry picked from commit 9ba320efef0539f75aa93fd1b5dd80266c954d0a)
(cherry picked from commit b8c38f419972af61291953f7f452c1698f7a1624)
(cherry picked from commit debba0128e200be60adc9a339d5985590ef4e230)
(cherry picked from commit 2fa17b1bd7d6524e4b5fa4d0b3ce2bf02a8fcc78)
(cherry picked from commit 09b4f61db0d4f5beea0e16ce9136c99e2185c10b)
(cherry picked from commit 3b6782dd742f9c74a9535145db2f9f7ffaccf7c8)
(cherry picked from commit f1b68149528c13a22fa64468c130b1405bf3d081)
(cherry picked from commit db5cf5a2b9cb454630fb86783c2d58cd5446cba6)
(cherry picked from commit 32140948578bc3c2a0c5f8adb537660421efe5e7)
(cherry picked from commit b978e3d0b131ed642774c5a14a649e13f764c20b)

(cherry picked from commit c75c1ef8b2)

(cherry picked from commit a29f19e6a2)
2023-04-21 02:01:10 +02:00
Dmitry Batrak
044145a03c an option to disable native rendering for rotated text (following JRE-19)
port commit ccc1ded6 from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commit 72fb9ff7c4)

cherry picked from commit a5bd092449
2023-04-21 02:01:10 +02:00
Dmitry Batrak
ed8012d633 JRE-11 Support text rendering via DirectWrite API on Windows
port commits 7b180f8d, cccbcab4 from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commit 030f15834c)

cherry picked from commit b16ee45915
2023-04-21 02:01:10 +02:00
Dmitry Batrak
94eef151e2 IDEA-150876 OpenJDK fonts for toolwindow names look worse than Oracles's
don't apply FreeType-returned glyph advance for rotated glyphs rendered by GDI

This seems to produce a better looking text (more evenly spaced). Fractional metrics won't be respected by this code, but we can address this later if needed.

port commits c9debd5e, ed78cd00, 4c7e1619, 7aa0429c, 7bd6c17c from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commits d6b588bdab, dbc15fb84e)

cherry picked from commit 2c0d6150d0
2023-04-21 02:01:10 +02:00
Vitaly Provodin
7e7090506c JRE-186 added regression test (Modal dialogs (Messages) shouldn't popup IDEA when another application is active)
(cherry picked from commit 236bd38d1b)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:10 +02:00
Vitaly Provodin
8eafc80ec1 JRE-269 added regression (JLabel doesn't scale <code>text</code> HTML fragments.)
(cherry picked from commit 1f4ad38d23)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:10 +02:00
Alexey Ushakov
c9e8c89051 JRE-307 Wrong dpi reported on Wayland
(cherry picked from commit 15693661cc)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:10 +02:00
Vitaly Provodin
828d6dbd44 JRE-392 added regression (Tip of the day is not hidden while another modal window is shown)
(cherry picked from commit c7b0ac686f)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
036b5b44f1 JRE-394 added regression test (System getenv doesn't return env var set in JNI code)
(cherry picked from commit 3a7b3c67b0)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
5691d8d188 JRE-401 added regression test (AppCode freezes during autocomplete and other operations)
(cherry picked from commit cb4453b1d1)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
eadcf7a7c1 JRE-422 added new regression test (AWTView deliverJavaMouseEvent leaks jEvent)
(cherry picked from commit 37dc13c603)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
8c9818da17 JRE-430 added new regression test (Font fallback sometimes doesn't work in Swing text components)
(cherry picked from commit d04debc847)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
e8d1de02be JRE-457 added new regression test (OGLTR_DisableGlyphModeState is slow)
(cherry picked from commit 3a43f4557f)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
bb1b02d804 JRE-458 added new regression test (Insufficient and inconsistent permissions on some files in Linux build)
(cherry picked from commit 82adbe9c25)
2023-04-21 02:01:09 +02:00
Vitaly Provodin
a1248cf69b JRE-467 added new regression test (Wrong rendering of variation sequences)
(cherry picked from commit 0026095202)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
dddbe97e3d JRE-468 added new regression test (Idea freezes on project loading)
(cherry picked from commit 1ce8c3ce82)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
48ea9e73fa JRE-501 added new regression test (Live resize is jerky for heavy java applications on Mac)
(cherry picked from commit c4a1277c1b)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
28fd5db294 JRE-638 added new regression test (enable unlimited cryptographic policy by default)
(cherry picked from commit 4a14c6f15a)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
de7a0c0ff9 JRE-705 added new regression test (Z-order of child windows is broken on Mac OS)
(cherry picked from commit 82cd480619)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Vitaly Provodin
0ba7321de1 JRE-624 CThreading isAppKit() fails to detect main app thread if it was renamed
(cherry picked from commit c8f248a936)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:09 +02:00
Alexey Ushakov
1aa30028cb IDEA-166173 IntelliJ freezes when returning from sleep
Fixed deadlock by removing unnecessary getScreenResolution call

(cherry picked from commit cec93cf1fd)
2023-04-21 02:01:09 +02:00
Alexey Ushakov
bbc219d663 Added missing fontconfig defines
(cherry picked from commit 2ac273a456)
2023-04-21 02:01:09 +02:00
Alexey Ushakov
1c788527a7 JRE-43 Font.getFamily() does not work in headless mode
Removed unused code

(cherry picked from commit 5b523f049e)
2023-04-21 02:01:08 +02:00
Alexey Ushakov
b04e76cc95 JRE-43 Font.getFamily() does not work in headless mode
Bundled Droid fonts to fallback in headless mode

(cherry picked from commit 5b523f049e)
2023-04-21 02:01:08 +02:00
Alexey Ushakov
4509bb6159 JRE-15 Greyscale text is too dark comparing with subpixel AA
Adjusted default value for greyscale text rendering in freetype

(cherry picked from commit f80497c4f0)
2023-04-21 02:01:08 +02:00
Alexey Ushakov
57b5554dff IDEA-155347 On Ubuntu with High DPI tooltip font is too thick when the tooltip is fading in and out
Handled missing FC_RGBA_NONE value

(cherry picked from commit 44fcbdabf8)
2023-04-21 02:01:08 +02:00
Alexey Ushakov
15f2412ce3 IDEA-149882 Issue with fonts in Ubuntu 12.04
Provided fallback to default font rendering settings if libfontconfig unable to
match font pattern

(cherry picked from commit d93a5f1598)
2023-04-21 02:01:08 +02:00
Alexey Ushakov
3a134983c1 IDEA-151619 CLion EAP fails to start with missing symbol: FT_Library_setLcdFilter
Skip FT_Library_setLcdFilter call if the symbol is not there
Cache negative FT_Library_setLcdFilter symbol lookup result
Used RTLD_DEFAULT handler for process symbols lookup

(cherry picked from commit e6f0055704)
2023-04-21 02:01:08 +02:00
Alexey Ushakov
1e8cda304a JRE-29 fontconfig lib crashes CLion on OSX
Disabled fontconfig usage on OSX

(cherry picked from commit 431e14429c)
2023-04-21 02:01:08 +02:00
Vitaly Provodin
a957ecb494 exclude tests spontaneously creating windows during test execution 2023-04-21 02:01:08 +02:00
Alexey Ushakov
488044dd6b JRE-48 built-in jre renders fonts abnormally heavier (normal text looks bold) than the oracle jre
Disable FT_LOAD_TARGET_LIGHT for fonts with FC_AUTOHINT=false (this target implicitly enables  FC_AUTOHINT)
Reused setupLoadRenderFlags for all rendering cases

(cherry picked from commit f3f2667a4c)
2023-04-21 02:01:08 +02:00
Alexey Ushakov
91bea3cfaa Added logging for freetypeScaler via env variable OPENJDK_LOG_FFS=yes
and for screen resolution in freetypeScaler

(cherry picked from commit 091d74a791)
2023-04-21 02:01:08 +02:00
Alexey Ushakov
f75e0ddf5c JRE-34 IDE Crashes During Startup
Added validation of dpi settings coming from xserver

(cherry picked from commit b1c49c3b27)
2023-04-21 02:01:08 +02:00
Anton Tarasov
825283c08f JBR-2031 [mac] jcef deadlocks with a11y on start
(cherry picked from commit 4f44b37f08)
2023-04-21 02:01:08 +02:00
Alexey Ushakov
2e259330cb JRE-1083 [JDK11] Test com/sun/java/accessibility/util/8051626/Bug8051626.java fails on macOS on JB JDK11b
Wrapped SelectorPerformer invocation into privileged action

(cherry picked from commit 48e7b547ae)
2023-04-21 02:01:08 +02:00
Anton Tarasov
8d78907f29 JBR-2019 provide getWindowHandle method for jcef
(cherry picked from commit 7ae706b629)
2023-04-21 02:01:08 +02:00
Anton Tarasov
c8d7841e65 Comment assertion (originally JRE-965)
The assert line crashes debug hotspot.

(cherry picked from commit a00074a86c)
2023-04-21 02:01:08 +02:00
Anton Tarasov
20e5e95ac0 JBR-1976 [jcef] need mouse-transparent window on Windows
(cherry picked from commit b60fac96b4)
2023-04-21 02:01:08 +02:00
Anton Tarasov
26428ffdc7 JBR-1824 export NSWindow::setIgnoresMouseEvents to java internal API
(cherry picked from commit 4399dc382c)
2023-04-21 02:01:07 +02:00
Anton Tarasov
c6fc80d4cf JBR-1802 com/sun/java/accessibility/util/8051626/Bug8051626.java: access denied ("java.lang.RuntimePermission" "getClassLoader")
(cherry picked from commit eae772aca9)
2023-04-21 02:01:07 +02:00
Anton Tarasov
68ecbe3356 JBR-1795 Project opened from Welcome screen goes to backgound after loading
(cherry picked from commit 322526458a)
2023-04-21 02:01:07 +02:00
Anton Tarasov
b6556eb22e JBR-1609 Jupyter Notebook eventually causes IDEA to become unresponsive on Mac OSX
(cherry picked from commit 8ae0be8eb6)
2023-04-21 02:01:07 +02:00
Anton Tarasov
a38c0c09a9 JBR-1786 Weird white border for IDE window
(cherry picked from commit 4b09614a0e)
2023-04-21 02:01:07 +02:00
Vyacheslav Moklev
c9f343089c JBR-1552 Invalid screen bounds in full screen mode
Check is window is not in undecorated state

(cherry picked from commit 5547701e2c)
2023-04-21 02:01:07 +02:00
Vyacheslav Moklev
83005b34fe JBR-1509 Client area size is wrong in Borderless mode
Fix client area size

(cherry picked from commit 00d32e58dc)
2023-04-21 02:01:07 +02:00
Anton Tarasov
181aa0a8d2 JBR-1770 [windows] frame does not open as maximized
(cherry picked from commit d9dfc3c6c5)
2023-04-21 02:01:07 +02:00
Anton Tarasov
ef145c2f1d JBR-1693 difficult to input Japanese text with "Fast" Key Repeat
(cherry picked from commit 12de3e287e)
2023-04-21 02:01:07 +02:00
Anton Tarasov
93b1a83e63 JBR-1669 IDE-managed HiDPI mode is broken
(cherry picked from commit 461b0b5cd4)
2023-04-21 02:01:07 +02:00
Anton Tarasov
4e95978adc JBR-1650 propagate custom decoration title bar height to native
(cherry picked from commit f6fc65d014)
2023-04-21 02:01:07 +02:00
Anton Tarasov
bd27dd0f23 JBR-1629 Maximized window cut at the right and bottom
(cherry picked from commit 9e768377db)
2023-04-21 02:01:07 +02:00
Anton Tarasov
e682abe931 JBR-1492 Not able to start Intellij Idea 2017.2.5 with modified vmoptions
(cherry picked from commit e7ca6db66b)
2023-04-21 02:01:07 +02:00
Anton Tarasov
6cfdae727e JBR-1427 pycharm jupyter preview stuck and no response when click on preview.
(cherry picked from commit 1746b04686)
2023-04-21 02:01:07 +02:00
Anton Tarasov
6a1213342e IDEA-210154 Borderless UI: Top frame of IDEA window is blue
(cherry picked from commit 2dd4163bc4)
2023-04-21 02:01:07 +02:00
Anton Tarasov
4d843e14c0 JBR-1351 Borderless UI: Bold frame around IDEA window appears on non-HiDPI display
(cherry picked from commit 06d35de069)
2023-04-21 02:01:07 +02:00
Anton Tarasov
d05a138d1d JBR-1313 wrong insets for non-resizable custom-decorated frame
(cherry picked from commit 9179718cb6)
2023-04-21 02:01:06 +02:00
Anton Tarasov
d680d687a8 JBR-1293 do not modify client bounds when custom-decorated frame is set undecorated
(cherry picked from commit cb188edaab)
2023-04-21 02:01:06 +02:00
Anton Tarasov
2689bf22b2 JBR-1278 allow native border and shadow for custom decoration mode
(cherry picked from commit a879ad5739)
2023-04-21 02:01:06 +02:00
Anton Tarasov
f8a90d875b JRE-1232 forwardport: JRE-1228 support custom frame decoration
(cherry picked from commit d2820524a1)
2023-04-21 02:01:06 +02:00
Anton Tarasov
f6c9693f83 JRE-1162 [jdk11] support on-the-fly DPI change on linux
(cherry picked from commit c06c4c69d3)
2023-04-21 02:01:06 +02:00
Anton Tarasov
bd2c6166fa JRE-1142 [jdk11] hidpi is not detected since Ubuntu 18.04
(cherry picked from commit be4f8c0d9d)
2023-04-21 02:01:06 +02:00
Anton Tarasov
8ccdf306ac JRE-1111 [JDK11] java/beans/Beans/TypoInBeanDescription.java crashes at libawt_xawt.so+0x4a30d
(cherry picked from commit b89e6aed0b)
2023-04-21 02:01:06 +02:00
Anton Tarasov
0e75eb3d35 fix JNI_OnUnload definition
(cherry picked from the commit  3571e39071)

(cherry picked from commit 1019d8f0f2)
2023-04-21 02:01:06 +02:00
Anton Tarasov
8ba08c33cc JRE-981 IM workaround does not work anymore
forward port of 2d7c29b in JetBrains/jdk8u_jdk

(cherry picked from commit f3ccc53e02)
2023-04-21 02:01:06 +02:00
Anton Tarasov
4d05180618 JRE-938 [windows] Frame.setMaximizedBounds not hidpi-aware
(cherry picked from commit cc97899923320e1fa17f5e44975c4a0f0ba51014)
(cherry picked from commit ccfe65be7f)
2023-04-21 02:01:06 +02:00
Anton Tarasov
27f2813916 JRE-907 macOS: add ability to check for scaled display mode
(cherry picked from commit e496262aa1)
2023-04-21 02:01:06 +02:00
Anton Tarasov
b184dc7a01 JRE-934 Diff viewer errors are not visible on HiDPI Linux
(cherry picked from commit 641a09dd52)
2023-04-21 02:01:06 +02:00
Anton Tarasov
806ce32881 [jdk9] HiDPI scale is not detected on some linux desktops
(cherry picked from commit 9279d80110)
2023-04-21 02:01:06 +02:00
Anton Tarasov
59dfd78ce8 JRE-681 [windows] direct drawing into frame graphics may have wrong translate
(cherry picked from commit 6ea1d45fd1)
2023-04-21 02:01:06 +02:00
Anton Tarasov
a0bd848847 Read org.gnome.desktop.interface/scaling-factor
(cherry picked from commit 277357ae73)
2023-04-21 02:01:06 +02:00
Anton Tarasov
1d8d03c37f Revert "8239894: Xserver crashes when the wrong high refresh rate is used"
This code is needed for "Read org.gnome.desktop.interface/scaling-factor".
Keep it until "JDK-8260270 Implement the HiDPI scale factor reading" is fixed.

This reverts commit a7c2ebc7
2023-04-21 02:01:05 +02:00
Anton Tarasov
7204112e84 Do not scale base font in HiDPI mode on Linux
(cherry picked from commit 6fb2c36529)
2023-04-21 02:01:05 +02:00
Anton Tarasov
d78fd76548 JRE-772 swing returns incorrect FRC when AA is off
(cherry picked from commit a161897d908aa10da6306c06452c5d6317fed2f0)
(cherry picked from commit 2bf5a7ca5c)
2023-04-21 02:01:05 +02:00
Anton Tarasov
e55ea117ee JRE-681 [windows] direct drawing into frame graphics may have wrong translate
(cherry picked from commit ab6dee4c1fc453ad3cb5adb69fc243e550d184ae)

(cherry picked from commit 6ea1d45fd1)
2023-04-21 02:01:05 +02:00
Anton Tarasov
ad9312befa JRE-665 Navigate Class/File/Symbol, Find in Path popup windows don't pick characters from input method
(cherry picked from commit 676f305b2b3b278e305bd4d9bde4269f27b3d676)
(cherry picked from commit 6ce31e0a32)
2023-04-21 02:01:05 +02:00
Anton Tarasov
cdbcc4ffd7 JRE-616 [linux] notify when dpi correction factor is applied to fonts
(cherry picked from commit f57d41f3118bfd773c99ce32d58cfae16931be6a)
(cherry picked from commit 6246abc72f)
2023-04-21 02:01:05 +02:00
Anton Tarasov
27b21ae1dc JRE-612 [windows] icon in frame title is not dpi-aware
(cherry picked from commit dec04385177a2abb677add909d3b94f94c62a14e)

(cherry picked from commit 38466cbab0)
2023-04-21 02:01:05 +02:00
Anton Tarasov
1c9e0d7310 JRE-604 [fps] frame's client area is one pixel beneath frame's borders
Adopted.

(cherry picked from commit ef2870ee38)
2023-04-21 02:01:05 +02:00
Anton Tarasov
8f8c147352 JRE-596 [windows] popup positioning is broken with JRE-573
Adopted: moved to AwtWindow::Reshape

(cherry picked from commit c5cc28d85d)
2023-04-21 02:01:05 +02:00
Anton Tarasov
c74e39df1b JRE-577 Goland 18 displays out of memory
(cherry picked from commit 2daaf21e420d4af15d3b1bfeb3f896074bea1e61)

(cherry picked from commit 9ea2011948)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:05 +02:00
Anton Tarasov
3a6960d7bb JRE-573 [windows] window client area bounds mismatch
Apply only WmEraseBkgnd

(cherry picked from commit afa68f7ad6440303c6417be3f675b1c4644b6014)

(cherry picked from commit 0651b45e13)
2023-04-21 02:01:05 +02:00
Anton Tarasov
29e6aa3db9 JRE-382 Three AWT-tests become hanging starting since master-875
(cherry picked from commit 7d492101db8fcbb3d285fd8e9669f74b0e0fce8f)
(cherry picked from commit b965f85c1b)
2023-04-21 02:01:05 +02:00
Anton Tarasov
f83b37c5c1 JRE-373 [macos] nativeCreateNSWindow deadlocks with a11y
(cherry picked from commit 72c77a992bbf1b95b82ffc08cb2f4f3bc36b3657)

(cherry picked from commit aa09fa2c85)
2023-04-21 02:01:05 +02:00
Anton Tarasov
6713669370 IDEA-172422 Popup at the wrong place on the second monitor (new hidpi)
Adopted: moved to AwtWindow::Reshape

(cherry picked from commit 11a0911d65)
2023-04-21 02:01:05 +02:00
Anton Tarasov
822e02eb09 JRE-309 [windows] on-screen position of a component is not pixel-perfect in user space in JRE-HiDPI mode
Adopted: moved to AwtWindow::Reshape

(cherry picked from commit 985908cf10)
2023-04-21 02:01:05 +02:00
Anton Tarasov
5f8cdf8bb7 JRE-269 JLabel doesn't scale <code>text</code> HTML fragments.
(cherry picked from commit 9ef72b6c3a477e4225f9b98e30fa9190613520e4)
(cherry picked from commit c17bc728ee)
2023-04-21 02:01:05 +02:00
Anton Tarasov
830613906e JRE-225 [macos] IDEA hangs on attempt to call getDefaultScreenDevice() from EDT
(cherry picked from commit 76aba25)

(cherry picked from commit df11dcc97bb5556ac5d0299b773a512b4f0bb5bb)
(cherry picked from commit aeea6c1ca3)
2023-04-21 02:01:04 +02:00
Anton Tarasov
83fcde9539 JRE-210 JEditorPane may return wrong preferred size as it moves b/w monitors of different scale
(cherry picked from commit 6c3087e6bda32ae9b095e069d8bea614502f5c03)
(cherry picked from commit adb3a4be16)

with fix for JBR-5300 Change source code and test files to use GPL license
2023-04-21 02:01:04 +02:00
Anton Tarasov
b0464c8b2f JRE-119 [suppress updateGC() for WFileDialogPeer/WPrintDialogPeer]
updateGC() is called from WWindowPeer.<init> though it's not applicable to the named dialogs
as they don't have native AwtWindow peer required for the method.

(cherry picked from commit 72ed9f653177e273b811cfe70c2dba102a8636e4)
(cherry picked from commit cec49aaa38)
2023-04-21 02:01:04 +02:00
Anton Tarasov
1c62b92000 JRE-119 [use default "sun.java2d.dpiaware=true" to be dpi-aware on Window 7]
This lets awt_Win32GraphicsEnv.cpp SetProcessDPIAwareProperty() call Win7 specific ::SetProcessDPIAware() API func.

(cherry picked from commit 5e7a766090810d839f4352d06fc2812499d766f8)
(cherry picked from commit 7d1d43bfa1)
2023-04-21 02:01:04 +02:00
Anton Tarasov
3421a84ed8 JRE-119 [Dynamically set DPI-awareness level to enable backward compatible HiDPI behavior]
Adopted: rely on java.manifest

(cherry picked from commit d00cfa4dc62a14a4cf89df9d4c4899970c9fc9e8)

Adopted

(cherry picked from commit 60be76b725)
2023-04-21 02:01:04 +02:00
Anton Tarasov
3b6e76a20b JRE-119 [ask if ui scale is enabled natively]
(cherry picked from commit 801f45875fd8699edcbda5896210cec191062261)
(cherry picked from commit 20edebdefa)
2023-04-21 02:01:04 +02:00
Anton Tarasov
abf29fe2b0 IDEA-153474 let JDK detect Xft.dpi value on non-GTK Linux DEs
Use the GTK method:

https://developer.gnome.org/gobject/stable/gobject-The-Base-Object-Type.html#g-object-get

to retrieve "gtk-xft-dpi" integer property of the X settings.

Add the property to JDK's GtkEngine & gtk2-interface.
Then read the property via GtkEngine from GTK LaF when "gnome.Xft/dpi" is undefined. It's assumed GTK LaF is forcedly installed.

(cherry picked from commit e05fc391ae0a3cc389e836441f882c0cf6ab3b99)
(cherry picked from commit fd615a5b45)
2023-04-21 02:01:04 +02:00
Anton Tarasov
d870f38a27 IDEA-148854: AppCode crashes randomly every 15 mins or so
(cherry picked from commit 02f9a5fbb4924ff67c8a04c15e490acfcc750003)
(cherry picked from commit b8f4b4a9ed)
2023-04-21 02:01:04 +02:00
Vitaly Provodin
cff231aacb updated JTreg exclude list 2023-04-21 02:01:04 +02:00
Alexey Ushakov
d9171e5d81 IDEA-57233, IDEA-152816, IDEA-152454 Editor font antialising/appearance problems on Linux
Used desktop DPI instead of hard-coded 72
Compensated increased glyph bitmap size by adjusting font size
Added LCD filter for sub-pixel rendering
Use fontconfig library to provide right rendering options for fonts
Corrected sizes passed to fontconfig library and hinting disabling policy
Added logging and versioned fontconfig lib loading
Resolved font rendering problem in lenses
fix text rendering issues (text cutoff and incorrect rendering in editor fragment components)
FcMatchFont-type pattern substitutions shouldn't be invoked before specific font is selected - it can apply unrelated rules
port commit e21cd635 from JBR 9
partially rollback JBR-363 fix, to apply corresponding change from OpenJDK 12

(cherry picked from commit 5d704a963b)
(cherry picked from commit 3d7ac30072)
(cherry picked from commit 0456745afb)
(cherry picked from commit 3d7ac30072)
(cherry picked from commit 4c8351fecf)
(cherry picked from commit 5faebc73d5)
(cherry picked from commit d1ed8ab118)
2023-04-21 02:01:04 +02:00
Vitaly Provodin
f8c6f7f83a JBR-3398 remove the Experimental AOT and JIT Compiler (JEP 410) 2023-04-21 02:01:04 +02:00
Alexey Ushakov
071158559e JBR-2807: JDK15: update modules.list to resolve jbr build failure
removed nashorn modules
2023-04-21 02:01:04 +02:00
Vitaly Provodin
2687be7e1d JBR-2130 remove module jdk.pack 2023-04-21 02:01:04 +02:00
Vitaly Provodin
80b453bc1a JBR-4810 add VERSION_PATCH into version number string 2023-04-21 02:01:04 +02:00
Vitaly Provodin
1d2a78700e JBR-4754 make root directory with the same name as archive name 2023-04-21 02:01:04 +02:00
Nikita Provotorov
6413d7eafa JBR-2074 Windows 10 AArch64 support: make the build scripts use custom build-jdk. 2023-04-21 02:01:03 +02:00
Nikita Provotorov
5ab82a326d JBR-2074 Windows 10 AArch64 support: build fixes. 2023-04-21 02:01:03 +02:00
Vitaly Provodin
fe3db1355f JBR-4567 replace comma with point in RenderPerf scores 2023-04-21 02:01:03 +02:00
Vitaly Provodin
59e42f7d2e JBR-4520 set file permissions after signing 2023-04-21 02:01:03 +02:00
Vitaly Provodin
afa4dbe935 JBR-4512 windows: include pdb-files into jbrsdk 2023-04-21 02:01:03 +02:00
Vitaly Provodin
5a1baff1b1 JBR-4087 add version info into the name of root directory in JBR tar.gz-distributions 2023-04-21 02:01:03 +02:00
Vitaly Provodin
2523a8cfcc JBR-4511 remove --disable options from configure mac-aarch64 builds & unify configure for x64 and aarch64 2023-04-21 02:01:03 +02:00
Maxim Kartashev
6e654457dc JBR-4064 Windows: update build scripts to produce more deterministic output
Passed the configure script options necessary to enable reproducible builds
on Windows. With this options, the resulting jars are reproducible, but
native executables and libraries aren't.
2023-04-21 02:01:03 +02:00
Vladislav Rassokhin
04d1c350bc JBR-4451 Make bash scripts safer 2023-04-21 02:01:03 +02:00
Vitaly Provodin
5393a7ee3e JBR-4487 enable Linux 32 builds 2023-04-21 02:01:03 +02:00
Vitaly Provodin
4687a6cebd JBR-4458 enable JBR17 windows 32 bit builds 2023-04-21 02:01:03 +02:00
Vitaly Provodin
087a379fc7 JBR-4272 generate and save debug symbols for JBR on macos/linux 2023-04-21 02:01:03 +02:00
Vitaly Provodin
4bbfd4bd02 JBR-4053 integrate DCEVM patches as usual commits 2023-04-21 02:01:03 +02:00
Vitaly Provodin
053db222ef JBR-4370 create a test checking all JBR artifacts exist - add exit code 2023-04-21 02:01:03 +02:00
Nikita Provotorov
b03ab1134a JBR-2074 Windows 10 AArch64 support: add build and pack scripts. 2023-04-21 02:01:03 +02:00
Vladimir Kempik
42a687279a JBR-4452: Update crash report message with JBR youtrack link
instead of bugreport.java.com
2023-04-21 02:01:03 +02:00
Vitaly Provodin
2abcfea7ca JBR-4437 add sources to JBRSDK distributions for Windows and Linux 2023-04-21 02:01:02 +02:00
Vitaly Provodin
2e295e2765 JBR-4437 add sources to JBRSDK distributions 2023-04-21 02:01:02 +02:00
Anton Tarasov
d3f1d14f74 JBR-3906 JBR for Linux aarch64 with JCEF is missing, is there any support plan? 2023-04-21 02:01:02 +02:00
Vitaly Provodin
5dfba6f8a7 JBR-4188 add script comparing performance results
add exec permissions && fix misprint in checking if headers exist

move the script comparing performance results from jdk8u_test
2023-04-21 02:01:02 +02:00
Vladimir Kempik
ce317b2f41 JBR-4283: Provide native JBR builds for alpine Linux-aarch64 2023-04-21 02:01:02 +02:00
Vladimir Kempik
811c33d2dd JBR-4242:Provide native JBR builds for alpine Linux 2023-04-21 02:01:02 +02:00
Maxim Kartashev
116ffc390d JBR-3917 Problem using windows certificate store (trustStoreType=Windows-ROOT not recognized) 2023-04-21 02:01:02 +02:00
Maxim Kartashev
ee224cbe12 JBR-4145 Make builds independent from build directory
Supplied the --disable-absolute-path-in-output option to the configure script
when building JBR.
2023-04-21 02:01:02 +02:00
Vitaly Provodin
2c85f7e053 JBR-4154 extract version info from sources & JBR-4099 make test-image on jbrsdk_jcef step 2023-04-21 02:01:02 +02:00
Vitaly Provodin
093b7c5b01 JBR-4067 fix misprint with applying obsolete exclude_jcef_module.patch 2023-04-21 02:01:02 +02:00
Vitaly Provodin
3aac6430ae JBR-3756 remove JNF from mac-aarch64 binaries 2023-04-21 02:01:02 +02:00
Vitaly Provodin
a11bdb9c73 JBR-4082 create JBR & JBRSDK installer packages 2023-04-21 02:01:02 +02:00
Maxim Kartashev
7c19fc0595 JBR-4061 Specify build user for the build 2023-04-21 02:01:02 +02:00
Maxim Kartashev
3284d30b5d JBR-4063 macOS: update build scripts to produce more deterministic output
Make mkimages.sh produce more deterministic .tar.gz archives on MacOS.
NB: build notarization is not in the scope of this change.

(cherry picked from commit e1a1b6814d)
2023-04-21 02:01:02 +02:00
Maxim Kartashev
56de2e3494 JBR-4033 Linux: update build scripts to produce more deterministic output
This commits achieves almost the same build output with the same build
input on Linux. Exceptions are:
- class files timestamps differ in jrt-fs.jar (for all output),
- class files timestamps differ in all the jmod files (for
  jbrsdk...tar.gz).
NB: jbrsdk...test...tar.gz does not need to be deterministic.

This was achieved mainly by
- setting several environment variables (SOURCE_DATE_EPOCH, TZ),
- providing the necessary options to the configure script,
- setting the timestamp of all files that make up the resulting
  archive to SORUCE_DATE_EPOCH and normalizing the list of said
  files before archiving.

(cherry picked from commit ffded82734)
2023-04-21 02:01:02 +02:00
Maxim Kartashev
357c2d0bc0 JBR-4059 Create Dockerfile for building on AArch64 Linux 2023-04-21 02:01:02 +02:00
Vitaly Provodin
a6a74bbb2d JBR-3905 add incremental JBR building 2023-04-21 02:01:01 +02:00
Vitaly Provodin
8b55d62b7b JBR-3904 fix the image directory name of macos builds 2023-04-21 02:01:01 +02:00
Vitaly Provodin
8199394fab configure BOOT_JDK to use JDK 17 2023-04-21 02:01:01 +02:00
Anton Tarasov
654996549f JBR-3655 jbr-dev build fails to find jcef modules on Windows 2023-04-21 02:01:01 +02:00
Maxim Kartashev
b78d4d608d JBR-3645 Tool to support keeping JBR in sync with OpenJDK 2023-04-21 02:01:01 +02:00
Vitaly Provodin
4ef0847e34 JBR-3639 add jbrsdk tarballs for dcevm, jcef builds 2023-04-21 02:01:01 +02:00
Anton Tarasov
1622e31efb JBR-3627 include jmods in jbrsdk bundle for jbr-dev 2023-04-21 02:01:01 +02:00
Vitaly.Provodin
f243e1915f add dockerfile for x86
(cherry picked from commit 8fb2341ea8)
2023-04-21 02:01:01 +02:00
Vitaly Provodin
2458c8547c JBR-1505 add jdk.jcmd module into JBR
(cherry picked from commit c40b9c8b9e)
2023-04-21 02:01:01 +02:00
Vitaly Provodin
df77caf05f JBR-2957 notarize JBR and JBRSDK as APPL
(cherry picked from commit 0e7f9ce4ca)
2023-04-21 02:01:01 +02:00
Vitaly Provodin
cf7b256406 JBR-667 add shenandoahgc feature
(cherry picked from commit e15dad04)
2023-04-21 02:01:01 +02:00
Vitaly Provodin
8175a32ec6 configure BOOT_JDK to use JDK 16 2023-04-21 02:01:01 +02:00
Anton Tarasov
869037d642 Add build.gradle 2023-04-21 02:01:01 +02:00
Vitaly Provodin
54ee505c0d JBR-3401 enable macos-aarhc64 builds 2023-04-21 02:01:01 +02:00
Vitaly Provodin
311a891e19 JBR-3305 remove the option --disable-warnings-as-errors from configure 2023-04-21 02:01:01 +02:00
Vitaly Provodin
27d490ca9e JBR-2922 add JCEF to jbrsdk binaries
& fix a misprint in get_mods_list

JBR-2922 add JCEF to jbrsdk binaries

& fix a misprint in get_mods_list
2023-04-21 02:01:01 +02:00
Vitaly Provodin
61df075228 JBR-2912 add JBR 15 builds with DCEVM 2023-04-21 02:01:00 +02:00
Vitaly Provodin
d7177ce7c2 JBR-2864 initial commit of DCEVM patches reworked for 15 2023-04-21 02:01:00 +02:00
Vitaly Provodin
4681afe54b JBR-2812 remove --with-import-modules from configure for aarch64 2023-04-21 02:01:00 +02:00
Anton Tarasov
327ae78c1b JBR-2812 bundle jcef in jmod format instead of modular-sdk
Build test-image with non-jcef build target
2023-04-21 02:01:00 +02:00
Vitaly Provodin
48b68ab0fa JBR-2787 fix copying jcef files into jbr/jbrsdk binaries 2023-04-21 02:01:00 +02:00
Vitaly Provodin
71ea3ffb51 JBR-2758 refactor building scripts to apply patches adding required modules instead of excluding
Add jogl and gluegen modules to support jcef osr mode
2023-04-21 02:01:00 +02:00
Anton Tarasov
6bb9f8965b JBR-2016 add jcef module and export packages to it
(cherry picked from commit cf997f71c6)
2023-04-21 02:01:00 +02:00
Vitaly Provodin
817521de40 JBR-2473 modify building scripts to add dcevm clauses, add git config to docker image
(cherry picked from commit 2620c62848)
2023-04-21 02:01:00 +02:00
Vitaly Provodin
23e799fbba JBR-2395 eliminate JavaFX from JBR 2023-04-21 02:01:00 +02:00
Vitaly Provodin
2be4612154 JBR-2409 fix prameters for configure 2023-04-21 02:01:00 +02:00
Vitaly Provodin
4eaf94c059 JDK14: exclude dependencies on jcef in x86, fastdebug builds 2023-04-21 02:01:00 +02:00
Vitaly Provodin
86d8a98918 JBR-2396 fix CONF names 2023-04-21 02:01:00 +02:00
Vitaly Provodin
c8d8071512 JBR-2394 replace --disable-debug-symbols with --with-native-debug-symbols=none 2023-04-21 02:01:00 +02:00
Vitaly Provodin
b6efe0f4c3 add exec permitions to configure 2023-04-21 02:01:00 +02:00
Vitaly Provodin
6242dc1440 split checkout before building JBR+JFX or JBR+JCEF on two separate commands 2023-04-21 02:01:00 +02:00
Vitaly Provodin
70759ded11 change BOOT_JDK, fix target names 2023-04-21 02:01:00 +02:00
Vitaly Provodin
bdd68ff5bc JBR-2291 add vendor info into bundles 2023-04-21 02:00:59 +02:00
Vitaly Provodin
431290ae6f JBR-2324 address new layout in mac jcef 80.0.4+g74f7b0c+chromium-80.0.3987.122 2023-04-21 02:00:59 +02:00
Vitaly Provodin
cb72c095ab JBR-2320 add jdk.attach module into JBR 2023-04-21 02:00:59 +02:00
Vitaly Provodin
9a336397ce JBR-2217 provide JCEF-only (no JavaFX) bundle for master/202 branches 2023-04-21 02:00:59 +02:00
Vitaly Provodin
b9885d9cb0 JBR-2212 add scripts for linux_x86, linux_aarch64, linux_x64_fastdebug, osx_fastdebug, windows_x86 2023-04-21 02:00:59 +02:00
Vitaly Provodin
d253fc8a3a JBR-1643 fix intermittent fialures of Windows builds at make/Init.gmk:304
combine images and test-image into one make invocation
2023-04-21 02:00:59 +02:00
Vitaly Provodin
a0faef5f7a JBR-2181 create two separate JBR bundles with JFX and JFX+JCEF 2023-04-21 02:00:59 +02:00
Vitaly Provodin
18563cb023 JBR-2148 modify signapp&build scripts to match to the new layout 2023-04-21 02:00:59 +02:00
Vitaly Provodin
9c5301a6b4 JBR-2084 modify scripts to sign Contents/MacOS/libjli.dylib as a a normal file 2023-04-21 02:00:59 +02:00
Vitaly Provodin
87c772c6d2 JBR-1821 notarize JBR bundles as a standalone app 2023-04-21 02:00:59 +02:00
Vitaly Provodin
3a25337c73 JBR-2162 move building scripts from TC to JBR repo 2023-04-21 02:00:59 +02:00
Anton Tarasov
6ae6e68a22 JBR-2016 add jcef module and export some sun.* packages to it 2023-04-21 02:00:59 +02:00
Vitaly Provodin
821855ef37 JBR-2014 add jdk.hotspot.agent module to jbr 2023-04-21 02:00:59 +02:00
Vitaly Provodin
3ff6fb7d51 JBR-1286 add jdk.compiler into JBR 2023-04-21 02:00:59 +02:00
Vitaly Provodin
4865fc689e JBR-1199 add JBR modules list for jlink 2023-04-21 02:00:59 +02:00
Vitaly Provodin
cdb36f0dc2 Update docker script to create jdk15 build env 2023-04-21 02:00:59 +02:00
Vitaly Provodin
e2f87db559 JBR-3045 add pressing ESC to close the dialog after test completion
(cherry picked from commit 44d8b28b0b)
2023-04-21 02:00:58 +02:00
Vitaly Provodin
f6d6e4e311 JBR-3040 press the button END at the beggining in order to avoid text selection
(cherry picked from commit 1c2bf33db2)
2023-04-21 02:00:58 +02:00
Vitaly.Provodin
953162c4d2 updated JTreg exclude list 2023-04-21 02:00:58 +02:00
Justin Lu
ffb2494de4 8305207: Calendar.aggregateStamp(int, int) return value can be simplified
Reviewed-by: naoto, rriggs, iris
2023-04-20 21:20:08 +00:00
Justin Lu
174c1a6d53 4737887: (cal) API: Calendar methods taking field should document exceptions
Reviewed-by: naoto
2023-04-20 21:11:00 +00:00
Coleen Phillimore
f63362310e 8306474: Move InstanceKlass read-only flags
Reviewed-by: jrose, dholmes
2023-04-20 19:20:03 +00:00
Coleen Phillimore
afd2501fcc 8306482: Remove unused Method AccessFlags
Reviewed-by: dholmes, matsaave
2023-04-20 19:13:14 +00:00
Harshitha Onkar
d6cf4aa155 8305874: Open source AWT Key, Text Event related tests
Reviewed-by: azvegint
2023-04-20 18:34:19 +00:00
Xin Liu
9412c0a2ca 8297302: gtest/AsyncLogGtest.java fails AsyncLogTest.stdoutOutput_vm
Reviewed-by: dholmes, shade
2023-04-20 17:02:53 +00:00
Peter Hofer
20b1d19d26 8305746: InitializeEncoding should cache Charset object instead of charset name
Reviewed-by: naoto
2023-04-20 16:11:29 +00:00
Brian Burkhalter
955abcae55 8306483: (ch) Channels.newReader(ReadableByteChannel,Charset) refers to csName
Reviewed-by: alanb
2023-04-20 15:38:11 +00:00
Lance Andersen
c6a288dcd6 8305945: (zipfs) Opening a directory to get input stream produces incorrect exception message
Reviewed-by: naoto, cstein
2023-04-20 14:09:25 +00:00
Albert Mingkun Yang
73018b39cd 8306284: G1: Remove assertion in G1ScanHRForRegionClosure::do_claimed_block
Reviewed-by: kbarrett, tschatzl
2023-04-20 13:02:36 +00:00
Zixian Cai
33a7978e85 8306538: Zero variant build failure after JDK-8257967
Reviewed-by: shade, dholmes
2023-04-20 12:41:50 +00:00
Amit Kumar
9c2e5b3871 8306459: s390x: Replace NULL to nullptr
Reviewed-by: mdoerr
2023-04-20 12:28:26 +00:00
Stefan Karlsson
6a7dff30ed 8305880: Loom: Avoid putting stale object pointers in oops
Reviewed-by: eosterlund, aboldtch
2023-04-20 09:18:28 +00:00
Matthias Baesken
310aa93478 8304291: [AIX] Broken build after JDK-8301998
Reviewed-by: mdoerr, tsteele, prr
2023-04-20 07:07:00 +00:00
Prasanta Sadhukhan
64ed816ad9 8305943: Open source few AWT Focus related tests
Reviewed-by: prr, serb
2023-04-20 02:35:05 +00:00
Jaikiran Pai
b8f0a668dd 8041676: remove the java.compiler system property
Reviewed-by: dholmes, alanb, rriggs, iris
2023-04-20 01:49:31 +00:00
Phil Race
781d6d793a 8306372: Open source AWT CardLayout and Checkbox tests
Reviewed-by: serb, honkar
2023-04-19 20:53:51 +00:00
Alexander Zvegintsev
d03128d0e5 8306280: Open source several choice AWT tests
Reviewed-by: jdv, prr, serb
2023-04-19 18:55:13 +00:00
Aleksey Shipilev
e764e9b740 8306452: Fix Amazon copyright in JDK-8305425 test
Reviewed-by: simonis
2023-04-19 18:36:07 +00:00
William Kemper
ed34e7f5ae 8306321: Add an accessor for the top of a PLAB
Reviewed-by: shade, ysr
2023-04-19 18:32:48 +00:00
Phil Race
fdb4bafa31 8306134: Open source some AWT tests relating to Button and a few other classes
Reviewed-by: azvegint
2023-04-19 17:37:16 +00:00
Alexander Zuev
4ad3ac6317 8306135: Clean up and open source some AWT tests
Reviewed-by: azvegint
2023-04-19 16:56:00 +00:00
Naoto Sato
85de01e676 8306323: Update license files in CLDR v43
Reviewed-by: lancea, srl, iris
2023-04-19 16:04:58 +00:00
Doug Simon
48fd4f2bd3 8303431: [JVMCI] libgraal annotation API
Reviewed-by: kvn, never, darcy
2023-04-19 16:01:57 +00:00
Oliver Kopp
c57af319f6 8306038: SystemModulesPlugin generates code that doesn't pop when return value not used
Reviewed-by: alanb, mchung
2023-04-19 15:56:34 +00:00
Fredrik Bredberg
a31a11f44a 8306006: strace001.java fails due to unknown methods on stack
Reviewed-by: rehn, alanb, dholmes
2023-04-19 15:04:27 +00:00
Coleen Phillimore
ddb86469e0 8306123: Move InstanceKlass writeable flags
Reviewed-by: iklam, fparain
2023-04-19 14:06:02 +00:00
Coleen Phillimore
1a41e12c22 8306310: Move is_shared Klass flag
Reviewed-by: iklam, fparain
2023-04-19 14:04:19 +00:00
Markus Grönlund
c738c8ea3e 8306278: jvmtiAgentList.cpp:253 assert(offset >= 0) failed: invariant occurs on AIX after JDK-8257967
Reviewed-by: sspitsyn, dholmes, mbaesken
2023-04-19 10:59:10 +00:00
William Kemper
9fb53adfe0 8305716: Enhancements for printing age tables
Reviewed-by: kdnilsen, ysr, tschatzl
2023-04-19 07:43:36 +00:00
Matthias Baesken
ebba42ac52 8305993: Add handleSocketErrorWithMessage to extend nio Net.c exception message
Reviewed-by: alanb
2023-04-19 07:22:56 +00:00
Richard Reingruber
42b7260e8b 8306111: PPC64: RT call after thaw with exception requires larger ABI section
Reviewed-by: mdoerr
2023-04-19 07:18:26 +00:00
Ioi Lam
c7faf60201 8305757: Call Method::compute_has_loops_flag() when creating CDS archive
Reviewed-by: coleenp, ccheung
2023-04-19 02:53:02 +00:00
Aleksei Efimov
eb8d8cdddd 8299129: Enhance NameService lookups
Reviewed-by: ahgross, michaelm, rhalade, dfuchs
2023-04-18 23:21:21 +00:00
Kevin Walls
77df3152c8 8296692: Improve String platform support
Reviewed-by: rhalade, amenkov, michaelm
2023-04-18 23:21:21 +00:00
Sean Mullan
f098b490f1 8298310: Enhance TLS session negotiation
Reviewed-by: rhalade, mschoene, weijun, ascarpino
2023-04-18 23:21:21 +00:00
Prasanta Sadhukhan
9e56d100df 8296832: Improve Swing platform support
Reviewed-by: skoivu, kizune, rhalade, prr
2023-04-18 23:21:21 +00:00
Joe Wang
2e5700a92c 8288436: Improve Xalan supports
Reviewed-by: smarks, ahgross, rhalade, lancea, naoto
2023-04-18 23:21:21 +00:00
Kevin Walls
b1c34c03d7 8296684: Improve String platform support
Reviewed-by: amenkov, michaelm, rhalade
2023-04-18 23:21:20 +00:00
Jamil Nimeh
14aad787a8 8294474: Better AES support
Reviewed-by: ahgross, ascarpino
2023-04-18 23:21:20 +00:00
Brian Burkhalter
a0f7ae1a95 8298667: Improved path handling
Reviewed-by: rhalade, alanb
2023-04-18 23:21:20 +00:00
Michael McMahon
ec119716e5 8296676: Improve String platform support
Reviewed-by: aefimov, dfuchs
2023-04-18 23:21:20 +00:00
Naoto Sato
5ec0120152 8297371: Improve UTF8 representation redux
Reviewed-by: rhalade, bchristi
2023-04-18 23:21:20 +00:00
Ian Graves
3656939a6a 8295304: Runtime support improvements
Reviewed-by: rhalade, rriggs, bchristi
2023-04-18 23:21:20 +00:00
Daniel Jeliński
c06135b5a6 8287404: Improve ping times
Reviewed-by: alanb, dfuchs, rhalade
2023-04-18 23:21:20 +00:00
Calvin Cheung
1b5d35ad2c 8306059: improve the reliability of TestSerialGCWithCDS.java and ArchiveRelocationTest.java tests
Reviewed-by: iklam
2023-04-18 21:23:42 +00:00
Markus Grönlund
0f3828dddd 8306282: Build failure linux-arm32-open-cmp-baseline after JDK-8257967
Reviewed-by: egahlin, iklam
2023-04-18 16:00:40 +00:00
Aleksey Shipilev
803680f17a 8306289: 32-bit build failures after JDK-8303422
Reviewed-by: jiefu, zgu
2023-04-18 15:33:39 +00:00
Daniel Jeliński
e97fe081ad 8306279: Build failure after JDK-8299592
Reviewed-by: thartmann
2023-04-18 12:55:14 +00:00
Matthias Baesken
3c7ab80501 8304054: Linux: NullPointerException from FontConfiguration.getVersion in case no fonts are installed
Reviewed-by: lucy, aivanov
2023-04-18 11:10:57 +00:00
Daniel Jeliński
3bba899574 8299592: Fix and reenable warnings in java.desktop native code compilation
Reviewed-by: ihse, aivanov
2023-04-18 09:43:08 +00:00
Johan Sjölen
896207de14 8306077: Replace NEW_ARENA_ARRAY with NEW_RESOURCE_ARRAY when applicable in opto
Reviewed-by: thartmann
2023-04-18 09:00:20 +00:00
Johan Sjölen
54f7b6ca34 8301497: Replace NULL with nullptr in cpu/s390
Reviewed-by: amitkumar, coleenp
2023-04-18 08:59:31 +00:00
Roland Westrelin
8ecb5dfa34 8305781: compiler/c2/irTests/TestVectorizationMultiInvar.java failed with "IRViolationException: There were one or multiple IR rule failures."
Reviewed-by: thartmann, kvn
2023-04-18 08:54:55 +00:00
Guoxiong Li
49726ee3a9 8305690: [X86] Do not emit two REX prefixes in Assembler::prefix
Reviewed-by: kvn, thartmann
2023-04-18 08:01:32 +00:00
Richard Reingruber
445ebef437 8305668: PPC: Non-Top Interpreted frames should be independent of ABI_ELFv2
Reviewed-by: mdoerr
2023-04-18 06:59:51 +00:00
Matias Saavedra Silva
e3ece365ce 8303422: Use common functions to exit the VM for -Xshare:dump and CDS errors
Reviewed-by: iklam, coleenp, fparain
2023-04-17 21:38:46 +00:00
Brent Christian
bb1a7bb3e1 8305762: FileInputStream and FileOutputStream implSpec should be corrected or removed
Reviewed-by: kbarrett, alanb, bpb
2023-04-17 20:40:47 +00:00
Brian Burkhalter
8858d54342 8305811: (bf) Improve performance of CharBuffer::append(CharSequence[,int,int])
Reviewed-by: alanb
2023-04-17 20:17:23 +00:00
Jonathan Gibbons
525a91e3fa 8305673: Convert DocCommentParser to use enhanced switch
Reviewed-by: hannesw
2023-04-17 19:04:31 +00:00
Phil Race
6831f9db8b 8278583: Open source SwingMark - Swing performance benchmark
Reviewed-by: serb, aghaisas, avu
2023-04-17 18:03:29 +00:00
Tom Rodriguez
497f9e760d 8305755: [JVMCI] missing barriers in CompilerToVM.readFieldValue for Reference.referent
Reviewed-by: eosterlund, dnsimon
2023-04-17 16:45:56 +00:00
Naoto Sato
4ed933cf77 8296248: Update CLDR to Version 43.0
Reviewed-by: joehw
2023-04-17 16:35:36 +00:00
Patricio Chilano Mateo
7360960454 8305625: Stress test crashes with SEGV in Deoptimization::deoptimize_frame_internal(JavaThread*, long*, Deoptimization::DeoptReason)
Reviewed-by: rrich, rehn
2023-04-17 14:40:29 +00:00
Albert Mingkun Yang
cc60f2ff3f 8305060: G1: Refactor G1ScanHRForRegionClosure::scan_heap_roots
Reviewed-by: tschatzl, iwalulya
2023-04-17 12:27:13 +00:00
Albert Mingkun Yang
fb58d77e92 8305192: serial GC fails "assert(Universe::on_page_boundary(bottom) && Universe::on_page_boundary(end)) failed: invalid space boundaries"
Reviewed-by: iwalulya, tschatzl
2023-04-17 12:23:17 +00:00
Kirill A. Korinsky
7551529854 8305995: Footprint regression from JDK-8224957
Reviewed-by: kvn, thartmann
2023-04-17 12:22:26 +00:00
Erik Österlund
02347d0cec 8305351: C2 setScopedValueCache intrinsic doesn't use access API
Reviewed-by: kvn, rcastanedalo, aph, mdoerr
2023-04-17 12:14:57 +00:00
Erik Österlund
2240c7ec2f 8305543: Ensure GC barriers for arraycopy on AArch64 use caller saved neon temp registers
Reviewed-by: rcastanedalo, aph
2023-04-17 12:13:12 +00:00
Albert Mingkun Yang
1958f0e8bd 8305233: G1: Refactor G1ClearCardTableTask
Reviewed-by: tschatzl, iwalulya
2023-04-17 12:00:01 +00:00
Albert Mingkun Yang
dbd2b5f89f 8305892: G1: Fix G1MMUTracker::when_sec documentation
Reviewed-by: iwalulya, tschatzl
2023-04-17 11:59:11 +00:00
Emanuel Peter
c0b4957fcc 8305740: C2: add print statements to assert: Can't determine return type.
Reviewed-by: kvn, thartmann
2023-04-17 10:32:32 +00:00
Markus Grönlund
5c95bb1c51 8257967: JFR: Events for loaded agents
Reviewed-by: dholmes, sspitsyn
2023-04-17 10:25:36 +00:00
Varada M
2a062f1654 8305089: Implement missing socket options on AIX
Reviewed-by: erikj, jpai, vtewari, djelinski, dfuchs
2023-04-17 07:30:23 +00:00
Eirik Bjorsnos
7f56de8f78 8306036: Use @apiNote in String.toLowerCase, String.toUpperCase
Reviewed-by: alanb, jpai
2023-04-17 05:24:50 +00:00
Valerie Peng
e575924131 8305336: java.security.debug=sunpkcs11 breaks PKCS#11 configuration with slotListIndex
Reviewed-by: mpowers, weijun
2023-04-17 04:47:40 +00:00
Kim Barrett
caa841d9a5 8306029: ProblemList runtime/ErrorHandling/TestDwarf.java on linux
Reviewed-by: stuefe
2023-04-15 05:15:10 +00:00
Jiangli Zhou
314bad3613 8305935: Resolve multiple definition of 'jmm_<interface|version>' when statically linking with JDK native libraries
Reviewed-by: dholmes
2023-04-14 21:13:11 +00:00
William Kemper
793da60ee8 8305403: Shenandoah evacuation workers may deadlock
Reviewed-by: rkennke, ysr
2023-04-14 20:37:35 +00:00
Afshin Zafari
2cc4bf1a9d 8305085: Suppress removal warning for finalize() from test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineFinalizer.java
Reviewed-by: cjplummer, dholmes
2023-04-14 17:52:17 +00:00
Julian Waters
5a7886575e 8304930: Enable Link Time Optimization as an option for Visual C++
Reviewed-by: erikj
2023-04-14 17:18:28 +00:00
Roger Riggs
30a140b5a2 8304912: Use OperatingSystem enum in java.desktop module
Reviewed-by: bpb, prr, aturbanov
2023-04-14 16:42:18 +00:00
Coleen Phillimore
1fd400608e 8305405: Compile_lock not needed in Universe::genesis()
Reviewed-by: dholmes, fparain
2023-04-14 15:34:29 +00:00
Coleen Phillimore
ebeee6dce8 8305404: Compile_lock not needed for InstanceKlass::implementor()
Reviewed-by: eosterlund, fparain
2023-04-14 15:32:51 +00:00
Johan Sjölen
d2ce04bb10 8301496: Replace NULL with nullptr in cpu/riscv
Reviewed-by: dholmes, fyang
2023-04-14 09:53:46 +00:00
Viktor Klang
54bf370079 8170945: Collectors$Partition should override more Map methods
Reviewed-by: smarks
2023-04-14 09:16:16 +00:00
Johan Sjölen
0826ceee65 8301495: Replace NULL with nullptr in cpu/ppc
Reviewed-by: rrich, mdoerr, tsteele
2023-04-14 08:54:53 +00:00
Leo Korinth
c0c31224db 8305618: Move gcold out of tier1
Reviewed-by: lmesnik, shade
2023-04-14 08:50:31 +00:00
sunguoyun
3651b92229 8305944: assert(is_aligned(ref, HeapWordSize)) failed: invariant
Reviewed-by: stefank, tschatzl
2023-04-14 08:48:44 +00:00
Richard Reingruber
12358e6c94 8305934: PPC64: Disable VMContinuations on Big Endian
Reviewed-by: mdoerr, tsteele
2023-04-14 06:42:55 +00:00
Sergey Tsypanov
287bb06def 8305902: (cs) Resolve default Charset only once in StreamEncoder and StreamDecoder
Reviewed-by: alanb, bpb
2023-04-14 06:21:39 +00:00
David Holmes
8a1639d49b 8305936: JavaThread::create_system_thread_object has unused is_visible argument
Reviewed-by: alanb, kbarrett
2023-04-13 23:10:18 +00:00
Matthew Donovan
76cda9f44a 8255548: Missing coverage for javax.xml.crypto.dom.DOMCryptoContext
Reviewed-by: rhalade, mullan
2023-04-13 20:37:39 +00:00
Kevin Driver
b60604e8eb 8305794: Unused interface sun.security.util.PermissionFactory can be removed
Co-authored-by: Andrey Turbanov <aturbanov@openjdk.org>
Reviewed-by: mullan, aturbanov
2023-04-13 18:46:21 +00:00
Leonid Mesnik
92521b100f 8305875: Test TraceVirtualThreadLocals should be run with continuations only
Reviewed-by: alanb
2023-04-13 16:39:25 +00:00
Leonid Mesnik
00eb348a52 8305937: com/sun/jdi/SetLocalWhileThreadInNative.java fails with -XX:+TieredCompilation
Reviewed-by: dcubed
2023-04-13 16:02:17 +00:00
Daniel D. Daugherty
1385c3d2f1 8305966: ProblemList com/sun/jdi/JdbLastErrorTest.java on windows-x64
Reviewed-by: alanb
2023-04-13 15:50:24 +00:00
Daniel Fuchs
90b4006bce 8305847: Improve diagnosability and resilience of HttpClient::close tests
Reviewed-by: jpai, djelinski
2023-04-13 15:27:45 +00:00
Harshitha Onkar
d7dc474a5a 8305712: [MacOS] Deprecated Cocoa-NSEvent names
Reviewed-by: dmarkov, prr
2023-04-13 15:26:47 +00:00
Archie L. Cobbs
e0620b8e05 8296420: javac has long lines in its command-line help
Reviewed-by: jjg
2023-04-13 15:08:55 +00:00
Jonathan Dowland
6b9b7d1d92 8304350: Font.getStringBounds calculates wrong width for TextAttribute.TRACKING other than 0.0
Reviewed-by: stuefe
2023-04-13 12:02:14 +00:00
Jim Laskey
2060c8ea14 8305688: jdk build --with-memory-size=1024 broken by JDK-8305100
Reviewed-by: martin
2023-04-13 11:42:00 +00:00
Jaikiran Pai
646b666a26 8305900: Use loopback IP addresses in security policy files of httpclient tests
Reviewed-by: dfuchs
2023-04-13 09:41:01 +00:00
Thomas Stuefe
fb9a29d732 8305414: gtest/NMTGtests.java is failing various sub-tests
Reviewed-by: rkennke, adinn
2023-04-13 07:47:34 +00:00
Quan Anh Mai
e846a1d700 8304450: [vectorapi] Refactor VectorShuffle implementation
Reviewed-by: psandoz, xgong, jbhateja, vlivanov
2023-04-13 07:02:28 +00:00
Jaikiran Pai
3f36dd811e 8305529: DefaultProxySelector.select(URI) in certain cases returns a List with null element
Reviewed-by: dfuchs, djelinski, michaelm
2023-04-13 01:30:00 +00:00
Eirik Bjorsnos
425ef0685c 8303923: ZipOutStream::putEntry should include an apiNote to indicate that the STORED compression method should be used when writing directory entries
Reviewed-by: lancea, alanb
2023-04-12 21:44:21 +00:00
Jiangli Zhou
2bbbff209d 8305858: Resolve multiple definition of 'handleSocketError' when statically linking with JDK native libraries
Reviewed-by: alanb
2023-04-12 20:42:05 +00:00
Leonid Mesnik
bc15163386 8304834: Fix wrapper insertion in TestScaffold.parseArgs(String args[])
Reviewed-by: cjplummer, dholmes
2023-04-12 17:44:38 +00:00
quadhier
19380d74e4 8305324: C2: Wrong execution of vectorizing Interger.reverseBytes
Reviewed-by: kvn, pli
2023-04-12 17:08:26 +00:00
Bill Huang
87017b5199 8295859: Update Manual Test Groups
Reviewed-by: msheppar
2023-04-12 16:08:34 +00:00
Quan Anh Mai
99a9dbc8f1 8305783: x86_64: Optimize AbsI and AbsL
Reviewed-by: jkarthikeyan, thartmann
2023-04-12 13:48:52 +00:00
Johannes Bechberger
d8af7a6014 8304725: AsyncGetCallTrace can cause SIGBUS on M1
Reviewed-by: dholmes, stuefe, mbaesken
2023-04-12 06:49:10 +00:00
Pengfei Li
b9bdbe9ab3 8305524: AArch64: Fix arraycopy issue on SVE caused by matching rule vmask_gen_sub
Reviewed-by: aph, xgong
2023-04-12 03:15:39 +00:00
Xin Liu
82e8b0332b 8305203: Simplify trimming operation in Region::Ideal
Reviewed-by: thartmann, kvn
2023-04-12 00:37:15 +00:00
Bill Huang
27cf63853c 8300912: Update java/nio/MappedByteBuffer/PmemTest.java to run on x86_64 only
Reviewed-by: msheppar
2023-04-11 21:39:03 +00:00
Justin King
42fa000a7d 8305484: Compiler::init_c1_runtime unnecessarily uses an Arena that lives for the lifetime of the process
Reviewed-by: thartmann, kvn
2023-04-11 19:50:01 +00:00
Brian Burkhalter
475e9a7cad 8305809: (fs) Review obsolete Linux kernel dependency on os.version (Unix kernel 2.6.39)
Reviewed-by: rriggs, alanb
2023-04-11 16:59:11 +00:00
Alexey Semenyuk
1de772cd89 8294806: jpackaged-app ignores splash screen from jar file
Reviewed-by: almatvee
2023-04-11 16:16:07 +00:00
Thomas Schatzl
d9db90636f 8305368: G1 remset chunk claiming may use relaxed memory ordering
Reviewed-by: ayang, iwalulya
2023-04-11 16:06:10 +00:00
Thomas Schatzl
c789d24039 8305370: Inconsistent use of for_young_only_phase parameter in G1 predictions
Reviewed-by: iwalulya, kbarrett
2023-04-11 16:04:12 +00:00
Aleksei Voitylov
c6d7cf6b48 8305663: Wrong iteration order of pause array in g1MMUTracker
Reviewed-by: ayang, tschatzl
2023-04-11 16:03:13 +00:00
Jiangli Zhou
ce4b995556 8305761: Resolve multiple definition of 'jvm' when statically linking with JDK native libraries
Reviewed-by: alanb, kevinw
2023-04-11 15:05:44 +00:00
Tom Rodriguez
12946f5748 8305419: JDK-8301995 broke building libgraal
Reviewed-by: matsaave, dnsimon, thartmann
2023-04-11 14:55:55 +00:00
Mark Powers
9486969bd3 8302696: Revert API signature changes made in JDK-8285504 and JDK-8285263
Reviewed-by: mullan
2023-04-11 14:42:44 +00:00
Matias Saavedra Silva
628a3f173a 8304738: UnregisteredClassesTable_lock never created
Reviewed-by: iklam, jcking, dholmes
2023-04-11 14:03:10 +00:00
Leonid Mesnik
7a5597c34f 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate objects
Reviewed-by: kvn, sspitsyn
2023-04-11 13:55:20 +00:00
Chen Liang
e5ce7d9e43 8284871: Use covariant overrides for the resolveConstantDesc(Lookup) method in sub‑interfaces of java.lang.constant.ConstantDesc
Reviewed-by: mchung
2023-04-11 13:40:56 +00:00
Julian Waters
cd7d53c88c 8304717: Declaration aliasing between boolean and jboolean is wrong
Reviewed-by: dholmes
2023-04-11 06:52:34 +00:00
Alan Bateman
2586f36120 8304919: Implementation of Virtual Threads
Reviewed-by: lmesnik, cjplummer, psandoz, mchung, sspitsyn, jpai
2023-04-11 05:49:54 +00:00
Matthew Donovan
39398075b7 8182621: JSSE should reject empty TLS plaintexts
Reviewed-by: xuelei
2023-04-11 04:21:17 +00:00
Feilong Jiang
137513025d 8305728: RISC-V: Use bexti instruction to do single-bit testing
Reviewed-by: fyang, yzhu
2023-04-11 03:00:54 +00:00
Eirik Bjorsnos
4485737e9b 8304501: Remove orphaned demo netbeans projects
Reviewed-by: serb
2023-04-11 00:17:02 +00:00
Chen Liang
0ff2ff6789 8305807: Spurious right brace in ConstantDescs field Javadocs
Reviewed-by: mchung, iris
2023-04-10 22:54:32 +00:00
Justin Lu
2aeb0e5267 6241286: (cal) API: Calendar.DAY_OF_WEEK definition is wrong
Reviewed-by: naoto
2023-04-10 21:47:16 +00:00
Justin Lu
42965d390c 6218123: (cal) API: Spec for GregorianCalendar constructors and Calendar getInstance is inconsistent.
Reviewed-by: naoto
2023-04-10 21:46:31 +00:00
Mandy Chung
a43a17c8ea 8305808: Typo in javadoc of ConstantDescs::BSM_VARHANDLE_STATIC_FIELD
Reviewed-by: rriggs, iris
2023-04-10 20:50:50 +00:00
Roger Riggs
ba90dc7795 8304911: Use OperatingSystem enum in some modules
Reviewed-by: naoto, lancea, iris, jpai
2023-04-10 15:51:01 +00:00
Lance Andersen
76975da59e 8305758: Update the JAR tool man page to indicate -i/--generate-file is deprecated
Reviewed-by: alanb, jpai
2023-04-10 14:11:51 +00:00
Eirik Bjorsnos
0d45a524b3 8302819: Remove JAR Index
Reviewed-by: mchung, alanb, lancea, jpai
2023-04-10 11:23:21 +00:00
Vladimir Petko
0243da2e4a 8305481: gtest is_first_C_frame failing on ARM
Reviewed-by: stuefe
2023-04-10 09:21:23 +00:00
Eirik Bjorsnos
a8e3a2dd2f 8205129: Remove java.lang.Compiler
Reviewed-by: alanb, jpai
2023-04-10 08:32:19 +00:00
Prasanta Sadhukhan
db174a15d1 4825182: DefaultBoundedRangeModel.setMinimum() changes extent unnecessarily
Reviewed-by: prr
2023-04-10 07:21:23 +00:00
Ajit Ghaisas
969a6b9fd7 8304825: MacOS metal pipeline - window isn't painted if created during display sleep
Reviewed-by: kcr, avu, prr
2023-04-10 04:52:35 +00:00
Weijun Wang
97276859ab 8305310: Calculate PublicKey from PrivateKey
Reviewed-by: mullan
2023-04-10 00:55:16 +00:00
Andrey Turbanov
50d7335206 8305696: (zipfs) Avoid redundant LinkedHashMap.containsKey call ZipFileSystem.makeParentDirs
Reviewed-by: alanb, jpai, lancea
2023-04-09 11:21:48 +00:00
Jaikiran Pai
ec9d816abf 6441827: Documentation mentions nonexistent NullReferenceException
Reviewed-by: iris
2023-04-09 01:30:47 +00:00
Joshua Cao
9e20382311 8305721: add make compile-commands artifacts to .gitignore
Reviewed-by: erikj, jwaters
2023-04-08 13:17:33 +00:00
Ioi Lam
f45b01f883 8305766: ProblemList runtime/CompressedOops/CompressedClassPointers.java
Reviewed-by: cjplummer
2023-04-08 03:29:27 +00:00
Jonathan Gibbons
a8871f5d26 8305407: ExternalSpecsWriter should ignore white-space differences in spec titles
Reviewed-by: hannesw
2023-04-07 14:15:46 +00:00
Roland Westrelin
6b2a86a65e 8300257: C2: vectorization fails on some simple Memory Segment loops
Reviewed-by: kvn, thartmann
2023-04-07 12:51:44 +00:00
Nikita Gubarkov
dc81603cbf 8305666: Add system property for fair AWT lock
Reviewed-by: prr
2023-04-07 10:06:51 +00:00
Thomas Stuefe
c67bbcea92 8305711: Arm: C2 always enters slowpath for monitorexit
Reviewed-by: shade, kvn
2023-04-07 05:57:16 +00:00
Guoxiong Li
ce6e7461dc 8305118: Add RISC-V related content to building.md
Reviewed-by: erikj
2023-04-07 00:58:36 +00:00
Joshua Cao
314e9b3dcc 8300829: Make CtwRunner available as an independent tool
Reviewed-by: xliu, phh
2023-04-07 00:28:04 +00:00
Kevin Walls
0a34018797 8305680: Remove Permissions from jcmd help output
Reviewed-by: cjplummer, sspitsyn
2023-04-06 21:09:56 +00:00
Kevin Walls
8db1dd0258 8305622: Remove Permission details from jcmd man page
Reviewed-by: cjplummer, sspitsyn
2023-04-06 21:09:08 +00:00
Chris Plummer
1d517afbd4 8305209: JDWP exit error AGENT_ERROR_INVALID_THREAD(203): missing entry in running thread table
Reviewed-by: sspitsyn, lmesnik
2023-04-06 19:13:27 +00:00
Viktor Klang
08fbb7bb5e 8272119: Typo in JDK documentation (a -> an)
Reviewed-by: dfuchs, mchung, iris
2023-04-06 15:50:13 +00:00
Quan Anh Mai
536ad9df1a 8305461: [vectorapi] Add VectorMask::xor
Reviewed-by: psandoz
2023-04-06 15:33:16 +00:00
Leonid Mesnik
ddd50d0db3 8305608: Change VMConnection to use "test.class.path"instead of "test.classes"
Reviewed-by: cjplummer, sspitsyn
2023-04-06 14:11:40 +00:00
Matias Saavedra Silva
ce10460e94 8274166: Some CDS tests ignore -Dtest.cds.runtime.options
Reviewed-by: dholmes, iklam, aturbanov
2023-04-06 13:59:08 +00:00
Sergey Tsypanov
e52a2aeeac 8304745: Lazily initialize byte[] in java.io.BufferedInputStream
Reviewed-by: liach, bpb, jpai
2023-04-06 11:17:21 +00:00
Daniel Fuchs
6580c4e631 8267140: Support closing the HttpClient by making it auto-closable
Reviewed-by: jpai
2023-04-06 10:05:20 +00:00
Tingjun Yuan
b5ea140dff 8269843: typo in LinkedHashMap::removeEldestEntry spec
Reviewed-by: martin
2023-04-06 06:35:19 +00:00
Vladimir Petko
a6a3cf485d 8305480: test/hotspot/jtreg/runtime/NMT/VirtualAllocCommitMerge.java failing on 32 bit arm
Reviewed-by: stuefe, dholmes
2023-04-06 05:06:15 +00:00
Leonid Mesnik
35d22930bb 8305607: Remove some unused test parameters in com/sun/jdi tests
Reviewed-by: sspitsyn, amenkov, cjplummer
2023-04-06 03:32:12 +00:00
Serguei Spitsyn
5764119024 8303563: GetCurrentThreadCpuTime and GetThreadCpuTime need further clarification for virtual threads
Reviewed-by: dholmes, alanb
2023-04-06 01:30:31 +00:00
Mandy Chung
312702567a 8305600: java/lang/invoke/lambda/LogGeneratedClassesTest.java fails after JDK-8304846 and JDK-8202110
Reviewed-by: jvernee
2023-04-05 22:40:55 +00:00
David Holmes
35cb303a2c 8305425: Thread.isAlive0 doesn't need to call into the VM
Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Reviewed-by: shade, coleenp, alanb
2023-04-05 21:54:38 +00:00
Daniel D. Daugherty
b5d204c3a4 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
2023-04-05 21:24:55 +00:00
Brian Burkhalter
507c49a3ab 8305664: [BACKOUT] (fs) Remove FileSystem support for resolving against a default directory (chdir configuration)
Reviewed-by: alanb
2023-04-05 20:17:07 +00:00
Brian Burkhalter
39f12a88e7 8305596: (fc) Two java/nio/channels tests fail after JDK-8303260
Reviewed-by: alanb
2023-04-05 20:16:13 +00:00
Naoto Sato
44f33ad1a9 8304982: Emit warning for removal of COMPAT provider
Reviewed-by: alanb
2023-04-05 16:06:23 +00:00
Naoto Sato
ee3023359c 8305107: Emoji related binary properties in RegEx
Reviewed-by: iris, rriggs, jpai
2023-04-05 16:04:27 +00:00
Jonathan Gibbons
5919fad1f4 8305591: Cleanup use of newline flag in DocCommentParser
Reviewed-by: hannesw
2023-04-05 15:36:25 +00:00
Jonathan Gibbons
022290bdbd 8305620: Missing break in DocCommentParser inlineWord()
Reviewed-by: iris
2023-04-05 14:39:51 +00:00
Daniel D. Daugherty
2e59d21e56 8305659: ProblemList com/sun/jdi/PopAndInvokeTest.java with virtual threads
Reviewed-by: thartmann
2023-04-05 14:04:08 +00:00
Nikita Gubarkov
f69d88c57f 8301616: Drag & maximize to another monitor places window incorrectly (Windows)
Reviewed-by: avu, aivanov, serb
2023-04-05 13:41:51 +00:00
Matthias Baesken
a3137c750f 8305646: compile error on Alpine with gcc12 after 8298619 in libGetXSpace.c
Reviewed-by: alanb, shade
2023-04-05 13:27:16 +00:00
Adam Sotona
78ff454f19 8305490: CommandProcessor command "dumpclass" produces classes with invalid field descriptors
Reviewed-by: cjplummer, fparain
2023-04-05 13:19:27 +00:00
Tobias Holenstein
9f587d272f 8305644: IGV: Node text not updated when switching from/to CFG view
Reviewed-by: rcastanedalo, chagedorn
2023-04-05 12:09:27 +00:00
Jan Lahoda
4bf1987856 8296454: System.console() shouldn't return null in jshell
Reviewed-by: vromero
2023-04-05 10:35:01 +00:00
Jan Lahoda
2aec910ea4 8304883: Record Deconstruction causes bytecode error
Reviewed-by: vromero
2023-04-05 10:29:22 +00:00
Tobias Holenstein
0e0c022b1f 8305356: Fix ignored bad CompileCommands in tests
Reviewed-by: thartmann, chagedorn
2023-04-05 09:35:45 +00:00
Prasanta Sadhukhan
b659c35395 8068824: Exception thrown in JTableHeader after clicking on popupmenu opened with right-click on header
Reviewed-by: abhiscxk, aghaisas
2023-04-05 05:41:30 +00:00
Emanuel Peter
83a924a100 8304042: C2 SuperWord: schedule must remove packs with cyclic dependencies
Reviewed-by: kvn, thartmann
2023-04-05 04:52:11 +00:00
Abhishek Kumar
0ec3d2e363 7124527: [macosx] SwingSet2, label is not read by VoiceOver when focus is on textfield for Internalframe and Table demo.
Reviewed-by: asemenov, serb
2023-04-05 04:28:00 +00:00
Yoshiki Sato
ed9592c6e8 8305113: (tz) Update Timezone Data to 2023c
Reviewed-by: naoto, andrew, serb
2023-04-05 01:19:00 +00:00
Kevin Walls
15fa78e6e7 8305237: CompilerDirectives DCmds permissions correction
Reviewed-by: cjplummer, sspitsyn
2023-04-04 22:16:50 +00:00
Justin Lu
7cf24d1c06 8305400: ISO 4217 Amendment 175 Update
Reviewed-by: naoto
2023-04-04 21:02:33 +00:00
Justin Lu
a324fa2639 8225641: Calendar.roll(int field) does not work correctly for WEEK_OF_YEAR
Reviewed-by: naoto
2023-04-04 21:01:24 +00:00
Mandy Chung
3399fbf9fa 8305602: ProblemList java/lang/invoke/lambda/LogGeneratedClassesTest.java
Reviewed-by: dcubed
2023-04-04 19:10:44 +00:00
Brian Burkhalter
94a05e0caa 8305599: (fc) Temporarily problem-list java/nio/channels/{AsyncCloseAndInterrupt.java, FileChannel/Transfer.java}
Reviewed-by: alanb
2023-04-04 18:23:31 +00:00
Raffaello Giulietti
7c650489d2 8305343: BigDecimal.fractionOnly() erroneously returns true for large scale value
Reviewed-by: darcy
2023-04-04 18:09:04 +00:00
Mandy Chung
dd59471798 8304846: Provide a shared utility to dump generated classes defined via Lookup API
Reviewed-by: jvernee
2023-04-04 18:07:02 +00:00
Coleen Phillimore
2ee4245105 8305509: C1 fails "assert(k != nullptr) failed: illegal use of unloaded klass"
Reviewed-by: dcubed
2023-04-04 16:31:21 +00:00
Brian Burkhalter
7baccd9ee2 8303260: (fc) FileChannel::transferFrom should support position > size()
Reviewed-by: alanb
2023-04-04 15:57:56 +00:00
Brian Burkhalter
3ef834fc6f 8298619: java/io/File/GetXSpace.java is failing
Reviewed-by: rriggs
2023-04-04 15:56:51 +00:00
Leonid Mesnik
c59411929d 8305511: Remove ignore from com/sun/jdi/PopAndInvokeTest.java
Reviewed-by: cjplummer, sspitsyn
2023-04-04 14:39:56 +00:00
Amit Kumar
62bd2ebac4 8303147: [s390x] fast & slow debug builds are broken
Reviewed-by: mdoerr
2023-04-04 14:28:09 +00:00
Deepa Kumari
f9ed825266 8303082: [AIX] Missing C++ name demangling with XLClang++
Reviewed-by: tsteele, mdoerr, stuefe
2023-04-04 14:26:24 +00:00
Jonathan Gibbons
73a084c24e 8305504: stutter typo in java.compiler files
Reviewed-by: darcy, iris
2023-04-04 14:08:30 +00:00
Thomas Stuefe
7b922104f5 8305525: Problemlist runtime/ErrorHandling/TestDwarf on x86
Reviewed-by: shade
2023-04-04 13:11:53 +00:00
Coleen Phillimore
5881b099f6 8305500: SystemDictionary::find_placeholder/find_class declared but not used
Reviewed-by: iklam, dholmes
2023-04-04 12:14:06 +00:00
Markus Grönlund
7ca2aec34c 8304033: JFR: Missing thread
Reviewed-by: egahlin, dholmes
2023-04-04 10:55:21 +00:00
Markus Grönlund
ac01e24eaf 8305242: Remove non-invariant assert(EventThreadDump::is_enabled())
Reviewed-by: egahlin
2023-04-04 10:53:46 +00:00
Jie Fu
a663d5d694 8305520: ToggleNotifyJvmtiTest.java fails with release VMs
Reviewed-by: sspitsyn
2023-04-04 07:33:21 +00:00
Emanuel Peter
24c6af0637 8173709: Fix VerifyLoopOptimizations - step 1 - minimal infrastructure
Reviewed-by: kvn, chagedorn, thartmann
2023-04-04 06:28:57 +00:00
David Holmes
a7546b3a16 8304996: Add missing HandleMarks
Reviewed-by: coleenp, shade, iklam
2023-04-04 02:04:47 +00:00
Eric Liu
ac898e9051 8303278: Imprecise bottom type of ExtractB/UB
Reviewed-by: qamai, thartmann
2023-04-04 01:18:10 +00:00
Serguei Spitsyn
a1a9ec6e46 8297286: runtime/vthread tests crashing after JDK-8296324
Reviewed-by: lmesnik, pchilanomate, cjplummer
2023-04-04 00:46:43 +00:00
Jonathan Gibbons
c6bd489cc8 8305206: Add @spec tags in java.base/java.* (part 1)
Reviewed-by: alanb, naoto, darcy, lancea, dfuchs, iris, mchung
2023-04-04 00:09:38 +00:00
Joe Darcy
ccbb0e8d89 8303798: REDO - Remove fdlibm C sources
Reviewed-by: alanb, iris, jwaters, erikj, kvn, dholmes
2023-04-03 23:57:01 +00:00
Ioi Lam
9ce5fdc962 8305421: Work around JDK-8305420 in CDSJDITest.java
Reviewed-by: cjplummer
2023-04-03 22:28:58 +00:00
Coleen Phillimore
b062b1bd81 8304743: Compile_lock and SystemDictionary updates
Reviewed-by: vlivanov, dholmes, dlong
2023-04-03 20:25:36 +00:00
Joe Darcy
df819cfa5a 8304945: StringBuilder and StringBuffer should implement Appendable explicitly
Reviewed-by: alanb, rriggs
2023-04-03 17:19:44 +00:00
Thomas Stuefe
312bbe7d75 8305485: Problemlist runtime/Thread/TestAlwaysPreTouchStacks.java
Reviewed-by: shade
2023-04-03 16:58:54 +00:00
Sergey Tsypanov
50e31e06d7 8305442: (bf) Direct and view implementations of CharBuffer.toString(int, int) do not need to catch SIOBE
Reviewed-by: alanb, bpb
2023-04-03 16:16:05 +00:00
Eirik Bjorsnos
85e3974470 8304014: Convert test/jdk/java/util/zip/ZipFile/CorruptedZipFiles.java to junit
Reviewed-by: lancea
2023-04-03 16:11:37 +00:00
Markus KARG
40aea04680 8278268: (ch) InputStream returned by Channels.newInputStream should have fast path for FileChannel targets
Reviewed-by: bpb
2023-04-03 15:45:29 +00:00
Jim Laskey
9b9b5a7a5c 8302323: Add repeat methods to StringBuilder/StringBuffer
Reviewed-by: tvaleev, redestad
2023-04-03 15:29:21 +00:00
Daniel D. Daugherty
dd7ca757a7 8305478: [REDO] disable gtest/NMTGtests.java sub-tests failing due to JDK-8305414
Reviewed-by: stuefe
2023-04-03 15:04:08 +00:00
Daniel Jeliński
f9827ad172 8288109: HttpExchangeImpl.setAttribute does not allow null value after JDK-8266897
Reviewed-by: dfuchs, jpai
2023-04-03 14:57:03 +00:00
Daniel D. Daugherty
6010de0f1d 8305417: disable gtest/NMTGtests.java sub-tests failing due to JDK-8305414
Reviewed-by: alanb
2023-04-03 13:52:14 +00:00
Matias Saavedra Silva
127afd3445 8241613: Suspicious calls to MacroAssembler::null_check(Register, offset)
Reviewed-by: dholmes, coleenp, fparain, adinn
2023-04-03 12:59:02 +00:00
Fredrik Bredberg
33d09e587a 8305247: On RISC-V generate_fixed_frame() sometimes generate a relativized locals value which is way too large
Reviewed-by: fyang, rehn
2023-04-03 12:38:13 +00:00
Jim Laskey
790acedaab 8305100: [REDO] Clean up JavadocTokenizer
Reviewed-by: jjg
2023-04-03 11:40:21 +00:00
Hannes Wallnöfer
2e91585ac9 8303123: Add line break opportunity to single type parameters
Reviewed-by: jjg
2023-04-03 10:39:56 +00:00
Hannes Wallnöfer
094e03de6a 8299718: JavaDoc: Buttons to copy specific documentation URL are not accessible
Reviewed-by: jjg
2023-04-03 10:37:19 +00:00
Martin Doerr
4de24cdbe6 8303210: [linux, Windows] Make UseSystemMemoryBarrier available as product flag
Reviewed-by: dholmes, rehn
2023-04-03 09:37:16 +00:00
Erik Gahlin
336a23e70a 8303229: JFR: Preserve disk repository after exit
Reviewed-by: dholmes, mgronlun
2023-04-03 08:55:45 +00:00
Abhishek Kumar
ecec611af6 8283404: [macos] a11y : Screen magnifier does not show JMenu name
Reviewed-by: serb
2023-04-03 05:36:04 +00:00
Julian Waters
aa762102e9 8304893: Link Time Optimization with gcc can be faster
Reviewed-by: dholmes, erikj
2023-04-02 06:54:09 +00:00
Thomas Stuefe
b8c748dbe4 8294266: Add a way to pre-touch java thread stacks
Reviewed-by: rehn, gziemski
2023-04-02 06:21:30 +00:00
Thomas Stuefe
41a3db267d 8304815: Use NMT for more precise hs_err location printing
Reviewed-by: jsjolen, rkennke
2023-04-02 06:19:07 +00:00
Joshua Cao
34e66ce1ef 8304295: harfbuzz build fails with GCC 7 after JDK-8301998
Reviewed-by: shade, erikj, serb, jwaters
2023-04-01 14:36:52 +00:00
Afshin Zafari
a19b28ab3e 8297539: Use PrimitiveConversions::cast for local uses of the int<->float union conversion trick
Reviewed-by: coleenp, kbarrett, dholmes
2023-04-01 01:02:05 +00:00
Archie L. Cobbs
8eb4e7e07e 8277501: Revisit PathFileObject.getCharContent and friends
Reviewed-by: vromero, jjg
2023-03-31 23:17:56 +00:00
Joe Darcy
abfb900829 8304028: Port fdlibm IEEEremainder to Java
Reviewed-by: bpb
2023-03-31 19:48:03 +00:00
Martin Buchholz
a565be4dc5 8297605: improve DelayQueue removal method javadoc
Reviewed-by: alanb
2023-03-31 18:11:53 +00:00
Chen Liang
cccb0191a3 8304928: Optimize ClassDesc.resolveConstantDesc
Reviewed-by: mchung
2023-03-31 17:45:54 +00:00
Chen Liang
bdbf8fc61d 8303930: Fix ConstantUtils.skipOverFieldSignature void case return value
Reviewed-by: mchung
2023-03-31 17:14:44 +00:00
Amit Kumar
4a5d7ca7d9 8305227: [s390x] build broken after JDK-8231349
Reviewed-by: shade, lucy, kvn
2023-03-31 16:57:46 +00:00
Erik Gahlin
dae1ab3aad 8304844: JFR: Missing disk parameter in ActiveRecording event
Reviewed-by: mgronlun
2023-03-31 15:50:33 +00:00
Doug Simon
e012685051 8305066: [JVMCI] guarantee(ik->is_initialized()) failed: java/lang/Long$LongCache must be initialized
Reviewed-by: never, iveresov
2023-03-31 15:23:45 +00:00
Justin King
fe42312f9b 8304820: Statically allocate ObjectSynchronizer mutexes
Reviewed-by: dcubed, dholmes
2023-03-31 14:28:22 +00:00
Daniel Fuchs
2f36eb0121 8305323: Update java/net/httpclient/ContentLengthHeaderTest.java to use new HttpTestServer factory methods
Reviewed-by: jpai
2023-03-31 13:48:20 +00:00
Tobias Holenstein
049b953f8f 8305223: IGV: mark osr compiled graphs with [OSR] in the name
Reviewed-by: thartmann, rcastanedalo, eliu
2023-03-31 12:10:21 +00:00
Roberto Castañeda Lozano
345669c29d 8302738: IGV: refine 'Simplify graph' filter
Reviewed-by: tholenstein, chagedorn
2023-03-31 12:03:47 +00:00
Fei Gao
dea9db2d0a 8305055: IR check fails on some aarch64 platforms
Reviewed-by: epeter, thartmann
2023-03-31 09:15:24 +00:00
Richard Reingruber
c8f3a97d46 8305171: PPC: Should use IMA::load_resolved_indy_entry() in TIG::generate_return_entry_for()
Reviewed-by: mdoerr
2023-03-31 08:59:02 +00:00
Amit Kumar
7fe5bd2bec 8305174: disable dtrace for s390x builds
Reviewed-by: erikj, lucy, mbaesken
2023-03-31 07:46:50 +00:00
Jaikiran Pai
787832a586 8304988: unnecessary dash in @param gives double-dash in docs
Reviewed-by: alanb, cjplummer
2023-03-31 04:59:53 +00:00
Dingli Zhang
a144c713b7 8305008: RISC-V: Factor out immediate checking functions from assembler_riscv.inline.hpp
Reviewed-by: fjiang, fyang
2023-03-31 01:22:54 +00:00
Justin Lu
d8158897c3 8304993: bad sentence break in DateFormat
Reviewed-by: rriggs, naoto, lancea, iris
2023-03-30 22:34:42 +00:00
Justin Lu
5f7b4b8e75 8305111: Locale.lookupTag has typo in parameter
Reviewed-by: lancea, iris, naoto
2023-03-30 22:33:59 +00:00
Xin Liu
83cf28f996 8305142: Can't bootstrap ctw.jar
Reviewed-by: shade, phh
2023-03-30 16:53:33 +00:00
Brian Burkhalter
05cc02b243 8202110: (fs) Remove FileSystem support for resolving against a default directory (chdir configuration)
Reviewed-by: alanb
2023-03-30 16:44:01 +00:00
Sergey Bylokhov
d2df36b073 8299333: Unify exceptions used by all variants of ICC_Profile.getInstance(null)
Reviewed-by: prr
2023-03-30 16:12:25 +00:00
Mandy Chung
1d7bb1ffa0 8304585: Method::invoke rewraps InvocationTargetException if a caller-sensitive method throws IAE
Reviewed-by: darcy, jpai, alanb
2023-03-30 16:07:47 +00:00
Per Minborg
9df2060059 8305157: The java.util.Arrays class should be declared final
Reviewed-by: alanb, rriggs, bpb
2023-03-30 09:24:35 +00:00
Ilya Korennoy
b261e6c43f 8304445: Remaining uses of NULL in ciInstanceKlass.cpp
Reviewed-by: thartmann
2023-03-30 08:57:25 +00:00
Tobias Holenstein
2c38e67b29 8302644: IGV: Apply filters per graph tab and not globally
Reviewed-by: rcastanedalo, chagedorn, thartmann
2023-03-30 08:12:10 +00:00
Severin Gehwolf
f0dba218ac 8304871: Use default visibility for static library builds
Reviewed-by: erikj, dholmes
2023-03-30 08:01:36 +00:00
Emanuel Peter
77811fa39b 8305222: Change unique_ctrl_out_or_null to unique_ctrl_out in PhaseCFG::convert_NeverBranch_to_Goto
Reviewed-by: kvn, thartmann
2023-03-30 07:26:38 +00:00
Daniel Jeliński
2d607c9cd1 8262294: java/net/httpclient/ProxyAuthDisabledSchemes.java fails with HTTP/1.1 parser received no bytes
Reviewed-by: dfuchs, jpai
2023-03-30 05:15:19 +00:00
Kim Barrett
b3ff8d1c89 8303805: [REDO] JDK-8302189 and JDK-8302799
Reviewed-by: dholmes, coleenp
2023-03-29 23:45:03 +00:00
Ioi Lam
b524a74165 8301106: Allow archived Java strings to be moved by GC
Reviewed-by: dholmes
2023-03-29 23:42:52 +00:00
Chris Plummer
9643f654da 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
2023-03-29 23:29:30 +00:00
Daniel Fuchs
69152c3b18 8305202: Fix Copyright Header in ZonedDateTimeFormatterBenchmark
Reviewed-by: rriggs, naoto, dcubed
2023-03-29 19:12:02 +00:00
Sergey Tsypanov
438c969b7b 8304976: Optimize DateTimeFormatterBuilder.ZoneTextPrinterParser.getTree()
Reviewed-by: naoto
2023-03-29 18:32:14 +00:00
Roger Riggs
d063b8964f 8303392: Runtime.exec and ProcessBuilder.start should use System logger
Reviewed-by: stuefe, alanb, mullan
2023-03-29 17:32:46 +00:00
SUN Guoyun
be764a711c 8302814: Delete unused CountLoopEnd instruct with CmpX
Reviewed-by: kvn, fjiang
2023-03-29 17:18:59 +00:00
Kim Barrett
34f4d7f4ad 8304759: Add BitMap iterators
Reviewed-by: stefank, aboldtch, tschatzl
2023-03-29 17:18:16 +00:00
Harshitha Onkar
42df1a99b7 8304991: Redundant hyphen in @param results in double-dash in javadocs
Reviewed-by: psadhukhan
2023-03-29 16:50:24 +00:00
Naoto Sato
e3855d0054 8304840: Dangling CharacterCodingException in a few javadoc descriptions
Reviewed-by: alanb, iris, rriggs, jpai
2023-03-29 16:19:44 +00:00
Bhavana Kilambi
67274906ae 8303161: [vectorapi] VectorMask.cast narrow operation returns incorrect value with SVE
Reviewed-by: eliu, xgong, ngasson
2023-03-29 16:12:56 +00:00
Naoto Sato
f07decb74b 8272613: CharsetDecoder.decode(ByteBuffer) throws IllegalArgumentException
Reviewed-by: alanb, bpb
2023-03-29 16:08:57 +00:00
Thomas Schatzl
014c658708 8305086: G1 Redirty Cards phase printed twice
Reviewed-by: ayang, kbarrett
2023-03-29 15:21:02 +00:00
Lance Andersen
2fa09333ef 8304990: unnecessary dash in @param gives double-dash in docs
Reviewed-by: bpb, naoto
2023-03-29 14:52:11 +00:00
Daniel Fuchs
e56bcb04b1 8305095: Update java/net/httpclient/CustomRequestPublisher.java to use new HttpTestServer factory methods
Reviewed-by: jpai
2023-03-29 09:46:15 +00:00
Xiaolin Zheng
09852884cc 8304681: compiler/sharedstubs/SharedStubToInterpTest.java fails after JDK-8304387
Reviewed-by: eastigeevich, kvn, shade
2023-03-29 08:29:03 +00:00
Matthias Baesken
ff368d504e 8304867: Explicitly disable dtrace for ppc builds
Reviewed-by: erikj, shade, lucy
2023-03-29 06:55:51 +00:00
Xiaolin Zheng
96fa2751e8 8305112: RISC-V: Typo fix for RVC description
Reviewed-by: dholmes
2023-03-29 02:53:58 +00:00
Jonathan Gibbons
7239150f8a 8305094: typo (missing *) in doc comment
Reviewed-by: iris
2023-03-28 20:58:57 +00:00
Matias Saavedra Silva
3fbbfd1749 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
2023-03-28 19:50:38 +00:00
Daniel Fuchs
50a995f03a 8304927: Update java/net/httpclient/BasicAuthTest.java to check basic auth over HTTP/2
Reviewed-by: jpai
2023-03-28 18:58:29 +00:00
Raffaello Giulietti
ca745cb426 8291598: Matcher.appendReplacement should not create new StringBuilder instances
Reviewed-by: rriggs
2023-03-28 17:55:23 +00:00
Jim Laskey
1683a63a7d 8305098: [Backout] JDK-8303912 Clean up JavadocTokenizer
Reviewed-by: jjg, mcimadamore
2023-03-28 17:48:59 +00:00
Jan Lahoda
fab23577ab 8304498: JShell does not switch to raw mode when there is no /bin/test
Reviewed-by: coffeys, vromero
2023-03-28 16:56:28 +00:00
Jim Laskey
1fc218c58b 8303912: Clean up JavadocTokenizer
Reviewed-by: vromero, jjg
2023-03-28 16:36:07 +00:00
Archie L. Cobbs
c1f5ca115d 8303623: Compiler should disallow non-standard UTF-8 string encodings
Reviewed-by: vromero
2023-03-28 16:14:37 +00:00
Martin Doerr
695683b5b1 8304880: [PPC64] VerifyOops code in C1 doesn't work with ZGC
Reviewed-by: shade
2023-03-28 15:45:34 +00:00
Jonathan Gibbons
83ce65e12c 8305004: add @spec tags to langtools modules
Reviewed-by: iris
2023-03-28 14:52:22 +00:00
Justin King
32ef452132 8304884: Update Bytecodes data to be mostly compile time constants
Reviewed-by: coleenp, dholmes
2023-03-28 14:17:03 +00:00
Per Minborg
927e674c12 8300977: Retire java.io.ExpiringCache
Reviewed-by: alanb, jpai
2023-03-28 13:15:19 +00:00
Jaikiran Pai
c90699eae7 8304989: unnecessary dash in @param gives double-dash in docs
Reviewed-by: lancea
2023-03-28 12:02:27 +00:00
Sergey Tsypanov
395a4ce0dd 8304591: (fs) UnixPath.stringValue need not be volatile
Reviewed-by: alanb, bpb, shade
2023-03-28 11:14:09 +00:00
Per Minborg
60640a216d 8300979: Lazily initialize (byte, char)arr in java.io.DataInputStream
Reviewed-by: alanb
2023-03-28 10:58:52 +00:00
Daniel Jeliński
cddaf686e1 8304962: sun/net/www/http/KeepAliveCache/B5045306.java: java.lang.RuntimeException: Failed: Initial Keep Alive Connection is not being reused
Reviewed-by: jpai
2023-03-28 08:57:02 +00:00
nbauma109
a06f46196a 8303214: Typo in java.util.Collections#synchronizedNavigableMap javadoc
Reviewed-by: martin, smarks, aturbanov
2023-03-28 08:47:55 +00:00
Albert Mingkun Yang
7987ad427b 8304412: Serial: Refactor old generation cards update after Full GC
Reviewed-by: tschatzl, kbarrett
2023-03-28 07:24:33 +00:00
Daniel Jeliński
3c4cd50e3c 8304963: HttpServer closes connection after processing HEAD after JDK-7026262
Reviewed-by: dfuchs
2023-03-28 06:12:30 +00:00
Eirik Bjorsnos
4f625c0b9a 8304543: Modernize debugging jvm args in test/hotspot/jtreg/vmTestbase/nsk/jdi/Argument/value/value004.java
Reviewed-by: dholmes, cjplummer, alanb
2023-03-28 04:21:15 +00:00
Archie L. Cobbs
426025aab4 8303526: Changing "arbitrary" Name.compareTo() ordering breaks the regression suite
Reviewed-by: vromero
2023-03-28 03:39:29 +00:00
Matias Saavedra Silva
6aec6f3a84 8304931: vm/concepts/methods/methods001/methods00101m1/methods00101m1 failures with already pending exception
Reviewed-by: coleenp, dholmes
2023-03-27 22:12:36 +00:00
David Holmes
63ce88b5fb 8304147: JVM crash during shutdown when dumping dynamic archive
Reviewed-by: ccheung, matsaave, coleenp
2023-03-27 22:05:23 +00:00
Serguei Spitsyn
554bccf046 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
2023-03-27 21:44:48 +00:00
Justin Lu
3b88b2a9f8 8304761: Update IANA Language Subtag Registry to Version 2023-03-22
Reviewed-by: naoto
2023-03-27 21:37:16 +00:00
Justin Lu
f8e8fc7e29 8177352: Calendar.getDisplayName(s) in non-lenient mode inconsistent, does not match spec
Reviewed-by: naoto
2023-03-27 21:36:14 +00:00
Archie L. Cobbs
14b970dc9e 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
2023-03-27 21:33:01 +00:00
Damon Nguyen
80e2d52f76 8302558: Editable JComboBox's popup blocks user from seeing characters in Aqua look and feel
Reviewed-by: psadhukhan, azvegint
2023-03-27 19:03:56 +00:00
Roger Riggs
6c3b10fb1d 8303485: Replacing os.name for operating system customization
Reviewed-by: naoto, erikj, alanb
2023-03-27 17:45:20 +00:00
Damon Nguyen
87b314a985 7093691: Nimbus LAF: disabled JComboBox using renderer has bad font color
Reviewed-by: honkar, kizune, psadhukhan
2023-03-27 17:04:20 +00:00
Jonathan Gibbons
2f34687ec1 8304689: Add hidden option to disable external spec page
Reviewed-by: erikj, hannesw
2023-03-27 15:42:10 +00:00
Julian Waters
6b2f34f88a 8304718: GetIntArrayElements should not be passed JNI_FALSE
Reviewed-by: serb
2023-03-27 15:12:20 +00:00
Jan Lahoda
138cdc9283 8304694: Runtime exception thrown when break stmt is missing
Reviewed-by: vromero
2023-03-27 15:01:45 +00:00
Eirik Bjorsnos
46b0602376 8304547: Remove checking of -Djava.compiler in src/jdk.jdi/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java
Reviewed-by: dholmes, cjplummer, alanb
2023-03-27 14:32:41 +00:00
Justin King
8d423f7305 8304723: Statically allocate global mutexes
8304736: Heap_lock is created twice

Reviewed-by: coleenp, dholmes, tschatzl
2023-03-27 14:12:58 +00:00
Justin King
20830883df 8304828: Lots of constant static data not declared static const in cpu/x86
Reviewed-by: dholmes, kvn
2023-03-27 14:03:04 +00:00
Prasanta Sadhukhan
0712adc2dd 7169951: SwingSet2 throws NullPointerException with Nimbus L&F
Reviewed-by: abhiscxk, jdv
2023-03-27 10:17:27 +00:00
Bhavana Kilambi
de1c12ed63 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
2023-03-27 08:50:05 +00:00
Thomas Schatzl
10fa7d1f9b 8304804: Remove develop flag G1VerifyCTCleanup
Reviewed-by: ayang, kbarrett
2023-03-27 08:33:57 +00:00
Thomas Schatzl
4acf20df7b 8304809: Remove develop flag G1ExitOnExpansionFailure
Reviewed-by: ayang, kbarrett
2023-03-27 08:17:43 +00:00
Daniel Jeliński
a5ffa079a0 7026262: HttpServer: improve handling of finished HTTP exchanges
Reviewed-by: dfuchs, michaelm
2023-03-27 05:22:45 +00:00
Eirik Bjorsnos
65e01da925 8304013: Add a fast, non-manual alternative to test/jdk/java/util/zip/ZipFile/TestTooManyEntries
Reviewed-by: lancea, martin
2023-03-26 23:00:15 +00:00
Quan Anh Mai
38e17148fa 8304258: x86: Improve the code generation of VectorRearrange with int and float
Reviewed-by: kvn, jbhateja, sviswanathan
2023-03-25 05:30:16 +00:00
Weijun Wang
765a94258d 8304136: Match allocation and free in sspi.cpp
Reviewed-by: djelinski
2023-03-24 18:40:07 +00:00
Ian Graves
3f59b75bd8 8304898: Fix Copyright Headers for JLink Source Files
Reviewed-by: iris, mchung
2023-03-24 18:32:27 +00:00
Kim Barrett
501b606816 8298725: Add BitMap support for reverse iteration
Reviewed-by: stefank, aboldtch, tschatzl
2023-03-24 18:17:45 +00:00
Abhishek Kumar
97649489d0 8273986: JEditorPane HTML Demo - Accessibility issues
Reviewed-by: kizune, serb
2023-03-24 16:16:16 +00:00
Zdenek Zambersky
57276101df 8304353: Add lib-test tier1 testing in GHA
Reviewed-by: shade, ihse
2023-03-24 16:04:16 +00:00
Matias Saavedra Silva
d8ba227aa4 8304069: ClassFileParser has ad-hoc hashtables
Reviewed-by: coleenp, dholmes
2023-03-24 15:45:18 +00:00
Brian Burkhalter
9a8a60f7d6 8304833: (fc) Remove dead code in sun.nio.ch.FileChannelImpl::implCloseChannel
Reviewed-by: alanb
2023-03-24 14:52:58 +00:00
Archie L. Cobbs
f96aee7401 8291154: Create a non static nested class without enclosing class throws VerifyError
Reviewed-by: vromero
2023-03-24 14:13:21 +00:00
Coleen Phillimore
4ec720db9f 8297977: vmTestbase/nsk/stress/except/except012.java fails with unexpected Exception
Reviewed-by: mseledtsov, lmesnik
2023-03-24 13:23:40 +00:00
Thomas Schatzl
13dd19aac2 8304802: After JDK-8297639 the flag G1UsePreventiveGC needs to be added to the obsoletion table
Reviewed-by: ayang, dholmes
2023-03-24 12:04:23 +00:00
Jatin Bhateja
d61de141eb 8303508: Vector.lane() gets wrong value on x86
Reviewed-by: eliu, thartmann
2023-03-24 11:19:07 +00:00
Fei Gao
941a7ac7da 8304301: Remove the global option SuperWordMaxVectorSize
Reviewed-by: sviswanathan, kvn
2023-03-24 07:47:44 +00:00
Archie L. Cobbs
ac6af6a640 7176515: ExceptionInInitializerError for an enum with multiple switch statements
8299760: ExceptionInInitializerError for an enum with multiple switch statements, follow-up

Reviewed-by: vromero
2023-03-23 21:17:47 +00:00
Justin Lu
dd23ee9e87 8303917: Update ISO 639 language codes table
Reviewed-by: naoto
2023-03-23 21:15:40 +00:00
Viktor Klang
6f67abd352 8304557: java/util/concurrent/CompletableFuture/CompletableFutureOrTimeoutExceptionallyTest.java times out
Reviewed-by: jpai
2023-03-23 20:43:45 +00:00
Thomas Schatzl
568dd57d0d 8304716: Clean up G1Policy::calc_max_old_cset_length()
Reviewed-by: ayang, iwalulya
2023-03-23 19:38:24 +00:00
Ian Graves
af0504e3f3 8304691: Remove jlink --post-process-path option
Reviewed-by: mchung
2023-03-23 19:17:07 +00:00
Vladimir Kozlov
3859faf183 8231349: Move intrinsic stubs generation to compiler runtime initialization code
Reviewed-by: redestad, vlivanov
2023-03-23 19:15:34 +00:00
Thomas Schatzl
f37674a8f7 8304711: Combine G1 root region abort and wait into a single method
Reviewed-by: ayang, iwalulya
2023-03-23 19:14:24 +00:00
Thomas Schatzl
7f9e691630 8304712: Only pass total number of regions into G1Policy::calc_min_old_cset_length
Reviewed-by: ayang, iwalulya
2023-03-23 19:13:28 +00:00
Brian Burkhalter
51035a75e4 8294137: Review running times of java.math tests
Reviewed-by: darcy
2023-03-23 18:01:12 +00:00
Brian Burkhalter
46cca1a4c5 4842457: (bf spec) Clarify meaning of "(optional operation)"
Reviewed-by: alanb
2023-03-23 18:00:07 +00:00
Archie L. Cobbs
6fa25cc134 8184444: The compiler error "variable not initialized in the default constructor" is not apt in case of static final variables
Reviewed-by: vromero
2023-03-23 16:06:47 +00:00
Archie L. Cobbs
4b8f7db6be 8027682: javac wrongly accepts semicolons in package and import decls
Reviewed-by: vromero
2023-03-23 16:04:35 +00:00
Archie L. Cobbs
c00d0885ae 8043179: Lambda expression can mutate final field
Reviewed-by: vromero
2023-03-23 15:59:51 +00:00
Daniel Jeliński
147f3473d4 8219083: java/net/MulticastSocket/SetGetNetworkInterfaceTest.java failed in same binary run on windows x64
Reviewed-by: dfuchs
2023-03-23 15:45:14 +00:00
Coleen Phillimore
bf917ba6af 8304687: Move add_to_hierarchy
Reviewed-by: dholmes, fparain
2023-03-23 13:47:06 +00:00
Jan Lahoda
63d4afbeb1 8304671: javac regression: Compilation with --release 8 fails on underscore in enum identifiers
Reviewed-by: vromero, darcy
2023-03-23 08:35:25 +00:00
Prasanta Sadhukhan
e2cfcfbfa9 6817009: Action.SELECTED_KEY not toggled when using key binding
Reviewed-by: tr, jdv
2023-03-23 07:50:57 +00:00
Emanuel Peter
af4d5600e3 8303951: Add asserts before record_method_not_compilable where possible
Reviewed-by: kvn, thartmann
2023-03-23 07:44:18 +00:00
Prasanta Sadhukhan
c4338620b7 6245410: javax.swing.text.html.CSS.Attribute: BACKGROUND_POSITION is not w3c spec compliant
Reviewed-by: aivanov
2023-03-23 02:58:01 +00:00
Archie L. Cobbs
91f407d6fe 8029301: Confusing error message for array creation method reference
Reviewed-by: vromero
2023-03-22 21:00:27 +00:00
Leonid Mesnik
e73411a235 8304376: Rename t1/t2 classes in com/sun/jdi/CLETest.java to avoid class duplication error in IDE
Reviewed-by: sspitsyn, cjplummer
2023-03-22 18:25:41 +00:00
Chen Liang
a2d8f634de 8288730: Add type parameter to Lookup::accessClass and Lookup::ensureInitialized
Reviewed-by: mchung
2023-03-22 16:19:34 +00:00
Jan Kratochvil
37774556da 8302191: Performance degradation for float/double modulo on Linux
Reviewed-by: dholmes, sviswanathan
2023-03-22 15:55:57 +00:00
Justin King
760c0128a4 8304683: Memory leak in WB_IsMethodCompatible
Reviewed-by: thartmann
2023-03-22 15:28:44 +00:00
Ludvig Janiuk
75168eaca3 8304134: jib bootstrapper fails to quote filename when checking download filetype
Reviewed-by: erikj
2023-03-22 14:58:34 +00:00
Johan Sjölen
4154a980ca 8301498: Replace NULL with nullptr in cpu/x86
Reviewed-by: dholmes, kvn
2023-03-22 14:18:40 +00:00
Coleen Phillimore
ddf1e34c1a 8304089: Convert TraceDependencies to UL
Reviewed-by: vlivanov, dholmes
2023-03-22 12:33:00 +00:00
Adam Sotona
358c61b58d 8294972: Convert jdk.jlink internal plugins to use the Classfile API
Reviewed-by: mchung, alanb
2023-03-22 12:12:14 +00:00
Albert Mingkun Yang
c74507eeb3 8304657: G1: Rename set_state_empty to set_state_untracked
Reviewed-by: tschatzl
2023-03-22 10:12:38 +00:00
Albert Mingkun Yang
ca94287d2b 8304144: G1: Remove unnecessary is_survivor check in G1ClearCardTableTask
Reviewed-by: tschatzl, ysr
2023-03-22 10:11:55 +00:00
Daniel Jeliński
eda0065107 8304286: java/net/SocketOption/OptionsTest.java failing after JDK-8302659
Reviewed-by: dfuchs
2023-03-22 08:42:39 +00:00
Wang Haomin
c039d26603 8303804: Fix some errors of If-VectorTest and CMove-VectorTest
Reviewed-by: qamai, thartmann
2023-03-22 07:36:11 +00:00
Adam Sotona
0156909ab3 8304502: Classfile API class hierarchy makes assumptions when class is not resolved
Reviewed-by: jpai
2023-03-22 06:13:34 +00:00
Chris Plummer
0deb648985 8290200: com/sun/jdi/InvokeHangTest.java fails with "Debuggee appears to be hung"
Reviewed-by: amenkov, lmesnik, sspitsyn, dcubed
2023-03-21 18:00:35 +00:00
Chen Liang
019fcd819c 8304139: Add <init> and <clinit> method constants to ConstantDescs
Reviewed-by: mchung
2023-03-21 16:16:08 +00:00
Christian Hagedorn
d6f20e2fbf 8304680: Problemlist compiler/sharedstubs/SharedStubToInterpTest.java
Reviewed-by: thartmann
2023-03-21 16:05:42 +00:00
Chen Liang
d788a1bb80 8304180: Constant Descriptors for MethodHandles::classData and classDataAt
Reviewed-by: jvernee, mchung
2023-03-21 14:55:17 +00:00
Coleen Phillimore
bbde2158d1 8299494: Test vmTestbase/nsk/stress/except/except011.java failed: ExceptionInInitializerError: target class not found
Reviewed-by: dholmes, dcubed
2023-03-21 13:18:44 +00:00
Xiaolin Zheng
1c04686cd6 8304387: Fix positions of shared static stubs / trampolines
Reviewed-by: adinn, fyang
2023-03-21 11:27:54 +00:00
Matthias Baesken
c65bb2c58e 8304334: java/awt/color/ICC_ColorSpace/ToFromCIEXYZRoundTrip.java times out on slow platforms
Reviewed-by: lucy, serb, prr
2023-03-21 09:13:01 +00:00
Raffaello Giulietti
4bf1fbb06d 8303648: Add String.indexOf(String str, int beginIndex, int endIndex)
Reviewed-by: rriggs
2023-03-21 08:43:23 +00:00
Jan Lahoda
c4df9b5f17 8304537: Ant-based langtools build fails after JDK-8015831 Add lint check for calling overridable methods from a constructor
Reviewed-by: vromero, erikj
2023-03-21 07:33:56 +00:00
Jasmine K
a6b72f56f5 8304230: LShift ideal transform assertion
Reviewed-by: thartmann
2023-03-21 06:03:05 +00:00
Varada M
a72ba38347 8303948: HsErrFileUtils.checkHsErrFileContent() fails to check the last pattern.
Reviewed-by: dholmes, stuefe
2023-03-21 05:45:58 +00:00
Mandy Chung
bbca7c3ede 8304542: Convert use of internal VM::classFileVersion to ClassFileFormatVersion
Reviewed-by: alanb
2023-03-20 23:24:49 +00:00
Naoto Sato
f593a6b52e 8303018: Unicode Emoji Properties
Reviewed-by: prr, erikj, rriggs
2023-03-20 20:20:19 +00:00
Serguei Spitsyn
bc0ed730f2 8304303: implement VirtualThread class notifyJvmti methods as C2 intrinsics
Reviewed-by: vlivanov, lmesnik
2023-03-20 19:55:16 +00:00
Kim Barrett
2d0d057d66 8304016: Add BitMap find_last suite of functions
Reviewed-by: stefank, aboldtch
2023-03-20 19:23:38 +00:00
Maurizio Cimadamore
42723dcb18 8304420: Regression ~11% with Javac-Generates on all platforms in b14
Reviewed-by: vromero
2023-03-20 18:44:20 +00:00
Julian Waters
19f2edd9b7 8304541: Modules THROW_MSG_ should return nullptr instead of JNI_FALSE
Reviewed-by: coleenp
2023-03-20 18:13:05 +00:00
Mandy Chung
622f239448 8304163: Move jdk.internal.module.ModuleInfoWriter to the test library
Reviewed-by: jpai, alanb
2023-03-20 17:30:24 +00:00
Tyler Steele
4c8c9935eb 8304364: [AIX] Build erroneously determines build disk is non-local when using GNU-utils df on AIX
Reviewed-by: erikj
2023-03-20 17:13:35 +00:00
Thomas Schatzl
4ed7350573 8304393: Provide method to iterate over regions of humongous object in G1
Reviewed-by: iwalulya, ayang
2023-03-20 16:25:53 +00:00
Matias Saavedra Silva
eb73fa833c 8301715: CDS should be disabled in exploded JDK
Reviewed-by: ccheung, coleenp
2023-03-20 15:21:10 +00:00
Jonathan Gibbons
80e979720a 8304433: cleanup sentence breaker code in DocTreeMaker
Reviewed-by: hannesw
2023-03-20 15:14:25 +00:00
Archie L. Cobbs
c396f1ed8b 8304443: bootcycle builds fail after JDK-8015831
Reviewed-by: vromero
2023-03-20 14:33:16 +00:00
Viktor Klang
ded6a81319 8303742: CompletableFuture.orTimeout leaks if the future completes exceptionally
Reviewed-by: jpai, alanb
2023-03-20 13:55:47 +00:00
Albert Mingkun Yang
652bda0af8 8304411: Remove unused CardTable::clear
Reviewed-by: tschatzl
2023-03-20 11:15:29 +00:00
Daniel Jeliński
450567031e 8304174: Remove delays from httpserver tests
Reviewed-by: jpai, dfuchs
2023-03-20 09:31:33 +00:00
Feilong Jiang
c09f83ec25 8304293: RISC-V: JDK-8276799 missed atomic intrinsic support for C1
Reviewed-by: fyang, yzhu
2023-03-20 00:53:52 +00:00
Archie L. Cobbs
e339e183c1 7016187: javac -h could generate conflict .h for inner class and class name with '_'
Reviewed-by: vromero
2023-03-18 17:32:00 +00:00
Chris Plummer
033c0b17cb 8304437: ProblemList com/sun/jdi/ThreadMemoryLeadTest.java with ZGC
Reviewed-by: jpai, dcubed
2023-03-18 17:08:00 +00:00
Yudi Zheng
7503ecc0f1 8304138: [JVMCI] Test FailedSpeculation existence before appending.
Reviewed-by: kvn, dnsimon
2023-03-18 09:41:39 +00:00
Chris Plummer
f8482c20f4 8297638: Memory leak in case of many started-dead threads
Reviewed-by: amenkov, sspitsyn
2023-03-18 00:23:58 +00:00
Alexander Matveev
c56f011baa 8298995: tools/jpackage/share/AddLauncherTest.java#id1 failed "AddLauncherTest.test; checks=53"
Reviewed-by: asemenyuk
2023-03-18 00:02:23 +00:00
Archie L. Cobbs
254288a518 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
2023-03-17 22:12:09 +00:00
Archie L. Cobbs
8f5bb538ab 8015831: Add lint check for calling overridable methods from a constructor
6557145: Warn about calling abstract methods in constructors

Reviewed-by: ihse, vromero, mcimadamore
2023-03-17 22:05:50 +00:00
Archie L. Cobbs
b085ab9316 8180387: com.sun.source.util.JavacTask should have a protected constructor.
Reviewed-by: vromero
2023-03-17 20:52:38 +00:00
Frederic Parain
bfb812a8ff 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-03-17 20:18:36 +00:00
Coleen Phillimore
932be3542d 8298469: Obsolete legacy parallel class loading workaround for non-parallel-capable class loaders
Reviewed-by: dholmes, fparain
2023-03-17 18:56:05 +00:00
Alex Menkov
02a4ee206a 8303921: serviceability/sa/UniqueVtableTest.java timed out
Reviewed-by: cjplummer, sspitsyn
2023-03-17 18:23:03 +00:00
Naoto Sato
4486f1b720 8304367: jlink --include-locales=* attempts to parse non .class resource files with classfile reader
Reviewed-by: mchung, lancea, jpai
2023-03-17 15:44:38 +00:00
Leonid Mesnik
8d2ebf248e 8303697: ProcessTools doesn't print last line of process output
Reviewed-by: dholmes, stuefe
2023-03-17 13:45:41 +00:00
Leonid Mesnik
d5a150706e 8304314: StackWalkTest.java fails after CODETOOLS-7903373
Reviewed-by: alanb, mchung
2023-03-17 13:43:54 +00:00
Damon Fenacci
384a8b85a7 8303069: Memory leak in CompilerOracle::parse_from_line
Reviewed-by: thartmann, jcking
2023-03-17 13:24:55 +00:00
Afshin Zafari
6dd6c15ed4 8301684: Fix test code to not get finalizer deprecation warnings
Reviewed-by: coleenp, dholmes
2023-03-17 13:21:47 +00:00
Afshin Zafari
cb4ae1922d 8292059: Do not inline InstanceKlass::allocate_instance()
Reviewed-by: coleenp, stefank
2023-03-17 13:20:58 +00:00
Adam Sotona
b2639e1d62 8304164: jdk/classfile/CorpusTest.java still fails after JDK-8303910
Reviewed-by: jpai
2023-03-17 11:47:11 +00:00
Johan Sjölen
620564ac61 8304130: Add runtime/StackGuardPages/TestStackGuardPagesNative.java to ProblemList.txt
Reviewed-by: dcubed
2023-03-17 10:07:37 +00:00
Richard Reingruber
9d518c528b 8299375: [PPC64] GetStackTraceSuspendedStressTest tries to deoptimize frame with invalid fp
Reviewed-by: mdoerr
2023-03-17 08:45:17 +00:00
Matthias Baesken
ebac7eec8e 8304063: tools/jpackage/share/AppLauncherEnvTest.java fails when checking LD_LIBRARY_PATH
Reviewed-by: asemenyuk, almatvee
2023-03-17 07:55:55 +00:00
Kosta Stojiljkovic
36995c5a75 8304242: CPUInfoTest fails because "serialize" CPU feature is not known
Reviewed-by: kvn, sviswanathan, thartmann
2023-03-17 06:20:24 +00:00
Prasanta Sadhukhan
6b42275461 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
2023-03-17 03:35:01 +00:00
Pavel Rappo
8eed7dea7b 8304146: Refactor VisibleMemberTable (LocalMemberTable)
Reviewed-by: jjg
2023-03-16 22:23:41 +00:00
David Holmes
a487a270dc 8303150: DCmd framework unnecessarily creates a DCmd instance on registration
Reviewed-by: fparain, stuefe, kevinw
2023-03-16 21:00:21 +00:00
Chen Liang
2e987d798a 8304360: Test to ensure ConstantDescs fields work
Reviewed-by: mchung, jvernee
2023-03-16 20:55:29 +00:00
Jaikiran Pai
2f23c80e0d 8304225: Remove javax/script/Test7.java from ProblemList
Reviewed-by: naoto
2023-03-16 15:33:31 +00:00
Ivan Walulya
96889bf3e4 8191565: Last-ditch Full GC should also move humongous objects
Reviewed-by: tschatzl, sjohanss
2023-03-16 14:15:39 +00:00
Albert Mingkun Yang
f629152021 8304055: G1: Remove OldGCAllocRegion::release
Reviewed-by: iwalulya, tschatzl
2023-03-16 13:16:32 +00:00
Albert Mingkun Yang
b5108b4f37 8303749: Serial: Use more strict card table API
Reviewed-by: tschatzl, iwalulya
2023-03-16 13:15:46 +00:00
Chen Liang
7dbab81d3c 8304161: Add TypeKind.from to derive from TypeDescriptor.OfField
Reviewed-by: jvernee
2023-03-16 12:31:01 +00:00
Jorn Vernee
d4eb395335 8303684: Lift upcall sharing mechanism to AbstractLinker (mainline)
Reviewed-by: mcimadamore
2023-03-16 12:27:25 +00:00
Per Minborg
dfc7214a3e 8304283: Modernize the switch statements in jdk.internal.foreign
Reviewed-by: mcimadamore
2023-03-16 12:11:10 +00:00
Ilya Korennoy
7277bb19f1 8293324: ciField.hpp has two methods to return field's offset
Reviewed-by: thartmann
2023-03-16 08:38:22 +00:00
Damon Fenacci
b7945bc9e5 8303154: Investigate and improve instruction cache flushing during compilation
Reviewed-by: thartmann, kvn
2023-03-16 08:28:55 +00:00
Abhishek Kumar
eefbaa2956 8283400: [macos] a11y : Screen magnifier does not reflect JRadioButton value change
Reviewed-by: serb, asemenov
2023-03-16 05:00:40 +00:00
changpeng1997
42dd9077a0 8302906: AArch64: Add SVE backend support for vector unsigned comparison
Reviewed-by: aph, eliu
2023-03-16 04:16:04 +00:00
Jorn Vernee
2b81faeb35 8303022: "assert(allocates2(pc)) failed: not in CodeBuffer memory" When linking downcall handle
Reviewed-by: kvn, vlivanov
2023-03-15 23:43:18 +00:00
Weijun Wang
be08a256ab 8304264: Debug messages always show up for NativeGSS
Reviewed-by: mullan
2023-03-15 21:22:53 +00:00
Daniel Jeliński
1ae69e3e91 8304287: Problemlist java/net/SocketOption/OptionsTest.java
Reviewed-by: dfuchs
2023-03-15 20:51:22 +00:00
Vladimir Kozlov
116627dfb0 8304267: JDK-8303415 missed change in Zero Interpreter
Reviewed-by: dcubed
2023-03-15 18:08:10 +00:00
Matthew Donovan
824a5e4c60 8284047: Harmonize/Standardize the SSLSocket/SSLEngine/SSLSocketSSLEngine test templates
Reviewed-by: rhalade
2023-03-15 17:39:11 +00:00
Leonid Mesnik
7ad48ea3ad 8300317: vmTestbase/nsk/stress/strace/strace* tests fail with "ERROR: wrong lengths of stack traces"
Reviewed-by: dholmes, mseledtsov
2023-03-15 17:15:51 +00:00
Rich DiCroce
35a2969057 8302659: Modernize Windows native code for NetworkInterface
Reviewed-by: ihse, djelinski, alanb, michaelm
2023-03-15 17:06:32 +00:00
Emanuel Peter
01e6920581 8298935: fix independence bug in create_pack logic in SuperWord::find_adjacent_refs
Reviewed-by: kvn, jbhateja
2023-03-15 14:02:45 +00:00
Julian Waters
3d77e217b2 8301308: Remove version conditionalization for gcc/clang PRAGMA_DIAG_PUSH/POP
Reviewed-by: kbarrett, dholmes
2023-03-15 13:34:48 +00:00
Johan Sjölen
e3777b0c49 8270865: Print process ID with -Xlog:os
Reviewed-by: dholmes, ccheung
2023-03-15 10:46:51 +00:00
Arno Zeller
349139b2cc 8304030: Configure call fails on AIX when using --with-gtest option.
Reviewed-by: mbaesken, erikj
2023-03-15 07:55:07 +00:00
Adam Sotona
714b5f036f 8294962: Convert java.base/jdk.internal.module package to use the Classfile API to modify and write module-info.class
Reviewed-by: alanb, mchung
2023-03-15 07:09:55 +00:00
Alexandre Iline
065d3e0d58 8304171: Fix layout of JCov instrumented bundle on Mac OS
Reviewed-by: erikj
2023-03-14 23:36:57 +00:00
Leonid Mesnik
cd41c69d44 8303705: Field sleeper.started should be volatile JdbLockTestTarg.java
Reviewed-by: dholmes
2023-03-14 21:52:34 +00:00
Harshitha Onkar
f5c8b68c1c 8301998: Update HarfBuzz to 7.0.1
Reviewed-by: erikj, prr
2023-03-14 20:18:44 +00:00
Daniel D. Daugherty
617c15f5a1 8304172: ProblemList serviceability/sa/UniqueVtableTest.java
8304175: ProblemList compiler/vectorapi/VectorLogicalOpIdentityTest.java on 2 platforms

Reviewed-by: azvegint
2023-03-14 20:09:51 +00:00
Pavel Rappo
f81e1def8f 8303882: Refactor some iterators in jdk.compiler
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Reviewed-by: mcimadamore
2023-03-14 18:36:46 +00:00
Julian Waters
45809fd0c0 8295884: Implement IDE support for Eclipse
Reviewed-by: erikj
2023-03-14 17:32:25 +00:00
Daniel Jeliński
baf11e734f 8303814: getLastErrorString should avoid charset conversions
Reviewed-by: naoto, cjplummer, rriggs
2023-03-14 17:18:56 +00:00
Calvin Cheung
830fd41346 8302795: Shared archive failed on old version class with jsr bytecode
Reviewed-by: minqi, matsaave
2023-03-14 17:15:19 +00:00
Kevin Walls
4e631fa43f 8298966: Deprecate JMX Subject Delegation and the method JMXConnector.getMBeanServerConnection(Subject) for removal.
Reviewed-by: mchung, dfuchs
2023-03-14 16:59:27 +00:00
Alexey Bakhtin
10f1674625 8303809: Dispose context in SPNEGO NegotiatorImpl
Reviewed-by: dfuchs, weijun
2023-03-14 16:41:09 +00:00
Hannes Wallnöfer
9f9ab02ff6 8303895: Simplify and clean up LinkFactory code
Reviewed-by: prappo
2023-03-14 16:20:35 +00:00
Thomas Stuefe
a00f5d24d3 8303861: Error handling step timeouts should never be blocked by OnError and others
Reviewed-by: dholmes, rkennke
2023-03-14 15:51:20 +00:00
Jamil Nimeh
da044dd569 8300939: sun/security/provider/certpath/OCSP/OCSPNoContentLength.java fails due to network errors
Reviewed-by: djelinski, weijun
2023-03-14 15:42:47 +00:00
Christian Hagedorn
c466cdf973 8299546: C2: MulLNode::mul_ring() wrongly returns bottom type due to casting errors with large numbers
Reviewed-by: iveresov, kvn, qamai
2023-03-14 14:57:47 +00:00
Coleen Phillimore
55aa122462 8304059: Use InstanceKlass in dependencies
Reviewed-by: vlivanov, thartmann
2023-03-14 13:27:55 +00:00
Vladimir Kozlov
ec1eb00ed3 8303415: Add VM_Version::is_intrinsic_supported(id)
Reviewed-by: thartmann, dholmes
2023-03-14 12:20:14 +00:00
Eirik Bjorsnos
31680b2bcf 8303410: Remove ContentSigner APIs and jarsigner -altsigner and -altsignerpath options
Reviewed-by: weijun
2023-03-14 11:48:59 +00:00
Ivan Walulya
0cc0f063e2 8304015: G1: Metaspace-induced GCs should not trigger maximal compaction
Reviewed-by: ayang, tschatzl
2023-03-14 10:46:16 +00:00
Adam Sotona
43eca1dcb1 8303910: jdk/classfile/CorpusTest.java failed 1 of 6754 tests
Reviewed-by: jpai
2023-03-14 08:36:05 +00:00
Matthias Baesken
b6d70f2c49 8303973: Library detection in runtime/ErrorHandling/TestDwarf.java fails on ppc64le RHEL8.5 for libpthread-2.28.so
Reviewed-by: chagedorn
2023-03-14 08:08:28 +00:00
Julian Waters
2bb990edde 8301244: Tidy up compiler specific warnings files
Reviewed-by: kbarrett, dholmes
2023-03-14 07:24:18 +00:00
Alisen Chung
c073ef2ed5 8303482: Update LCMS to 2.15
Reviewed-by: serb, prr, dnguyen
2023-03-14 04:04:19 +00:00
Feilong Jiang
49181b81dd 8303955: RISC-V: Factor out the tmp parameter from copy_memory and copy_memory_v
Reviewed-by: fyang, yzhu
2023-03-14 00:55:21 +00:00
Pavel Rappo
7bbc5e0efb 8300517: Refactor VisibleMemberTable (method members)
Reviewed-by: jjg
2023-03-13 20:53:52 +00:00
Patricio Chilano Mateo
a8f662ecb2 8303908: Add missing check in VTMS_transition_disable_for_all() for suspend mode
Reviewed-by: sspitsyn, dholmes
2023-03-13 20:15:23 +00:00
Ilarion Nakonechnyy
5685107579 8302491: NoClassDefFoundError omits the original cause of an error
Reviewed-by: coleenp, dholmes
2023-03-13 17:26:25 +00:00
Justin King
671a45219f 8303606: Memory leaks in Arguments::parse_each_vm_init_arg
Reviewed-by: dholmes, fparain
2023-03-13 16:23:34 +00:00
Adam Sotona
a95bc7acd0 8294974: Convert jdk.jshell/jdk.jshell.execution.LocalExecutionControl to use the Classfile API to instrument classes
Reviewed-by: jlahoda
2023-03-13 15:53:01 +00:00
Alexey Ivanov
f835aaafc7 8300727: java/awt/List/ListGarbageCollectionTest/AwtListGarbageCollectionTest.java failed with "List wasn't garbage collected"
Reviewed-by: prr, tr, serb
2023-03-13 15:05:15 +00:00
Daniel Fuchs
466ffebcae 8303965: java.net.http.HttpClient should reset the stream if response headers contain malformed header fields
Reviewed-by: jpai
2023-03-13 14:24:56 +00:00
Andrey Turbanov
431e702b67 8303213: Avoid AtomicReference in TextComponentPrintable
Reviewed-by: serb, aivanov
2023-03-13 13:08:52 +00:00
Albert Mingkun Yang
4cf4c599b9 8303824: Parallel: Use more strict card table API
Reviewed-by: tschatzl, iwalulya, ysr
2023-03-13 11:30:52 +00:00
Jasmine K
8e41bf222f 8303238: Create generalizations for existing LShift ideal transforms
Reviewed-by: redestad, thartmann
2023-03-13 11:10:42 +00:00
Thomas Schatzl
805a4e6806 8303883: Confusing parameter name in G1UpdateRemSetTrackingBeforeRebuild::distribute_marked_bytes
Reviewed-by: ayang, iwalulya
2023-03-13 11:06:20 +00:00
Adam Sotona
25e7ac226a 8294966: Convert jdk.jartool/sun.tools.jar.FingerPrint to use the ClassFile API to parse JAR entries
Reviewed-by: mchung
2023-03-13 10:13:45 +00:00
Thomas Schatzl
3018b4705e 8303969: Limit printed failures within an object during G1 heap verification
Reviewed-by: ayang, iwalulya
2023-03-13 09:57:24 +00:00
Thomas Schatzl
b575e54bc9 8303963: Replace various encodings of UINT/SIZE_MAX in gc code
Reviewed-by: ayang, kbarrett
2023-03-13 09:56:40 +00:00
Robbin Ehn
c183fce954 8300926: Several startup regressions ~6-70% in 21-b6 all platforms
Reviewed-by: eosterlund, dcubed, coleenp
2023-03-13 09:34:00 +00:00
Tomas Zezula
31e1e3975b 8303646: [JVMCI] Add possibility to lookup ResolvedJavaType from jclass.
Reviewed-by: never
2023-03-13 08:41:40 +00:00
Tomas Zezula
1148a659a8 8303678: [JVMCI] Add possibility to convert object JavaConstant to jobject.
Reviewed-by: never
2023-03-13 08:40:12 +00:00
Daniel Skantz
d20bde29f2 8294715: Add IR checks to the reduction vectorization tests
Reviewed-by: rcastanedalo, epeter
2023-03-13 07:33:46 +00:00
Eirik Bjorsnos
c313e1ac7b 8303922: build-test-lib target is broken
Reviewed-by: erikj, jwaters
2023-03-11 18:44:47 +00:00
Daniel D. Daugherty
fbc76c2c78 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
2023-03-11 17:38:47 +00:00
Julian Waters
a06426a52f 8274400: HotSpot Style Guide should permit use of alignof
Reviewed-by: kbarrett, kvn, dholmes, dcubed
2023-03-11 14:36:56 +00:00
Feilong Jiang
98a7a60fcb 8303863: RISC-V: TestArrayStructs.java fails after JDK-8303604
Reviewed-by: jvernee, fyang
2023-03-11 04:48:06 +00:00
Alexander Matveev
0a4d54f7ce 8299779: Test tools/jpackage/share/jdk/jpackage/tests/MainClassTest.java timed out
Reviewed-by: asemenyuk
2023-03-11 01:04:13 +00:00
Kim Barrett
2116928528 8303900: Rename BitMap search functions
Reviewed-by: stefank, aboldtch
2023-03-10 21:16:56 +00:00
Daniel D. Daugherty
d7f4221bfe 8304005: ProblemList serviceability/AsyncGetCallTrace/MyPackage/ASGCTBaseTest.java on linux-x64 in Xcomp mode
Reviewed-by: rriggs
2023-03-10 20:10:50 +00:00
Stuart Marks
94de0a73de 8302513: remove sun.awt.util.IdentityLinkedList
Reviewed-by: serb, prr, aivanov
2023-03-10 18:58:44 +00:00
Man Cao
bf16b5b988 8303937: Corrupted heap dumps due to missing retries for os::write()
Reviewed-by: cjplummer, dholmes
2023-03-10 18:14:09 +00:00
Justin Lu
6f54eda4a4 8299088: ClassLoader::defineClass2 throws OOME but JNI exception pending thrown by getUTF
Reviewed-by: mchung, naoto
2023-03-10 17:40:10 +00:00
Justin Lu
a3358b10ca 8303853: Update ISO 3166 country codes table
Reviewed-by: naoto
2023-03-10 17:39:13 +00:00
Matias Saavedra Silva
206661d45f 8281941: Change CDS warning messages to use Unified Logging
Reviewed-by: dholmes, ccheung
2023-03-10 17:11:48 +00:00
Erik Gahlin
9dd7b87997 8303674: JFR: TypeLibrary class not thread safe
Reviewed-by: mgronlun
2023-03-10 17:09:56 +00:00
Matias Saavedra Silva
c26e1d0148 8303495: Unused path parameter in ClassLoader::add_to_app_classpath_entries(JavaThread* current, char* path, ...)
Reviewed-by: ccheung, dholmes
2023-03-10 16:31:41 +00:00
Matias Saavedra Silva
548d552bc1 8303548: Arguments::get_default_shared_archive_path() should cache the result for future use
Reviewed-by: ccheung, dholmes
2023-03-10 16:30:48 +00:00
Viktor Klang
f2a36b4b52 8302666: Replace CHM with VarHandle in ForeachOrderedTask
Reviewed-by: psandoz
2023-03-10 16:01:12 +00:00
Matthias Baesken
a32ee5dd8b 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
2023-03-10 15:57:30 +00:00
Tobias Holenstein
01312a002b 8300821: UB: Applying non-zero offset to non-null pointer 0xfffffffffffffffe produced null pointer
Reviewed-by: kvn, thartmann
2023-03-10 15:39:45 +00:00
Jorn Vernee
6d30bbe62c 8303001: Add test for re-entrant upcalls
Reviewed-by: mcimadamore
2023-03-10 14:42:54 +00:00
Matthew Donovan
de9f3b6aac 8296400: pointCrlIssuers might be null in DistributionPointFetcher::verifyURL
Reviewed-by: weijun
2023-03-10 14:10:41 +00:00
Maurizio Cimadamore
b9951dd639 8303820: Simplify type metadata
Reviewed-by: vromero
2023-03-10 13:12:50 +00:00
Hannes Wallnöfer
75d630621c 8303349: Simplify link format for generic types in index pages
Reviewed-by: jjg
2023-03-10 11:07:14 +00:00
Adam Sotona
b1d89f3066 8294971: jdk.jlink jdk.tools.jimage.JImageTask is using ASM to verify classes
Reviewed-by: mchung
2023-03-10 10:15:37 +00:00
Matthias Baesken
0f26d09da8 8303822: gtestMain should give more helpful output
Reviewed-by: lmesnik
2023-03-10 08:27:19 +00:00
David Holmes
e26cc52600 8303624: The java.lang.Thread.FieldHolder can be null for JNI attaching threads
Reviewed-by: alanb, dcubed
2023-03-10 03:08:26 +00:00
Viktor Klang
d06308c54a 8302360: Atomic*.compareAndExchange Javadoc unclear
Reviewed-by: martin, dholmes
2023-03-10 00:31:04 +00:00
Patricio Chilano Mateo
8b740b4609 8302779: HelidonAppTest.java fails with "assert(_cb == CodeCache::find_blob(pc())) failed: Must be the same" or SIGSEGV
Reviewed-by: coleenp, sspitsyn
2023-03-09 22:53:44 +00:00
Christoph Langer
562c8fc668 8303691: Fedora based devkit build should load more packages from archive location
Reviewed-by: mbaesken, erikj
2023-03-09 21:59:12 +00:00
Alex Menkov
e930b63a8f 8303924: ProblemList serviceability/sa/UniqueVtableTest.java on Linux
Reviewed-by: dcubed
2023-03-09 21:57:15 +00:00
Chris Plummer
af0ca78a8f 8303609: ProblemList serviceability/sa/TestSysProps.java with ZGC
Reviewed-by: dcubed
2023-03-09 21:56:08 +00:00
Chris Plummer
8b0eb7299a 8289765: JDI EventSet/resume/resume008 failed with "ERROR: suspendCounts don't match for : VirtualThread-unparker"
Reviewed-by: sspitsyn, kevinw
2023-03-09 21:55:15 +00:00
Johan Sjölen
5726d31e56 8301074: Replace NULL with nullptr in share/opto/
Reviewed-by: kvn, jwilhelm
2023-03-09 20:28:26 +00:00
Justin King
a9dba56568 8300783: Consolidate byteswap implementations
Reviewed-by: kbarrett, kvn
2023-03-09 19:39:07 +00:00
Adam Sotona
769e740181 8303915: javadoc build failure after JDK-8294959
Reviewed-by: jjg
2023-03-09 19:24:50 +00:00
Alex Menkov
f9aadb943c 8303489: Add a test to verify classes in vmStruct have unique vtables
Reviewed-by: cjplummer, sspitsyn
2023-03-09 19:13:02 +00:00
Adam Sotona
595645c76d 8294959: java.base java.lang.Module uses ASM to load module-info.class
Reviewed-by: mchung
2023-03-09 18:12:35 +00:00
Thomas Schatzl
68b5eef44f 8303334: Further improve liveness/remembered set verification for G1
Reviewed-by: ayang, iwalulya
2023-03-09 16:59:46 +00:00
Julian Waters
3227b49a7a 8303760: Visual Studio should use the primary variant in the IDE
Reviewed-by: erikj
2023-03-09 16:07:16 +00:00
Leonid Mesnik
cdcf5c1ed8 8303702: Provide ThreadFactory to create platform/virtual threads for com/sun/jdi tests
Reviewed-by: cjplummer, sspitsyn
2023-03-09 15:44:03 +00:00
Adam Sotona
4655b790d0 8294982: Implementation of Classfile API
Reviewed-by: ihse, psandoz, mcimadamore
2023-03-09 15:23:03 +00:00
Pavel Rappo
1e9942aa11 8303881: Mixed, minor cleanup in jdk.compiler
Reviewed-by: mcimadamore
2023-03-09 13:43:36 +00:00
Albert Mingkun Yang
7e01534590 8303467: Serial: Refactor reference processor
Reviewed-by: tschatzl, iwalulya
2023-03-09 13:40:10 +00:00
Jatin Bhateja
713def0bf2 8303105: LoopRangeStrideTest fails IR verification on x86
Reviewed-by: thartmann
2023-03-09 12:05:29 +00:00
Ahmed Muhsin
34a92466a6 8274264: Not all of G1 young collection verification honors the verification type
Reviewed-by: ayang, tschatzl
2023-03-09 09:39:39 +00:00
Matthias Baesken
a7e308ab6e 8303576: addIdentitiesToKeystore in KeystoreImpl.m needs CFRelease call in early potential CHECK_NULL return
Reviewed-by: weijun
2023-03-09 08:36:24 +00:00
Alan Bateman
dd79410824 8303509: Socket setTrafficClass does not work for IPv4 connections when IPv6 enabled
Reviewed-by: djelinski, michaelm
2023-03-09 08:13:57 +00:00
Roland Westrelin
dc523a58a6 8300258: C2: vectorization fails on simple ByteBuffer loop
Co-authored-by: Emanuel Peter <epeter@openjdk.org>
Reviewed-by: epeter, kvn
2023-03-09 08:00:24 +00:00
Roland Westrelin
5e232cf0a9 8303564: C2: "Bad graph detected in build_loop_late" after a CMove is wrongly split thru phi
Reviewed-by: kvn, thartmann
2023-03-09 07:59:32 +00:00
Vladimir Kozlov
8cfd74f76a 8302976: C2 intrinsification of Float.floatToFloat16 and Float.float16ToFloat yields different result than the interpreter
Reviewed-by: sviswanathan, jbhateja, vlivanov
2023-03-09 03:26:38 +00:00
Justin Lu
02875e77fd 8171156: Class java.util.LocaleISOData has outdated information for country Code NP
Reviewed-by: naoto
2023-03-09 00:09:39 +00:00
Doug Simon
ad326fc62b 8299570: [JVMCI] Insufficient error handling when CodeBuffer is exhausted
Reviewed-by: never, adinn, aph
2023-03-08 22:33:42 +00:00
Eirik Bjorsnos
05ceb37a2c 8303833: java.util.LocaleISOData has wrong comments for 'Norwegian Bokmål' and 'Volapük'
Reviewed-by: naoto
2023-03-08 21:25:21 +00:00
Daniel D. Daugherty
25de2228ac 8303839: [BACKOUT] JDK-8302799 and JDK-8302189
Reviewed-by: dholmes
2023-03-08 21:23:28 +00:00
Rajan Halade
5b43804b79 8282201: Consider removal of expiry check in VerifyCACerts.java test
Reviewed-by: xuelei, mullan
2023-03-08 21:09:44 +00:00
Vladimir Kozlov
f813dc7183 8302508: Add timestamp to the output TraceCompilerThreads
Reviewed-by: thartmann
2023-03-08 18:23:39 +00:00
Hannes Wallnöfer
404d5bddb9 8302161: Upgrade jQuery UI to version 1.13.2
Reviewed-by: jjg
2023-03-08 17:15:43 +00:00
Xue-Lei Andrew Fan
d287a5e9d8 8303617: update for deprecated sprintf for jdk.jdwp.agent
Reviewed-by: cjplummer, sspitsyn
2023-03-08 16:07:04 +00:00
Justin King
ddcb369cea 8303605: Memory leaks in Metaspace gtests
Reviewed-by: stuefe, dholmes
2023-03-08 15:38:39 +00:00
Daniel Fuchs
56512cfe1f 8303682: Simplify HttpClient DebugLogger
Reviewed-by: jpai
2023-03-08 13:52:52 +00:00
Matthias Baesken
8eaf84f094 8303575: adjust Xen handling on Linux aarch64
Reviewed-by: lucy, mdoerr
2023-03-08 11:38:37 +00:00
Tobias Holenstein
d988252378 8303443: IGV: Syntax highlighting and resizing for filter editor
Reviewed-by: rcastanedalo, thartmann
2023-03-08 10:52:05 +00:00
Kevin Walls
afda8fbf0b 8303136: MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded005 failed with "isCollectionUsageThresholdExceeded() returned true, while threshold = 1 and used = 0"
Reviewed-by: cjplummer, sspitsyn
2023-03-08 08:20:27 +00:00
Andrey Turbanov
1d071d0817 8303690: Prefer ArrayList to LinkedList in com.sun.jmx.mbeanserver.Introspector
Reviewed-by: stsypanov, kevinw, cjplummer, sspitsyn
2023-03-08 07:20:21 +00:00
Prasanta Sadhukhan
09d469e5ad 8252255: Blurry rendering of SwingNode with HiDPI scaling in JavaFX
Reviewed-by: kcr, aghaisas
2023-03-08 06:55:17 +00:00
David Holmes
21a6ab1e3e 8303799: [BACKOUT] JDK-8302801 Remove fdlibm C sources
Reviewed-by: darcy, bpb
2023-03-08 02:39:14 +00:00
Kim Barrett
5fa9bd4582 8302189: Mark assertion failures noreturn
8302799: Refactor Debugging variable usage for noreturn crash reporting

Reviewed-by: dholmes, coleenp
2023-03-08 02:37:06 +00:00
Erik Gahlin
9b10c69475 8303622: JFR: Missing message with Objects.requireNonNull
Reviewed-by: mgronlun
2023-03-07 23:32:09 +00:00
David Holmes
d7298245d6 8286781: Replace the deprecated/obsolete gethostbyname and inet_addr calls
Co-authored-by: Daniel Jeliński <djelinski@openjdk.org>
Reviewed-by: kbarrett, djelinski
2023-03-07 22:56:33 +00:00
David Holmes
5f1108f8f0 8303151: DCmd framework cleanups
Reviewed-by: jsjolen, stuefe, yyang
2023-03-07 22:54:07 +00:00
Erik Gahlin
32f4d8b5ea 8303681: JFR: RemoteRecordingStream::setMaxAge() should accept null
Reviewed-by: mgronlun
2023-03-07 22:32:45 +00:00
Ravali Yatham
9f9d678591 8302791: Add specific ClassLoader object to Proxy IllegalArgumentException message
Reviewed-by: alanb, mchung
2023-03-07 22:31:50 +00:00
Joe Darcy
b5b5cba7fe 8302801: Remove fdlibm C sources
Reviewed-by: bpb, dholmes, alanb, kvn
2023-03-07 22:28:12 +00:00
Yudi Zheng
4d4eadeae3 8302452: [JVMCI] Export _poly1305_processBlocks, JfrThreadLocal fields to JVMCI compiler.
Reviewed-by: dnsimon, never
2023-03-07 18:44:01 +00:00
Justin Lu
f1f4e1de44 6453901: (cal) clean up sun.util.calendar classes
Reviewed-by: naoto, lancea
2023-03-07 18:30:28 +00:00
Justin Lu
acf899612f 8303275: Use {@Return and @linkplain in Locale and related classes
Reviewed-by: naoto
2023-03-07 18:18:59 +00:00
Ian Graves
ac3ab5b007 8217496: Matcher.group() can return null after usePattern
Reviewed-by: smarks
2023-03-07 17:20:04 +00:00
Pavel Rappo
45a616a891 8303480: Miscellaneous fixes to mostly invisible doc comments
Reviewed-by: mullan, prr, cjplummer, aivanov, jjg, lancea, rriggs, ihse
2023-03-07 15:31:42 +00:00
Johan Sjölen
43288bbd68 8301477: Replace NULL with nullptr in os/aix
Reviewed-by: stuefe, coleenp, tsteele
2023-03-07 13:16:34 +00:00
Kim Barrett
008c5eb4dd 8303621: BitMap::iterate should support lambdas and other function objects
Reviewed-by: aboldtch, tschatzl, stefank
2023-03-07 12:59:26 +00:00
Amit Kumar
52d3008773 8303497: [s390x] ProblemList TestUnreachableInnerLoop.java
Reviewed-by: thartmann
2023-03-07 08:57:27 +00:00
Roland Westrelin
3f2d929dc3 8303511: C2: assert(get_ctrl(n) == cle_out) during unrolling
Reviewed-by: kvn, thartmann
2023-03-07 08:37:37 +00:00
Albert Mingkun Yang
7fbfc884f0 8303534: Merge CompactibleSpace into ContiguousSpace
Reviewed-by: cjplummer, tschatzl
2023-03-07 08:12:26 +00:00
Johan Sjölen
97c25df4b8 8204550: NMT: RegionIterator does not need to keep _current_size
Reviewed-by: stuefe, gziemski
2023-03-07 07:24:54 +00:00
Tobias Hartmann
94eda53d98 8201516: DebugNonSafepoints generates incorrect information
Reviewed-by: kvn, roland
2023-03-07 06:59:23 +00:00
Mat Carter
c51d40cfeb 8303607: SunMSCAPI provider leaks memory and keys
Reviewed-by: weijun
2023-03-07 02:12:30 +00:00
Jonathan Gibbons
f64ed09e9a 8303540: Eliminate unnecessary reference to javac internal class
Reviewed-by: hannesw
2023-03-06 22:13:52 +00:00
Matthew Donovan
ccfe1675a2 8298939: Refactor open/test/jdk/javax/rmi/ssl/SSLSocketParametersTest.sh to jtreg java test
Reviewed-by: dfuchs, smarks
2023-03-06 19:18:45 +00:00
Naoto Sato
cfb0a25a4e 8303440: The "ZonedDateTime.parse" may not accept the "UTC+XX" zone id
Reviewed-by: iris, jpai, rriggs, lancea
2023-03-06 17:22:52 +00:00
Weijun Wang
a97271e3b5 8301793: AlgorithmId should not encode a missing parameters field as NULL unless hardcoded
Reviewed-by: mullan
2023-03-06 16:20:14 +00:00
Doug Simon
cac81ddc92 8303577: [JVMCI] OOME causes crash while translating exceptions
Reviewed-by: kvn, never
2023-03-06 16:10:02 +00:00
Leonid Mesnik
877ab659b9 8303264: Refactor nsk/stress/strace to extract shared and remove redundant code
Reviewed-by: mseledtsov, dholmes
2023-03-06 15:33:55 +00:00
Leonid Mesnik
ae8730fd62 8303486: [REDO] Update ProcessTools.startProcess(...) to exit early if process exit before linePredicate is printed.
Reviewed-by: dholmes
2023-03-06 15:32:01 +00:00
Jorn Vernee
5977f266d0 8303604: Passing by-value structs whose size is not power of 2 doesn't work on all platforms (mainline)
Reviewed-by: mcimadamore
2023-03-06 15:18:39 +00:00
Jorn Vernee
dccfe8a2ee 8303582: Reduce duplication in jdk/java/foreign tests
Reviewed-by: mcimadamore
2023-03-06 14:52:04 +00:00
Afshin Zafari
8e2014527e 8300654: Remove JVMFlag::flag_error_str as it is unused
Reviewed-by: dholmes, fparain
2023-03-06 12:46:18 +00:00
Erik Österlund
bdffe460cd 8301222: Generalize check_release_entry in OopStorage
Reviewed-by: tschatzl, kbarrett
2023-03-06 11:14:32 +00:00
Albert Mingkun Yang
ec4e8aa4f7 8303244: G1: call CardTable::clear_MemRegion directly
Reviewed-by: ysr, kbarrett
2023-03-06 10:46:16 +00:00
Prasanta Sadhukhan
5753ab5c47 8297454: javax/swing/JComponent/7154030/bug7154030.java failed with "Exception: Failed to show opaque button"
Reviewed-by: tr, jdv
2023-03-06 10:20:23 +00:00
Andrey Turbanov
fa1cebedb5 8303266: Prefer ArrayList to LinkedList in JImageTask
Reviewed-by: jlaskey
2023-03-06 08:42:41 +00:00
Erik Österlund
5f153e056b 8302780: Add support for vectorized arraycopy GC barriers
Co-authored-by: Yadong Wang <yadongwang@openjdk.org>
Reviewed-by: ayang, fyang, rcastanedalo, aph
2023-03-06 07:58:23 +00:00
Alexander Scherbatiy
d00a767047 8295737: macOS: Print content cut off when width > height with portrait orientation
Reviewed-by: prr
2023-03-06 07:48:37 +00:00
Alexander Scherbatiy
15c76e4c02 8301254: UNIX sun/font coding does not detect SuSE in openSUSE Leap distribution
Reviewed-by: prr
2023-03-06 07:40:38 +00:00
Chris Plummer
3eff1a0225 8303630: Move nsk/jvmti/AttachOnDemand/attach002a/TestDescription.java back to general problem list
Reviewed-by: dholmes
2023-03-06 07:16:18 +00:00
Yi Yang
10d6a8e66a 8299518: HotSpotVirtualMachine shared code across different platforms
Reviewed-by: cjplummer, dholmes
2023-03-06 02:02:29 +00:00
Fei Yang
148900c2dc 8303562: Remove obsolete comments in os::pd_attempt_reserve_memory_at
Reviewed-by: stuefe
2023-03-06 00:33:46 +00:00
Joe Darcy
1bb39a95eb 8302027: Port fdlibm trig functions (sin, cos, tan) to Java
Reviewed-by: bpb
2023-03-04 23:52:03 +00:00
Doug Simon
9fdbf3cfc4 8303588: [JVMCI] make JVMCI source directories conform with standard layout
Reviewed-by: kvn
2023-03-04 21:52:06 +00:00
Alan Bateman
629a9053f0 8303242: ThreadMXBean issues with virtual threads
Reviewed-by: mchung, pchilanomate
2023-03-04 07:33:33 +00:00
Raffaello Giulietti
5b2e2e4695 8302590: Add String.indexOf(int ch, int fromIndex, int toIndex)
Reviewed-by: rriggs, alanb
2023-03-03 20:51:13 +00:00
Matias Saavedra Silva
cd4b88d0d2 8292269: Replace FileMapInfo::fail_continue() with Unified Logging
Reviewed-by: iklam, dholmes, ccheung
2023-03-03 19:00:27 +00:00
Brian Burkhalter
ae290541d1 8303175: (fs) Deprecate com.sun.nio.file.SensitivityWatchEventModifier for removal
Reviewed-by: lancea, alanb
2023-03-03 18:38:13 +00:00
Brian Burkhalter
a04b1049ff 8303413: (fs) Ignore polling interval sensitivity modifiers in PollingWatchService
Reviewed-by: alanb
2023-03-03 18:33:58 +00:00
Roger Riggs
99443142cc 8303587: Remove VMOutOfMemoryError001 test from the problem list after 8303198
Reviewed-by: cjplummer
2023-03-03 18:28:06 +00:00
Xue-Lei Andrew Fan
a50dc67a4f 8303527: update for deprecated sprintf for jdk.hotspot.agent
Reviewed-by: cjplummer
2023-03-03 18:11:48 +00:00
Justin King
40c5edfcc4 8303181: Memory leak in ClassLoaderExt::setup_app_search_path
Reviewed-by: ccheung, dholmes
2023-03-03 18:07:40 +00:00
Chris Plummer
29ee7c3b70 8303523: Cleanup problem listing of nsk/jvmti/AttachOnDemand/attach002a/TestDescription.java
Reviewed-by: dholmes, kevinw
2023-03-03 17:38:29 +00:00
Justin Lu
e3016c1142 8303472: Display name for region TR
Reviewed-by: naoto
2023-03-03 17:18:44 +00:00
Afshin Zafari
ae797c64af 8301117: Remove old_size param from ResizeableResourceHashtable::resize()
Reviewed-by: dholmes, coleenp
2023-03-03 16:45:58 +00:00
Afshin Zafari
5085bd5f05 8297936: Use reachabilityFence to manage liveness in ClassUnload tests
Reviewed-by: coleenp, dholmes
2023-03-03 16:44:27 +00:00
Roger Riggs
379f2061aa 8303198: System and Runtime.exit() resilience to logging errors
Reviewed-by: dholmes, jpai, alanb
2023-03-03 16:14:45 +00:00
Doug Simon
80739e11b5 8279619: [JVMCI] improve EncodedSpeculationReason
Reviewed-by: never
2023-03-03 15:52:46 +00:00
Glavo
7449e1c661 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets
Reviewed-by: rriggs
2023-03-03 15:41:03 +00:00
Jorn Vernee
c6de66c03f 8303516: HFAs with nested structs/unions/arrays not handled correctly on AArch64
Reviewed-by: mcimadamore
2023-03-03 14:33:56 +00:00
Daniel Fuchs
cbdc7a6f88 8303481: CancelRequestTest assertTrue failing with AssertionError due to java.util.concurrent.CompletionException: java.io.EOFException: EOF reached while reading
Reviewed-by: jpai, djelinski
2023-03-03 13:18:23 +00:00
Amit Kumar
8bf084ced9 8303499: [s390x] ProblemList StressStackOverflow
Reviewed-by: alanb
2023-03-03 13:17:31 +00:00
Afshin Zafari
ff364c1906 8301622: ProcessTools.java compilation gets ThreadDeath deprecation warning
Reviewed-by: dholmes, alanb
2023-03-03 13:16:43 +00:00
Sean Mullan
df9aad018a 8297955: LDAP CertStore should use LdapName and not String for DNs
Reviewed-by: weijun, rhalade
2023-03-03 13:06:11 +00:00
changpeng1997
d23a8bfb14 8297753: AArch64: Add optimized rules for vector compare with zero on NEON
Reviewed-by: aph
2023-03-03 12:11:10 +00:00
Vicente Romero
339ca88783 8303539: javadoc typos in Attr
Reviewed-by: iris, jjg
2023-03-03 10:32:35 +00:00
Pavel Rappo
e1745bc981 8303473: Add implied {@code} in java.lang.invoke.MethodHandles
Reviewed-by: jjg, lancea, mchung
2023-03-03 09:12:14 +00:00
Yi Yang
c961a918ad 8143900: OptimizeStringConcat has an opaque dependency on Integer.sizeTable field
Reviewed-by: kvn, thartmann
2023-03-03 02:00:45 +00:00
Hao Sun
35003b5f7b 8302830: AArch64: Fix the mismatch between cas.m4 and aarch64.ad
Reviewed-by: aph, xgong
2023-03-03 01:24:12 +00:00
Yi-Fan Tsai
f3abc4063d 8302783: Improve CRC32C intrinsic with crypto pmull on AArch64
Reviewed-by: simonis, phh
2023-03-02 22:38:58 +00:00
Justin Lu
45d8a175b1 8303405: fix @returnss typo in ReflectionFactory
Reviewed-by: jpai, mchung, martin, iris, lancea, naoto
2023-03-02 20:23:04 +00:00
Xue-Lei Andrew Fan
e7113dc8a5 8302495: update for deprecated sprintf for java.desktop
Reviewed-by: prr
2023-03-02 18:56:05 +00:00
Daniel Jeliński
843d632ad4 8303442: Clean up w2k_lsa_auth linker parameters
Reviewed-by: erikj
2023-03-02 18:54:27 +00:00
Andrey Turbanov
d4dcba0463 8303267: Prefer ArrayList to LinkedList in ConcurrentLocksPrinter
Reviewed-by: cjplummer, sspitsyn
2023-03-02 18:40:29 +00:00
Mikhailo Seledtsov
2c7d2c0ea9 8303411: JFR problem list entry for JDK-8247776 should be removed
Reviewed-by: lmesnik
2023-03-02 18:38:50 +00:00
Naoto Sato
0b63557941 8303039: Utilize coverageLevels.txt
Reviewed-by: iris, joehw
2023-03-02 18:31:53 +00:00
Mandy Chung
32247c336a 8303476: Add the runtime version in the release file of a JDK image
Reviewed-by: erikj
2023-03-02 17:05:01 +00:00
Chris Plummer
0926d0cbce 8302516: Do some cleanup of nsk/share/jdi/EventHandler.java
Reviewed-by: amenkov, kevinw, lmesnik
2023-03-02 16:03:38 +00:00
Matthias Baesken
b51ea4204e 8303354: addCertificatesToKeystore in KeystoreImpl.m needs CFRelease call in early potential CHECK_NULL return
Reviewed-by: clanger, mdoerr, weijun
2023-03-02 14:21:06 +00:00
Saint Wesonga
fb13063943 8303409: Add Windows AArch64 ABI support to the Foreign Function & Memory API
Reviewed-by: jvernee
2023-03-02 13:26:27 +00:00
Thomas Stuefe
c9afd55ed6 8302820: Remove costs for NMTPreInit when NMT is off
Reviewed-by: jsjolen, adinn
2023-03-02 13:21:25 +00:00
Jaikiran Pai
72de24e59a 8303457: Introduce convenience test library APIs for creating test servers for tests in test/jdk/java/net/httpclient
Reviewed-by: dfuchs
2023-03-02 11:24:06 +00:00
Kim Barrett
3091744fff 8303418: Improve parameter and variable names in BitMap
Reviewed-by: tschatzl, aboldtch
2023-03-02 09:43:56 +00:00
Jan Lahoda
dbb562d3b1 8303355: The Depend plugin does fully recompile when primitive type changes
Reviewed-by: erikj, vromero
2023-03-02 09:41:11 +00:00
Jan Lahoda
4619e8bae8 8297587: Upgrade JLine to 3.22.0
Reviewed-by: vromero
2023-03-02 08:27:44 +00:00
Emanuel Peter
99f5687eb1 8302144: Move ZeroTLABTest.java to tier3
Reviewed-by: thartmann, kvn
2023-03-02 07:22:21 +00:00
Tyler Steele
dc08216f0e 8303186: Missing Classpath exception from Continuation.c
Reviewed-by: dholmes, jpai
2023-03-02 01:06:02 +00:00
Erik Gahlin
d10d40a5b2 8303077: JFR: Add example usage to jdk.jfr
Reviewed-by: mgronlun
2023-03-01 22:54:03 +00:00
Valerie Peng
394eac850c 8295425: Match the default priv exp length between SunPKCS11 and other JDK providers
Reviewed-by: weijun
2023-03-01 22:40:50 +00:00
David Holmes
6e19387f29 8303070: Memory leak in DCmdArgument<char*>::parse_value
Reviewed-by: fparain, jcking, jsjolen, eosterlund, coleenp
2023-03-01 21:45:11 +00:00
Eirik Bjorsnos
9fc518ff8c 8303401: Add a Vector API equalsIgnoreCase micro benchmark
Reviewed-by: ecaspole, sviswanathan, psandoz
2023-03-01 18:18:36 +00:00
Justin Lu
05faa7321b 8303232: java.util.Date.parse(String) and java.util.Date(String) don't declare thrown IllegalArgumentException
Reviewed-by: jpai, lancea, naoto
2023-03-01 18:13:42 +00:00
Justin King
4c985e527a 8303183: Memory leak in Arguments::init_shared_archive_paths
Reviewed-by: jsjolen, ccheung, dholmes
2023-03-01 15:52:49 +00:00
Albert Mingkun Yang
6af17c1b7d 8303362: Serial: Move CardTableRS to serial directory
Reviewed-by: tschatzl, kbarrett
2023-03-01 15:15:22 +00:00
Ivan Walulya
c1e77e0564 8303252: G1: Return early from Full-GC if no regions are selected for compaction.
Reviewed-by: tschatzl, ayang
2023-03-01 13:52:21 +00:00
Thomas Schatzl
8b86e1ee11 8303344: After JDK-8302760, G1 heap verification does not exit VM after errors
Reviewed-by: iwalulya, ayang
2023-03-01 12:34:53 +00:00
Thomas Schatzl
4c5d9cfc64 8303013: Always do remembered set verification during G1 Full GC
Reviewed-by: ayang, iwalulya
2023-03-01 12:34:02 +00:00
Doug Simon
2451c5a462 8303357: [JVMCI] thread is _thread_in_vm when committing JFR compilation event
Reviewed-by: never, kvn
2023-03-01 10:47:49 +00:00
Kim Barrett
539a4951ee 8302798: Refactor -XX:+UseOSErrorReporting for noreturn crash reporting
Reviewed-by: coleenp, stuefe
2023-03-01 10:19:28 +00:00
Roland Westrelin
6b07243f56 8301630: C2: 8297933 broke type speculation in some cases
Reviewed-by: chagedorn, thartmann
2023-03-01 09:36:22 +00:00
Leonid Mesnik
3aeefbf1de 8303421: [BACKOUT] 8303133: Update ProcessTools.startProcess(...) to exit early if process exit before linePredicate is printed.
Reviewed-by: dholmes
2023-03-01 05:21:45 +00:00
Leonid Mesnik
1fdaf252b6 8303133: Update ProcessTools.startProcess(...) to exit early if process exit before linePredicate is printed.
Reviewed-by: dholmes, rriggs
2023-03-01 00:50:35 +00:00
Mikael Vidstedt
65da2c5d2d 8303412: Update linux_x64-to-linux_aarch64 cross compilation devkit at Oracle
Reviewed-by: dholmes
2023-03-01 00:48:59 +00:00
Justin Lu
7e47d51e10 8282319: java.util.Locale method to stream available Locales
Reviewed-by: stsypanov, naoto, lancea, rriggs
2023-03-01 00:36:22 +00:00
Andrey Turbanov
881517586d 8303216: Prefer ArrayList to LinkedList in sun.net.httpserver.ServerImpl
Reviewed-by: jpai, vtewari, stsypanov, dfuchs
2023-02-28 20:21:07 +00:00
Dmitry Markov
a10d5ac61b 8303130: Document required Accessibility permissions on macOS
Reviewed-by: erikj, aivanov, prr, serb
2023-02-28 19:50:49 +00:00
Julian Waters
50dc041ee6 8303227: JniObjWithEnv should be NullablePointer compliant
Reviewed-by: asemenyuk
2023-02-28 18:35:40 +00:00
Joe Darcy
61e8867591 8302040: Port fdlibm sqrt to Java
Reviewed-by: bpb, thartmann, aturbanov
2023-02-28 18:33:53 +00:00
Erik Gahlin
6423065b7d 8303261: JFR: jdk/jfr/api/consumer/streaming/TestJVMCrash.java doesn't retry
Reviewed-by: mgronlun
2023-02-28 16:42:19 +00:00
Pavel Rappo
dc5ea6aeb5 8303350: Fix mistyped {@code}
Reviewed-by: jpai
2023-02-28 15:40:05 +00:00
Jie Fu
4a415ad584 8303351: [IR Framework] Add missing cpu feature avx512bw after JDK-8302681
Reviewed-by: epeter, thartmann
2023-02-28 14:44:38 +00:00
Albert Mingkun Yang
30302d185a 8303250: Call ct_max_alignment_constraint using the base class
Reviewed-by: kbarrett, tschatzl
2023-02-28 13:39:58 +00:00
Lutz Schmidt
e144783eb2 8299817: [s390] AES-CTR mode intrinsic fails with multiple short update() calls
Reviewed-by: mbaesken, mdoerr
2023-02-28 12:52:00 +00:00
Darragh Clarke
5feb13b55d 8301701: java/net/DatagramSocket/DatagramSocketMulticasting.java should be hardened
Reviewed-by: dfuchs
2023-02-28 06:51:37 +00:00
Archie L. Cobbs
1e3c9fd67e 8026369: javac potentially ambiguous overload warning needs an improved scheme
Reviewed-by: vromero
2023-02-28 03:33:14 +00:00
Kim Barrett
14a014d430 8302124: HotSpot Style Guide should permit noreturn attribute
Reviewed-by: dcubed, iveresov, dholmes, tschatzl, jwaters, kvn
2023-02-28 01:59:03 +00:00
Erik Gahlin
bca60f4767 8303249: JFR: Incorrect description of dumponexit
Reviewed-by: mgronlun
2023-02-27 22:33:34 +00:00
David Holmes
f7f10367b2 8303068: Memory leak in DwarfFile::LineNumberProgram::run_line_number_program
Reviewed-by: jsjolen, tschatzl, chagedorn
2023-02-27 21:38:12 +00:00
Ian Graves
784f7b1462 8293667: Align jlink's --compress option with jmod's --compress option
Reviewed-by: mchung
2023-02-27 21:05:36 +00:00
Erik Gahlin
54603aa1b7 8303208: JFR: 'jfr print' displays incorrect timestamps
Reviewed-by: mgronlun
2023-02-27 18:13:27 +00:00
Roger Riggs
4c169d2d7c 8303253: Remove unnecessary calls to super() in java.time value based classes
Reviewed-by: naoto, mchung, lancea
2023-02-27 18:10:40 +00:00
David M. Lloyd
b527edd338 8292914: Lambda proxies have unstable names
Change the name of generated lambda proxy classes so that they no longer have a numerical suffix.

Reviewed-by: mchung
2023-02-27 17:18:44 +00:00
Brian Burkhalter
42330d28da 8029370: (fc) FileChannel javadoc not clear for cases where position == size
Reviewed-by: lancea
2023-02-27 17:11:29 +00:00
Naoto Sato
a253b46021 8301119: Support for GB18030-2022
Reviewed-by: alanb, coffeys, lancea
2023-02-27 16:35:59 +00:00
Archie L. Cobbs
55e6bb6b85 8302685: Some javac unit tests aren't reliably closing open files
Reviewed-by: darcy, vromero
2023-02-27 16:21:57 +00:00
Matias Saavedra Silva
f5a12768fb 8262895: [macos_aarch64] runtime/CompressedOops/CompressedClassPointers.java fails with 'Narrow klass base: 0x0000000000000000' missing from stdout/stderr
Reviewed-by: dholmes, coleenp
2023-02-27 15:53:33 +00:00
Julian Waters
2fe4e5f8d7 8303169: Remove Windows specific workaround from libdt
Reviewed-by: cjplummer, sspitsyn, clanger
2023-02-27 15:35:58 +00:00
Johan Sjölen
f2b03f9a2c 8303051: Stop saving 5 chunks in each ChunkPool
Reviewed-by: rehn, coleenp
2023-02-27 11:05:07 +00:00
Erik Gahlin
fbc036e745 8303135: JFR: Log periodic events using periodic tag
Reviewed-by: mgronlun
2023-02-27 09:47:01 +00:00
Prasanta Sadhukhan
dbb5581eba 8081474: SwingWorker calls 'done' before the 'doInBackground' is finished
Reviewed-by: aivanov, serb
2023-02-27 09:19:57 +00:00
Darragh Clarke
306134dcf9 8300792: Refactor examples in java.net.http to use @snippet
Reviewed-by: dfuchs, jpai
2023-02-27 09:18:56 +00:00
Daniel Jeliński
a2c5a4ac9e 8302732: sun/net/www/http/HttpClient/MultiThreadTest.java still failing intermittently
Reviewed-by: dfuchs
2023-02-27 07:52:03 +00:00
Damon Fenacci
db217c9ad6 8292583: Comment for ciArrayKlass::make is wrong
Reviewed-by: thartmann, rcastanedalo
2023-02-27 07:33:13 +00:00
Emanuel Peter
2613b94f28 8302149: Speed up compiler/jsr292/methodHandleExceptions/TestAMEnotNPE.java
Reviewed-by: kvn, vlivanov
2023-02-27 07:16:59 +00:00
Emanuel Peter
d2660a6915 8303045: Remove RegionNode::LoopStatus::NeverIrreducibleEntry assert with wrong assumption
Reviewed-by: chagedorn, kvn
2023-02-27 07:15:27 +00:00
Emanuel Peter
1794f49751 8302681: [IR Framework] Only allow cpuFeatures from a verified list
Reviewed-by: thartmann, pli, chagedorn, kvn
2023-02-27 07:12:18 +00:00
Sergey Bylokhov
a43931b79c 8303102: jcmd: ManagementAgent.status truncates the text longer than O_BUFLEN
Reviewed-by: dholmes
2023-02-26 23:36:59 +00:00
Andrey Turbanov
2fb1e3b7e7 8302268: Prefer ArrayList to LinkedList in XEmbeddedFramePeer
Reviewed-by: serb, dnguyen
2023-02-25 13:40:32 +00:00
Andrey Turbanov
3a9f491caa 8301964: Expensive fillInStackTrace operation in HttpURLConnection.getLastModified when no last-modified in response
Reviewed-by: dfuchs, jpai, alanb
2023-02-25 13:39:36 +00:00
Andrey Turbanov
1dbd18ac63 8302120: Prefer ArrayList to LinkedList in AggregatePainter
Reviewed-by: serb
2023-02-25 13:38:47 +00:00
Alan Bateman
2e78d838a5 8302899: Executors.newSingleThreadExecutor can use Cleaner to shutdown executor
Reviewed-by: rriggs, martin, dfuchs, bchristi
2023-02-25 07:48:57 +00:00
Eirik Bjorsnos
17e3769ed7 8302871: Speed up StringLatin1.regionMatchesCI
Reviewed-by: redestad, martin, alanb
2023-02-25 07:48:03 +00:00
Leonid Mesnik
b4ea80731c 8288912: vmTestbase/nsk/stress/strace/strace002.java fails with Unexpected method name: currentCarrierThread
Reviewed-by: dholmes
2023-02-24 19:38:55 +00:00
Brian Burkhalter
ccf3340e82 8303083: (bf) Remove private DirectByteBuffer(long, int) constructor before JDK 21 GA
Reviewed-by: alanb, lancea
2023-02-24 19:02:12 +00:00
Justin King
83d77b1cbb 8303072: Memory leak in exeNullCallerTest.cpp
Reviewed-by: dholmes
2023-02-24 15:49:00 +00:00
Julian Waters
7d8b8ba9c4 8303131: pandoc.exe mangles all processed html files
Reviewed-by: erikj
2023-02-24 08:47:41 +00:00
Thomas Stuefe
8f7c4969c2 8302810: NMT gtests don't correctly check for marked ranges
Reviewed-by: gziemski, dholmes
2023-02-24 07:58:25 +00:00
Damon Nguyen
1a07871454 8302173: Button border overlaps with button icon on macOS system LaF
Reviewed-by: honkar, psadhukhan
2023-02-23 20:41:25 +00:00
Erik Gahlin
796cdd52f5 8302677: JFR: Cache label and contentType in EventType and ValueDescriptor
Reviewed-by: mgronlun
2023-02-23 20:12:54 +00:00
Erik Gahlin
6b24b4a70f 8302821: JFR: Periodic task thread spins after recording has stopped
Reviewed-by: mgronlun
2023-02-23 19:53:21 +00:00
Evgeny Nikitin
4d33fbd582 8303089: [jittester] Add time limit to IRTree generation
Reviewed-by: iveresov, lmesnik
2023-02-23 19:51:02 +00:00
Justin Lu
f612dcfebe 8302512: Update IANA Language Subtag Registry to Version 2023-02-14
Reviewed-by: naoto
2023-02-23 19:05:40 +00:00
Leonid Mesnik
6397cb611a 8301200: Don't scale timeout stress with timeout factor
Reviewed-by: lkorinth
2023-02-23 18:20:53 +00:00
Mikhailo Seledtsov
71dd7eaf7f 8303085: Runtime problem list cleanup
Reviewed-by: lmesnik, dholmes
2023-02-23 18:02:43 +00:00
Erik Gahlin
4b6acad0bd 8302883: JFR: Improve periodic events
Reviewed-by: mgronlun
2023-02-23 17:20:53 +00:00
Daniel D. Daugherty
a2471b37e3 8303125: ProblemList vmTestbase/nsk/jdi/VMOutOfMemoryException/VMOutOfMemoryException001/VMOutOfMemoryException001.java
Reviewed-by: jdv
2023-02-23 17:07:52 +00:00
Christoph Dreis
58ca711a97 8303078: Reduce allocations when pretty printing JCTree during compilation
Reviewed-by: jjg, vromero
2023-02-23 15:25:05 +00:00
Justin King
2cf8b8607d 8303071: Memory leaks in libjdwp
Reviewed-by: sspitsyn
2023-02-23 15:23:03 +00:00
Stefan Karlsson
f113b04ab9 8302927: Unproblemlist Fuzz.java from ProblemList-zgc.txt again
Reviewed-by: sjohanss, eosterlund
2023-02-23 14:07:37 +00:00
Claes Redestad
1bab93b2d0 8303073: (bf) Temporarily reinstate private DirectByteBuffer(long, int) constructor
Reviewed-by: alanb, bpb
2023-02-23 10:31:14 +00:00
Matthias Baesken
221f34634d 8303047: avoid NULL after 8301661
Reviewed-by: mdoerr, kbarrett, dholmes
2023-02-23 08:08:25 +00:00
Thomas Stuefe
23e9d9d3ee 8302811: NMT.random_reallocs_vm fails if NMT is off
Reviewed-by: jsjolen, sgehwolf
2023-02-23 06:44:10 +00:00
Joe Darcy
fcaf871408 8302028: Port fdlibm atan2 to Java
Reviewed-by: bpb
2023-02-22 22:49:59 +00:00
Albert Mingkun Yang
07e976ac26 8303081: Serial: Remove unused VM_MarkSweep
Reviewed-by: tschatzl
2023-02-22 18:28:17 +00:00
Julian Waters
8de841dd19 8302667: Improve message format when failing to load symbols or libraries
Reviewed-by: mchung
2023-02-22 17:42:34 +00:00
Glavo
f893d2315d 8303024: (fs) WindowsFileSystem.supportedFileAttributeViews can use Set.of
Reviewed-by: bpb
2023-02-22 17:16:49 +00:00
Thomas Schatzl
d7ada66129 8303084: G1 Heap region liveness verification has inverted return value
Reviewed-by: ayang
2023-02-22 17:08:24 +00:00
Thomas Schatzl
5d7e7e28b1 8302760: Improve liveness/remembered set verification for G1
Reviewed-by: kbarrett, iwalulya
2023-02-22 16:11:41 +00:00
Albert Mingkun Yang
b0e0f37d73 8303067: G1: Remove unimplemented G1FullGCScope::heap_transition
Reviewed-by: tschatzl
2023-02-22 15:57:08 +00:00
Thomas Schatzl
1a62a1229a 8302880: Fix includes in g1ConcurrentMarkObjArrayProcessor files
Reviewed-by: ayang, kbarrett
2023-02-22 15:47:29 +00:00
Thomas Schatzl
ee37af47cd 8302975: Remove redundant mark verification during G1 Full GC
Reviewed-by: ayang, kbarrett
2023-02-22 15:45:12 +00:00
Patricio Chilano Mateo
83bea26df4 8300575: JVMTI support when using alternative virtual thread implementation
Reviewed-by: lmesnik, sspitsyn, alanb
2023-02-22 15:42:53 +00:00
Sergey Tsypanov
25bfed3b12 8302979: (fs) Files usage of SUPPORTED_CHARSETS could be simplified
Reviewed-by: alanb, jwaters
2023-02-22 14:08:51 +00:00
Albert Mingkun Yang
0d5f7439a4 8303054: Remove unused variables in GCTraceTimeLoggerImpl::log_end
Reviewed-by: tschatzl
2023-02-22 12:49:40 +00:00
Albert Mingkun Yang
adc29c36e1 8302878: Group cmdline heap size checking together
Reviewed-by: kbarrett, iwalulya
2023-02-22 12:48:31 +00:00
Daniel Fuchs
575484806c 8299338: AssertionError in ResponseSubscribers$HttpResponseInputStream::onSubscribe
Reviewed-by: jpai
2023-02-22 12:43:55 +00:00
Per Minborg
63ef214328 8302849: SurfaceManager might expose partially constructed object
Reviewed-by: serb
2023-02-22 11:45:51 +00:00
Roberto Castañeda Lozano
30b2ac4a28 8302873: ZGC: dump barrier data in C2 Mach nodes
Reviewed-by: thartmann, kvn
2023-02-22 10:59:15 +00:00
Per Minborg
861eea9bd4 8302858: Polish FlightRecorderMXBeanImpl
Reviewed-by: egahlin
2023-02-22 10:33:58 +00:00
Per Minborg
60a358172a 8302856: Typo in FlightRecorderMXBeanImpl
Reviewed-by: kevinw, egahlin
2023-02-22 10:29:40 +00:00
Tagir F. Valeev
3f3a1f534b 8302815: Use new Math.clamp method in core libraries
Reviewed-by: alanb
2023-02-22 09:51:14 +00:00
Kevin Walls
5e1d1b7940 8302870: More information needed from failures in vmTestbase ThreadUtils.waitThreadState
Reviewed-by: dholmes, sspitsyn
2023-02-22 09:29:57 +00:00
Severin Gehwolf
7f35389533 8302888: containers/docker/TestJcmd.java fails when run as root under podman
Reviewed-by: dholmes
2023-02-22 08:35:10 +00:00
Alan Bateman
b6ecca1268 8280113: (dc) DatagramSocket.receive does not always throw when the channel is closed
Reviewed-by: jpai, dfuchs
2023-02-22 08:13:06 +00:00
Richard Reingruber
f54e1080c5 8302831: PPC: compiler/codecache/TestStressCodeBuffers.java fails after JDK-8301819
Reviewed-by: mdoerr
2023-02-22 06:29:48 +00:00
Julian Waters
cba817ae59 8302838: jabswitch main() should avoid calling exit explicitly
Reviewed-by: serb
2023-02-22 06:27:52 +00:00
Prasanta Sadhukhan
2c52cf0746 8041447: Test javax/swing/dnd/7171812/bug7171812.java fails with java.lang.RuntimeException: Test failed, scroll on drag doesn't work
Reviewed-by: tr, serb
2023-02-22 06:13:09 +00:00
Martin Doerr
180b94c73e 8302907: [PPC64] Use more constexpr in class Register
Reviewed-by: rrich
2023-02-22 02:24:38 +00:00
Mikael Vidstedt
f319c92bd0 8303016: Invalid escapes in grep patterns
Reviewed-by: erikj
2023-02-21 22:10:36 +00:00
Eirik Bjorsnos
e950b95486 8303033: Build failure with the micro bench mark
Reviewed-by: naoto
2023-02-21 21:39:35 +00:00
Albert Mingkun Yang
dcd773ac5c 8302864: Parallel: Remove PSVirtualSpace::pointer_delta
Reviewed-by: tschatzl, kbarrett
2023-02-21 21:24:22 +00:00
Serguei Spitsyn
46f25250bd 8299240: rank of JvmtiVTMSTransition_lock can be safepoint
Reviewed-by: dholmes, coleenp, pchilanomate
2023-02-21 21:22:49 +00:00
Justin King
ce6de37172 8303010: Add /DEBUG to LDFLAGS for MSVC with ASan
Reviewed-by: erikj
2023-02-21 21:15:43 +00:00
Mikael Vidstedt
729c26f70e 8303020: Remove carriage return in pandoc version string
Reviewed-by: iris, lancea, erikj
2023-02-21 21:00:38 +00:00
Eirik Bjorsnos
ef1f7bd3b8 8302877: Speed up latin1 case conversions
Reviewed-by: naoto, redestad
2023-02-21 20:54:36 +00:00
Christian Stein
1ea5f9f7cd 8302789: (fs) Files.copy should include unsupported copy option in exception message
Reviewed-by: alanb, bpb, lancea
2023-02-21 19:03:26 +00:00
Joe Darcy
dfce4e1943 8302800: Augment NaN handling tests of FDLIBM methods
Reviewed-by: bpb
2023-02-21 18:31:22 +00:00
Glavo
5489c821dc 8302603: Use Set.of in java.nio.charset.Charset
Reviewed-by: stsypanov, alanb, naoto
2023-02-21 17:35:52 +00:00
Roger Riggs
10b4cc9eb4 8301627: System.exit and Runtime.exit debug logging
Reviewed-by: alanb, chegar
2023-02-21 15:37:08 +00:00
Johannes Bechberger
db483a38a8 8302320: AsyncGetCallTrace obtains too few frames in sanity test
Reviewed-by: jvernee, dholmes, rrich
2023-02-21 14:33:02 +00:00
Tobias Holenstein
02eb240c71 8302846: IGV: Zoom stuck when zooming out on large graphs
Reviewed-by: rcastanedalo, thartmann
2023-02-21 13:48:49 +00:00
Claes Redestad
92dfa1175e 8302863: Speed up String::encodeASCII using countPositives
Reviewed-by: alanb
2023-02-21 13:31:15 +00:00
Pavel Rappo
8b20aa919b 8302981: Fix a typo in the doc comment for java.lang.Record.equals
Reviewed-by: jpai
2023-02-21 13:11:26 +00:00
Julian Waters
644fe0a994 8302837: Kernel32.cpp array memory release invokes undefined behaviour
Reviewed-by: jlahoda
2023-02-21 11:58:44 +00:00
Stefan Karlsson
60e6378925 8302977: ZGC: Doesn't support gc/TestVerifySubSet.java
Reviewed-by: tschatzl
2023-02-21 11:04:43 +00:00
Stefan Karlsson
fef1910277 8299777: Test runtime/NMT/BaselineWithParameter.java timed out
Reviewed-by: gziemski, iklam, dholmes
2023-02-21 10:58:36 +00:00
Albert Mingkun Yang
622f5604c1 8302886: Parallel: Remove unimplemented methods in ParCompactionManager
Reviewed-by: tschatzl
2023-02-21 09:26:47 +00:00
Albert Mingkun Yang
9fd77c7b9b 8302868: Serial: Remove CardTableRS::initialize
Reviewed-by: tschatzl
2023-02-21 09:25:51 +00:00
Albert Mingkun Yang
f35cf79b51 8302867: G1: Removing unused variable in G1CardTable::initialize
Reviewed-by: tschatzl
2023-02-21 09:25:07 +00:00
Stefan Karlsson
63a3501273 8302741: ZGC: Remove Universe::verify calls
Reviewed-by: ayang, tschatzl
2023-02-21 08:23:28 +00:00
Matthias Baesken
9145670354 8301661: Enhance os::pd_print_cpu_info on macOS and Windows
Reviewed-by: ihse, lucy, dholmes
2023-02-21 08:17:56 +00:00
Jayathirth D V
aa10f0d3ee 8302151: BMPImageReader throws an exception reading BMP images
Reviewed-by: serb, tr
2023-02-21 07:30:17 +00:00
Emanuel Peter
16a4f02f2d 8302150: Speed up compiler/codegen/Test7100757.java
Reviewed-by: kvn, thartmann
2023-02-21 07:16:51 +00:00
Emanuel Peter
17274c72a9 8302146: Move TestOverloadCompileQueues.java to tier3
Reviewed-by: kvn, thartmann
2023-02-21 07:13:33 +00:00
Tejesh R
29f392e434 8299522: Incorrect size of Approve button in custom JFileChooser
Reviewed-by: aivanov, abhiscxk, dnguyen
2023-02-21 05:19:07 +00:00
Gui Cao
43c71ddf92 8302453: RISC-V: Add support for small width vector operations
Co-authored-by: Dingli Zhang <dingli@iscas.ac.cn>
Reviewed-by: yzhu, fyang
2023-02-21 01:39:13 +00:00
David Holmes
91a2b5ec6f 8302905: arm32 Raspberry Pi OS build broken by JDK-8301494
Reviewed-by: mikael, martin
2023-02-21 01:23:06 +00:00
George Adams
bb3dfd6adb 8302879: doc/building.md update link to jtreg builds
Reviewed-by: sgehwolf, clanger
2023-02-20 21:58:55 +00:00
sunguoyun
36a0822633 8302369: Reduce the stack size of the C1 compiler
Reviewed-by: dlong
2023-02-20 19:28:09 +00:00
Justin King
0bf3a53e01 8302599: Extend ASan support to Microsoft Visual C++
Reviewed-by: erikj, stuefe, ihse
2023-02-20 18:37:16 +00:00
ravi.ra.gupta
c7517b3dec 8302525: Write a test to check various components send Events while mouse and key are used simultaneously
Reviewed-by: serb
2023-02-20 18:32:00 +00:00
Alexey Bakhtin
9a797228f3 8299234: JMX Repository.query performance
Reviewed-by: dfuchs, kevinw
2023-02-20 17:52:54 +00:00
Severin Gehwolf
e47e9ec05b 8300658: memory_and_swap_limit() reporting wrong values on systems with swapaccount=0
Reviewed-by: jsjolen, iklam
2023-02-20 17:07:04 +00:00
Roman Kennke
7cf7e0a20b 8302070: Factor null-check into load_klass() calls
Reviewed-by: phh, coleenp
2023-02-20 15:13:36 +00:00
Prasanta Sadhukhan
e731695217 8302882: Newly added test javax/swing/JFileChooser/JFileChooserFontReset.java fails with HeadlessException
Reviewed-by: jdv
2023-02-20 14:47:45 +00:00
Johan Sjölen
b5a7426996 8301749: Tracking malloc pooled memory size
Reviewed-by: dholmes, stuefe
2023-02-20 14:23:54 +00:00
Albert Mingkun Yang
6ac5e05c58 8302068: Serial: Refactor oop closures used in Young GC
Reviewed-by: tschatzl, iwalulya
2023-02-20 14:07:45 +00:00
Pengfei Li
71cf7c4409 8302518: Add missing Op_RoundDoubleMode in VectorNode::vector_operands()
Reviewed-by: kvn, jbhateja
2023-02-20 12:08:03 +00:00
Thomas Schatzl
98716e2b25 8302709: Remove explicit remembered set verification in G1
Reviewed-by: ayang, iwalulya
2023-02-20 11:22:04 +00:00
Ludovic Henry
303c61f3ca 8302776: RISC-V: Fix typo CSR_INSTERT to CSR_INSTRET
Reviewed-by: fyang
2023-02-20 10:48:27 +00:00
Thomas Schatzl
7c40c8af69 8302312: Make ParGCRareEvent_lock G1 specific
Reviewed-by: sjohanss, kbarrett
2023-02-20 10:45:40 +00:00
Thomas Schatzl
593bec685e 8302122: Parallelize TLAB retirement in prologue in G1
8297611: G1: Merge tlab and per-thread dirty card log flushing

Reviewed-by: kbarrett, ayang
2023-02-20 10:23:00 +00:00
Thomas Schatzl
e971f90a0b 8302206: Factor out duplicate G1VerificationClosure
Reviewed-by: kbarrett, ayang
2023-02-20 10:21:21 +00:00
Ivan Walulya
eaae0baeba 8302215: G1: Last-ditch Full GC should do serial compaction for tail regions in per thread compaction points.
Reviewed-by: ayang, sjohanss, tschatzl
2023-02-20 08:43:02 +00:00
Emanuel Peter
7e08275cc1 8302668: [TESTBUG] Tests require feature sse4_1 which does not exist, should be sse4.1
Reviewed-by: kvn, thartmann
2023-02-20 08:41:40 +00:00
Emanuel Peter
5c0f50bc01 8295979: [IR Framework] Improve IR matching warning
Reviewed-by: thartmann, kvn
2023-02-20 08:40:11 +00:00
Tobias Holenstein
743a85db06 8302656: Missing spaces in output of -XX:+CIPrintMethodCodes
Reviewed-by: kvn, thartmann
2023-02-20 08:35:30 +00:00
Prasanta Sadhukhan
432cf68c4d 6753661: JFileChooser font not reset after Look & Feel change
Reviewed-by: abhiscxk, aivanov, serb
2023-02-20 08:17:00 +00:00
Richard Reingruber
2009dc2b73 8302462: [REDO] 8297487: G1 Remark: no need to keep alive oop constants of nmethods on stack
Reviewed-by: tschatzl, ayang
2023-02-20 06:47:57 +00:00
Ioi Lam
7abe26935a 8302781: CDS archive heap not reproducible after JDK-8296344
Reviewed-by: dcubed
2023-02-19 05:59:12 +00:00
Claes Redestad
d6716d2e54 8302315: Examine cost of clone of primitive arrays compared to arraycopy
Reviewed-by: alanb
2023-02-18 15:17:57 +00:00
Thomas Stuefe
53be5dc486 8302812: JDK-8302455 broke ClassLoaderStatsTest on 32-bit
Reviewed-by: dcubed
2023-02-18 14:52:26 +00:00
Eirik Bjorsnos
78f71b4d41 8301873: Avoid string decoding in ZipFile.Source.getEntryPos
Reviewed-by: redestad, lancea
2023-02-18 12:39:19 +00:00
Jaikiran Pai
f82385e587 8302623: jarsigner - use BufferedOutputStream to improve performance while creating the signed jar
Reviewed-by: weijun
2023-02-18 11:58:05 +00:00
Jaikiran Pai
43cf8b3d80 8302664: Fix several incorrect usages of Preconditions.checkFromIndexSize
Reviewed-by: djelinski, dfuchs, alanb
2023-02-18 00:48:29 +00:00
Serguei Spitsyn
6b082fb3c6 8302615: make JVMTI thread cpu time functions optional for virtual threads
Reviewed-by: alanb
2023-02-17 21:49:14 +00:00
Sandhya Viswanathan
7c60b9c98f 8302358: Behavior of adler32 changes after JDK-8300208
Reviewed-by: kvn, jbhateja
2023-02-17 21:31:42 +00:00
Calvin Cheung
86b9fce980 8301992: Embed SymbolTable CHT node
Co-authored-by: Robbin Ehn <rehn@openjdk.org>
Reviewed-by: coleenp, iklam
2023-02-17 19:51:12 +00:00
Mikhailo Seledtsov
03d613bbab 8294402: Add diagnostic logging to VMProps.checkDockerSupport
Reviewed-by: dholmes, lmesnik
2023-02-17 19:37:02 +00:00
Ioi Lam
a263f28368 8302777: CDS should not relocate heap if mapping fails
Reviewed-by: ccheung
2023-02-17 19:34:26 +00:00
Archie L. Cobbs
a917fb3fcf 7033677: potential cast error in MemberEnter
Reviewed-by: vromero, jlahoda
2023-02-17 16:55:35 +00:00
Ludvig Janiuk
6120319afd 8302226: failure_handler native.core should wait for coredump to finish
Reviewed-by: erikj
2023-02-17 14:57:00 +00:00
Albert Mingkun Yang
fef3eab9bd 8302734: Parallel: Remove unused LGRPSpace::_invalid_region
Reviewed-by: tschatzl
2023-02-17 14:47:03 +00:00
Albert Mingkun Yang
ea5bfea333 8302661: Parallel: Remove PSVirtualSpace::is_aligned
Reviewed-by: stefank, tschatzl
2023-02-17 14:46:23 +00:00
Daniel Fuchs
edf238b65e 8302635: Race condition in HttpBodySubscriberWrapper when cancelling request
Reviewed-by: jpai
2023-02-17 14:43:58 +00:00
Tobias Holenstein
cd77fcfb5f 8290822: C2: assert in PhaseIdealLoop::do_unroll() is subject to undefined behavior
Reviewed-by: kvn, thartmann
2023-02-17 14:27:17 +00:00
Tobias Holenstein
57c9bc39cd 8302335: IGV: Bytecode not showing
Reviewed-by: rcastanedalo, thartmann, xliu
2023-02-17 14:26:37 +00:00
Yi-Fan Tsai
57fde75b2a 8302113: Improve CRC32 intrinsic with crypto pmull on AArch64
Reviewed-by: simonis
2023-02-17 14:23:33 +00:00
Richard Reingruber
b8c9d6cdf6 8302158: PPC: test/jdk/jdk/internal/vm/Continuation/Fuzz.java: AssertionError: res: false shouldPin: false
Reviewed-by: goetz, mdoerr
2023-02-17 13:20:08 +00:00
Jan Lahoda
dc55a7fc87 8302202: Incorrect desugaring of null-allowed nested patterns
Reviewed-by: vromero
2023-02-17 12:55:47 +00:00
Johan Sjölen
c4ffe4bf63 8301494: Replace NULL with nullptr in cpu/arm
Reviewed-by: dholmes, coleenp
2023-02-17 11:24:41 +00:00
Albert Mingkun Yang
4f1cffd52c 8302674: Parallel: Remove unused methods in MutableNUMASpace
Reviewed-by: tschatzl
2023-02-17 10:39:58 +00:00
Johan Sjölen
c91cd2814b 8301481: Replace NULL with nullptr in os/windows
Reviewed-by: coleenp, dholmes
2023-02-17 09:41:12 +00:00
Damon Fenacci
47ca5773a5 8301491: C2: java.lang.StringUTF16::indexOfChar intrinsic called with negative character argument
Reviewed-by: thartmann, kvn
2023-02-17 09:10:20 +00:00
Ioi Lam
49eb68ba95 8296158: Refactor the verification of CDS region checksum
Reviewed-by: ccheung, matsaave
2023-02-17 07:21:26 +00:00
Joe Darcy
655a71277d 8301444: Port fdlibm hyperbolic transcendental functions to Java
Reviewed-by: bpb
2023-02-17 03:22:06 +00:00
David Holmes
b242eef93e 8280419: Remove dead code related to VerifyThread and verify_thread()
Reviewed-by: stuefe, lucy
2023-02-17 02:00:32 +00:00
Valerie Peng
4ce493f09e 8302225: SunJCE Provider doesn't validate key sizes when using 'constrained' transforms for AES/KW and AES/KWP
Reviewed-by: xuelei
2023-02-16 21:58:34 +00:00
Magnus Ihse Bursie
a39cf2e3b2 8301753: AppendFile/WriteFile has differences between make 3.81 and 4+
Reviewed-by: erikj
2023-02-16 19:32:38 +00:00
Vicente Romero
de80dd9c15 8296010: AssertionError in annotationTargetType
Reviewed-by: jjg
2023-02-16 19:06:26 +00:00
Julian Waters
e5042dd483 8302671: libawt has a memmove decay error
Reviewed-by: serb, prr, kcr
2023-02-16 18:56:59 +00:00
Daniel D. Daugherty
574b48c692 8302678: validate_source fails after JDK-8293313
Reviewed-by: bpb
2023-02-16 17:13:16 +00:00
Thomas Stuefe
90e092280f 8293313: NMT: Rework MallocLimit
8293292: Remove MallocMaxTestWords

Reviewed-by: jsjolen, gziemski, lucy, mbaesken
2023-02-16 16:14:05 +00:00
Erik Gahlin
f558a6c599 8298276: JFR: Update NMT events to make use of common periodic timestamp feature
Reviewed-by: mgronlun
2023-02-16 15:49:05 +00:00
Archie L. Cobbs
a58fa6e73e 8302514: Misleading error generated when empty class file encountered
Reviewed-by: vromero, jwaters
2023-02-16 14:48:39 +00:00
Justin King
3cc459b6c2 8302595: use-after-free related to GraphKit::clone_map
Reviewed-by: kvn, thartmann
2023-02-16 14:40:38 +00:00
Justin King
2e3cea01da 8302594: use-after-free in Node::destruct
Reviewed-by: kvn, thartmann
2023-02-16 14:14:46 +00:00
Tobias Holenstein
9b911b492f 8301959: Compile command in compiler.loopopts.TestRemoveEmptyCountedLoop does not work
Reviewed-by: kvn, thartmann
2023-02-16 13:51:11 +00:00
Tobias Holenstein
c29a136787 8291735: methods_do() always run at exit
Reviewed-by: coleenp, kvn
2023-02-16 12:55:01 +00:00
Albert Mingkun Yang
687a461276 8302464: Parallel: Remove unreachable code in callers of numa_has_static_binding
Reviewed-by: lkorinth, tschatzl
2023-02-16 11:48:56 +00:00
Tejesh R
84c058bb63 8300549: JFileChooser Approve button tooltip is null in Aqua L&F in CUSTOM_DIALOG mode
Reviewed-by: aivanov, abhiscxk
2023-02-16 11:10:25 +00:00
Tobias Holenstein
e045af4c92 8297031: IGV: Copy extracted nodes and layout for cloned graph
Reviewed-by: rcastanedalo, thartmann
2023-02-16 10:20:59 +00:00
Severin Gehwolf
53ae4c07fd 8300645: Handle julong values in logging of GET_CONTAINER_INFO macros
Reviewed-by: iklam
2023-02-16 10:08:54 +00:00
Tobias Hartmann
c77f64420a 8302625: Bad copyright line after JDK-8302385
Reviewed-by: mikael
2023-02-16 07:31:55 +00:00
Thomas Stuefe
519229db3c 8302385: Remove MetaspaceReclaimPolicy=none
Reviewed-by: iklam, dholmes
2023-02-16 07:01:10 +00:00
Thomas Stuefe
6e2d3c6c45 8302455: VM.classloader_stats memory size values are wrong
Reviewed-by: coleenp, dholmes
2023-02-16 06:56:38 +00:00
Vicente Romero
1480d418e3 8208470: Type annotations on inner type that is an array component
Co-authored-by: Bernard Blaser <bsrbnd@openjdk.org>
Reviewed-by: jlahoda
2023-02-16 04:01:12 +00:00
Ioi Lam
573c316c57 8224980: FLAG_SET_ERGO silently ignores invalid values
Reviewed-by: iveresov, dholmes
2023-02-16 03:44:48 +00:00
Joe Darcy
3ba156082b 8302026: Port fdlibm inverse trig functions (asin, acos, atan) to Java
Reviewed-by: bpb
2023-02-15 22:16:30 +00:00
Claes Redestad
861e302011 8302163: Speed up various String comparison methods with ArraysSupport.mismatch
Reviewed-by: stsypanov, rriggs, alanb
2023-02-15 21:52:41 +00:00
Mandy Chung
50dcc2aec5 8301460: Clean up LambdaForm to reference BasicType enums directly
Reviewed-by: jvernee
2023-02-15 18:29:26 +00:00
Albert Mingkun Yang
28f5250fa5 8302127: Remove unused arg in write_ref_field_post
Reviewed-by: phh, kbarrett
2023-02-15 14:34:30 +00:00
Johan Sjölen
0c9658446d 8301225: Replace NULL with nullptr in share/gc/shenandoah/
Reviewed-by: wkemper, kdnilsen, rkennke
2023-02-15 13:40:34 +00:00
Sean Mullan
26b111d714 8301700: Increase the default TLS Diffie-Hellman group size from 1024-bit to 2048-bit
Reviewed-by: xuelei
2023-02-15 13:25:50 +00:00
Michael McMahon
52388179e6 8301463: Code in DatagramSocket still refers to resolved JDK-8237352
Reviewed-by: dfuchs
2023-02-15 10:19:49 +00:00
Severin Gehwolf
11194e8b82 8302325: Wrong comment in java.base/share/native/libjimage/imageFile.hpp
Reviewed-by: alanb, jlaskey
2023-02-15 09:54:47 +00:00
Scott Gibbons
33bec20710 8300808: Accelerate Base64 on x86 for AVX2
Reviewed-by: jbhateja, redestad, sviswanathan
2023-02-15 09:26:10 +00:00
Emanuel Peter
46bcc4901e 8302147: Speed up compiler/jvmci/compilerToVM/IterateFramesNative.java
Reviewed-by: kvn, thartmann
2023-02-15 07:36:53 +00:00
Emanuel Peter
a9a53f417d 8302152: Speed up tests with infinite loops, sleep less
Reviewed-by: thartmann, kvn
2023-02-15 07:35:23 +00:00
Justin King
98a392c4fc 8302102: Disable ASan for SafeFetch and os::print_hex_dump
Reviewed-by: dholmes, stuefe
2023-02-15 06:42:27 +00:00
Thomas Stuefe
9ccf8ad91f 8302129: Make MetaspaceReclaimPolicy a diagnostic switch
Reviewed-by: dholmes, coleenp
2023-02-15 06:36:16 +00:00
Ioi Lam
bdcbafb219 8296344: Remove dependency on G1 for writing the CDS archive heap
Reviewed-by: ayang, tschatzl, ccheung
2023-02-15 05:12:39 +00:00
Kim Barrett
f1d76fa925 8302262: Remove -XX:SuppressErrorAt develop option
Reviewed-by: stuefe, dholmes, tschatzl
2023-02-15 00:44:02 +00:00
Mandy Chung
9c202a5a8f 8302260: VarHandle.describeConstable() fails to return a nominal descriptor for static public fields
Reviewed-by: alanb, psandoz
2023-02-14 21:15:14 +00:00
Vicente Romero
ca73f7e80f 8301374: NullPointerException in MemberEnter.checkReceiver
Reviewed-by: jlahoda
2023-02-14 18:59:37 +00:00
Brian Burkhalter
5b2d430131 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE
Reviewed-by: alanb, lancea
2023-02-14 16:30:52 +00:00
Xue-Lei Andrew Fan
f7dee77d73 8301274: update for deprecated sprintf for security components
Reviewed-by: ascarpino
2023-02-14 15:37:47 +00:00
Xue-Lei Andrew Fan
ec901f28c3 8301279: update for deprecated sprintf for management components
Reviewed-by: kevinw, dholmes
2023-02-14 15:36:09 +00:00
Erik Gahlin
8933c2d06a 8298278: JFR: Turn MEMFLAGS into a type for use with the NativeMemoryUsage events
Reviewed-by: sjohanss
2023-02-14 15:02:58 +00:00
Robbin Ehn
77519e5f4f 8302354: InstanceKlass init state/thread should be atomic
Reviewed-by: coleenp, dholmes
2023-02-14 14:38:46 +00:00
Vicente Romero
2ef001e097 8207017: Type annotations on anonymous classes in initializer blocks not written to class file
Reviewed-by: jlahoda
2023-02-14 14:27:29 +00:00
Johan Sjölen
8c2c8b3f7f 8295344: Harden runtime/StackGuardPages/TestStackGuardPages.java
Reviewed-by: dholmes, rehn
2023-02-14 13:11:44 +00:00
Hannes Wallnöfer
6d4b02b6c9 8302324: Inheritance tree does not show correct type parameters/arguments
Reviewed-by: prappo
2023-02-14 12:42:59 +00:00
Ekaterina Vergizova
7dfe75cf55 8301842: JFR: increase checkpoint event size for stacktrace and string pool
Reviewed-by: mgronlun
2023-02-14 11:02:39 +00:00
Jie Fu
66742c83d4 8302368: [ZGC] Client build fails after JDK-8300255
Reviewed-by: fyang, eosterlund
2023-02-14 10:57:49 +00:00
Albert Mingkun Yang
7c50ab1612 8225409: G1: Remove the Hot Card Cache
Reviewed-by: tschatzl, iwalulya
2023-02-14 10:18:43 +00:00
Conor Cleary
92474f13f0 8301243: java/net/httpclient/http2/IdleConnectionTimeoutTest.java intermittent failure
Reviewed-by: dfuchs
2023-02-14 09:41:36 +00:00
Severin Gehwolf
ee5f6e156d 8302337: JDK crashes if lib/modules contains non-zero byte containing ATTRIBUTE_END
Reviewed-by: stuefe, jlaskey, alanb
2023-02-14 09:27:36 +00:00
Erik Österlund
7f71a1040d 8301874: BarrierSetC2 should assign barrier data to stores
Reviewed-by: rcastanedalo, kvn
2023-02-14 09:18:48 +00:00
Eirik Bjorsnos
d782125c8f 8302214: Typo in javadoc of Arrays.compare and Arrays.mismatch
Reviewed-by: jpai
2023-02-14 06:58:56 +00:00
6038 changed files with 478778 additions and 97878 deletions

212
.github/README.md vendored Normal file
View File

@@ -0,0 +1,212 @@
[![official JetBrains project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
# Welcome to JetBrains Runtime!
JetBrains Runtime is a fork of [OpenJDK](https://github.com/openjdk/jdk) available for Windows, Mac OS X, and Linux.
It supports enhanced class redefinition ([DCEVM](https://ssw.jku.at/dcevm/)),
features optional [JCEF](https://github.com/JetBrains/jcef), a framework for embedding Chromium-based browsers,
includes a number of improvements in font rendering, keyboards support,
windowing/focus subsystems, HiDPI, accessibility, and performance, provides better desktop integration
and bugfixes not yet present in OpenJDK.
> **_NOTE_**: This is a **development** branch that is periodically synchronized with
> the [OpenJDK master](https://github.com/openjdk/jdk/tree/master) branch.
>
Release builds are based on these branches:
* [jbr11](https://github.com/JetBrains/JetBrainsRuntime/tree/jbr11) (JDK 11)
* [jbr17](https://github.com/JetBrains/JetBrainsRuntime/tree/jbr17) (JDK 17)
Download the latest releases of JetBrains Runtime to use with JetBrains IDEs. The full list
can be found on the [releases page](https://github.com/JetBrains/JetBrainsRuntime/releases).
## Releases based on JDK 17
| IDE Version | Latest JBR | Date Released |
|-------------|--------------------------------------------------------------------------------------------------------|---------------|
| 2023.1 | [17.0.6-b829.9](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.6b829.9) | 10-Apr-2023 |
| 2022.3 | [17.0.6-b653.34](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.6b653.34) | 28-Feb-2023 |
| 2022.2 | [17.0.6-b469.82](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.6b469.82) | 06-Mar-2023 |
## Releases based on JDK 11
| IDE Version | Latest JBR | Date Released |
|-------------|-------------------------------------------------------------------------------------------------------|---------------|
| 2022.1 | [11_0_16-b2043.64](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr11_0_16b2043.64) | 10-Nov-2022 |
| 2021.3 | [11_0_14_1-b1751.46](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr11_0_14_1b1751.46) | 21-Feb-2022 |
| 2021.2 | [11_0_13-b1504.49](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jb11_0_13-b1504.49) | 15-Nov-2021 |
| 2021.1 | [11.0.11+9-b1341.60](https://github.com/JetBrains/JetBrainsRuntime/issues/171#issuecomment-1248891540)| 15-Jun-2021 |
| 2020.3 | [11_0_10-b1145.115](https://github.com/JetBrains/JetBrainsRuntime/issues/171#issuecomment-1249243977) | 21-Jun-2021 |
## Contents
- [Welcome to JetBrains Runtime](#welcome-to-jetbrains-runtime)
- [Why Use JetBrains Runtime?](#why-use-jetbrains-runtime)
- [Products Built on JetBrains Runtime](#products-built-on-jetbrains-runtime)
- [Getting Sources](#getting-sources)
- [macOS, Linux](#macos-linux)
- [Windows](#sources-windows)
- [Configuring the Build Environment](#configuring-the-build-environment)
- [Linux (Docker)](#linux-docker)
- [Ubuntu Linux](#ubuntu-linux)
- [Windows](#build-windows)
- [macOS](#macos)
- [Developing](#developing)
- [Contributing](#contributing)
- [Resources](#resources)
## Why Use JetBrains Runtime?
* **Embedded browser**: JetBrains Runtime includes the Java Chromium Embedded Framework ([JCEF](https://github.com/JetBrains/jcef)), which
enables you to embed a Chromium-based browsers in your JVM-based application.
To use it, [download a build with JCEF](https://github.com/JetBrains/JetBrainsRuntime/releases).
* **Enhanced class re-definition** with the [DCEVM](https://ssw.jku.at/dcevm/) technology that makes it easier to reload
changed code without restarting JVM; this feature needs to be explicitly enabled with `-XX:+AllowEnhancedClassRedefinition`.
* **Better FPS performance** for graphics-intensive applications.
* **Improved font rendering**, **keyboard input** (such as shortcuts and multinational keyboards),
**HiDPI** and **accessibility** support.
* **Robust desktop experience**: GUI-related fixes often reach JetBrains Runtime much earlier than the corresponding version of OpenJDK.
## Products Built on JetBrains Runtime
* [Android Studio](https://developer.android.com/studio). The official IDE for Google's Android operating system.
* [CLion](https://www.jetbrains.com/clion/). A cross-platform IDE for C and C++ from JetBrains.
* [DataGrip](https://www.jetbrains.com/datagrip/). The IDE for Databases and SQL from JetBrains.
* [GoLand](https://www.jetbrains.com/go/). The cross-platform Go IDE from JetBrains.
* [IntelliJ IDEA](https://www.jetbrains.com/idea/). The IDE for JVM from JetBrains.
* [JProfiler](https://www.ej-technologies.com/products/jprofiler/overview.html). The Java profiler.
* [PhpStorm](https://www.jetbrains.com/phpstorm/). The PHP IDE from JetBrains.
* [PyCharm](https://www.jetbrains.com/pycharm/). The Python IDE from JetBrains.
* [Rider](https://www.jetbrains.com/rider/). The cross-platform .NET IDE from JetBrains.
* [RubyMine](https://www.jetbrains.com/ruby/). The Ruby and Rails IDE from JetBrains.
* [Toolbox App](https://www.jetbrains.com/toolbox-app/). JetBrains IDE manager.
* [WebStorm](https://www.jetbrains.com/webstorm/). The JavaScript IDE from JetBrains.
* [YourKit](https://www.yourkit.com/). Java and .NET profilers.
## Getting Sources
### macOS, Linux
```
git config --global core.autocrlf input
git clone git@github.com:JetBrains/JetBrainsRuntime.git
```
### Windows
<a name="sources-windows"></a>
```
git config --global core.autocrlf false
git clone git@github.com:JetBrains/JetBrainsRuntime.git
```
## Configuring the Build Environment
Here are quick per-platform instructions for those who can't wait to get started.
Please refer to [OpenJDK build docs](https://openjdk.java.net/groups/build/doc/building.html) for in-depth
coverage of all the details.
> **_TIP:_** To get a preliminary report of what's missing, run `./configure` and check its output.
> It would usually have meaningful advice on how to solve the problem.
### Linux (Docker)
Create a container:
```
$ cd jb/project/docker
$ docker build .
...
Successfully built 942ea9900054
```
Run these commands in the new container:
```
$ docker run -v `pwd`../../../../:/JetBrainsRuntime -it 942ea9900054
# cd /JetBrainsRuntime
# sh ./configure
# make images CONF=linux-x86_64-normal-server-release
```
### Ubuntu Linux
Install the necessary tools, libraries, and headers with:
```
$ sudo apt-get install autoconf make build-essential libx11-dev libxext-dev libxrender-dev libxtst-dev \
libxt-dev libxrandr-dev libcups2-dev libfontconfig1-dev libasound2-dev
```
Get Java 18 (for instance, [Azul Zulu Builds of OpenJDK 18](https://www.azul.com/downloads/?version=java-18-sts&os=linux&package=jdk)).
Then run the following:
```
$ cd JetBrainsRuntime
$ git checkout main
$ sh ./configure
$ make images
```
This will build the release configuration under `./build/linux-x86_64-server-release/`.
### Windows
<a name="build-windows"></a>
Install the following:
* [Cygwin x64](http://www.cygwin.com/).
Required packages: `autoconf`, `binutils`, `cpio`, `diffutils`, `file`, `gawk`, `gcc-core`, `make`, `m4`, `unzip`, `zip`.
Install those together with Cygwin.
* [Visual Studio compiler toolset](https://visualstudio.microsoft.com/downloads/).
Install with the desktop development kit, which includes Windows SDK and compilers.
Visual Studio 2019 is supported by default.
* Java 18 (for instance, [Azul Zulu Builds of OpenJDK 18](https://www.azul.com/downloads/?version=java-18-sts&os=windows&package=jdk)).
If you have problems while configuring, read [Java tips on Cygwin](http://horstmann.com/articles/cygwin-tips.html).
From the command line:
```
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
"c:\Program_Files\cygwin64\bin\mintty.exe" /bin/bash -l
```
The first command sets up environment variables, the second starts a Cygwin shell with the proper environment.
In the Cygwin shell:
```
$ cd JetBrainsRuntime
$ git checkout main
$ bash configure --with-toolchain-version=2019
$ make images
```
This will build the release configuration under `./build/windows-x86_64-server-release/`.
### macOS
Install the following:
* Xcode command line developer tools and `autoconf` via [Homebrew](https://brew.sh/).
* Java 18 (for instance, [Azul Zulu Builds of OpenJDK 18](https://www.azul.com/downloads/?version=java-18-sts&os=macos&package=jdk)).
From the command line:
```
$ cd JetBrainsRuntime
$ git checkout main
$ sh ./configure
$ make images
```
This will build the release configuration under `./build/macosx-x86_64-server-release/`.
## Developing
You can use [CLion](https://www.jetbrains.com/clion/) to develop native parts of the JetBrains Runtime and
[IntelliJ IDEA](https://www.jetbrains.com/idea/) for the parts written in Java.
Both require projects to be created.
### CLion
Run
```
$ make compile-commands
```
in the git root and open the resulting `build/.../compile_commands.json` file as a project.
Then use `Tools | Compilation Database | Change Project Root` to point to git root of this repository.
See also this detailed step-by-step tutorial for all platforms:
[How to develop OpenJDK with CLion](https://blog.jetbrains.com/clion/2020/03/openjdk-with-clion/).
### IDEA
Run
```
$ sh ./bin/idea.sh
```
in the git root to generate project files (add `--help` for options). If you have multiple
configurations (for example, `release` and `fastdebug`), supply the `--conf <conf_name>` argument.
Then open the git root directory as a project in IDEA.
## Contributing
We are happy to receive your pull requests!
Before you submit one, please sign our [Contributor License Agreement (CLA)](https://www.jetbrains.com/agreements/cla/).
## Resources
* [JetBrains Runtime on GitHub](https://github.com/JetBrains/JetBrainsRuntime).
* [OpenJDK build instructions](https://openjdk.java.net/groups/build/doc/building.html).
* [OpenJDK test instructions](https://htmlpreview.github.io/?https://raw.githubusercontent.com/openjdk/jdk/master/doc/building.html#running-tests).
* [How to develop OpenJDK with CLion](https://blog.jetbrains.com/clion/2020/03/openjdk-with-clion/).

View File

@@ -26,10 +26,6 @@
name: 'OpenJDK GHA Sanity Checks'
on:
push:
branches-ignore:
- master
- pr/*
workflow_dispatch:
inputs:
platforms:
@@ -59,7 +55,8 @@ jobs:
outputs:
linux-x64: ${{ steps.include.outputs.linux-x64 }}
linux-x86: ${{ steps.include.outputs.linux-x86 }}
linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
# additional build options for linux-x64 are disabled
# linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
linux-cross-compile: ${{ steps.include.outputs.linux-cross-compile }}
macos-x64: ${{ steps.include.outputs.macos-x64 }}
macos-aarch64: ${{ steps.include.outputs.macos-aarch64 }}

270
.github/workflows/pr.yml vendored Normal file
View File

@@ -0,0 +1,270 @@
#
# Copyright 2000-2023 JetBrains s.r.o.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
name: 'Build OpenJDK on pull request'
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
###
### Determine platforms to include
###
select:
name: 'Select platforms'
runs-on: ubuntu-22.04
outputs:
linux-x64: ${{ steps.include.outputs.linux-x64 }}
linux-x86: ${{ steps.include.outputs.linux-x86 }}
linux-cross-compile: ${{ steps.include.outputs.linux-cross-compile }}
macos-x64: ${{ steps.include.outputs.macos-x64 }}
macos-aarch64: ${{ steps.include.outputs.macos-aarch64 }}
windows-x64: ${{ steps.include.outputs.windows-x64 }}
windows-aarch64: ${{ steps.include.outputs.windows-aarch64 }}
windows-x86: ${{ steps.include.outputs.windows-x86 }}
steps:
# This function must be inlined in main.yml, or we'd be forced to checkout the repo
- name: 'Check what jobs to run'
id: include
run: |
# Determine which platform jobs to run
# Returns 'true' if the input platform list matches any of the platform monikers given as argument,
# 'false' otherwise.
# arg $1: platform name or names to look for
function check_platform() {
if [[ $GITHUB_EVENT_NAME == workflow_dispatch ]]; then
input='${{ github.event.inputs.platforms }}'
elif [[ $GITHUB_EVENT_NAME == push ]]; then
if [[ '${{ !secrets.JDK_SUBMIT_FILTER || startsWith(github.ref, 'refs/heads/submit/') }}' == 'false' ]]; then
# If JDK_SUBMIT_FILTER is set, and this is not a "submit/" branch, don't run anything
>&2 echo 'JDK_SUBMIT_FILTER is set and not a "submit/" branch'
echo 'false'
return
else
input='${{ secrets.JDK_SUBMIT_PLATFORMS }}'
fi
fi
normalized_input="$(echo ,$input, | tr -d ' ')"
if [[ "$normalized_input" == ",," ]]; then
# For an empty input, assume all platforms should run
echo 'true'
return
else
# Check for all acceptable platform names
for part in $* ; do
if echo "$normalized_input" | grep -q -e ",$part," ; then
echo 'true'
return
fi
done
fi
echo 'false'
}
echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
echo "linux-x86=$(check_platform linux-x86 linux x86)" >> $GITHUB_OUTPUT
echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
echo "macos-aarch64=$(check_platform macos-aarch64 macos aarch64)" >> $GITHUB_OUTPUT
echo "windows-x64=$(check_platform windows-x64 windows x64)" >> $GITHUB_OUTPUT
echo "windows-x86=$(check_platform windows-x86 windows x86)" >> $GITHUB_OUTPUT
echo "windows-aarch64=$(check_platform windows-aarch64 windows aarch64)" >> $GITHUB_OUTPUT
echo "docs=$(check_platform docs)" >> $GITHUB_OUTPUT
###
### Build jobs
###
build-linux-x64:
name: linux-x64
needs: select
uses: ./.github/workflows/build-linux.yml
with:
platform: linux-x64
gcc-major-version: '10'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
# The linux-x64 jdk bundle is used as buildjdk for the cross-compile job
if: needs.select.outputs.linux-x64 == 'true' || needs.select.outputs.linux-cross-compile == 'true'
build-linux-x86:
name: linux-x86
needs: select
uses: ./.github/workflows/build-linux.yml
with:
platform: linux-x86
gcc-major-version: '10'
gcc-package-suffix: '-multilib'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
apt-architecture: 'i386'
# Some multilib libraries do not have proper inter-dependencies, so we have to
# install their dependencies manually.
apt-extra-packages: 'libfreetype6-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libc6-i386'
extra-conf-options: '--with-target-bits=32'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.linux-x86 == 'true'
build-linux-cross-compile:
name: linux-cross-compile
needs:
- select
- build-linux-x64
uses: ./.github/workflows/build-cross-compile.yml
with:
gcc-major-version: '10'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
apt-gcc-cross-version: '10.4.0-4ubuntu1~22.04cross1'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.linux-cross-compile == 'true'
build-macos-x64:
name: macos-x64
needs: select
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-x64
xcode-toolset-version: '12.5.1'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.macos-x64 == 'true'
build-macos-aarch64:
name: macos-aarch64
needs: select
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-aarch64
xcode-toolset-version: '12.5.1'
extra-conf-options: '--openjdk-target=aarch64-apple-darwin'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.macos-aarch64 == 'true'
build-windows-x64:
name: windows-x64
needs: select
uses: ./.github/workflows/build-windows.yml
with:
platform: windows-x64
msvc-toolset-version: '14.29'
msvc-toolset-architecture: 'x86.x64'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.windows-x64 == 'true'
build-windows-x86:
name: windows-x86
needs: select
uses: ./.github/workflows/build-windows.yml
with:
platform: windows-x86
msvc-toolset-version: '14.29'
msvc-toolset-architecture: 'x86'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.windows-x86 == 'true'
build-windows-aarch64:
name: windows-aarch64
needs: select
uses: ./.github/workflows/build-windows.yml
with:
platform: windows-aarch64
msvc-toolset-version: '14.29'
msvc-toolset-architecture: 'arm64'
make-target: 'hotspot'
extra-conf-options: '--openjdk-target=aarch64-unknown-cygwin'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.windows-aarch64 == 'true'
build-docs:
name: docs
needs: select
uses: ./.github/workflows/build-linux.yml
with:
platform: linux-x64
debug-levels: '[ "debug" ]'
make-target: 'docs-jdk-bundles'
# Make sure we never try to make full docs, since that would require a
# build JDK, and we do not need the additional testing of the graphs.
extra-conf-options: '--disable-full-docs'
gcc-major-version: '10'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.docs == 'true'
# Remove bundles so they are not misconstrued as binary distributions from the JDK project
remove-bundles:
name: 'Remove bundle artifacts'
runs-on: ubuntu-22.04
if: always()
needs:
- build-linux-x64
- build-linux-x86
- build-linux-cross-compile
- build-macos-x64
- build-macos-aarch64
- build-windows-x64
- build-windows-aarch64
- build-windows-x86
steps:
# Hack to get hold of the api environment variables that are only defined for actions
- name: 'Get API configuration'
id: api
uses: actions/github-script@v6
with:
script: 'return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }'
- name: 'Remove bundle artifacts'
run: |
# Find and remove all bundle artifacts
ALL_ARTIFACT_URLS="$(curl -s \
-H 'Accept: application/json;api-version=6.0-preview' \
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
'${{ fromJson(steps.api.outputs.result).url }}_apis/pipelines/workflows/${{ github.run_id }}/artifacts?api-version=6.0-preview')"
BUNDLE_ARTIFACT_URLS="$(echo "$ALL_ARTIFACT_URLS" | jq -r -c '.value | map(select(.name|startswith("bundles-"))) | .[].url')"
for url in $BUNDLE_ARTIFACT_URLS; do
echo "Removing $url"
curl -s \
-H 'Accept: application/json;api-version=6.0-preview' \
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
-X DELETE "$url" \
|| echo "Failed to remove bundle"
done

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

5
.gitignore vendored
View File

@@ -18,3 +18,8 @@ NashornProfile.txt
/src/utils/LogCompilation/target/
/.project/
/.settings/
/.project
/.classpath
/.cproject
/compile_commands.json
/.cache

View File

@@ -1,3 +1,5 @@
[![official JetBrains project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
# Welcome to the JDK!
For build instructions please see the

View File

@@ -25,7 +25,26 @@
# Shell script for generating an IDEA project from a given list of modules
usage() {
echo "usage: $0 [-h|--help] [-v|--verbose] [-o|--output <path>] [-c|--conf <conf_name>] [modules]+"
echo "Usage: $0 [-h|--help] [-q|--quiet] [-a|--absolute-paths] [-r|--root <path>] [-o|--output <path>] [-c|--conf <conf_name>] [modules...]"
echo " -h | --help"
echo " -q | --quiet
No stdout output"
echo " -a | --absolute-paths
Use absolute paths to this jdk, so that generated .idea
project files can be moved independently of jdk sources"
echo " -r | --root <path>
Project content root
Default: $TOPLEVEL_DIR"
echo " -o | --output <path>
Where .idea directory with project files will be generated
(e.g. using '-o .' will place project files in './.idea')
Default: same as --root"
echo " -c | --conf <conf_name>
make configuration (release, slowdebug etc)"
echo " [modules...]
Generate project modules for specific java modules
(e.g. 'java.base java.desktop')
Default: all existing modules (java.* and jdk.*)"
exit 1
}
@@ -33,10 +52,13 @@ SCRIPT_DIR=`dirname $0`
#assume TOP is the dir from which the script has been called
TOP=`pwd`
cd $SCRIPT_DIR; SCRIPT_DIR=`pwd`
if [ "x$TOPLEVEL_DIR" = "x" ] ; then
cd .. ; TOPLEVEL_DIR=`pwd`
fi
cd $TOP;
IDEA_OUTPUT=$TOP/.idea
VERBOSE="false"
VERBOSE=true
ABSOLUTE_PATHS=false
CONF_ARG=
while [ $# -gt 0 ]
do
@@ -45,14 +67,24 @@ do
usage
;;
-v | --vebose )
VERBOSE="true"
-q | --quiet )
VERBOSE=false
;;
-a | --absolute-paths )
ABSOLUTE_PATHS=true
;;
-r | --root )
TOPLEVEL_DIR="$2"
shift
;;
-o | --output )
IDEA_OUTPUT=$2/.idea
IDEA_OUTPUT="$2/.idea"
shift
;;
-c | --conf )
CONF_ARG="CONF_NAME=$2"
shift
@@ -69,20 +101,17 @@ do
shift
done
if [ -e $IDEA_OUTPUT ] ; then
rm -r $IDEA_OUTPUT
if [ "x$IDEA_OUTPUT" = "x" ] ; then
IDEA_OUTPUT="$TOPLEVEL_DIR/.idea"
fi
mkdir -p $IDEA_OUTPUT || exit 1
cd $IDEA_OUTPUT; IDEA_OUTPUT=`pwd`
cd "$TOP" ; cd $TOPLEVEL_DIR; TOPLEVEL_DIR=`pwd`
cd "$TOP" ; cd $IDEA_OUTPUT; IDEA_OUTPUT=`pwd`
cd ..; IDEA_OUTPUT_PARENT=`pwd`
cd "$SCRIPT_DIR/.." ; OPENJDK_DIR=`pwd`
if [ "x$TOPLEVEL_DIR" = "x" ] ; then
cd $SCRIPT_DIR/..
TOPLEVEL_DIR=`pwd`
cd $IDEA_OUTPUT
fi
MAKE_DIR="$SCRIPT_DIR/../make"
IDEA_MAKE="$MAKE_DIR/ide/idea/jdk"
IDEA_MAKE="$OPENJDK_DIR/make/ide/idea/jdk"
IDEA_TEMPLATE="$IDEA_MAKE/template"
cp -r "$IDEA_TEMPLATE"/* "$IDEA_OUTPUT"
@@ -94,31 +123,31 @@ if [ -d "$TEMPLATES_OVERRIDE" ] ; then
done
fi
if [ "$VERBOSE" = "true" ] ; then
echo "output dir: $IDEA_OUTPUT"
echo "idea template dir: $IDEA_TEMPLATE"
if [ "$VERBOSE" = true ] ; then
echo "Will generate IDEA project files in \"$IDEA_OUTPUT\" for project \"$TOPLEVEL_DIR\""
fi
cd $TOP ; make -f "$IDEA_MAKE/idea.gmk" -I $MAKE_DIR/.. idea MAKEOVERRIDES= OUT=$IDEA_OUTPUT/env.cfg MODULES="$*" $CONF_ARG || exit 1
cd $TOP ; make -f "$IDEA_MAKE/idea.gmk" -I "$OPENJDK_DIR" idea TOPLEVEL_DIR="$TOPLEVEL_DIR" \
MAKEOVERRIDES= IDEA_OUTPUT_PARENT="$IDEA_OUTPUT_PARENT" OUT="$IDEA_OUTPUT/env.cfg" MODULES="$*" $CONF_ARG || exit 1
cd $SCRIPT_DIR
. $IDEA_OUTPUT/env.cfg
# Expect MODULE_ROOTS, MODULE_NAMES, BOOT_JDK & SPEC to be set
if [ "x$MODULE_ROOTS" = "x" ] ; then
echo "FATAL: MODULE_ROOTS is empty" >&2; exit 1
# Expect MODULES, MODULE_NAMES, RELATIVE_PROJECT_DIR, RELATIVE_BUILD_DIR to be set
if [ "xMODULES" = "x" ] ; then
echo "FATAL: MODULES is empty" >&2; exit 1
fi
if [ "x$MODULE_NAMES" = "x" ] ; then
echo "FATAL: MODULE_NAMES is empty" >&2; exit 1
fi
if [ "x$BOOT_JDK" = "x" ] ; then
echo "FATAL: BOOT_JDK is empty" >&2; exit 1
if [ "x$RELATIVE_PROJECT_DIR" = "x" ] ; then
echo "FATAL: RELATIVE_PROJECT_DIR is empty" >&2; exit 1
fi
if [ "x$SPEC" = "x" ] ; then
echo "FATAL: SPEC is empty" >&2; exit 1
if [ "x$RELATIVE_BUILD_DIR" = "x" ] ; then
echo "FATAL: RELATIVE_BUILD_DIR is empty" >&2; exit 1
fi
if [ -d "$TOPLEVEL_DIR/.hg" ] ; then
@@ -129,6 +158,43 @@ if [ -d "$TOPLEVEL_DIR/.git" ] ; then
VCS_TYPE="Git"
fi
if [ "$ABSOLUTE_PATHS" = true ] ; then
if [ "x$PATHTOOL" != "x" ]; then
PROJECT_DIR="`$PATHTOOL -am $OPENJDK_DIR`"
TOPLEVEL_PROJECT_DIR="`$PATHTOOL -am $TOPLEVEL_DIR`"
else
PROJECT_DIR="$OPENJDK_DIR"
TOPLEVEL_PROJECT_DIR="$TOPLEVEL_DIR"
fi
MODULE_DIR="$PROJECT_DIR"
TOPLEVEL_MODULE_DIR="$TOPLEVEL_PROJECT_DIR"
cd "$IDEA_OUTPUT_PARENT" && cd "$RELATIVE_BUILD_DIR" && BUILD_DIR="`pwd`"
CLION_SCRIPT_TOPDIR="$OPENJDK_DIR"
CLION_PROJECT_DIR="$PROJECT_DIR"
else
if [ "$RELATIVE_PROJECT_DIR" = "." ] ; then
PROJECT_DIR=""
else
PROJECT_DIR="/$RELATIVE_PROJECT_DIR"
fi
if [ "$RELATIVE_TOPLEVEL_PROJECT_DIR" = "." ] ; then
TOPLEVEL_PROJECT_DIR=""
else
TOPLEVEL_PROJECT_DIR="/$RELATIVE_TOPLEVEL_PROJECT_DIR"
fi
MODULE_DIR="\$MODULE_DIR\$$PROJECT_DIR"
PROJECT_DIR="\$PROJECT_DIR\$$PROJECT_DIR"
TOPLEVEL_MODULE_DIR="\$MODULE_DIR\$$TOPLEVEL_PROJECT_DIR"
TOPLEVEL_PROJECT_DIR="\$PROJECT_DIR\$$TOPLEVEL_PROJECT_DIR"
BUILD_DIR="\$PROJECT_DIR\$/$RELATIVE_BUILD_DIR"
CLION_SCRIPT_TOPDIR="$CLION_RELATIVE_PROJECT_DIR"
CLION_PROJECT_DIR="\$PROJECT_DIR\$/$CLION_SCRIPT_TOPDIR"
fi
if [ "$VERBOSE" = true ] ; then
echo "Project root: $PROJECT_DIR"
echo "Generating IDEA project files..."
fi
### Replace template variables
NUM_REPLACEMENTS=0
@@ -152,126 +218,106 @@ add_replacement() {
eval TO$NUM_REPLACEMENTS='$2'
}
add_replacement "###PATHTOOL###" "$PATHTOOL"
add_replacement "###CLION_SCRIPT_TOPDIR###" "$CLION_SCRIPT_TOPDIR"
add_replacement "###CLION_PROJECT_DIR###" "$CLION_PROJECT_DIR"
add_replacement "###PROJECT_DIR###" "$PROJECT_DIR"
add_replacement "###MODULE_DIR###" "$MODULE_DIR"
add_replacement "###TOPLEVEL_PROJECT_DIR###" "$TOPLEVEL_PROJECT_DIR"
add_replacement "###TOPLEVEL_MODULE_DIR###" "$TOPLEVEL_MODULE_DIR"
add_replacement "###MODULE_NAMES###" "$MODULE_NAMES"
add_replacement "###VCS_TYPE###" "$VCS_TYPE"
SPEC_DIR=`dirname $SPEC`
if [ "x$CYGPATH" != "x" ]; then
add_replacement "###BUILD_DIR###" "`$CYGPATH -am $SPEC_DIR`"
add_replacement "###IMAGES_DIR###" "`$CYGPATH -am $SPEC_DIR`/images/jdk"
add_replacement "###ROOT_DIR###" "`$CYGPATH -am $TOPLEVEL_DIR`"
add_replacement "###IDEA_DIR###" "`$CYGPATH -am $IDEA_OUTPUT`"
add_replacement "###BUILD_DIR###" "$BUILD_DIR"
add_replacement "###RELATIVE_BUILD_DIR###" "$RELATIVE_BUILD_DIR"
if [ "x$PATHTOOL" != "x" ]; then
add_replacement "###BASH_RUNNER_PREFIX###" "\$PROJECT_DIR\$/.idea/bash.bat"
else
add_replacement "###BASH_RUNNER_PREFIX###" ""
fi
if [ "x$PATHTOOL" != "x" ]; then
if [ "x$JT_HOME" = "x" ]; then
add_replacement "###JTREG_HOME###" ""
else
add_replacement "###JTREG_HOME###" "`$CYGPATH -am $JT_HOME`"
fi
elif [ "x$WSL_DISTRO_NAME" != "x" ]; then
add_replacement "###BUILD_DIR###" "`wslpath -am $SPEC_DIR`"
add_replacement "###IMAGES_DIR###" "`wslpath -am $SPEC_DIR`/images/jdk"
add_replacement "###ROOT_DIR###" "`wslpath -am $TOPLEVEL_DIR`"
add_replacement "###IDEA_DIR###" "`wslpath -am $IDEA_OUTPUT`"
if [ "x$JT_HOME" = "x" ]; then
add_replacement "###JTREG_HOME###" ""
else
add_replacement "###JTREG_HOME###" "`wslpath -am $JT_HOME`"
add_replacement "###JTREG_HOME###" "`$PATHTOOL -am $JT_HOME`"
fi
else
add_replacement "###BUILD_DIR###" "$SPEC_DIR"
add_replacement "###JTREG_HOME###" "$JT_HOME"
add_replacement "###IMAGES_DIR###" "$SPEC_DIR/images/jdk"
add_replacement "###ROOT_DIR###" "$TOPLEVEL_DIR"
add_replacement "###IDEA_DIR###" "$IDEA_OUTPUT"
fi
SOURCE_PREFIX="<sourceFolder url=\"file://"
SOURCE_POSTFIX="\" isTestSource=\"false\" />"
for root in $MODULE_ROOTS; do
if [ "x$CYGPATH" != "x" ]; then
root=`$CYGPATH -am $root`
elif [ "x$WSL_DISTRO_NAME" != "x" ]; then
root=`wslpath -am $root`
fi
VM_CI="jdk.internal.vm.ci/share/classes"
VM_COMPILER="src/jdk.internal.vm.compiler/share/classes"
if test "${root#*$VM_CI}" != "$root" || test "${root#*$VM_COMPILER}" != "$root"; then
for subdir in "$root"/*; do
if [ -d "$subdir" ]; then
SOURCES=$SOURCES" $SOURCE_PREFIX""$subdir"/src"$SOURCE_POSTFIX"
fi
done
else
SOURCES=$SOURCES" $SOURCE_PREFIX""$root""$SOURCE_POSTFIX"
fi
MODULE_IMLS=""
TEST_MODULE_DEPENDENCIES=""
for module in $MODULE_NAMES; do
MODULE_IMLS="$MODULE_IMLS<module fileurl=\"file://\$PROJECT_DIR$/.idea/$module.iml\" filepath=\"\$PROJECT_DIR$/.idea/$module.iml\" /> "
TEST_MODULE_DEPENDENCIES="$TEST_MODULE_DEPENDENCIES<orderEntry type=\"module\" module-name=\"$module\" scope=\"TEST\" /> "
done
add_replacement "###SOURCE_ROOTS###" "$SOURCES"
add_replacement "###MODULE_IMLS###" "$MODULE_IMLS"
add_replacement "###TEST_MODULE_DEPENDENCIES###" "$TEST_MODULE_DEPENDENCIES"
replace_template_dir "$IDEA_OUTPUT"
### Compile the custom Logger
### Generate module project files
CLASSES=$IDEA_OUTPUT/classes
if [ "$VERBOSE" = true ] ; then
echo "Generating project modules:"
fi
(
DEFAULT_IFS="$IFS"
IFS='#'
for value in $MODULES; do
(
eval "$value"
if [ "$VERBOSE" = true ] ; then
echo " $module"
fi
MAIN_SOURCE_DIRS=""
CONTENT_ROOTS=""
IFS=' '
for dir in $moduleSrcDirs; do
case $dir in
"src/"*) MAIN_SOURCE_DIRS="$MAIN_SOURCE_DIRS <sourceFolder url=\"file://$MODULE_DIR/$dir\" isTestSource=\"false\" />" ;;
*"/support/gensrc/$module") ;; # Exclude generated sources to avoid module-info conflicts, see https://youtrack.jetbrains.com/issue/IDEA-185108
*) CONTENT_ROOTS="$CONTENT_ROOTS <content url=\"file://$MODULE_DIR/$dir\">\
<sourceFolder url=\"file://$MODULE_DIR/$dir\" isTestSource=\"false\" generated=\"true\" /></content>" ;;
esac
done
if [ "x$MAIN_SOURCE_DIRS" != "x" ] ; then
CONTENT_ROOTS="<content url=\"file://$MODULE_DIR/src/$module\">$MAIN_SOURCE_DIRS</content>$CONTENT_ROOTS"
fi
add_replacement "###MODULE_CONTENT_ROOTS###" "$CONTENT_ROOTS"
DEPENDENCIES=""
for dep in $moduleDependencies; do
case $MODULE_NAMES in # Exclude skipped modules from dependencies
*"$dep"*) DEPENDENCIES="$DEPENDENCIES<orderEntry type=\"module\" module-name=\"$dep\" /> "
esac
done
add_replacement "###DEPENDENCIES###" "$DEPENDENCIES"
cp "$IDEA_OUTPUT/module.iml" "$IDEA_OUTPUT/$module.iml"
IFS="$DEFAULT_IFS"
replace_template_file "$IDEA_OUTPUT/$module.iml"
)
done
)
rm "$IDEA_OUTPUT/module.iml"
if [ "x$ANT_HOME" = "x" ] ; then
# try some common locations
if [ -f "/usr/share/ant/lib/ant.jar" ] ; then
ANT_HOME="/usr/share/ant"
### Create shell script runner for Windows
if [ "x$PATHTOOL" != "x" ]; then
echo "@echo off" > "$IDEA_OUTPUT/bash.bat"
if [ "x$WSL_DISTRO_NAME" != "x" ] ; then
echo "wsl -d $WSL_DISTRO_NAME --cd \"%cd%\" -e %*" >> "$IDEA_OUTPUT/bash.bat"
else
try_ant=$(ls /opt/homebrew/Cellar/ant/*/libexec/lib/ant.jar 2> /dev/null | sort -r | head -n 1)
if [ "x$try_ant" != "x" ] ; then
ANT_HOME=$(cd $(dirname $try_ant)/.. && pwd)
else
try_ant=$(ls /usr/local/Cellar/ant/*/libexec/lib/ant.jar 2> /dev/null | sort -r | head -n 1)
if [ "x$try_ant" != "x" ] ; then
ANT_HOME=$(cd $(dirname $try_ant)/.. && pwd)
fi
fi
fi
else
if [ ! -f "$ANT_HOME/lib/ant.jar" ] ; then
echo "FATAL: ANT_HOME is incorrect. Try removing it and use autodetection, or fix the value" >&2; exit 1
echo "$WINENV_ROOT\bin\bash.exe -l -c \"cd %CD:\=/%/ && %*\"" >> "$IDEA_OUTPUT/bash.bat"
fi
fi
if [ "x$ANT_HOME" = "x" ] ; then
echo "FATAL: cannot find ant. Try setting ANT_HOME." >&2; exit 1
fi
CP=$ANT_HOME/lib/ant.jar
rm -rf $CLASSES; mkdir $CLASSES
# If we have a Windows boot JDK, we need a .exe suffix
if [ -e "$BOOT_JDK/bin/java.exe" ] ; then
JAVAC=javac.exe
else
JAVAC=javac
fi
# If we are on WSL, the boot JDK might be either Windows or Linux,
# and we need to use realpath instead of CYGPATH to make javac work on both.
# We need to handle this case first since CYGPATH might be set on WSL.
if [ "x$WSL_DISTRO_NAME" != "x" ]; then
JAVAC_SOURCE_FILE=`realpath --relative-to=./ $IDEA_OUTPUT/src/idea/IdeaLoggerWrapper.java`
JAVAC_SOURCE_PATH=`realpath --relative-to=./ $IDEA_OUTPUT/src`
JAVAC_CLASSES=`realpath --relative-to=./ $CLASSES`
ANT_TEMP=`mktemp -d -p ./`
cp $ANT_HOME/lib/ant.jar $ANT_TEMP/ant.jar
JAVAC_CP=$ANT_TEMP/ant.jar
elif [ "x$CYGPATH" != "x" ] ; then ## CYGPATH may be set in env.cfg
JAVAC_SOURCE_FILE=`$CYGPATH -am $IDEA_OUTPUT/src/idea/IdeaLoggerWrapper.java`
JAVAC_SOURCE_PATH=`$CYGPATH -am $IDEA_OUTPUT/src`
JAVAC_CLASSES=`$CYGPATH -am $CLASSES`
JAVAC_CP=`$CYGPATH -am $CP`
else
JAVAC_SOURCE_FILE=$IDEA_OUTPUT/src/idea/IdeaLoggerWrapper.java
JAVAC_SOURCE_PATH=$IDEA_OUTPUT/src
JAVAC_CLASSES=$CLASSES
JAVAC_CP=$CP
fi
$BOOT_JDK/bin/$JAVAC -d $JAVAC_CLASSES -sourcepath $JAVAC_SOURCE_PATH -cp $JAVAC_CP $JAVAC_SOURCE_FILE
if [ "x$WSL_DISTRO_NAME" != "x" ]; then
rm -rf $ANT_TEMP
if [ "$VERBOSE" = true ] ; then
IDEA_PROJECT_DIR="`dirname $IDEA_OUTPUT`"
if [ "x$PATHTOOL" != "x" ]; then
IDEA_PROJECT_DIR="`$PATHTOOL -am $IDEA_PROJECT_DIR`"
fi
echo "
Now you can open \"$IDEA_PROJECT_DIR\" as IDEA project
You can also run 'bash \"$IDEA_OUTPUT/jdk-clion/update-project.sh\"' to generate Clion project"
fi

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

0
configure vendored Normal file → Executable file
View File

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"
@@ -1087,7 +1089,7 @@ home, i.e. the top directory, containing <code>lib/jtreg.jar</code>
etc.</p>
<p>The <a href="https://wiki.openjdk.org/display/Adoption">Adoption
Group</a> provides recent builds of jtreg <a
href="https://ci.adoptopenjdk.net/view/Dependencies/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/">here</a>.
href="https://ci.adoptium.net/view/Dependencies/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/">here</a>.
Download the latest <code>.tar.gz</code> file, unpack it, and point
<code>--with-jtreg</code> to the <code>jtreg</code> directory that you
just unpacked.</p>
@@ -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

@@ -860,7 +860,7 @@ containing `lib/jtreg.jar` etc.
The [Adoption Group](https://wiki.openjdk.org/display/Adoption) provides
recent builds of jtreg [here](
https://ci.adoptopenjdk.net/view/Dependencies/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/).
https://ci.adoptium.net/view/Dependencies/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/).
Download the latest `.tar.gz` file, unpack it, and point `--with-jtreg` to the
`jtreg` directory that you just unpacked.
@@ -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

@@ -82,6 +82,7 @@ id="toc-uniform-initialization">Uniform Initialization</a></li>
id="toc-local-function-objects">Local Function Objects</a></li>
<li><a href="#inheriting-constructors"
id="toc-inheriting-constructors">Inheriting constructors</a></li>
<li><a href="#attributes" id="toc-attributes">Attributes</a></li>
<li><a href="#additional-permitted-features"
id="toc-additional-permitted-features">Additional Permitted
Features</a></li>
@@ -597,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
@@ -1057,9 +1065,36 @@ using C++17 or later. It is also enabled by default for
C++11/14, as the change is considered a Defect Report that applies to
those versions. Earlier versions of gcc don't have that option, and
other supported compilers may not have anything similar.</p>
<h3 id="attributes">Attributes</h3>
<p>The use of some attributes (<a
href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2761.pdf">n2761</a>)
(listed below) is permitted. (Note that some of the attributes defined
in that paper didn't make it into the final specification.)</p>
<p>Attributes are syntactically permitted in a broad set of locations,
but specific attributes are only permitted in a subset of those
locations. In some cases an attribute that appertains to a given element
may be placed in any of several locations with the same meaning. In
those cases HotSpot has a preferred location.</p>
<ul>
<li>An attribute that appertains to a function is placed at the
beginning of the function's declaration, rather than between the
function name and the parameter list.</li>
</ul>
<p>Only the following attributes are permitted:</p>
<ul>
<li><code>[[noreturn]]</code></li>
</ul>
<p>The following attributes are expressly forbidden:</p>
<ul>
<li><code>[[carries_dependency]]</code> - Related to
<code>memory_order_consume</code>.</li>
<li><code>[[deprecated]]</code> - Not relevant in HotSpot code.</li>
</ul>
<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
@@ -1149,9 +1184,6 @@ initialization or destruction. Initialization order problems can be
difficult to deal with and lead to surprises, as can destruction
ordering. HotSpot doesn't generally try to cleanup on exit, and running
destructors at exit can also lead to problems.</p></li>
<li><p><code>[[deprecated]]</code> attribute (<a
href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3760.html">n3760</a>)
— Not relevant in HotSpot code.</p></li>
<li><p>Avoid most operator overloading, preferring named functions. When
operator overloading is used, ensure the semantics conform to the normal
expected behavior of the operation.</p></li>
@@ -1171,8 +1203,6 @@ href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2541.htm">n2541</
href="https://isocpp.org/files/papers/N3651.pdf">n3651</a>)</p></li>
<li><p>Member initializers and aggregates (<a
href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3653.html">n3653</a>)</p></li>
<li><p><code>[[noreturn]]</code> attribute (<a
href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2761.pdf">n2761</a>)</p></li>
<li><p>Rvalue references and move semantics</p></li>
</ul>
</body>

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
@@ -1054,8 +1058,37 @@ and other supported compilers may not have anything similar.
[p0136r1]: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0136r1.html
"p0136r1"
### Attributes
The use of some attributes
([n2761](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2761.pdf))
(listed below) is permitted. (Note that some of the attributes defined in
that paper didn't make it into the final specification.)
Attributes are syntactically permitted in a broad set of locations, but
specific attributes are only permitted in a subset of those locations. In
some cases an attribute that appertains to a given element may be placed in
any of several locations with the same meaning. In those cases HotSpot has a
preferred location.
* An attribute that appertains to a function is placed at the beginning of the
function's declaration, rather than between the function name and the parameter
list.
Only the following attributes are permitted:
* `[[noreturn]]`
The following attributes are expressly forbidden:
* `[[carries_dependency]]` - Related to `memory_order_consume`.
* `[[deprecated]]` - Not relevant in HotSpot code.
### 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))
@@ -1153,10 +1186,6 @@ difficult to deal with and lead to surprises, as can destruction
ordering. HotSpot doesn't generally try to cleanup on exit, and
running destructors at exit can also lead to problems.
* `[[deprecated]]` attribute
([n3760](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3760.html)) &mdash;
Not relevant in HotSpot code.
* Avoid most operator overloading, preferring named functions. When
operator overloading is used, ensure the semantics conform to the
normal expected behavior of the operation.
@@ -1181,9 +1210,6 @@ features that have not yet been discussed.
* Member initializers and aggregates
([n3653](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3653.html))
* `[[noreturn]]` attribute
([n2761](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2761.pdf))
* Rvalue references and move semantics
[ADL]: https://en.cppreference.com/w/cpp/language/adl

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

@@ -578,12 +578,13 @@ directories.</p>
<p>For more notes about the PKCS11 tests, please refer to
test/jdk/sun/security/pkcs11/README.</p>
<h3 id="client-ui-tests">Client UI Tests</h3>
<h4 id="system-key-shortcuts">System key shortcuts</h4>
<p>Some Client UI tests use key sequences which may be reserved by the
operating system. Usually that causes the test failure. So it is highly
recommended to disable system key shortcuts prior testing. The steps to
access and disable system key shortcuts for various platforms are
provided below.</p>
<h4 id="macos">MacOS</h4>
<h5 id="macos">macOS</h5>
<p>Choose Apple menu; System Preferences, click Keyboard, then click
Shortcuts; select or deselect desired shortcut.</p>
<p>For example,
@@ -594,17 +595,41 @@ operating system. To run the test correctly the default global key
shortcut should be disabled using the steps described above, and then
deselect "Turn keyboard access on or off" option which is responsible
for <code>CTRL + F1</code> combination.</p>
<h4 id="linux">Linux</h4>
<h5 id="linux">Linux</h5>
<p>Open the Activities overview and start typing Settings; Choose
Settings, click Devices, then click Keyboard; set or override desired
shortcut.</p>
<h4 id="windows">Windows</h4>
<h5 id="windows">Windows</h5>
<p>Type <code>gpedit</code> in the Search and then click Edit group
policy; navigate to User Configuration -&gt; Administrative Templates
-&gt; Windows Components -&gt; File Explorer; in the right-side pane
look for "Turn off Windows key hotkeys" and double click on it; enable
or disable hotkeys.</p>
<p>Note: restart is required to make the settings take effect.</p>
<h4 id="robot-api">Robot API</h4>
<p>Most automated Client UI tests use <code>Robot</code> API to control
the UI. Usually, the default operating system settings need to be
adjusted for Robot to work correctly. The detailed steps how to access
and update these settings for different platforms are provided
below.</p>
<h5 id="macos-1">macOS</h5>
<p><code>Robot</code> is not permitted to control your Mac by default
since macOS 10.15. To allow it, choose Apple menu -&gt; System Settings,
click Privacy &amp; Security; then click Accessibility and ensure the
following apps are allowed to control your computer: <em>Java</em> and
<em>Terminal</em>. If the tests are run from an IDE, the IDE should be
granted this permission too.</p>
<h5 id="windows-1">Windows</h5>
<p>On Windows if Cygwin terminal is used to run the tests, there is a
delay in focus transfer. Usually it causes automated UI test failure. To
disable the delay, type <code>regedit</code> in the Search and then
select Registry Editor; navigate to the following key:
<code>HKEY_CURRENT_USER\Control Panel\Desktop</code>; make sure the
<code>ForegroundLockTimeout</code> value is set to 0.</p>
<p>Additional information about Client UI tests configuration for
various operating systems can be obtained at <a
href="https://wiki.openjdk.org/display/ClientLibs/Automated+client+GUI+testing+system+set+up+requirements">Automated
client GUI testing system set up requirements</a></p>
<h2 id="editing-this-document">Editing this document</h2>
<p>If you want to contribute changes to this document, edit
<code>doc/testing.md</code> and then run

View File

@@ -606,12 +606,14 @@ test/jdk/sun/security/pkcs11/README.
### Client UI Tests
#### System key shortcuts
Some Client UI tests use key sequences which may be reserved by the operating
system. Usually that causes the test failure. So it is highly recommended to
disable system key shortcuts prior testing. The steps to access and disable
system key shortcuts for various platforms are provided below.
#### MacOS
##### macOS
Choose Apple menu; System Preferences, click Keyboard, then click Shortcuts;
select or deselect desired shortcut.
@@ -624,12 +626,12 @@ test correctly the default global key shortcut should be disabled using the
steps described above, and then deselect "Turn keyboard access on or off"
option which is responsible for `CTRL + F1` combination.
#### Linux
##### Linux
Open the Activities overview and start typing Settings; Choose Settings, click
Devices, then click Keyboard; set or override desired shortcut.
#### Windows
##### Windows
Type `gpedit` in the Search and then click Edit group policy; navigate to User
Configuration -> Administrative Templates -> Windows Components -> File
@@ -638,6 +640,33 @@ double click on it; enable or disable hotkeys.
Note: restart is required to make the settings take effect.
#### Robot API
Most automated Client UI tests use `Robot` API to control the UI. Usually,
the default operating system settings need to be adjusted for Robot
to work correctly. The detailed steps how to access and update these settings
for different platforms are provided below.
##### macOS
`Robot` is not permitted to control your Mac by default since
macOS 10.15. To allow it, choose Apple menu -> System Settings, click
Privacy & Security; then click Accessibility and ensure the following apps are
allowed to control your computer: *Java* and *Terminal*. If the tests are run
from an IDE, the IDE should be granted this permission too.
##### Windows
On Windows if Cygwin terminal is used to run the tests, there is a delay in
focus transfer. Usually it causes automated UI test failure. To disable the
delay, type `regedit` in the Search and then select Registry Editor; navigate
to the following key: `HKEY_CURRENT_USER\Control Panel\Desktop`; make sure
the `ForegroundLockTimeout` value is set to 0.
Additional information about Client UI tests configuration for various operating
systems can be obtained at [Automated client GUI testing system set up
requirements](https://wiki.openjdk.org/display/ClientLibs/Automated+client+GUI+testing+system+set+up+requirements)
## Editing this document
If you want to contribute changes to this document, edit `doc/testing.md` and

274
jb/branchdiff.py Executable file
View File

@@ -0,0 +1,274 @@
#!/usr/bin/env python3
import argparse
import os.path
import sys
import subprocess
errors_count = 0
def fatal(msg):
sys.stderr.write(f"[fatal] {msg}\n")
sys.exit(1)
def error(msg):
global errors_count
errors_count += 1
sys.stderr.write(f"[error] {msg}\n")
def verbose(options, *msg):
if options.verbose:
sys.stderr.write(f"[verbose] ")
sys.stderr.write(*msg)
sys.stderr.write('\n')
def first_line(str):
return "" if not str else str.splitlines()[0]
class Options:
def __init__(self):
ap = argparse.ArgumentParser(description="Show commit differences between branches of JBR git repos",
epilog="Example: %(prog)s --from origin/jbr17 --to jbr17.b469 --path "
"src/hotspot --limit 200")
ap.add_argument('--jbr', dest='jbrpath', help='path to JBR git root', required=True)
ap.add_argument('--from', dest='frombranch', help='branch to take commits from', required=True)
ap.add_argument('--to', dest='tobranch', help='branch to apply new commits to', required=True)
ap.add_argument('--path', dest='path', help='limit to changes in this path (relative to git root)')
ap.add_argument('--limit', dest='limit', help='limit to this many log entries in --jdk repo', type=int,
default=-1)
ap.add_argument('--html', dest="ishtml", help="print out HTML rather than plain text", action='store_true')
ap.add_argument('-o', dest="output", help="print the list of missing commits to this file"
" to be used as exclude list later")
ap.add_argument('--exclude', dest='exclude', help='exclude commits listed in the given file '
'(can use edited -o output file as input here)')
ap.add_argument('-v', dest='verbose', help="verbose output", default=False, action='store_true')
args = ap.parse_args()
if not os.path.isdir(args.jbrpath):
fatal(f"{args.jbrpath} not a directory")
if not git_is_available():
fatal("can't run git commands; make sure git is in PATH")
self.frombranch = args.frombranch
self.tobranch = args.tobranch
self.jbrpath = args.jbrpath
self.path = args.path
self.limit = args.limit
self.exclude = args.exclude
self.output = args.output
self.ishtml = args.ishtml
self.verbose = args.verbose
class GitRepo:
def __init__(self, rootpath):
self.rootpath = rootpath
def run_git_cmd(self, git_args):
args = ["git", "-C", self.rootpath]
args.extend(git_args)
# print(f"Runnig git cmd '{' '.join(args)}'")
p = subprocess.run(args, capture_output=True, text=True)
if p.returncode != 0:
fatal(f"git returned non-zero code in {self.rootpath} ({first_line(p.stderr)})")
return p.stdout
def save_git_cmd(self, fname, git_args):
args = ["git", "-C", self.rootpath]
args.extend(git_args)
# print(f"Runnig git cmd '{' '.join(args)}'")
with open(fname, "w") as stdout_file:
p = subprocess.run(args, stdout=stdout_file)
if p.returncode != 0:
fatal(f"git returned non-zero code in {self.rootpath} ({first_line(p.stderr)})")
def current_branch(self):
branch_name = self.run_git_cmd(["branch", "--show-current"]).strip()
return branch_name
def log(self, branch, path=None, limit=None):
cmds = ["log", "--no-decorate", branch]
if limit:
cmds.extend(["-n", str(limit)])
if path:
cmds.append(path)
full_log = self.run_git_cmd(cmds)
return full_log
class Commit:
def __init__(self, lines):
self.sha = lines[0].split()[1]
self.message = ""
self.fullmessage = ""
self.bugid = ""
# Commit message starts after one blank line
read_message = False
for l in lines:
if read_message:
self.fullmessage += l.strip() + "\n"
if not read_message and l == "":
read_message = True
if len(self.fullmessage) > 0:
self.message = first_line(self.fullmessage).strip()
t = self.message.split(' ')
if len(t) > 1:
bugid = t[0]
if bugid.startswith("fixup"):
bugid = t[1]
bugid = bugid.strip(":")
if bugid.startswith("JBR-") or bugid.isnumeric():
self.bugid = bugid
class History:
def __init__(self, log):
log_itr = iter(log.splitlines())
self.commits = []
self.unique_fullmessages = set()
self.duplicates = set()
commit_lines = []
for line in log_itr:
if line.startswith("commit ") and len(commit_lines) > 0:
commit = Commit(commit_lines)
self.add_commit(commit)
commit_lines = []
commit_lines.append(line)
if len(commit_lines) > 0:
commit = Commit(commit_lines)
self.add_commit(commit)
def add_commit(self, commit):
self.commits.append(commit)
if commit.fullmessage in self.unique_fullmessages:
self.duplicates.add(commit.fullmessage)
else:
self.unique_fullmessages.add(commit.fullmessage)
def appears_more_than_once(self, commit):
return commit.fullmessage in self.duplicates
def contains(self, commit):
return commit.fullmessage in self.unique_fullmessages
def size(self):
return len(self.commits)
def print_explanation(options, jbr):
verbose(options, f"Reading history from '{jbr.rootpath}'")
if options.path:
verbose(options, f"\t(only under '{options.path}')")
if options.limit > 0:
verbose(options, f"\t(up to '{options.limit}' commits)")
verbose(options, f"Searching for missing fixes in '{options.tobranch}' compared with '{options.frombranch}'")
def git_is_available():
p = None
try:
p = subprocess.run(["git", "--help"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except:
pass
return p is not None and p.returncode == 0
def main():
check_python_min_requirements()
options = Options()
jbr = GitRepo(options.jbrpath)
print_explanation(options, jbr)
commits_to_save = []
try:
log_from = jbr.log(options.frombranch, options.path, options.limit)
log_to = jbr.log(options.tobranch, options.path, options.limit)
history_from = History(log_from)
history_to = History(log_to)
verbose(options,
f"Read {history_from.size()} commits from '{options.frombranch}', {history_to.size()} from {options.tobranch}")
exclude_list = []
if options.exclude:
with open(options.exclude, "r") as exclude_file:
l = exclude_file.read().split('\n')
exclude_list = list(filter(lambda line: not line.startswith("#"), l))
warned = set()
for c in history_from.commits:
if c.message:
verbose(options, f"Looking for commit '{c.message}'")
if c.message in exclude_list:
verbose(options, "...nope, in exclude list")
continue
if not history_to.contains(c):
commits_to_save.append(c)
else:
if history_from.appears_more_than_once(c) and c.fullmessage not in warned:
# Not sure which of those seemingly identical commits are present in the target branch
error(f"Commit '{c.message}' appears more than once in branch '{options.frombranch}'. ")
warned.add(c.fullmessage)
except KeyboardInterrupt:
fatal("Interrupted")
print_out_commits(options, commits_to_save)
save_commits_to_file(commits_to_save, options)
if errors_count > 0:
error(f"{errors_count} error(s) generated to stderr. MANUAL CHECK OF COMMITS IS REQUIRED.")
def save_commits_to_file(commits_to_save, options):
if len(commits_to_save) > 0 and options.output:
print()
with open(options.output, "w") as out:
for i, c in enumerate(reversed(commits_to_save)):
print(f"# {c.sha}", file=out)
print(c.message, file=out)
def print_out_commits(options, commits_to_save):
if options.ishtml:
print("<html><body>")
print(f"<p><b>Commits on <code>{options.frombranch}</code>"
f" missing from <code>{options.tobranch}</code></b></p></h1>")
if len(commits_to_save) > 0:
for c in sorted(commits_to_save, key=lambda commit: commit.bugid):
if options.ishtml:
msg = c.message
bugurl = ""
if c.bugid:
if c.bugid.isnumeric():
bugurl = f"https://bugs.openjdk.org/browse/JDK-{c.bugid}"
elif c.bugid.startswith("JBR-"):
bugurl = f"https://youtrack.jetbrains.com/issue/{c.bugid}"
if len(bugurl) > 0:
msg = msg.replace(c.bugid, f"<a href='{bugurl}'>{c.bugid}</a>")
sha = f"<a href='https://jetbrains.team/p/jbre/repositories/jbr/commits?commits={c.sha}'>" \
f"{c.sha[0:8]}</a>"
print(f"<li>{msg} ({sha})</li>")
else:
print(f"{c.message} ({c.sha[0:8]})")
if options.ishtml:
print("</body></html>")
def check_python_min_requirements():
if sys.version_info < (3, 6):
fatal("Minimum version 3.6 is required to run this script")
if __name__ == '__main__':
main()

230
jb/jdkdiff.py Executable file
View File

@@ -0,0 +1,230 @@
#!/usr/bin/env python3
import argparse
import math
import os.path
import sys
import subprocess
def fatal(msg):
sys.stderr.write(f"[fatal] {msg}\n")
sys.exit(1)
def verbose(options, *msg):
if options.verbose:
sys.stdout.write(f"[verbose] ")
sys.stdout.write(*msg)
sys.stdout.write('\n')
def first_line(str):
return "" if not str else str.splitlines()[0]
class Options:
def __init__(self):
ap = argparse.ArgumentParser(description="Show bugfixes differences between JBR and OpenJDK git repos",
epilog="Example: %(prog)s --jdk ./jdk11u/ --jbr ./JetBrainsRuntime/ --path src/hotspot --limit 200")
ap.add_argument('--jdk', dest='jdkpath', help='path to OpenJDK git repo', required=True)
ap.add_argument('--jbr', dest='jbrpath', help='path to JBR git repo', required=True)
ap.add_argument('--path', dest='path', help='limit to changes in this path (relative to git root)')
ap.add_argument('--limit', dest='limit', help='limit to this many log entries in --jdk repo', type=int, default=-1)
ap.add_argument('-o', dest="output_dir", help="save patches to this directory (created if necessary)")
ap.add_argument('-v', dest='verbose', help="verbose output", default=False, action='store_true')
args = ap.parse_args()
if not os.path.isdir(args.jdkpath):
fatal(f"{args.jdkpath} not a directory")
if not os.path.isdir(args.jbrpath):
fatal(f"{args.jbrpath} not a directory")
if not git_is_available():
fatal("can't run git commands; make sure git is in PATH")
self.jdkpath = args.jdkpath
self.jbrpath = args.jbrpath
self.path = args.path
self.limit = args.limit
self.output_dir = args.output_dir
self.verbose = args.verbose
class GitRepo:
def __init__(self, rootpath):
self.rootpath = rootpath
def run_git_cmd(self, git_args):
args = ["git", "-C", self.rootpath]
args.extend(git_args)
# print(f"Runnig git cmd '{' '.join(args)}'")
p = subprocess.run(args, capture_output=True, text=True)
if p.returncode != 0:
fatal(f"git returned non-zero code in {self.rootpath} ({first_line(p.stderr)})")
return p.stdout
def save_git_cmd(self, fname, git_args):
args = ["git", "-C", self.rootpath]
args.extend(git_args)
# print(f"Runnig git cmd '{' '.join(args)}'")
with open(fname, "w") as stdout_file:
p = subprocess.run(args, stdout=stdout_file)
if p.returncode != 0:
fatal(f"git returned non-zero code in {self.rootpath} ({first_line(p.stderr)})")
def current_branch(self):
branch_name = self.run_git_cmd(["branch", "--show-current"]).strip()
return branch_name
def log(self, path=None, limit=None):
cmds = ["log", "--no-decorate"]
if limit:
cmds.extend(["-n", str(limit)])
if path:
cmds.append(path)
full_log = self.run_git_cmd(cmds)
return full_log
class Commit:
def __init__(self, lines):
self.sha = lines[0].split()[1]
self.message = ""
self.bugid = None
# Commit message starts after one blank line
read_message = False
for l in lines:
if read_message:
self.message += l + "\n"
if not read_message and l == "":
read_message = True
if self.message and self.message != "" and ":" in self.message:
maybe_bugid = self.message.split(":")[0].strip()
if 10 >= len(maybe_bugid) >= 4:
self.bugid = maybe_bugid
class History:
def __init__(self, log):
log_itr = iter(log.splitlines())
self.commits = []
commit_lines = []
for line in log_itr:
if line.startswith("commit ") and len(commit_lines) > 0:
commit = Commit(commit_lines)
self.commits.append(commit)
commit_lines = []
commit_lines.append(line)
if len(commit_lines) > 0:
commit = Commit(commit_lines)
self.commits.append(commit)
def contains(self, str):
return any(str in commit.message for commit in self.commits)
def size(self):
return len(self.commits)
def print_explanation(options, jdk, jbr):
verbose(options, f"Reading history from '{jdk.rootpath}' on branch '{jdk.current_branch()}'")
if options.path:
verbose(options, f"\t(only under '{options.path}')")
verbose(options, f"Searching for same fixes in '{jbr.rootpath}' on branch '{jbr.current_branch()}'")
def git_is_available():
p = None
try:
p = subprocess.run(["git", "--help"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except:
pass
return p is not None and p.returncode == 0
def main():
check_python_min_requirements()
options = Options()
jdk = GitRepo(options.jdkpath)
jbr = GitRepo(options.jbrpath)
print_explanation(options, jdk, jbr)
commits_to_save = []
try:
jdk_log = jdk.log(options.path, options.limit)
jdk_history = History(jdk_log)
jbr_log = jbr.log(options.path)
jbr_history = History(jbr_log)
verbose(options, f"Read {jdk_history.size()} commits in JDK, {jbr_history.size()} in JBR")
for c in jdk_history.commits:
if c.bugid:
verbose(options, f"Looking for bugfix for {c.bugid}")
if not jbr_history.contains(c.bugid):
commits_to_save.append(c)
print(f"[note] Fix for {c.bugid} not found in JBR ({jbr.rootpath})")
print(f" commit {c.sha}")
print(f" {first_line(c.message).strip()}")
except KeyboardInterrupt:
fatal("Interrupted")
if len(commits_to_save) > 0 and options.output_dir:
print()
if not os.path.exists(options.output_dir):
verbose(options, f"Creating output directory {options.output_dir}")
os.makedirs(options.output_dir)
nzeroes = len(str(len(commits_to_save)))
for i, c in enumerate(reversed(commits_to_save)):
fname = os.path.join(options.output_dir, f"{str(i).zfill(nzeroes)}-{c.bugid}.patch")
print(f"[note] {c.bugid} saved as {fname}")
fname = os.path.abspath(fname)
jdk.save_git_cmd(fname, ["format-patch", "-1", c.sha, "--stdout"])
script_fname = os.path.join(options.output_dir, "apply.sh")
with open(script_fname, "w") as script_file:
print(apply_script_code.format(os.path.abspath(jbr.rootpath), os.path.abspath(options.output_dir)),
file=script_file)
print(f"[note] Execute 'bash {script_fname}' to apply patches to {jbr.rootpath}")
def check_python_min_requirements():
if sys.version_info < (3, 6):
fatal("Minimum version 3.6 is required to run this script")
apply_script_code = """
#!/bin/bash
GITROOT={0}
PATCHROOT={1}
cd $PATCHROOT || exit 1
PATCHES=$(find $PATCHROOT -name '*.patch' | sort -n)
for P in $PATCHES; do
git -C $GITROOT am $P
if [ $? != 0 ]; then
mv "$P" "$P.failed"
echo "[ERROR] Patch $P did not apply cleanly. Try applying it manually."
echo "[NOTE] Execute this script to apply the remaining patches."
exit 1
else
mv "$P" "$P.done"
fi
done
echo "[NOTE] Done applying patches; check $PATCHROOT for .patch and .patch.failed to see if all have been applied."
"""
if __name__ == '__main__':
main()

View File

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

View File

@@ -0,0 +1,48 @@
# NOTE: This Dockerfile is meant to be used from the mkdocker_aarch64.sh script.
# Pull a concrete version of Linux that does NOT recieve updates after it's
# been created. This is so that the image is as stable as possible to make
# image creation reproducible.
# NB: this also means there may be no security-related fixes there, need to
# move the version to the next manually.
FROM arm64v8/ubuntu:focal-20211006
# Install the necessary build tools
RUN export DEBIAN_FRONTEND=noninteractive \
export DEBCONF_NONINTERACTIVE_SEEN=true && \
echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections; \
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections; \
apt-get update -qy && \
apt-get install -qy \
autoconf \
build-essential \
bzip2 \
file \
g++-10=10.3.0-1ubuntu1~20.04 \
gcc-10=10.3.0-1ubuntu1~20.04 \
git \
libasound2-dev \
libcups2-dev \
libfontconfig1-dev \
libx11-dev \
libxext-dev \
libxrandr-dev \
libxrender-dev \
libxt-dev \
libxtst-dev \
make \
rsync \
tar \
unzip \
zip && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 && \
apt-get clean -qy && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Set up boot JDK for building
COPY boot_jdk.tar.gz /jdk17/
RUN cd /jdk17 && tar --strip-components=1 -xzf boot_jdk.tar.gz && rm /jdk17/boot_jdk.tar.gz
ENV BOOT_JDK=/jdk17
RUN git config --global user.email "teamcity@jetbrains.com" && \
git config --global user.name "builduser"

View File

@@ -0,0 +1,22 @@
# NOTE: This Dockerfile is meant to be used from the mkdocker_musl_aarch64.sh script.
# Pull a concrete version of Linux that does NOT recieve updates after it's
# been created. This is so that the image is as stable as possible to make
# image creation reproducible.
# NB: this also means there may be no security-related fixes there, need to
# move the version to the next manually.
FROM arm64v8/alpine:3.12
# Install the necessary build tools
RUN apk --no-cache add --update bash grep tar zip bzip2 rsync fontconfig build-base \
git libx11-dev libxext-dev libxrandr-dev libxrender-dev libxt-dev \
libxtst-dev autoconf freetype-dev cups-dev alsa-lib-dev file \
fontconfig fontconfig-dev linux-headers
# Set up boot JDK for building
COPY boot_jdk_musl_aarch64.tar.gz /jdk17/
RUN cd /jdk17 && tar --strip-components=1 -xzf boot_jdk_musl_aarch64.tar.gz && rm /jdk17/boot_jdk_musl_aarch64.tar.gz
ENV BOOT_JDK=/jdk17
RUN git config --global user.email "teamcity@jetbrains.com" && \
git config --global user.name "builduser"

View File

@@ -0,0 +1,22 @@
# NOTE: This Dockerfile is meant to be used from the mkdocker_musl_x64.sh script.
# Pull a concrete version of Linux that does NOT recieve updates after it's
# been created. This is so that the image is as stable as possible to make
# image creation reproducible.
# NB: this also means there may be no security-related fixes there, need to
# move the version to the next manually.
FROM alpine:3.14
# Install the necessary build tools
RUN apk --no-cache add --update bash grep tar zip bzip2 rsync fontconfig build-base \
git libx11-dev libxext-dev libxrandr-dev libxrender-dev libxt-dev \
libxtst-dev autoconf freetype-dev cups-dev alsa-lib-dev file \
fontconfig fontconfig-dev linux-headers
# Set up boot JDK for building
COPY boot_jdk_musl_amd64.tar.gz /jdk17/
RUN cd /jdk17 && tar --strip-components=1 -xzf boot_jdk_musl_amd64.tar.gz && rm /jdk17/boot_jdk_musl_amd64.tar.gz
ENV BOOT_JDK=/jdk17
RUN git config --global user.email "teamcity@jetbrains.com" && \
git config --global user.name "builduser"

View File

@@ -0,0 +1,55 @@
# NOTE: This Dockerfile is meant to be used from the mkdocker_x86.sh script.
# Pull a concrete version of Linux that does NOT receive updates after it's
# been created. This is so that the image is as stable as possible to make
# image creation reproducible.
# NB: this also means there may be no security-related fixes there, need to
# move the version to the next manually.
#FROM i386/ubuntu:xenial
#FROM i386/ubuntu:bionic
FROM i386/ubuntu:focal
RUN linux32 \
apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN export DEBIAN_FRONTEND=noninteractive \
export DEBCONF_NONINTERACTIVE_SEEN=true && \
echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections; \
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections; \
linux32 \
apt-get -y install \
autoconf \
build-essential \
curl \
file \
git \
libx11-dev \
libxext-dev \
libxrender-dev \
libxrandr-dev \
libxtst-dev \
libxt-dev \
libcups2-dev \
libasound2-data \
# libpng12-0 \
libasound2 \
libfreetype6 \
libfontconfig1-dev \
libasound2-dev \
rsync \
unzip \
zip
RUN linux32 \
apt-get -y install \
g++-10 \
gcc-10 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 && \
apt-get clean -qy && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Set up boot JDK for building
COPY boot_jdk_x86.tar.gz /jdk17/
RUN cd /jdk17 && tar --strip-components=1 -xzf boot_jdk_x86.tar.gz && rm /jdk17/boot_jdk_x86.tar.gz
ENV BOOT_JDK=/jdk17
RUN git config --global user.email "teamcity@jetbrains.com" && \
git config --global user.name "builduser"

View File

@@ -0,0 +1,29 @@
#!/bin/bash
set -euo pipefail
set -x
# This script creates a Docker image suitable for building AArch64 variant
# of the JetBrains Runtime "dev" version.
BOOT_JDK_REMOTE_FILE=zulu17.30.15-ca-jdk17.0.1-linux_aarch64.tar.gz
BOOT_JDK_SHA=4d9c9116eb0cdd2d7fb220d6d27059f4bf1b7e95cc93d5512bd8ce3791af86c7
BOOT_JDK_LOCAL_FILE=boot_jdk.tar.gz
if [ ! -f $BOOT_JDK_LOCAL_FILE ]; then
# Obtain "boot JDK" from outside of the container.
wget -nc https://cdn.azul.com/zulu/bin/${BOOT_JDK_REMOTE_FILE} -O $BOOT_JDK_LOCAL_FILE
else
echo "boot JDK \"$BOOT_JDK_LOCAL_FILE\" present, skipping download"
fi
# Verify that what we've downloaded can be trusted.
sha256sum -c - <<EOF
$BOOT_JDK_SHA *$BOOT_JDK_LOCAL_FILE
EOF
docker build -t jbrdevenv_arm64v8 -f Dockerfile.aarch64 .
# NB: the resulting container can (and should) be used without the network
# connection (--network none) during build in order to reduce the chance
# of build contamination.

View File

@@ -0,0 +1,29 @@
#!/bin/bash
set -euo pipefail
set -x
# This script creates a Docker image suitable for building musl AArch64 variant
# of the JetBrains Runtime version 17.
BOOT_JDK_REMOTE_FILE=zulu17.32.13-ca-jdk17.0.2-linux_musl_aarch64.tar.gz
BOOT_JDK_SHA=6b920559abafbe9bdef386a20ecf3a2f318bc1f0d8359eb1f95aee26606bbc70
BOOT_JDK_LOCAL_FILE=boot_jdk_musl_aarch64.tar.gz
if [ ! -f $BOOT_JDK_LOCAL_FILE ]; then
# Obtain "boot JDK" from outside of the container.
wget -nc https://cdn.azul.com/zulu/bin/${BOOT_JDK_REMOTE_FILE} -O $BOOT_JDK_LOCAL_FILE
else
echo "boot JDK \"$BOOT_JDK_LOCAL_FILE\" present, skipping download"
fi
# Verify that what we've downloaded can be trusted.
sha256sum -c - <<EOF
$BOOT_JDK_SHA *$BOOT_JDK_LOCAL_FILE
EOF
docker build -t jbr17buildenv -f Dockerfile.musl_aarch64 .
# NB: the resulting container can (and should) be used without the network
# connection (--network none) during build in order to reduce the chance
# of build contamination.

View File

@@ -0,0 +1,29 @@
#!/bin/bash
set -euo pipefail
set -x
# This script creates a Docker image suitable for building musl-x64 variant
# of the JetBrains Runtime version 17.
BOOT_JDK_REMOTE_FILE=zulu17.32.13-ca-jdk17.0.2-linux_musl_x64.tar.gz
BOOT_JDK_SHA=bcc5342011bd9f3643372aadbdfa68d47463ff0d8621668a0bdf2910614d95c6
BOOT_JDK_LOCAL_FILE=boot_jdk_musl_amd64.tar.gz
if [ ! -f $BOOT_JDK_LOCAL_FILE ]; then
# Obtain "boot JDK" from outside of the container.
wget -nc https://cdn.azul.com/zulu/bin/${BOOT_JDK_REMOTE_FILE} -O $BOOT_JDK_LOCAL_FILE
else
echo "boot JDK \"$BOOT_JDK_LOCAL_FILE\" present, skipping download"
fi
# Verify that what we've downloaded can be trusted.
sha256sum -c - <<EOF
$BOOT_JDK_SHA *$BOOT_JDK_LOCAL_FILE
EOF
docker build -t jbr17buildenv -f Dockerfile.musl_x64 .
# NB: the resulting container can (and should) be used without the network
# connection (--network none) during build in order to reduce the chance
# of build contamination.

View File

@@ -0,0 +1,26 @@
#!/bin/bash -x
# This script creates a Docker image suitable for building x86 variant
# of the JetBrains Runtime version 17.
BOOT_JDK_REMOTE_FILE=zulu17.34.19-ca-jdk17.0.3-linux_i686.tar.gz
BOOT_JDK_SHA=1c35c374ba0001e675d6e80819d5be900c4e141636d5e484992a8c550be14481
BOOT_JDK_LOCAL_FILE=boot_jdk_x86.tar.gz
if [ ! -f $BOOT_JDK_LOCAL_FILE ]; then
# Obtain "boot JDK" from outside of the container.
wget -nc https://cdn.azul.com/zulu/bin/${BOOT_JDK_REMOTE_FILE} -O $BOOT_JDK_LOCAL_FILE
else
echo "boot JDK \"$BOOT_JDK_LOCAL_FILE\" present, skipping download"
fi
# Verify that what we've downloaded can be trusted.
sha256sum -c - <<EOF
$BOOT_JDK_SHA *$BOOT_JDK_LOCAL_FILE
EOF
docker build -t jetbrains/runtime:jbr17env_x86 -f Dockerfile.x86 .
# NB: the resulting container can (and should) be used without the network
# connection (--network none) during build in order to reduce the chance
# of build contamination.

View File

@@ -0,0 +1 @@
JetBrainsRuntime

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="IssueNavigationConfiguration">
<option name="links">
<list>
<IssueNavigationLink>
<option name="issueRegexp" value="(?:^|\s|\p{Punct})([A-Z]+\-\d+)(?=$|\s|\p{Punct})" />
<option name="linkRegexp" value="https://youtrack.jetbrains.com/issue/$1" />
</IssueNavigationLink>
<IssueNavigationLink>
<option name="issueRegexp" value="(?:^|\s|\p{Punct})(?:JDK-)?(\d{7})(?=$|\s|\p{Punct})" />
<option name="linkRegexp" value="https://bugs.openjdk.java.net/browse/JDK-$1" />
</IssueNavigationLink>
</list>
</option>
</component>
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$/src/jetbrains.api">
<sourceFolder url="file://$MODULE_DIR$/src/jetbrains.api/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/jetbrains.api/templates" isTestSource="false" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="inheritedJdk" />
</component>
</module>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/jdk.iml" filepath="$PROJECT_DIR$/.idea/jdk.iml" />
###MODULE_IMLS###
<module fileurl="file://$PROJECT_DIR$/.idea/jetbrains.api.iml" filepath="$PROJECT_DIR$/.idea/jetbrains.api.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/test.iml" filepath="$PROJECT_DIR$/.idea/test.iml" />
</modules>
</component>
</project>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="IssueNavigationConfiguration">
<option name="links">
<list>
<IssueNavigationLink>
<option name="issueRegexp" value="(?:^|\s|\p{Punct})([A-Z]+\-\d+)(?=$|\s|\p{Punct})" />
<option name="linkRegexp" value="https://youtrack.jetbrains.com/issue/$1" />
</IssueNavigationLink>
<IssueNavigationLink>
<option name="issueRegexp" value="(?:^|\s|\p{Punct})(?:JDK-)?(\d{7})(?=$|\s|\p{Punct})" />
<option name="linkRegexp" value="https://bugs.openjdk.java.net/browse/JDK-$1" />
</IssueNavigationLink>
</list>
</option>
</component>
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@@ -0,0 +1,135 @@
apply plugin: 'java'
import org.gradle.internal.os.OperatingSystem
repositories {
mavenCentral()
}
def test_jvm = {
if (project.hasProperty('jbsdkhome')) {
file(jbsdkhome + (OperatingSystem.current().isWindows()?"/bin/java.exe" : "/bin/java")).absolutePath
} else {
if (OperatingSystem.current().isMacOsX()) {
file('../../../build/macosx-x86_64-normal-server-release/images/jdk-bundle/jdk-11.0.4.jdk/Contents/Home/bin/java').absolutePath
} else if (OperatingSystem.current().isLinux()) {
file('../../../build/linux-x86_64-normal-server-release/images/jdk/bin/java').absolutePath
} else {
file('../../../build/windows-x86_64-normal-server-release/images/jdk/bin/java.exe').absolutePath
}
}
}
dependencies {
testCompile('junit:junit:4.12'){
exclude group: 'org.hamcrest'
}
testCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'net.java.dev.jna:jna:4.4.0'
testCompile 'com.twelvemonkeys.imageio:imageio-tiff:3.3.2'
testCompile 'org.apache.commons:commons-lang3:3.0'
}
def jdk_modules = ["java.base", "java.logging", "java.prefs",
"java.se.ee", "java.sql", "java.datatransfer",
"java.management", "java.rmi", "java.security.jgss",
"java.sql.rowset", "java.desktop", "java.management.rmi",
"java.scripting", "java.security.sasl", "java.transaction",
"java.instrument", "java.naming", "java.se",
"java.smartcardio", "java.xml.crypto"]
def jdk_class_dirs = []
jdk_modules.collect(jdk_class_dirs) {
new File("../../../src/" + it + "/share/classes")
}
if (OperatingSystem.current().isMacOsX())
jdk_modules.collect(jdk_class_dirs) {
"../../../src/" + it + "/macosx/classes"
}
else if (OperatingSystem.current().isLinux()) {
jdk_modules.collect(jdk_class_dirs) {
"../../../src/" + it + "/solaris/classes"
}
jdk_modules.collect(jdk_class_dirs) {
"../../../src/" + it + "/unix/classes"
}
} else
jdk_modules.collect(jdk_class_dirs) {
"../../../src/" + it + "/windows/classes"
}
sourceSets.main.java.srcDirs = jdk_class_dirs
sourceSets {
test {
java {
srcDir "../../../test/jdk/jbu"
}
}
}
test.dependsOn.clear()
test.dependsOn tasks.compileTestJava
test {
systemProperty "jb.java2d.metal", "true"
systemProperty "testdata", file('../../../test/jdk/jbu/testdata').absolutePath
// Generate golden images for DroidFontTest and MixedTextTest
// systemProperty "gentestdata", ""
// Enable Java2D logging (https://confluence.jetbrains.com/display/JRE/Java2D+Rendering+Logging)
// systemProperty "sun.java2d.trace", "log"
// systemProperty "sun.java2d.trace", "log,pimpl"
outputs.upToDateWhen { false }
executable = test_jvm()
// Enable async/dtrace profiler
jvmArgs "-XX:+PreserveFramePointer"
// Enable native J2D logging (only in debug build)
// Can be turned on for J2D by adding "#define DEBUG 1" into jdk/src/share/native/sun/java2d/Trace.h
// environment 'J2D_TRACE_LEVEL', '4'
}
def buildDir = project.buildscript.sourceFile.parentFile.parentFile.parentFile.parentFile
def make_cmd = "make"
if (OperatingSystem.current().isWindows()) {
def cyg_make_cmd = new File("c:/cygwin64/bin/make.exe")
if (cyg_make_cmd.exists()) make_cmd = cyg_make_cmd.absolutePath
}
def test_run = false
task make_images {
doLast {
if (!test_run) {
def pb = new ProcessBuilder().command(make_cmd.toString(), "-C", buildDir.absolutePath, "images")
def proc = pb.redirectErrorStream(true).start()
proc.inputStream.eachLine { println it }
assert proc.waitFor() == 0
}
}
}
task make_clean {
doLast {
def pb = new ProcessBuilder().command(make_cmd.toString(), "-C", buildDir.absolutePath, "clean")
def proc = pb.redirectErrorStream(true).start()
proc.inputStream.eachLine { println it }
assert proc.waitFor() == 0
}
}
task run_test {
doLast {
test_run = true
}
}
tasks.cleanTest.dependsOn tasks.run_test
classes.dependsOn.clear()
classes.dependsOn tasks.make_images
tasks.cleanClasses.dependsOn tasks.make_clean

View File

@@ -0,0 +1,54 @@
java.base,
java.compiler,
java.datatransfer,
java.desktop,
java.instrument,
java.logging,
java.management,
java.management.rmi,
java.naming,
java.net.http,
java.prefs,
java.rmi,
java.scripting,
java.se,
java.security.jgss,
java.security.sasl,
java.smartcardio,
java.sql,
java.sql.rowset,
java.transaction.xa,
java.xml,
java.xml.crypto,
jdk.accessibility,
jdk.attach,
jdk.charsets,
jdk.compiler,
jdk.crypto.cryptoki,
jdk.crypto.ec,
jdk.dynalink,
jdk.httpserver,
jdk.internal.ed,
jdk.internal.le,
jdk.internal.vm.ci,
jdk.javadoc,
jdk.jdi,
jdk.jdwp.agent,
jdk.jfr,
jdk.jsobject,
jdk.localedata,
jdk.management,
jdk.management.agent,
jdk.management.jfr,
jdk.naming.dns,
jdk.naming.rmi,
jdk.net,
jdk.sctp,
jdk.security.auth,
jdk.security.jgss,
jdk.unsupported,
jdk.unsupported.desktop,
jdk.xml.dom,
jdk.zipfs,
jdk.hotspot.agent,
jdk.jcmd

View File

@@ -0,0 +1,18 @@
#!/bin//bash
set -euo pipefail
# $1 - Boot JDK
# $2 - JBR part of API version
cd "`dirname "$0"`/../../../../.."
PWD="`pwd`"
CONF="$PWD/build/jbr-api.conf"
./configure --with-debug-level=release --with-boot-jdk=$1 || exit $?
make jbr-api CONF=release MAKEOVERRIDES= "JBR_API_CONF_FILE=$CONF" JBR_API_JBR_VERSION=$2 || exit $?
. $CONF || exit $?
echo "##teamcity[buildNumber '$VERSION']"
cp "$JAR" ./jbr-api-${VERSION}.jar || exit $?
cp "$SOURCES_JAR" ./jbr-api-${VERSION}-sources.jar || exit $?
echo "##teamcity[publishArtifacts '$PWD/jbr-api-${VERSION}.jar']"
echo "##teamcity[publishArtifacts '$PWD/jbr-api-${VERSION}-sources.jar']"

View File

@@ -0,0 +1,176 @@
#!/bin/bash
set -euo pipefail
set -x
function check_bundle_type_maketest() {
# check whether last char is 't', if so remove it
if [ "${bundle_type: -1}" == "t" ]; then
bundle_type="${bundle_type%?}"
do_maketest=1
else
do_maketest=0
fi
}
function getVersionProp() {
grep "^${1}" make/conf/version-numbers.conf | cut -d'=' -f2
}
while getopts ":i?" o; do
case "${o}" in
i) INC_BUILD=1 ;;
esac
done
shift $((OPTIND-1))
if [[ $# -lt 2 ]]; then
echo "Required at least two arguments: build_number bundle_type"
exit 1
fi
build_number=$1
bundle_type=$2
# shellcheck disable=SC2034
architecture=${3:-x64} # aarch64 or x64
check_bundle_type_maketest
tag_prefix="jdk-"
OPENJDK_TAG=$(git log --simplify-by-decoration --decorate=short --pretty=short | grep "$tag_prefix" | cut -d "(" -f2 | cut -d ")" -f1 | awk '{print $2}' | tr -d ',' | sort -t "-" -k 2 -g | tail -n 1)
VERSION_FEATURE=$(getVersionProp "DEFAULT_VERSION_FEATURE")
VERSION_INTERIM=$(getVersionProp "DEFAULT_VERSION_INTERIM")
VERSION_UPDATE=$(getVersionProp "DEFAULT_VERSION_UPDATE")
VERSION_PATCH=$(getVersionProp "DEFAULT_VERSION_PATCH")
[[ $VERSION_UPDATE = 0 ]] && JBSDK_VERSION="$VERSION_FEATURE" || JBSDK_VERSION="${VERSION_FEATURE}.${VERSION_INTERIM}.${VERSION_UPDATE}"
[[ $VERSION_PATCH = 0 ]] || JBSDK_VERSION="${VERSION_FEATURE}.${VERSION_INTERIM}.${VERSION_UPDATE}.${VERSION_PATCH}"
echo "##teamcity[setParameter name='env.JBSDK_VERSION' value='${JBSDK_VERSION}']"
JDK_BUILD_NUMBER=${JDK_BUILD_NUMBER:=$(echo $OPENJDK_TAG | awk -F "-|[+]" '{print $3}')}
[ -z $JDK_BUILD_NUMBER ] && JDK_BUILD_NUMBER=1
echo "##teamcity[setParameter name='env.JDK_UPDATE_NUMBER' value='${JDK_BUILD_NUMBER}']"
VENDOR_NAME="JetBrains s.r.o."
VENDOR_VERSION_STRING="JBR-${JBSDK_VERSION}+${JDK_BUILD_NUMBER}-${build_number}"
[ -z "$bundle_type" ] || VENDOR_VERSION_STRING="${VENDOR_VERSION_STRING}-${bundle_type}"
do_reset_changes=0
do_reset_dcevm=0
HEAD_REVISION=0
STATIC_CONF_ARGS=""
common_conf_props_file="jb/project/tools/common/static_conf_args.txt"
if [[ -f "$common_conf_props_file" ]]; then
STATIC_CONF_ARGS=$(<$common_conf_props_file)
fi
OS_NAME=$(uname -s)
# Enable reproducible builds
TZ=UTC
export TZ
SOURCE_DATE_EPOCH="$(git log -1 --pretty=%ct)"
export SOURCE_DATE_EPOCH
COPYRIGHT_YEAR=""
BUILD_TIME=""
TOUCH_TIME=""
REPRODUCIBLE_TAR_OPTS=""
case "$OS_NAME" in
Linux)
COPYRIGHT_YEAR="$(date --utc --date=@$SOURCE_DATE_EPOCH +%Y)"
BUILD_TIME="$(date --utc --date=@$SOURCE_DATE_EPOCH +%F)"
REPRODUCIBLE_TAR_OPTS="--mtime=@$SOURCE_DATE_EPOCH --owner=0 --group=0 --numeric-owner --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime"
;;
CYGWIN*)
COPYRIGHT_YEAR="$(date --utc --date=@$SOURCE_DATE_EPOCH +%Y)"
BUILD_TIME="$(date --utc --date=@$SOURCE_DATE_EPOCH +%F)"
REPRODUCIBLE_TAR_OPTS="--mtime=@$SOURCE_DATE_EPOCH --owner=0 --group=0 --numeric-owner --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime"
;;
Darwin)
COPYRIGHT_YEAR="$(date -u -r $SOURCE_DATE_EPOCH +%Y)"
BUILD_TIME="$(date -u -r $SOURCE_DATE_EPOCH +%F)"
TOUCH_TIME="$(date -u -r $SOURCE_DATE_EPOCH +%Y%m%d%H%M.%S)"
REPRODUCIBLE_TAR_OPTS="--uid 0 --gid 0 --numeric-owner"
;;
esac
WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS="--with-native-debug-symbols=zipped"
REPRODUCIBLE_BUILD_OPTS="--enable-reproducible-build
--with-source-date=$SOURCE_DATE_EPOCH
--with-hotspot-build-time=$BUILD_TIME
--with-copyright-year=$COPYRIGHT_YEAR
--disable-absolute-paths-in-output
--with-build-user=builduser"
function zip_native_debug_symbols() {
image_bundle_path=$(echo $1 | cut -d"/" -f-4)
jdk_name=$(echo $1 | cut -d"/" -f5)
jbr_diz_name=$2
[ -d "dizfiles" ] && rm -rf dizfiles
mkdir dizfiles
rsync_target="../../../../dizfiles"
[ -z "$jdk_name" ] && rsync_target=$rsync_target"/"$jbr_diz_name
(cd $image_bundle_path && find . -name '*.diz' -exec rsync -R {} $rsync_target \;)
[ ! -z "$jdk_name" ] && mv dizfiles/$jdk_name dizfiles/$jbr_diz_name
(cd dizfiles && find $jbr_diz_name -print0 | COPYFILE_DISABLE=1 \
tar --no-recursion --null -T - -czf ../"$jbr_diz_name".tar.gz) || do_exit $?
}
function do_exit() {
exit_code=$1
[ $do_reset_changes -eq 1 ] && git checkout HEAD jb/project/tools/common/modules.list src/java.desktop/share/classes/module-info.java
if [ $do_reset_dcevm -eq 1 ]; then
[ ! -z $HEAD_REVISION ] && git reset --hard $HEAD_REVISION
fi
exit "$exit_code"
}
function update_jsdk_mods() {
__jsdk=$1
__jcef_mods=$2
__orig_jsdk_mods=$3
__updated_jsdk_mods=$4
# re-create java.desktop.jmod with updated module-info.class
tmp=.java.desktop.$$.tmp
mkdir "$tmp" || exit $?
"$__jsdk"/bin/jmod extract --dir "$tmp" "$__orig_jsdk_mods"/java.desktop.jmod || exit $?
"$__jsdk"/bin/javac \
--patch-module java.desktop="$__orig_jsdk_mods"/java.desktop.jmod \
--module-path "$__jcef_mods" -d "$tmp"/classes src/java.desktop/share/classes/module-info.java || exit $?
"$__jsdk"/bin/jmod \
create --class-path "$tmp"/classes --config "$tmp"/conf --header-files "$tmp"/include --legal-notice "$tmp"/legal --libs "$tmp"/lib \
java.desktop.jmod || exit $?
mv java.desktop.jmod "$__updated_jsdk_mods" || exit $?
rm -rf "$tmp"
# re-create java.base.jmod with updated hashes
tmp=.java.base.$$.tmp
mkdir "$tmp" || exit $?
hash_modules=$("$__jsdk"/bin/jmod describe "$__orig_jsdk_mods"/java.base.jmod | grep hashes | awk '{print $2}' | tr '\n' '|' | sed s/\|$//) || exit $?
"$__jsdk"/bin/jmod extract --dir "$tmp" "$__orig_jsdk_mods"/java.base.jmod || exit $?
rm "$__updated_jsdk_mods"/java.base.jmod || exit $? # temp exclude from path
"$__jsdk"/bin/jmod \
create --module-path "$__updated_jsdk_mods" --hash-modules "$hash_modules" \
--class-path "$tmp"/classes --cmds "$tmp"/bin --config "$tmp"/conf --header-files "$tmp"/include --legal-notice "$tmp"/legal --libs "$tmp"/lib \
java.base.jmod || exit $?
mv java.base.jmod "$__updated_jsdk_mods" || exit $?
rm -rf "$tmp"
}
function get_mods_list() {
__mods=$1
echo $(ls $__mods) | sed s/\.jmod/,/g | sed s/,$//g | sed s/' '//g
}
function copy_jmods() {
__mods_list=$1
__jmods_from=$2
__jmods_to=$3
mkdir -p $__jmods_to
echo "${__mods_list}," | while read -d, mod; do cp $__jmods_from/$mod.jmod $__jmods_to/; done
}

View File

@@ -0,0 +1 @@
--with-vendor-vm-bug-url=https://youtrack.jetbrains.com/issues/JBR

View File

@@ -0,0 +1,166 @@
#!/bin/bash
set -euo pipefail
set -x
# The following parameters must be specified:
# build_number - specifies the number of JetBrainsRuntime build
# bundle_type - specifies bundle to be built;possible values:
# <empty> or nomod - the release bundles without any additional modules (jcef)
# jcef - the release bundles with jcef
# fd - the fastdebug bundles which also include the jcef module
#
# This script makes test-image along with JDK images when bundle_type is set to "jcef".
# If the character 't' is added at the end of bundle_type then it also makes test-image along with JDK images.
#
# Environment variables:
# JDK_BUILD_NUMBER - specifies update release of OpenJDK build or the value of --with-version-build argument
# to configure
# By default JDK_BUILD_NUMBER is set zero
# JCEF_PATH - specifies the path to the directory with JCEF binaries.
# By default JCEF binaries should be located in ./jcef_linux_aarch64
source jb/project/tools/common/scripts/common.sh
JCEF_PATH=${JCEF_PATH:=./jcef_linux_aarch64}
function do_configure {
sh configure \
$WITH_DEBUG_LEVEL \
--with-vendor-name="$VENDOR_NAME" \
--with-vendor-version-string="$VENDOR_VERSION_STRING" \
--with-jvm-features=shenandoahgc \
--with-version-pre= \
--with-version-build="$JDK_BUILD_NUMBER" \
--with-version-opt=b"$build_number" \
--with-boot-jdk="$BOOT_JDK" \
--enable-cds=yes \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
$WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS \
|| do_exit $?
}
function is_musl {
libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1)
if [ -z $libc ]; then
# This is not Musl, return 1 == false
return 1
fi
return 0
}
function create_image_bundle {
__bundle_name=$1
__arch_name=$2
__modules_path=$3
__modules=$4
libc_type_suffix=''
fastdebug_infix=''
if is_musl; then libc_type_suffix='musl-' ; fi
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
JBR=${__bundle_name}-${JBSDK_VERSION}-linux-${libc_type_suffix}aarch64-${fastdebug_infix}b${build_number}
__root_dir=${__bundle_name}-${JBSDK_VERSION}-linux-${libc_type_suffix}aarch64-${fastdebug_infix:-}b${build_number}
echo Running jlink....
[ -d "$IMAGES_DIR"/"$__root_dir" ] && rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
$JSDK/bin/jlink \
--module-path "$__modules_path" --no-man-pages --compress=2 \
--add-modules "$__modules" --output "$IMAGES_DIR"/"$__root_dir"
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> "$IMAGES_DIR"/"$__root_dir"/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
sed 's/JBR/JBRSDK/g' "$IMAGES_DIR"/"$__root_dir"/release > release
mv release "$IMAGES_DIR"/"$__root_dir"/release
cp $IMAGES_DIR/jdk/lib/src.zip "$IMAGES_DIR"/"$__root_dir"/lib
copy_jmods "$__modules" "$__modules_path" "$IMAGES_DIR"/"$__root_dir"/jmods
zip_native_debug_symbols $IMAGES_DIR/jdk "${JBR}_diz"
fi
# jmod does not preserve file permissions (JDK-8173610)
[ -f "$IMAGES_DIR"/"$__root_dir"/lib/jcef_helper ] && chmod a+x "$IMAGES_DIR"/"$__root_dir"/lib/jcef_helper
echo Creating "$JBR".tar.gz ...
(cd "$IMAGES_DIR" &&
find "$__root_dir" -print0 | LC_ALL=C sort -z | \
tar $REPRODUCIBLE_TAR_OPTS \
--no-recursion --null -T - -cf "$JBR".tar) || do_exit $?
mv "$IMAGES_DIR"/"$JBR".tar ./"$JBR".tar
[ -f "$JBR".tar.gz ] && rm "$JBR.tar.gz"
touch -c -d "@$SOURCE_DATE_EPOCH" "$JBR".tar
gzip "$JBR".tar || do_exit $?
rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
}
WITH_DEBUG_LEVEL="--with-debug-level=release"
RELEASE_NAME=linux-aarch64-server-release
case "$bundle_type" in
"jcef")
do_reset_changes=1
do_maketest=1
;;
"nomod" | "")
bundle_type=""
;;
"fd")
do_reset_changes=1
WITH_DEBUG_LEVEL="--with-debug-level=fastdebug"
RELEASE_NAME=linux-aarch64-server-fastdebug
;;
esac
if [ -z "${INC_BUILD:-}" ]; then
do_configure || do_exit $?
make clean CONF=$RELEASE_NAME || do_exit $?
fi
make images CONF=$RELEASE_NAME || do_exit $?
IMAGES_DIR=build/$RELEASE_NAME/images
JSDK=$IMAGES_DIR/jdk
JSDK_MODS_DIR=$IMAGES_DIR/jmods
JBRSDK_BUNDLE=jbrsdk
echo Fixing permissions
chmod -R a+r $JSDK
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
git apply -p0 < jb/project/tools/patches/add_jcef_module_aarch64.patch || do_exit $?
update_jsdk_mods $JSDK $JCEF_PATH/jmods $JSDK/jmods $JSDK_MODS_DIR || do_exit $?
cp $JCEF_PATH/jmods/* $JSDK_MODS_DIR # $JSDK/jmods is not changed
jbr_name_postfix="_${bundle_type}"
cat $JCEF_PATH/jcef.version >> $JSDK/release
else
jbr_name_postfix=""
fi
# create runtime image bundle
modules=$(xargs < jb/project/tools/common/modules.list | sed s/" "//g) || do_exit $?
create_image_bundle "jbr${jbr_name_postfix}" "jbr" $JSDK_MODS_DIR "$modules" || do_exit $?
# create sdk image bundle
modules=$(cat $JSDK/release | grep MODULES | sed s/MODULES=//g | sed s/' '/','/g | sed s/\"//g | sed s/\\n//g) || do_exit $?
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ] || [ "$bundle_type" == "$JBRSDK_BUNDLE" ]; then
modules=${modules},$(get_mods_list "$JCEF_PATH"/jmods)
fi
create_image_bundle "$JBRSDK_BUNDLE${jbr_name_postfix}" $JBRSDK_BUNDLE $JSDK_MODS_DIR "$modules" || do_exit $?
if [ $do_maketest -eq 1 ]; then
JBRSDK_TEST=${JBRSDK_BUNDLE}-${JBSDK_VERSION}-linux-${libc_type_suffix}test-aarch64-b${build_number}
echo Creating "$JBRSDK_TEST" ...
[ $do_reset_changes -eq 1 ] && git checkout HEAD jb/project/tools/common/modules.list src/java.desktop/share/classes/module-info.java
make test-image jbr-api CONF=$RELEASE_NAME JBR_API_JBR_VERSION=TEST || do_exit $?
cp "build/${RELEASE_NAME}/jbr-api/jbr-api.jar" "${IMAGES_DIR}/test"
tar -pcf "$JBRSDK_TEST".tar -C $IMAGES_DIR --exclude='test/jdk/demos' test || do_exit $?
[ -f "$JBRSDK_TEST.tar.gz" ] && rm "$JBRSDK_TEST.tar.gz"
gzip "$JBRSDK_TEST".tar || do_exit $?
fi
do_exit 0

View File

@@ -0,0 +1,165 @@
#!/bin/bash
set -euo pipefail
set -x
# The following parameters must be specified:
# build_number - specifies the number of JetBrainsRuntime build
# bundle_type - specifies bundle to be built;possible values:
# <empty> or nomod - the release bundles without any additional modules (jcef)
# jcef - the release bundles with jcef
# fd - the fastdebug bundles which also include the jcef module
#
# This script makes test-image along with JDK images when bundle_type is set to "jcef".
# If the character 't' is added at the end of bundle_type then it also makes test-image along with JDK images.
#
# Environment variables:
# JDK_BUILD_NUMBER - specifies update release of OpenJDK build or the value of --with-version-build argument
# to configure
# By default JDK_BUILD_NUMBER is set zero
# JCEF_PATH - specifies the path to the directory with JCEF binaries.
# By default JCEF binaries should be located in ./jcef_linux_x64
source jb/project/tools/common/scripts/common.sh
JCEF_PATH=${JCEF_PATH:=./jcef_linux_x64}
function do_configure {
sh configure \
$WITH_DEBUG_LEVEL \
--with-vendor-name="$VENDOR_NAME" \
--with-vendor-version-string="$VENDOR_VERSION_STRING" \
--with-jvm-features=shenandoahgc \
--with-version-pre= \
--with-version-build="$JDK_BUILD_NUMBER" \
--with-version-opt=b"$build_number" \
--with-boot-jdk="$BOOT_JDK" \
--enable-cds=yes \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
$WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS \
|| do_exit $?
}
function is_musl {
libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1)
if [ -z $libc ]; then
# This is not Musl, return 1 == false
return 1
fi
return 0
}
function create_image_bundle {
__bundle_name=$1
__arch_name=$2
__modules_path=$3
__modules=$4
libc_type_suffix=''
fastdebug_infix=''
if is_musl; then libc_type_suffix='musl-' ; fi
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
JBR=${__bundle_name}-${JBSDK_VERSION}-linux-${libc_type_suffix}x64-${fastdebug_infix}b${build_number}
__root_dir=${__bundle_name}-${JBSDK_VERSION}-linux-${libc_type_suffix}x64-${fastdebug_infix:-}b${build_number}
echo Running jlink....
[ -d "$IMAGES_DIR"/"$__root_dir" ] && rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
$JSDK/bin/jlink \
--module-path "$__modules_path" --no-man-pages --compress=2 \
--add-modules "$__modules" --output "$IMAGES_DIR"/"$__root_dir"
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> "$IMAGES_DIR"/"$__root_dir"/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
sed 's/JBR/JBRSDK/g' "$IMAGES_DIR"/"$__root_dir"/release > release
mv release "$IMAGES_DIR"/"$__root_dir"/release
cp $IMAGES_DIR/jdk/lib/src.zip "$IMAGES_DIR"/"$__root_dir"/lib
copy_jmods "$__modules" "$__modules_path" "$IMAGES_DIR"/"$__root_dir"/jmods
zip_native_debug_symbols $IMAGES_DIR/jdk "${JBR}_diz"
fi
# jmod does not preserve file permissions (JDK-8173610)
[ -f "$IMAGES_DIR"/"$__root_dir"/lib/jcef_helper ] && chmod a+x "$IMAGES_DIR"/"$__root_dir"/lib/jcef_helper
echo Creating "$JBR".tar.gz ...
(cd "$IMAGES_DIR" &&
find "$__root_dir" -print0 | LC_ALL=C sort -z | \
tar $REPRODUCIBLE_TAR_OPTS \
--no-recursion --null -T - -cf "$JBR".tar) || do_exit $?
mv "$IMAGES_DIR"/"$JBR".tar ./"$JBR".tar
[ -f "$JBR".tar.gz ] && rm "$JBR.tar.gz"
touch -c -d "@$SOURCE_DATE_EPOCH" "$JBR".tar
gzip "$JBR".tar || do_exit $?
rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
}
WITH_DEBUG_LEVEL="--with-debug-level=release"
RELEASE_NAME=linux-x86_64-server-release
case "$bundle_type" in
"jcef")
do_reset_changes=1
do_maketest=1
;;
"nomod" | "")
bundle_type=""
;;
"fd")
do_reset_changes=1
WITH_DEBUG_LEVEL="--with-debug-level=fastdebug"
RELEASE_NAME=linux-x86_64-server-fastdebug
;;
esac
if [ -z "${INC_BUILD:-}" ]; then
do_configure || do_exit $?
make clean CONF=$RELEASE_NAME || do_exit $?
fi
make images CONF=$RELEASE_NAME || do_exit $?
IMAGES_DIR=build/$RELEASE_NAME/images
JSDK=$IMAGES_DIR/jdk
JSDK_MODS_DIR=$IMAGES_DIR/jmods
JBRSDK_BUNDLE=jbrsdk
echo Fixing permissions
chmod -R a+r $JSDK
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
git apply -p0 < jb/project/tools/patches/add_jcef_module.patch || do_exit $?
update_jsdk_mods $JSDK $JCEF_PATH/jmods $JSDK/jmods $JSDK_MODS_DIR || do_exit $?
cp $JCEF_PATH/jmods/* $JSDK_MODS_DIR # $JSDK/jmods is not changed
jbr_name_postfix="_${bundle_type}"
[ "$bundle_type" != "fd" ] && jbrsdk_name_postfix="_${bundle_type}"
cat $JCEF_PATH/jcef.version >> $JSDK/release
else
jbr_name_postfix=""
fi
# create runtime image bundle
modules=$(xargs < jb/project/tools/common/modules.list | sed s/" "//g) || do_exit $?
create_image_bundle "jbr${jbr_name_postfix}" "jbr" $JSDK_MODS_DIR "$modules" || do_exit $?
# create sdk image bundle
modules=$(cat $JSDK/release | grep MODULES | sed s/MODULES=//g | sed s/' '/','/g | sed s/\"//g | sed s/\\n//g) || do_exit $?
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ] || [ "$bundle_type" == "$JBRSDK_BUNDLE" ]; then
modules=${modules},$(get_mods_list "$JCEF_PATH"/jmods)
fi
create_image_bundle "$JBRSDK_BUNDLE${jbr_name_postfix}" $JBRSDK_BUNDLE $JSDK_MODS_DIR "$modules" || do_exit $?
if [ $do_maketest -eq 1 ]; then
JBRSDK_TEST=${JBRSDK_BUNDLE}-${JBSDK_VERSION}-linux-${libc_type_suffix}test-x64-b${build_number}
echo Creating "$JBRSDK_TEST" ...
[ $do_reset_changes -eq 1 ] && git checkout HEAD jb/project/tools/common/modules.list src/java.desktop/share/classes/module-info.java
make test-image jbr-api CONF=$RELEASE_NAME JBR_API_JBR_VERSION=TEST || do_exit $?
cp "build/${RELEASE_NAME}/jbr-api/jbr-api.jar" "${IMAGES_DIR}/test"
tar -pcf "$JBRSDK_TEST".tar -C $IMAGES_DIR --exclude='test/jdk/demos' test || do_exit $?
[ -f "$JBRSDK_TEST.tar.gz" ] && rm "$JBRSDK_TEST.tar.gz"
gzip "$JBRSDK_TEST".tar || do_exit $?
fi
do_exit 0

View File

@@ -0,0 +1,144 @@
#!/bin/bash
set -euo pipefail
set -x
# The following parameters must be specified:
# build_number - specifies the number of JetBrainsRuntime build
# bundle_type - specifies bundle to be built;possible values:
# <empty> or nomod - the release bundles without any additional modules (jcef)
# jcef - the release bundles with jcef
# fd - the fastdebug bundles which also include the jcef module
#
source jb/project/tools/common/scripts/common.sh
function do_configure {
linux32 bash configure \
$WITH_DEBUG_LEVEL \
--with-vendor-name="$VENDOR_NAME" \
--with-vendor-version-string="$VENDOR_VERSION_STRING" \
--with-jvm-features=shenandoahgc \
--with-version-pre= \
--with-version-build="$JDK_BUILD_NUMBER" \
--with-version-opt=b"$build_number" \
--with-boot-jdk="$BOOT_JDK" \
$STATIC_CONF_ARGS \
--enable-cds=yes \
$REPRODUCIBLE_BUILD_OPTS \
$WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS \
|| do_exit $?
}
function is_musl {
libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1)
if [ -z $libc ]; then
# This is not Musl, return 1 == false
return 1
fi
return 0
}
function create_image_bundle {
__bundle_name=$1
__arch_name=$2
__modules_path=$3
__modules=$4
libc_type_suffix=''
fastdebug_infix=''
if is_musl; then libc_type_suffix='musl-' ; fi
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
JBR=${__bundle_name}-${JBSDK_VERSION}-linux-${libc_type_suffix}x86-${fastdebug_infix}b${build_number}
__root_dir=${__bundle_name}-${JBSDK_VERSION}-linux-${libc_type_suffix}x86-${fastdebug_infix:-}b${build_number}
echo Running jlink....
[ -d "$IMAGES_DIR"/"$__root_dir" ] && rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
$JSDK/bin/jlink \
--module-path "$__modules_path" --no-man-pages --compress=2 \
--add-modules "$__modules" --output "$IMAGES_DIR"/"$__root_dir"
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> "$IMAGES_DIR"/"$__root_dir"/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
sed 's/JBR/JBRSDK/g' "$IMAGES_DIR"/"$__root_dir"/release > release
mv release "$IMAGES_DIR"/"$__root_dir"/release
cp $IMAGES_DIR/jdk/lib/src.zip "$IMAGES_DIR"/"$__root_dir"/lib
copy_jmods "$__modules" "$__modules_path" "$IMAGES_DIR"/"$__root_dir"/jmods
zip_native_debug_symbols $IMAGES_DIR/jdk "${JBR}_diz"
fi
# jmod does not preserve file permissions (JDK-8173610)
[ -f "$IMAGES_DIR"/"$__root_dir"/lib/jcef_helper ] && chmod a+x "$IMAGES_DIR"/"$__root_dir"/lib/jcef_helper
echo Creating "$JBR".tar.gz ...
(cd "$IMAGES_DIR" &&
find "$__root_dir" -print0 | LC_ALL=C sort -z | \
tar $REPRODUCIBLE_TAR_OPTS \
--no-recursion --null -T - -cf "$JBR".tar) || do_exit $?
mv "$IMAGES_DIR"/"$JBR".tar ./"$JBR".tar
[ -f "$JBR".tar.gz ] && rm "$JBR.tar.gz"
touch -c -d "@$SOURCE_DATE_EPOCH" "$JBR".tar
gzip "$JBR".tar || do_exit $?
rm -rf "${IMAGES_DIR:?}"/"$__root_dir"
}
WITH_DEBUG_LEVEL="--with-debug-level=release"
RELEASE_NAME=linux-x86-server-release
case "$bundle_type" in
"jcef")
echo "not implemented" && do_exit 1
;;
"nomod" | "")
bundle_type=""
;;
"fd")
do_reset_changes=1
WITH_DEBUG_LEVEL="--with-debug-level=fastdebug"
RELEASE_NAME=linux-x86-server-fastdebug
;;
esac
if [ -z "${INC_BUILD:-}" ]; then
do_configure || do_exit $?
make clean CONF=$RELEASE_NAME || do_exit $?
fi
make images CONF=$RELEASE_NAME || do_exit $?
IMAGES_DIR=build/$RELEASE_NAME/images
JSDK=$IMAGES_DIR/jdk
JSDK_MODS_DIR=$IMAGES_DIR/jmods
JBRSDK_BUNDLE=jbrsdk
echo Fixing permissions
chmod -R a+r $JSDK
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
jbr_name_postfix="_${bundle_type}"
else
jbr_name_postfix=""
fi
# create runtime image bundle
modules=$(grep -v "jdk.internal.vm" jb/project/tools/common/modules.list | xargs | sed s/" "//g) || do_exit $?
create_image_bundle "jbr${jbr_name_postfix}" "jbr" $JSDK_MODS_DIR "$modules" || do_exit $?
# create sdk image bundle
modules=$(cat $JSDK/release | grep MODULES | sed s/MODULES=//g | sed s/' '/','/g | sed s/\"//g | sed s/\\n//g) || do_exit $?
create_image_bundle "$JBRSDK_BUNDLE${jbr_name_postfix}" $JBRSDK_BUNDLE $JSDK_MODS_DIR "$modules" || do_exit $?
if [ $do_maketest -eq 1 ]; then
JBRSDK_TEST=${JBRSDK_BUNDLE}-${JBSDK_VERSION}-linux-${libc_type_suffix}test-x86-b${build_number}
echo Creating "$JBRSDK_TEST" ...
[ $do_reset_changes -eq 1 ] && git checkout HEAD jb/project/tools/common/modules.list src/java.desktop/share/classes/module-info.java
make test-image jbr-api CONF=$RELEASE_NAME JBR_API_JBR_VERSION=TEST || do_exit $?
cp "build/${RELEASE_NAME}/jbr-api/jbr-api.jar" "${IMAGES_DIR}/test"
tar -pcf "$JBRSDK_TEST".tar -C $IMAGES_DIR --exclude='test/jdk/demos' test || do_exit $?
[ -f "$JBRSDK_TEST.tar.gz" ] && rm "$JBRSDK_TEST.tar.gz"
gzip "$JBRSDK_TEST".tar || do_exit $?
fi
do_exit 0

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.disable-executable-page-protection</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1,171 @@
#!/bin/bash
set -euo pipefail
set -x
# The following parameters must be specified:
# build_number - specifies the number of JetBrainsRuntime build
# bundle_type - specifies bundle to be built;possible values:
# <empty> or nomod - the release bundles without any additional modules (jcef)
# jcef - the release bundles with jcef
# fd - the fastdebug bundles which also include the jcef module
#
# This script makes test-image along with JDK images when bundle_type is set to "jcef".
# If the character 't' is added at the end of bundle_type then it also makes test-image along with JDK images.
#
# Environment variables:
# JDK_BUILD_NUMBER - specifies update release of OpenJDK build or the value of --with-version-build argument
# to configure
# By default JDK_BUILD_NUMBER is set zero
# JCEF_PATH - specifies the path to the directory with JCEF binaries.
# By default JCEF binaries should be located in ./jcef_mac
source jb/project/tools/common/scripts/common.sh
JCEF_PATH=${JCEF_PATH:=./jcef_mac}
BOOT_JDK=${BOOT_JDK:=$(/usr/libexec/java_home -v 17)}
function do_configure {
if [[ "${architecture}" == *aarch64* ]]; then
ENABLE_CDS="--enable-cds=no"
else
ENABLE_CDS="--enable-cds=yes"
fi
sh configure \
$WITH_DEBUG_LEVEL \
--with-vendor-name="$VENDOR_NAME" \
--with-vendor-version-string="$VENDOR_VERSION_STRING" \
--with-macosx-bundle-name-base=${VENDOR_VERSION_STRING} \
--with-macosx-bundle-id-base="com.jetbrains.jbr" \
--with-jvm-features=shenandoahgc \
--with-version-pre= \
--with-version-build="$JDK_BUILD_NUMBER" \
--with-version-opt=b"$build_number" \
--with-boot-jdk="$BOOT_JDK" \
--enable-cds=yes \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
$WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS \
|| do_exit $?
}
function create_image_bundle {
__bundle_name=$1
__arch_name=$2
__modules_path=$3
__modules=$4
fastdebug_infix=''
tmp=.bundle.$$.tmp
mkdir "$tmp" || do_exit $?
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
JBR=${__bundle_name}-${JBSDK_VERSION}-osx-${architecture}-${fastdebug_infix:-}b${build_number}
__root_dir=${__bundle_name}-${JBSDK_VERSION}-osx-${architecture}-${fastdebug_infix:-}b${build_number}
JRE_CONTENTS=$tmp/$__root_dir/Contents
mkdir -p "$JRE_CONTENTS" || do_exit $?
echo Running jlink...
"$JSDK"/bin/jlink \
--module-path "$__modules_path" --no-man-pages --compress=2 \
--add-modules "$__modules" --output "$JRE_CONTENTS/Home" || do_exit $?
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> "$JRE_CONTENTS/Home/release"
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
sed 's/JBR/JBRSDK/g' $JRE_CONTENTS/Home/release > release
mv release $JRE_CONTENTS/Home/release
cp $IMAGES_DIR/jdk-bundle/jdk-$JBSDK_VERSION.jdk/Contents/Home/lib/src.zip $JRE_CONTENTS/Home/lib
copy_jmods "$__modules" "$__modules_path" "$JRE_CONTENTS"/Home/jmods
zip_native_debug_symbols $IMAGES_DIR/jdk-bundle/jdk-$JBSDK_VERSION.jdk "${JBR}_diz"
fi
if [ "$bundle_type" == "jcef" ]; then
cat $JCEF_PATH/jcef.version >> "$JRE_CONTENTS/Home/release"
fi
cp -R "$JSDK"/../MacOS "$JRE_CONTENTS"
cp "$JSDK"/../Info.plist "$JRE_CONTENTS"
[ -n "$bundle_type" ] && (cp -a $JCEF_PATH/Frameworks "$JRE_CONTENTS" || do_exit $?)
echo Creating "$JBR".tar.gz ...
# Normalize timestamp
find "$tmp"/"$__root_dir" -print0 | xargs -0 touch -c -h -t "$TOUCH_TIME"
(cd "$tmp" &&
find "$__root_dir" -print0 | LC_ALL=C sort -z | \
COPYFILE_DISABLE=1 tar $REPRODUCIBLE_TAR_OPTS --no-recursion --null -T - \
-czf "$JBR".tar.gz --exclude='*.dSYM' --exclude='man') || do_exit $?
mv "$tmp"/"$JBR".tar.gz "$JBR".tar.gz
rm -rf "$tmp"
}
WITH_DEBUG_LEVEL="--with-debug-level=release"
CONF_ARCHITECTURE=x86_64
if [[ "${architecture}" == *aarch64* ]]; then
CONF_ARCHITECTURE=aarch64
fi
RELEASE_NAME=macosx-${CONF_ARCHITECTURE}-server-release
case "$bundle_type" in
"jcef")
do_reset_changes=1
do_maketest=1
;;
"nomod" | "")
bundle_type=""
;;
"fd")
do_reset_changes=1
WITH_DEBUG_LEVEL="--with-debug-level=fastdebug"
RELEASE_NAME=macosx-${CONF_ARCHITECTURE}-server-fastdebug
JBSDK=macosx-${architecture}-server-release
;;
esac
if [ -z "${INC_BUILD:-}" ]; then
do_configure || do_exit $?
make clean CONF=$RELEASE_NAME || do_exit $?
fi
make images CONF=$RELEASE_NAME || do_exit $?
IMAGES_DIR=build/$RELEASE_NAME/images
JSDK=$IMAGES_DIR/jdk-bundle/jdk-$JBSDK_VERSION.jdk/Contents/Home
JSDK_MODS_DIR=$IMAGES_DIR/jmods
JBRSDK_BUNDLE=jbrsdk
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
git apply -p0 < jb/project/tools/patches/add_jcef_module.patch || do_exit $?
update_jsdk_mods "$JSDK" "$JCEF_PATH"/jmods "$JSDK"/jmods "$JSDK_MODS_DIR" || do_exit $?
cp $JCEF_PATH/jmods/* $JSDK_MODS_DIR # $JSDK/jmods is not changed
jbr_name_postfix="_${bundle_type}"
else
jbr_name_postfix=""
fi
# create runtime image bundle
modules=$(xargs < jb/project/tools/common/modules.list | sed s/" "//g) || do_exit $?
create_image_bundle "jbr${jbr_name_postfix}" "jbr" $JSDK_MODS_DIR "$modules" || do_exit $?
# create sdk image bundle
modules=$(cat "$JSDK"/release | grep MODULES | sed s/MODULES=//g | sed s/' '/','/g | sed s/\"//g | sed s/\\n//g) || do_exit $?
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ] || [ "$bundle_type" == "$JBRSDK_BUNDLE" ]; then
modules=${modules},$(get_mods_list "$JCEF_PATH"/jmods)
fi
create_image_bundle "$JBRSDK_BUNDLE${jbr_name_postfix}" "$JBRSDK_BUNDLE" "$JSDK_MODS_DIR" "$modules" || do_exit $?
if [ $do_maketest -eq 1 ]; then
JBRSDK_TEST=${JBRSDK_BUNDLE}-${JBSDK_VERSION}-osx-test-${architecture}-b${build_number}
echo Creating "$JBRSDK_TEST" ...
[ $do_reset_changes -eq 1 ] && git checkout HEAD jb/project/tools/common/modules.list src/java.desktop/share/classes/module-info.java
make test-image jbr-api CONF=$RELEASE_NAME JBR_API_JBR_VERSION=TEST || do_exit $?
cp "build/${RELEASE_NAME}/jbr-api/jbr-api.jar" "${IMAGES_DIR}/test"
[ -f "$JBRSDK_TEST.tar.gz" ] && rm "$JBRSDK_TEST.tar.gz"
COPYFILE_DISABLE=1 tar -pczf "$JBRSDK_TEST".tar.gz -C $IMAGES_DIR --exclude='test/jdk/demos' test || do_exit $?
fi
do_exit 0

View File

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

View File

@@ -0,0 +1,117 @@
#!/bin/bash
set -euo pipefail
set -x
APPLICATION_PATH=$1
APP_NAME=$2
BUNDLE_ID=$3
JB_DEVELOPER_CERT=$4
JB_INSTALLER_CERT=$5
if [[ -z "$APPLICATION_PATH" ]] || [[ -z "$JB_DEVELOPER_CERT" ]]; then
echo "Usage: $0 AppDirectory CertificateID"
exit 1
fi
if [[ ! -d "$APPLICATION_PATH" ]]; then
echo "AppDirectory '$APPLICATION_PATH' does not exist or not a directory"
exit 1
fi
function log() {
echo "$(date '+[%H:%M:%S]') $*"
}
#immediately exit script with an error if a command fails
set -euo pipefail
# Cleanup files left from previous sign attempt (if any)
find "$APPLICATION_PATH" -name '*.cstemp' -exec rm '{}' \;
log "Signing libraries and executables..."
# -perm +111 searches for executables
for f in \
"Contents/Home/lib" "Contents/MacOS" \
"Contents/Home/Frameworks" \
"Contents/Frameworks"; do
if [ -d "$APPLICATION_PATH/$f" ]; then
find "$APPLICATION_PATH/$f" \
-type f \( -name "*.jnilib" -o -name "*.dylib" -o -name "*.so" -o -name "*.tbd" -o -name "*.node" -o -perm +111 \) \
-exec codesign --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime --force \
--entitlements entitlements.xml {} \;
fi
done
log "Signing libraries in jars in $PWD"
# todo: add set -euo pipefail; into the inner sh -c
# `-e` prevents `grep -q && printf` loginc
# with `-o pipefail` there's no input for 'while' loop
find "$APPLICATION_PATH" -name '*.jar' \
-exec sh -c "set -u; unzip -l \"\$0\" | grep -q -e '\.dylib\$' -e '\.jnilib\$' -e '\.so\$' -e '\.tbd\$' -e '^jattach\$' && printf \"\$0\0\" " {} \; |
while IFS= read -r -d $'\0' file; do
log "Processing libraries in $file"
rm -rf jarfolder jar.jar
mkdir jarfolder
filename="${file##*/}"
log "Filename: $filename"
cp "$file" jarfolder && (cd jarfolder && jar xf "$filename" && rm "$filename")
find jarfolder \
-type f \( -name "*.jnilib" -o -name "*.dylib" -o -name "*.so" -o -name "*.tbd" -o -name "jattach" \) \
-exec codesign --timestamp \
--force \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--entitlements entitlements.xml {} \;
(cd jarfolder; zip -q -r -o -0 ../jar.jar .)
mv jar.jar "$file"
done
rm -rf jarfolder jar.jar
log "Signing other files..."
for f in \
"Contents/Home/bin"; do
if [ -d "$APPLICATION_PATH/$f" ]; then
find "$APPLICATION_PATH/$f" \
-type f \( -name "*.jnilib" -o -name "*.dylib" -o -name "*.so" -o -name "*.tbd" -o -perm +111 \) \
-exec codesign --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime --force \
--entitlements entitlements.xml {} \;
fi
done
#log "Signing executable..."
#codesign --timestamp \
# -v -s "$JB_DEVELOPER_CERT" --options=runtime \
# --force \
# --entitlements entitlements.xml "$APPLICATION_PATH/Contents/MacOS/idea"
log "Signing whole app..."
codesign --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--force \
--entitlements entitlements.xml "$APPLICATION_PATH"
BUILD_NAME=$(echo $APPLICATION_PATH | awk -F"/" '{ print $2 }')
log "Creating $APP_NAME.pkg..."
rm -rf "$APP_NAME.pkg"
mkdir -p unsigned
pkgbuild --identifier $BUNDLE_ID --root $APPLICATION_PATH \
--install-location /Library/Java/JavaVirtualMachines/${BUILD_NAME} unsigned/${APP_NAME}.pkg
productsign --timestamp --sign "$JB_INSTALLER_CERT" unsigned/${APP_NAME}.pkg ${APP_NAME}.pkg
#log "Signing whole app..."
#codesign --timestamp \
# -v -s "$JB_DEVELOPER_CERT" --options=runtime \
# --force \
# --entitlements entitlements.xml $APP_NAME.pkg
log "Verifying java is not broken"
find "$APPLICATION_PATH" \
-type f -name 'java' -perm +111 -exec {} -version \;

View File

@@ -0,0 +1,138 @@
#!/bin/bash
#immediately exit script with an error if a command fails
set -euo pipefail
set -x
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
export COPYFILE_DISABLE=true
INPUT_FILE=$1
EXPLODED=$2.exploded
BACKUP_JMODS=$2.backup
USERNAME=$3
PASSWORD=$4
CODESIGN_STRING=$5
JB_INSTALLER_CERT=$6
NOTARIZE=$7
BUNDLE_ID=$8
cd "$(dirname "$0")"
function log() {
echo "$(date '+[%H:%M:%S]') $*"
}
log "Deleting $EXPLODED ..."
if test -d "$EXPLODED"; then
find "$EXPLODED" -mindepth 1 -maxdepth 1 -exec chmod -R u+wx '{}' \;
fi
rm -rf "$EXPLODED"
mkdir "$EXPLODED"
rm -rf "$BACKUP_JMODS"
mkdir "$BACKUP_JMODS"
log "Unzipping $INPUT_FILE to $EXPLODED ..."
tar -xzvf "$INPUT_FILE" --directory $EXPLODED
BUILD_NAME="$(ls "$EXPLODED")"
#sed -i '' s/BNDL/APPL/ $EXPLODED/$BUILD_NAME/Contents/Info.plist
rm -f $EXPLODED/$BUILD_NAME/Contents/CodeResources
rm "$INPUT_FILE"
if test -d $EXPLODED/$BUILD_NAME/Contents/Home/jmods; then
mv $EXPLODED/$BUILD_NAME/Contents/Home/jmods $BACKUP_JMODS
fi
log "$INPUT_FILE extracted and removed"
APP_NAME=$(echo ${INPUT_FILE} | awk -F".tar" '{ print $1 }')
APPLICATION_PATH=$EXPLODED/$(ls $EXPLODED)
find "$APPLICATION_PATH/Contents/Home/bin" \
-maxdepth 1 -type f -name '*.jnilib' -print0 |
while IFS= read -r -d $'\0' file; do
if [ -f "$file" ]; then
log "Linking $file"
b="$(basename "$file" .jnilib)"
ln -sf "$b.jnilib" "$(dirname "$file")/$b.dylib"
fi
done
find "$APPLICATION_PATH/Contents/" \
-maxdepth 1 -type f -name '*.txt' -print0 |
while IFS= read -r -d $'\0' file; do
if [ -f "$file" ]; then
log "Moving $file"
mv "$file" "$APPLICATION_PATH/Contents/Resources"
fi
done
non_plist=$(find "$APPLICATION_PATH/Contents/" -maxdepth 1 -type f -and -not -name 'Info.plist' | wc -l)
if [[ $non_plist -gt 0 ]]; then
log "Only Info.plist file is allowed in Contents directory but found $non_plist file(s):"
log "$(find "$APPLICATION_PATH/Contents/" -maxdepth 1 -type f -and -not -name 'Info.plist')"
exit 1
fi
log "Unlocking keychain..."
# Make sure *.p12 is imported into local KeyChain
security unlock-keychain -p "$PASSWORD" "/Users/$USERNAME/Library/Keychains/login.keychain"
attempt=1
limit=3
set +e
while [[ $attempt -le $limit ]]; do
log "Signing (attempt $attempt) $APPLICATION_PATH ..."
./sign.sh "$APPLICATION_PATH" "$APP_NAME" "$BUNDLE_ID" "$CODESIGN_STRING" "$JB_INSTALLER_CERT"
ec=$?
if [[ $ec -ne 0 ]]; then
((attempt += 1))
if [ $attempt -eq $limit ]; then
set -e
fi
log "Signing failed, wait for 30 sec and try to sign again"
sleep 30
else
log "Signing done"
codesign -v "$APPLICATION_PATH" -vvvvv
log "Check sign done"
spctl -a -v $APPLICATION_PATH
((attempt += limit))
fi
done
set -e
if [ "$NOTARIZE" = "yes" ]; then
log "Notarizing..."
# shellcheck disable=SC1090
source "$HOME/.notarize_token"
# Since notarization tool uses same file for upload token we have to trick it into using different folders, hence fake root
# Also it leaves copy of zip file in TMPDIR, so notarize.sh overrides it and uses FAKE_ROOT as location for temp TMPDIR
FAKE_ROOT="$(pwd)/fake-root"
mkdir -p "$FAKE_ROOT"
echo "Notarization will use fake root: $FAKE_ROOT"
./notarize.sh "$APPLICATION_PATH" "$APPLE_USERNAME" "$APPLE_PASSWORD" "$APP_NAME.pkg" "$BUNDLE_ID" "$FAKE_ROOT"
rm -rf "$FAKE_ROOT"
set +e
log "Stapling..."
xcrun stapler staple "$APPLICATION_PATH"
else
log "Notarization disabled"
log "Stapling disabled"
fi
log "Zipping $BUILD_NAME to $INPUT_FILE ..."
(
#cd "$EXPLODED"
#ditto -c -k --sequesterRsrc --keepParent "$BUILD_NAME" "../$INPUT_FILE"
if test -d $BACKUP_JMODS/jmods; then
mv $BACKUP_JMODS/jmods $APPLICATION_PATH/Contents/Home
fi
mv $APPLICATION_PATH $EXPLODED/$BUILD_NAME
tar -pczvf $INPUT_FILE --exclude='man' -C $EXPLODED $BUILD_NAME
log "Finished zipping"
)
rm -rf "$EXPLODED"
log "Done"

View File

@@ -0,0 +1,30 @@
diff --git jb/project/tools/common/modules.list jb/project/tools/common/modules.list
index 522acb7cb43..c40e689d5de 100644
--- jb/project/tools/common/modules.list
+++ jb/project/tools/common/modules.list
@@ -51,4 +51,7 @@ jdk.unsupported.desktop,
jdk.xml.dom,
jdk.zipfs,
jdk.hotspot.agent,
-jdk.jcmd
+jdk.jcmd,
+jcef,
+gluegen.rt,
+jogl.all
diff --git src/java.desktop/share/classes/module-info.java src/java.desktop/share/classes/module-info.java
index 897647ee368..781d1809493 100644
--- src/java.desktop/share/classes/module-info.java
+++ src/java.desktop/share/classes/module-info.java
@@ -116,7 +116,11 @@ module java.desktop {
// see make/GensrcModuleInfo.gmk
exports sun.awt to
jdk.accessibility,
- jdk.unsupported.desktop;
+ jdk.unsupported.desktop,
+ jcef,
+ jogl.all;
+
+ exports java.awt.peer to jcef;
exports java.awt.dnd.peer to jdk.unsupported.desktop;
exports sun.awt.dnd to jdk.unsupported.desktop;

View File

@@ -0,0 +1,30 @@
diff --git jb/project/tools/common/modules.list jb/project/tools/common/modules.list
index 522acb7..c40e689 100644
--- jb/project/tools/common/modules.list
+++ jb/project/tools/common/modules.list
@@ -51,4 +51,7 @@ jdk.unsupported.desktop,
jdk.xml.dom,
jdk.zipfs,
jdk.hotspot.agent,
-jdk.jcmd
+jdk.jcmd,
+jcef,
+gluegen.rt,
+jogl.all
diff --git src/java.desktop/share/classes/module-info.java src/java.desktop/share/classes/module-info.java
index 897647e..781d180 100644
--- src/java.desktop/share/classes/module-info.java
+++ src/java.desktop/share/classes/module-info.java
@@ -116,7 +116,11 @@ module java.desktop {
// see make/GensrcModuleInfo.gmk
exports sun.awt to
jdk.accessibility,
- jdk.unsupported.desktop;
+ jdk.unsupported.desktop,
+ jcef,
+ jogl.all;
+
+ exports java.awt.peer to jcef;
exports java.awt.dnd.peer to jdk.unsupported.desktop;
exports sun.awt.dnd to jdk.unsupported.desktop;

View File

@@ -0,0 +1,162 @@
#!/bin/bash
set -euo pipefail
TC_PRINT=0
# Always print TeamCity service messages if running under TeamCity
[[ -n "${TEAMCITY_VERSION:-}" ]] && TC_PRINT=1
while getopts ":t" o; do
case "${o}" in
t) TC_PRINT=1 ;;
*);;
esac
done
shift $((OPTIND-1))
NEWFILEPATH="$1"
CONFIGID="$2"
BUILDID="$3"
TOKEN="$4"
if [ ! -f "$NEWFILEPATH" ]; then
echo "File not found: $NEWFILEPATH"
exit 1
fi
#
# Get the size of new artifact
#
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*)
NEWFILESIZE=$(stat -c%s "$NEWFILEPATH")
;;
Darwin*)
NEWFILESIZE=$(stat -f%z "$NEWFILEPATH")
;;
CYGWIN*)
NEWFILESIZE=$(stat -c%s "$NEWFILEPATH")
;;
MINGW*)
NEWFILESIZE=$(stat -c%s "$NEWFILEPATH")
;;
*)
echo "Unknown machine: ${unameOut}"
exit 1
esac
FILENAME=$(basename "${NEWFILEPATH}")
#
# Get pattern of artifact name
# Base filename pattern: <BUNDLE_TYPE>-<JDK_VERSION>-<OS>-<ARCH>-b<BUILD>.tar.gz: jbr_dcevm-17.0.2-osx-x64-b1234.tar.gz
# BUNDLE_TYPE: jbr, jbrsdk, jbr_dcevm, jbrsdk_jcef etc.
# OS_ARCH_PATTERN - <os_architecture>: osx-x64, linux-aarch64, linux-musl-x64, windows-x64 etc.
BUNDLE_TYPE=jbrsdk
OS_ARCH_PATTERN=""
FILE_EXTENSION=tar.gz
re='(jbr[a-z_]*).*-[0-9_\.]+-(.+)-b[0-9]+(.+)'
if [[ $FILENAME =~ $re ]]; then
BUNDLE_TYPE=${BASH_REMATCH[1]}
OS_ARCH_PATTERN=${BASH_REMATCH[2]}
FILE_EXTENSION=${BASH_REMATCH[3]}
else
echo "File name $FILENAME does not match regex $re"
exit 1
fi
function test_started_msg() {
if [ $TC_PRINT -eq 1 ]; then
echo "##teamcity[testStarted name='$1']"
fi
}
function test_failed_msg() {
if [ $TC_PRINT -eq 1 ]; then
echo "##teamcity[testFailed name='$1' message='$2']"
fi
}
function test_finished_msg() {
if [ $TC_PRINT -eq 1 ]; then
echo "##teamcity[testFinished name='$1']"
fi
}
test_name="${BUNDLE_TYPE}_${OS_ARCH_PATTERN//\-/_}${FILE_EXTENSION//\./_}"
test_started_msg "$test_name"
echo "BUNDLE_TYPE: $BUNDLE_TYPE"
echo "OS_ARCH_PATTERN: $OS_ARCH_PATTERN"
echo "FILE_EXTENSION: $FILE_EXTENSION"
echo "Size of $FILENAME is $NEWFILESIZE bytes"
#
# Get previous successful build ID
# Example:
# CONFIGID=IntellijCustomJdk_Jdk17_Master_LinuxX64jcef
# BUILDID=12345678
#
# expected return value
# id="123".number="567"
#
CURL_RESPONSE=$(curl -sSL --header "Authorization: Bearer $TOKEN" "https://buildserver.labs.intellij.net/app/rest/builds/?locator=buildType:(id:$CONFIGID),status:success,count:1,finishDate:(build:$BUILDID,condition:before)")
re='id=\"([0-9]+)\".+number=\"([0-9\.]+)\"'
# ID: Previous successful build id
ID=0
if [[ $CURL_RESPONSE =~ $re ]]; then
ID=${BASH_REMATCH[1]}
echo "Previous build ID: $ID"
echo "Previous build number: ${BASH_REMATCH[2]}"
else
msg="ERROR: cannot find previous build"
echo "$msg"
echo "$CURL_RESPONSE"
test_failed_msg "$test_name" "$msg"
test_finished_msg "$test_name"
exit 1
fi
#
# Get artifacts from previous successful build
#
# expected return value
# name="jbrsdk_jcef*.tar.gz size="123'
#
CURL_RESPONSE=$(curl -sSL --header "Authorization: Bearer $TOKEN" "https://buildserver.labs.intellij.net/app/rest/builds/$ID?fields=id,number,artifacts(file(name,size))")
echo "Artifacts of the previous build:"
echo "$CURL_RESPONSE"
# Find binary size (in response) with reg exp
re="name=\"(${BUNDLE_TYPE}[^\"]+${OS_ARCH_PATTERN}[^\"]+${FILE_EXTENSION})\" size=\"([0-9]+)\""
if [[ $CURL_RESPONSE =~ $re ]]; then
prevFileName=${BASH_REMATCH[1]}
echo "Previous artifact name: $prevFileName"
prevFileSize=${BASH_REMATCH[2]}
echo "Previous artifact size: $prevFileSize"
((allowedSize=prevFileSize+prevFileSize/20)) # use 5% threshold
echo "Allowed size: $allowedSize"
if [[ "$NEWFILESIZE" -gt "$allowedSize" ]]; then
msg="ERROR: new size is significantly greater than previous size (need to investigate)"
echo "$msg"
test_failed_msg "$test_name" "$msg"
test_finished_msg "$test_name"
exit 1
else
echo "PASSED"
test_finished_msg "$test_name"
fi
else
msg="ERROR: cannot find string with size in xml response:"
echo "Regex: $re"
echo "$msg"
echo "$CURL_RESPONSE"
test_failed_msg "$test_name" "$msg"
test_finished_msg "$test_name"
exit 1
fi

View File

@@ -0,0 +1,93 @@
#!/bin/bash
set -euo pipefail
set -x
usage ()
{
echo "Usage: perfcmp.sh [options] <test_results_cur> <test_results_ref> <results> <test_prefix> <noHeaders>"
echo "Options:"
echo -e " -h, --help\tdisplay this help"
echo -e " -tc\tprint teacmity statistic"
echo -e "test_results_cur - the file with metrics values for the current measuring"
echo -e "test_results_ref - the file with metrics values for the reference measuring"
echo -e "results - results of comaprison"
echo -e "test_prefix - specifys measuring type, makes sense for enabled -tc, by default no prefixes"
echo -e "noHeaders - by default 1-st line contains headers"
echo -e ""
echo -e "test_results_* files content should be in csv format with header and tab separator:"
echo -e "The 1-st column is the test name"
echo -e "The 2-st column is the test value"
echo -e ""
echo -e "Example:"
echo -e "Test Value"
echo -e "Testname 51.54"
}
while [ -n "$1" ]
do
case "$1" in
-h | --help) usage
exit 1 ;;
-tc) tc=1
shift
break ;;
*) break;;
esac
done
if [[ "$#" < "3" ]]; then
echo "Error: Invalid arguments"
usage
exit 1
fi
curFile=$1
refFile=$2
resFile=$3
testNamePrefix=$4
noHeaders=$5
echo $curFile
echo $refFile
echo $resFile
curValues=`cat "$curFile" | cut -f 2 | tr -d '\t'`
if [ -z $noHeaders ]; then
curValuesHeader=`echo "$curValues" | head -n +1`_cur
header=`cat "$refFile" | head -n +1 | awk -F'\t' -v x=$curValuesHeader '{print " "$1"\t"$2"_ref\t"x"\tratio"}'`
testContent=`paste -d '\t' $refFile <(echo "$curValues") | tail -n +2`
else
testContent=`paste -d '\t' $refFile <(echo "$curValues") | tail -n +1`
fi
testContent=`echo "$testContent" | tr "," "." | awk -F'\t' '{
if ($3>$2+$2*0.1) {
print "* "$1"\t"$2"\t"$3"\t"(($2>0)?$3/$2:"-")
} else {
print " "$1"\t"$2"\t"$3"\t"(($2>0)?$3/$2:"-")
}
}'`
if [ -z $noHeaders ]; then
echo "$header" > $resFile
fi
echo "$testContent" >> $resFile
cat "$resFile" | tr '\t' ';' | column -t -s ';' | tee $resFile
if [ -z $tc ]; then
exit 0
fi
failed=0
echo "$testContent" 2>&1 | (
while read -r s; do
testname=`echo "$s" | cut -f 1 | tr -d "[:space:]" | tr -d "*"`
duration=`echo "$s" | cut -f 3`
echo "$s" | cut -c1 | grep -c "*" && failed=1
echo \#\#teamcity[testStarted name=\'$testNamePrefix$testname\']
echo "===>$s"
echo \#\#teamcity[buildStatisticValue key=\'$testNamePrefix$testname\' value=\'$duration\']
[ $failed -eq 1 ] && echo \#\#teamcity[testFailed name=\'$testNamePrefix$testname\' message=\'$s\']
echo \#\#teamcity[testFinished name=\'$testNamePrefix$testname\' duration=\'$duration\']
failed=0
done
)

View File

@@ -0,0 +1,149 @@
#!/bin/bash
set -euo pipefail
set -x
# The following parameters must be specified:
# build_number - specifies the number of JetBrainsRuntime build
# bundle_type - specifies bundle to be built;possible values:
# <empty> or nomod - the release bundles without any additional modules (jcef)
# jcef - the release bundles with jcef
# fd - the fastdebug bundles which also include the jcef module
#
# This script makes test-image along with JDK images when bundle_type is set to "jcef".
# If the character 't' is added at the end of bundle_type then it also makes test-image along with JDK images.
#
# Environment variables:
# JDK_BUILD_NUMBER - specifies update release of OpenJDK build or the value of --with-version-build argument
# to configure
# By default JDK_BUILD_NUMBER is set zero
# JCEF_PATH - specifies the path to the directory with JCEF binaries.
# By default JCEF binaries should be located in ./jcef_win_aarch64
if [ -z "$BUILD_JDK" ]; then
echo "BUILD_JDK environment variable must be specified and point to a JDK built from the current sources" \
" and is able to run on the build system. See OpenJDK documentation for --with-build-jdk for more info."
exit 1
fi
source jb/project/tools/common/scripts/common.sh
WORK_DIR=$(pwd)
JCEF_PATH=${JCEF_PATH:=$WORK_DIR/jcef_win_aarch64}
NVDA_PATH=${NVDA_PATH:=$WORK_DIR/nvda_controllerClient}
function do_configure {
sh ./configure \
--openjdk-target=aarch64-unknown-cygwin \
$WITH_DEBUG_LEVEL \
--with-vendor-name="$VENDOR_NAME" \
--with-vendor-version-string="$VENDOR_VERSION_STRING" \
--with-jvm-features=shenandoahgc \
--with-version-pre= \
--with-version-build=$JDK_BUILD_NUMBER \
--with-version-opt=b${build_number} \
--with-toolchain-version=$TOOLCHAIN_VERSION \
--with-boot-jdk=$BOOT_JDK \
--with-build-jdk=$BUILD_JDK \
--with-nvdacontrollerclient=$NVDA_PATH \
--disable-ccache \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
--enable-cds=yes || do_exit $?
}
function create_image_bundle {
__bundle_name=$1
__arch_name=$2
__modules_path=$3
__modules=$4
fastdebug_infix=''
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
__root_dir=${__bundle_name}-${JBSDK_VERSION}-windows-aarch64-${fastdebug_infix}b${build_number}
echo Running jlink ...
${BUILD_JDK}/bin/jlink \
--module-path $__modules_path --no-man-pages --compress=2 \
--add-modules $__modules --output $__root_dir || do_exit $?
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> $__arch_name/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
sed 's/JBR/JBRSDK/g' $__root_dir/release > release
mv release $__root_dir/release
cp $IMAGES_DIR/jdk/lib/src.zip $__root_dir/lib
for dir in $(ls -d $IMAGES_DIR/jdk/*); do
rsync -amv --include="*/" --include="*.pdb" --exclude="*" $dir $__root_dir
done
copy_jmods "$__modules" "$__modules_path" "$__root_dir"/jmods
fi
}
WITH_DEBUG_LEVEL="--with-debug-level=release"
RELEASE_NAME=windows-aarch64-server-release
case "$bundle_type" in
"jcef")
do_reset_changes=0
do_maketest=1
;;
"nomod" | "")
bundle_type=""
;;
"fd")
do_reset_changes=0
WITH_DEBUG_LEVEL="--with-debug-level=fastdebug"
RELEASE_NAME=windows-aarch64-server-fastdebug
;;
esac
if [ -z "${INC_BUILD:-}" ]; then
do_configure || do_exit $?
if [ $do_maketest -eq 1 ]; then
make LOG=info CONF=$RELEASE_NAME clean images test-image jbr-api JBR_API_JBR_VERSION=TEST || do_exit $?
else
make LOG=info CONF=$RELEASE_NAME clean images || do_exit $?
fi
else
if [ $do_maketest -eq 1 ]; then
make LOG=info CONF=$RELEASE_NAME images test-image jbr-api JBR_API_JBR_VERSION=TEST || do_exit $?
else
make LOG=info CONF=$RELEASE_NAME images || do_exit $?
fi
fi
IMAGES_DIR=build/$RELEASE_NAME/images
JSDK=$IMAGES_DIR/jdk
JSDK_MODS_DIR=$IMAGES_DIR/jmods
JBRSDK_BUNDLE=jbrsdk
where cygpath
if [ $? -eq 0 ]; then
JCEF_PATH="$(cygpath -w $JCEF_PATH | sed 's/\\/\//g')"
fi
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
git apply -p0 < jb/project/tools/patches/add_jcef_module_aarch64.patch || do_exit $?
update_jsdk_mods "$BUILD_JDK" "$JCEF_PATH"/jmods "$JSDK"/jmods "$JSDK_MODS_DIR" || do_exit $?
cp $JCEF_PATH/jmods/* $JSDK_MODS_DIR # $JSDK/jmods is not unchanged
jbr_name_postfix="_${bundle_type}"
cat $JCEF_PATH/jcef.version >> $JSDK/release
else
jbr_name_postfix=""
fi
# create runtime image bundle
modules=$(xargs < jb/project/tools/common/modules.list | sed s/" "//g) || do_exit $?
modules+=",jdk.crypto.mscapi"
create_image_bundle "jbr${jbr_name_postfix}" "jbr" $JSDK_MODS_DIR "$modules" || do_exit $?
# create sdk image bundle
modules=$(cat ${JSDK}/release | grep MODULES | sed s/MODULES=//g | sed s/' '/','/g | sed s/\"//g | sed s/\\r//g | sed s/\\n//g) || do_exit $?
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ] || [ "$bundle_type" == "$JBRSDK_BUNDLE" ]; then
modules=${modules},$(get_mods_list "$JCEF_PATH"/jmods)
fi
create_image_bundle "$JBRSDK_BUNDLE${jbr_name_postfix}" "$JBRSDK_BUNDLE" "$JSDK_MODS_DIR" "$modules" || do_exit $?
do_exit 0

View File

@@ -0,0 +1,142 @@
#!/bin/bash
set -euo pipefail
set -x
# The following parameters must be specified:
# build_number - specifies the number of JetBrainsRuntime build
# bundle_type - specifies bundle to be built;possible values:
# <empty> or nomod - the release bundles without any additional modules (jcef)
# jcef - the release bundles with jcef
# fd - the fastdebug bundles which also include the jcef module
#
# This script makes test-image along with JDK images when bundle_type is set to "jcef".
# If the character 't' is added at the end of bundle_type then it also makes test-image along with JDK images.
#
# Environment variables:
# JDK_BUILD_NUMBER - specifies update release of OpenJDK build or the value of --with-version-build argument
# to configure
# By default JDK_BUILD_NUMBER is set zero
# JCEF_PATH - specifies the path to the directory with JCEF binaries.
# By default JCEF binaries should be located in ./jcef_win_x64
source jb/project/tools/common/scripts/common.sh
WORK_DIR=$(pwd)
JCEF_PATH=${JCEF_PATH:=$WORK_DIR/jcef_win_x64}
NVDA_PATH=${NVDA_PATH:=$WORK_DIR/nvda_controllerClient}
function do_configure {
sh ./configure \
$WITH_DEBUG_LEVEL \
--with-vendor-name="$VENDOR_NAME" \
--with-vendor-version-string="$VENDOR_VERSION_STRING" \
--with-jvm-features=shenandoahgc \
--with-version-pre= \
--with-version-build=$JDK_BUILD_NUMBER \
--with-version-opt=b${build_number} \
--with-toolchain-version=$TOOLCHAIN_VERSION \
--with-boot-jdk=$BOOT_JDK \
--with-nvdacontrollerclient=$NVDA_PATH \
--disable-ccache \
--enable-cds=yes \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
|| do_exit $?
}
function create_image_bundle {
__bundle_name=$1
__arch_name=$2
__modules_path=$3
__modules=$4
fastdebug_infix=''
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
__root_dir=${__bundle_name}-${JBSDK_VERSION}-windows-x64-${fastdebug_infix}b${build_number}
echo Running jlink ...
${JSDK}/bin/jlink \
--module-path $__modules_path --no-man-pages --compress=2 \
--add-modules $__modules --output $__root_dir || do_exit $?
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> $__root_dir/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
sed 's/JBR/JBRSDK/g' $__root_dir/release > release
mv release $__root_dir/release
cp $IMAGES_DIR/jdk/lib/src.zip $__root_dir/lib
for dir in $(ls -d $IMAGES_DIR/jdk/*); do
rsync -amv --include="*/" --include="*.pdb" --exclude="*" $dir $__root_dir
done
copy_jmods "$__modules" "$__modules_path" "$__root_dir"/jmods
fi
}
WITH_DEBUG_LEVEL="--with-debug-level=release"
RELEASE_NAME=windows-x86_64-server-release
case "$bundle_type" in
"jcef")
do_reset_changes=0
do_maketest=1
;;
"nomod" | "")
bundle_type=""
;;
"fd")
do_reset_changes=0
WITH_DEBUG_LEVEL="--with-debug-level=fastdebug"
RELEASE_NAME=windows-x86_64-server-fastdebug
;;
esac
if [ -z "${INC_BUILD:-}" ]; then
do_configure || do_exit $?
if [ $do_maketest -eq 1 ]; then
make LOG=info CONF=$RELEASE_NAME clean images test-image jbr-api JBR_API_JBR_VERSION=TEST || do_exit $?
else
make LOG=info CONF=$RELEASE_NAME clean images || do_exit $?
fi
else
if [ $do_maketest -eq 1 ]; then
make LOG=info CONF=$RELEASE_NAME images test-image jbr-api JBR_API_JBR_VERSION=TEST || do_exit $?
else
make LOG=info CONF=$RELEASE_NAME images || do_exit $?
fi
fi
IMAGES_DIR=build/$RELEASE_NAME/images
JSDK=$IMAGES_DIR/jdk
JSDK_MODS_DIR=$IMAGES_DIR/jmods
JBRSDK_BUNDLE=jbrsdk
where cygpath
if [ $? -eq 0 ]; then
JCEF_PATH="$(cygpath -w $JCEF_PATH | sed 's/\\/\//g')"
fi
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
git apply -p0 < jb/project/tools/patches/add_jcef_module.patch || do_exit $?
update_jsdk_mods "$JSDK" "$JCEF_PATH"/jmods "$JSDK"/jmods "$JSDK_MODS_DIR" || do_exit $?
cp $JCEF_PATH/jmods/* ${JSDK_MODS_DIR} # $JSDK/jmods is not unchanged
jbr_name_postfix="_${bundle_type}"
cat $JCEF_PATH/jcef.version >> $JSDK/release
else
jbr_name_postfix=""
fi
# create runtime image bundle
modules=$(xargs < jb/project/tools/common/modules.list | sed s/" "//g) || do_exit $?
modules+=",jdk.crypto.mscapi"
create_image_bundle "jbr${jbr_name_postfix}" "jbr" $JSDK_MODS_DIR "$modules" || do_exit $?
# create sdk image bundle
modules=$(cat ${JSDK}/release | grep MODULES | sed s/MODULES=//g | sed s/' '/','/g | sed s/\"//g | sed s/\\r//g | sed s/\\n//g)
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ] || [ "$bundle_type" == "$JBRSDK_BUNDLE" ]; then
modules=${modules},$(get_mods_list "$JCEF_PATH"/jmods)
fi
create_image_bundle "$JBRSDK_BUNDLE${jbr_name_postfix}" "$JBRSDK_BUNDLE" "$JSDK_MODS_DIR" "$modules" || do_exit $?
do_exit 0

View File

@@ -0,0 +1,131 @@
#!/bin/bash
set -euo pipefail
set -x
# The following parameters must be specified:
# build_number - specifies the number of JetBrainsRuntime build
# bundle_type - specifies bundle to be built;possible values:
# <empty> or nomod - the release bundles without any additional modules (jcef)
# jcef - the release bundles with jcef
# fd - the fastdebug bundles which also include the jcef module
#
# $ ./java --version
# openjdk 11.0.6 2020-01-14
# OpenJDK Runtime Environment (build 11.0.6+${JDK_BUILD_NUMBER}-b${build_number})
# OpenJDK 64-Bit Server VM (build 11.0.6+${JDK_BUILD_NUMBER}-b${build_number}, mixed mode)
#
source jb/project/tools/common/scripts/common.sh
WORK_DIR=$(pwd)
NVDA_PATH=${NVDA_PATH:=$WORK_DIR/nvda_controllerClient}
function do_configure {
sh ./configure \
$WITH_DEBUG_LEVEL \
--with-vendor-name="$VENDOR_NAME" \
--with-vendor-version-string="$VENDOR_VERSION_STRING" \
--with-jvm-features=shenandoahgc \
--with-version-pre= \
--with-version-build=$JDK_BUILD_NUMBER \
--with-version-opt=b${build_number} \
--with-toolchain-version=$TOOLCHAIN_VERSION \
--with-boot-jdk=$BOOT_JDK \
--with-nvdacontrollerclient=$NVDA_PATH \
--disable-ccache \
--enable-cds=yes \
$STATIC_CONF_ARGS \
$REPRODUCIBLE_BUILD_OPTS \
|| do_exit $?
}
function create_image_bundle {
__bundle_name=$1
__arch_name=$2
__modules_path=$3
__modules=$4
fastdebug_infix=''
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
__root_dir=${__bundle_name}-${JBSDK_VERSION}-windows-x86-${fastdebug_infix}b${build_number}
echo Running jlink ...
${JSDK}/bin/jlink \
--module-path $__modules_path --no-man-pages --compress=2 \
--add-modules $__modules --output $__root_dir || do_exit $?
grep -v "^JAVA_VERSION" "$JSDK"/release | grep -v "^MODULES" >> $__root_dir/release
if [ "$__arch_name" == "$JBRSDK_BUNDLE" ]; then
sed 's/JBR/JBRSDK/g' $__root_dir/release > release
mv release $__root_dir/release
cp $IMAGES_DIR/jdk/lib/src.zip $__root_dir/lib
for dir in $(ls -d $IMAGES_DIR/jdk/*); do
rsync -amv --include="*/" --include="*.pdb" --exclude="*" $dir $__root_dir
done
copy_jmods "$__modules" "$__modules_path" "$__root_dir"/jmods
fi
}
WITH_DEBUG_LEVEL="--with-debug-level=release"
RELEASE_NAME=windows-x86_64-server-release
case "$bundle_type" in
"jcef")
echo "not implemented" && do_exit 1
;;
"nomod" | "")
bundle_type=""
;;
"fd")
do_reset_changes=0
WITH_DEBUG_LEVEL="--with-debug-level=fastdebug"
RELEASE_NAME=windows-x86_64-server-fastdebug
;;
esac
if [ -z "${INC_BUILD:-}" ]; then
do_configure || do_exit $?
if [ $do_maketest -eq 1 ]; then
make LOG=info CONF=$RELEASE_NAME clean images test-image jbr-api JBR_API_JBR_VERSION=TEST || do_exit $?
else
make LOG=info CONF=$RELEASE_NAME clean images || do_exit $?
fi
else
if [ $do_maketest -eq 1 ]; then
make LOG=info CONF=$RELEASE_NAME images test-image jbr-api JBR_API_JBR_VERSION=TEST || do_exit $?
else
make LOG=info CONF=$RELEASE_NAME images || do_exit $?
fi
fi
IMAGES_DIR=build/$RELEASE_NAME/images
JSDK=$IMAGES_DIR/jdk
JSDK_MODS_DIR=$IMAGES_DIR/jmods
JBRSDK_BUNDLE=jbrsdk
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ]; then
git apply -p0 < jb/project/tools/patches/add_jcef_module.patch || do_exit $?
update_jsdk_mods "$JSDK" "$JCEF_PATH"/jmods "$JSDK"/jmods "$JSDK_MODS_DIR" || do_exit $?
cp $JCEF_PATH/jmods/* ${JSDK_MODS_DIR} # $JSDK/jmods is not unchanged
jbr_name_postfix="_${bundle_type}"
else
jbr_name_postfix=""
fi
# create runtime image bundle
modules=$(grep -v "jdk.internal.vm" jb/project/tools/common/modules.list | xargs | sed s/" "//g) || do_exit $?
modules+=",jdk.crypto.mscapi"
create_image_bundle "jbr${jbr_name_postfix}" "jbr" $JSDK_MODS_DIR "$modules" || do_exit $?
# create sdk image bundle
modules=$(cat ${JSDK}/release | grep MODULES | sed s/MODULES=//g | sed s/' '/','/g | sed s/\"//g | sed s/\\r//g | sed s/\\n//g)
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "fd" ] || [ "$bundle_type" == "$JBRSDK_BUNDLE" ]; then
modules=${modules},$(get_mods_list "$JCEF_PATH"/jmods)
fi
create_image_bundle "$JBRSDK_BUNDLE${jbr_name_postfix}" "$JBRSDK_BUNDLE" "$JSDK_MODS_DIR" "$modules" || do_exit $?
do_exit 0

View File

@@ -0,0 +1,57 @@
#!/bin/bash
set -euo pipefail
set -x
# The following parameters must be specified:
# build_number - specifies the number of JetBrainsRuntime build
# bundle_type - specifies bundle to be built;possible values:
# <empty> or nomod - the release bundles without any additional modules (jcef)
# jcef - the release bundles with jcef
# fd - the fastdebug bundles which also include the jcef module
#
# This script packs test-image along with JDK images when bundle_type is set to "jcef".
# If the character 't' is added at the end of bundle_type then it also makes test-image along with JDK images.
#
source jb/project/tools/common/scripts/common.sh
[ "$bundle_type" == "jcef" ] && do_maketest=1
function pack_jbr {
__bundle_name=$1
__arch_name=$2
fastdebug_infix=''
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
JBR=${__bundle_name}-${JBSDK_VERSION}-windows-aarch64-${fastdebug_infix}b${build_number}
__root_dir=${__bundle_name}-${JBSDK_VERSION}-windows-aarch64-${fastdebug_infix}b${build_number}
echo Creating $JBR.tar.gz ...
/usr/bin/tar -czf $JBR.tar.gz -C $BASE_DIR $__root_dir || do_exit $?
}
[ "$bundle_type" == "nomod" ] && bundle_type=""
JBRSDK_BUNDLE=jbrsdk
RELEASE_NAME=windows-aarch64-server-release
IMAGES_DIR=build/$RELEASE_NAME/images
BASE_DIR=.
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "dcevm" ] || [ "$bundle_type" == "fd" ]; then
jbr_name_postfix="_${bundle_type}"
else
jbr_name_postfix=""
fi
pack_jbr jbr${jbr_name_postfix} jbr
pack_jbr jbrsdk${jbr_name_postfix} jbrsdk
if [ $do_maketest -eq 1 ]; then
JBRSDK_TEST=$JBRSDK_BUNDLE-$JBSDK_VERSION-windows-test-aarch64-b$build_number
cp "build/${RELEASE_NAME}/jbr-api/jbr-api.jar" "${IMAGES_DIR}/test" || do_exit $?
echo Creating $JBRSDK_TEST.tar.gz ...
/usr/bin/tar -czf $JBRSDK_TEST.tar.gz -C $IMAGES_DIR --exclude='test/jdk/demos' test || do_exit $?
fi

View File

@@ -0,0 +1,57 @@
#!/bin/bash
set -euo pipefail
set -x
# The following parameters must be specified:
# build_number - specifies the number of JetBrainsRuntime build
# bundle_type - specifies bundle to be built;possible values:
# <empty> or nomod - the release bundles without any additional modules (jcef)
# jcef - the release bundles with jcef
# fd - the fastdebug bundles which also include the jcef module
#
# This script packs test-image along with JDK images when bundle_type is set to "jcef".
# If the character 't' is added at the end of bundle_type then it also makes test-image along with JDK images.
#
source jb/project/tools/common/scripts/common.sh
[ "$bundle_type" == "jcef" ] && do_maketest=1
function pack_jbr {
__bundle_name=$1
__arch_name=$2
fastdebug_infix=''
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
JBR=${__bundle_name}-${JBSDK_VERSION}-windows-x64-${fastdebug_infix}b${build_number}
__root_dir=${__bundle_name}-${JBSDK_VERSION}-windows-x64-${fastdebug_infix}b${build_number}
echo Creating $JBR.tar.gz ...
chmod -R ug+rwx,o+rx ${BASE_DIR}/$__root_dir
/usr/bin/tar -czf $JBR.tar.gz -C $BASE_DIR $__root_dir || do_exit $?
}
[ "$bundle_type" == "nomod" ] && bundle_type=""
JBRSDK_BUNDLE=jbrsdk
RELEASE_NAME=windows-x86_64-server-release
IMAGES_DIR=build/$RELEASE_NAME/images
BASE_DIR=.
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "dcevm" ] || [ "$bundle_type" == "fd" ]; then
jbr_name_postfix="_${bundle_type}"
else
jbr_name_postfix=""
fi
pack_jbr jbr${jbr_name_postfix} jbr
pack_jbr jbrsdk${jbr_name_postfix} jbrsdk
if [ $do_maketest -eq 1 ]; then
JBRSDK_TEST=$JBRSDK_BUNDLE-$JBSDK_VERSION-windows-test-x64-b$build_number
cp "build/${RELEASE_NAME}/jbr-api/jbr-api.jar" "${IMAGES_DIR}/test" || do_exit $?
echo Creating $JBRSDK_TEST.tar.gz ...
/usr/bin/tar -czf $JBRSDK_TEST.tar.gz -C $IMAGES_DIR --exclude='test/jdk/demos' test || do_exit $?
fi

View File

@@ -0,0 +1,53 @@
#!/bin/bash
set -euo pipefail
set -x
# The following parameters must be specified:
# build_number - specifies the number of JetBrainsRuntime build
# bundle_type - specifies bundle to be built;possible values:
# <empty> or nomod - the release bundles without any additional modules (jcef)
# fd - the fastdebug bundles which also include the jcef module
#
source jb/project/tools/common/scripts/common.sh
[ "$bundle_type" == "jcef" ] && echo "not implemented" && do_exit 1
function pack_jbr {
__bundle_name=$1
__arch_name=$2
fastdebug_infix=''
[ "$bundle_type" == "fd" ] && [ "$__arch_name" == "$JBRSDK_BUNDLE" ] && __bundle_name=$__arch_name && fastdebug_infix="fastdebug-"
JBR=${__bundle_name}-${JBSDK_VERSION}-windows-x86-${fastdebug_infix}b${build_number}
__root_dir=${__bundle_name}-${JBSDK_VERSION}-windows-x86-${fastdebug_infix}b${build_number}
echo Creating $JBR.tar.gz ...
chmod -R ug+rwx,o+rx ${BASE_DIR}/$__root_dir
/usr/bin/tar -czf $JBR.tar.gz -C $BASE_DIR $__root_dir || do_exit $?
}
[ "$bundle_type" == "nomod" ] && bundle_type=""
JBRSDK_BUNDLE=jbrsdk
RELEASE_NAME=windows-x86_64-server-release
IMAGES_DIR=build/$RELEASE_NAME/images
BASE_DIR=.
if [ "$bundle_type" == "jcef" ] || [ "$bundle_type" == "dcevm" ] || [ "$bundle_type" == "fd" ]; then
jbr_name_postfix="_${bundle_type}"
else
jbr_name_postfix=""
fi
pack_jbr jbr${jbr_name_postfix} jbr
pack_jbr jbrsdk${jbr_name_postfix} jbrsdk
if [ $do_maketest -eq 1 ]; then
JBRSDK_TEST=$JBRSDK_BUNDLE-$JBSDK_VERSION-windows-test-x86-b$build_number
cp "build/${RELEASE_NAME}/jbr-api/jbr-api.jar" "${IMAGES_DIR}/test" || do_exit $?
echo Creating $JBRSDK_TEST.tar.gz ...
/usr/bin/tar -czf $JBRSDK_TEST.tar.gz -C $BASE_DIR --exclude='test/jdk/demos' test || do_exit $?
fi

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,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
@@ -69,6 +69,13 @@ $(eval $(call SetupCopyFiles,COPY_NIMBUS_TEMPLATES, \
TARGETS += $(COPY_NIMBUS_TEMPLATES)
$(eval $(call SetupCopyFiles,COPY_CLDRCONVERTER_PROPERTIES, \
SRC := $(TOPDIR)/make/jdk/src/classes/build/tools/cldrconverter, \
DEST := $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes/build/tools/cldrconverter, \
FILES := $(wildcard $(TOPDIR)/make/jdk/src/classes/build/tools/cldrconverter/*.properties)))
TARGETS += $(COPY_CLDRCONVERTER_PROPERTIES)
################################################################################
$(eval $(call SetupJavaCompilation, COMPILE_DEPEND, \

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)

93
make/JBRApi.gmk Normal file
View File

@@ -0,0 +1,93 @@
#
# Copyright 2000-2023 JetBrains s.r.o.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
include $(SPEC)
include MakeBase.gmk
include JavaCompilation.gmk
JBR_API_ROOT_DIR := $(TOPDIR)/src/jetbrains.api
JBR_API_TOOLS_DIR := $(JBR_API_ROOT_DIR)/tools
JBR_API_SRC_DIR := $(JBR_API_ROOT_DIR)/src
JBR_API_OUTPUT_DIR := $(OUTPUTDIR)/jbr-api
JBR_API_GENSRC_DIR := $(JBR_API_OUTPUT_DIR)/gensrc
JBR_API_BIN_DIR := $(JBR_API_OUTPUT_DIR)/bin
JBR_API_VERSION_PROPERTIES := $(JBR_API_ROOT_DIR)/version.properties
JBR_API_VERSION_GENSRC := $(JBR_API_OUTPUT_DIR)/jbr-api.version
JBR_API_GENSRC_BATCH := $(JBR_API_VERSION_GENSRC)
JBR_API_SRC_FILES := $(call FindFiles, $(JBR_API_SRC_DIR))
JBR_API_GENSRC_FILES := $(foreach f, $(call FindFiles, $(JBR_API_SRC_DIR)), \
$(JBR_API_GENSRC_DIR)/$(call RelativePath, $f, $(JBR_API_SRC_DIR)))
ifeq ($(JBR_API_JBR_VERSION),)
JBR_API_JBR_VERSION := DEVELOPMENT
JBR_API_FAIL_ON_HASH_MISMATCH := false
else
.PHONY: $(JBR_API_VERSION_PROPERTIES)
JBR_API_FAIL_ON_HASH_MISMATCH := true
endif
ARCHIVE_BUILD_JBR_API_BIN := $(JBR_API_BIN_DIR)
$(eval $(call SetupJavaCompilation, BUILD_JBR_API, \
SMALL_JAVA := true, \
COMPILER := bootjdk, \
SRC := $(JBR_API_GENSRC_DIR), \
EXTRA_FILES := $(JBR_API_GENSRC_FILES), \
BIN := $(JBR_API_BIN_DIR), \
JAR := $(JBR_API_OUTPUT_DIR)/jbr-api.jar, \
))
$(eval $(call SetupJarArchive, BUILD_JBR_API_SOURCES_JAR, \
DEPENDENCIES := $(JBR_API_GENSRC_FILES), \
SRCS := $(JBR_API_GENSRC_DIR), \
JAR := $(JBR_API_OUTPUT_DIR)/jbr-api-sources.jar, \
SUFFIXES := .java, \
BIN := $(JBR_API_BIN_DIR), \
))
# Grouped targets may not be supported, so hack dependencies: sources -> version file -> generated sources
$(JBR_API_VERSION_GENSRC): $(JBR_API_SRC_FILES) $(JBR_API_VERSION_PROPERTIES) $(JBR_API_TOOLS_DIR)/Gensrc.java
$(ECHO) Generating sources for JBR API
$(JAVA_CMD) $(JAVA_FLAGS_SMALL) "$(JBR_API_TOOLS_DIR)/Gensrc.java" \
"$(TOPDIR)/src" "$(JBR_API_OUTPUT_DIR)" "$(JBR_API_JBR_VERSION)"
$(JBR_API_GENSRC_FILES): $(JBR_API_VERSION_GENSRC)
$(TOUCH) $@
jbr-api-check-version: $(JBR_API_GENSRC_FILES) $(JBR_API_VERSION_PROPERTIES)
$(JAVA_CMD) $(JAVA_FLAGS_SMALL) "$(JBR_API_TOOLS_DIR)/CheckVersion.java" \
"$(JBR_API_ROOT_DIR)" "$(JBR_API_GENSRC_DIR)" "$(JBR_API_FAIL_ON_HASH_MISMATCH)"
jbr-api: $(BUILD_JBR_API) $(BUILD_JBR_API_SOURCES_JAR) jbr-api-check-version
.PHONY: jbr-api jbr-api-check-version
ifneq ($(JBR_API_CONF_FILE),)
$(JBR_API_CONF_FILE): $(JBR_API_GENSRC_FILES)
$(ECHO) "VERSION=`$(CAT) $(JBR_API_VERSION_GENSRC)`" > $(JBR_API_CONF_FILE)
$(ECHO) "JAR=$(JBR_API_OUTPUT_DIR)/jbr-api.jar" >> $(JBR_API_CONF_FILE)
$(ECHO) "SOURCES_JAR=$(JBR_API_OUTPUT_DIR)/jbr-api-sources.jar" >> $(JBR_API_CONF_FILE)
jbr-api: $(JBR_API_CONF_FILE)
.PHONY: $(JBR_API_CONF_FILE)
endif

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)
@@ -1354,6 +1394,14 @@ create-main-targets-include:
@$(ECHO) ALL_MAIN_TARGETS := $(sort $(ALL_TARGETS)) > \
$(MAKESUPPORT_OUTPUTDIR)/main-targets.gmk
################################################################################
# JBR API
$(eval $(call SetupTarget, jbr-api, \
MAKEFILE := JBRApi, \
TARGET := jbr-api \
))
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Main-post.gmk))

View File

@@ -51,6 +51,7 @@ define create-info-file
$(if $(VENDOR_VERSION_STRING), \
$(call info-file-item, "IMPLEMENTOR_VERSION", "$(VENDOR_VERSION_STRING)"))
$(call info-file-item, "JAVA_VERSION_DATE", "$(VERSION_DATE)")
$(call info-file-item, "JAVA_RUNTIME_VERSION", "$(VERSION_STRING)")
$(call info-file-item, "OS_NAME", "$(RELEASE_FILE_OS_NAME)")
$(call info-file-item, "OS_ARCH", "$(RELEASE_FILE_OS_ARCH)")
$(call info-file-item, "LIBC", "$(RELEASE_FILE_LIBC)")

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

@@ -434,7 +434,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_PANDOC],
if test "x$PANDOC" != x; then
AC_MSG_CHECKING([for pandoc version])
PANDOC_VERSION=`$PANDOC --version 2>&1 | $HEAD -1 | $CUT -d " " -f 2`
PANDOC_VERSION=`$PANDOC --version 2>&1 | $TR -d '\r' | $HEAD -1 | $CUT -d " " -f 2`
AC_MSG_RESULT([$PANDOC_VERSION])
if test "x$PANDOC_VERSION" != x$RECOMMENDED_PANDOC_VERSION; then
@@ -443,7 +443,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_PANDOC],
PANDOC_MARKDOWN_FLAG="markdown"
AC_MSG_CHECKING([if the pandoc smart extension needs to be disabled for markdown])
if $PANDOC --list-extensions | $GREP -q '\+smart'; then
if $PANDOC --list-extensions | $GREP -q '+smart'; then
AC_MSG_RESULT([yes])
PANDOC_MARKDOWN_FLAG="markdown-smart"
else

View File

@@ -89,8 +89,8 @@ AC_DEFUN([BASIC_SETUP_PATHS_WINDOWS],
WINENV_TEMP_DIR=$($PATHTOOL -u $($CMD /q /c echo %TEMP% 2> /dev/null) | $TR -d '\r\n')
AC_MSG_RESULT([$WINENV_TEMP_DIR])
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl2"; then
# Don't trust the current directory for WSL2, but change to an OK temp dir
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl1" || test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl2"; then
# Don't trust the current directory for WSL, but change to an OK temp dir
cd "$WINENV_TEMP_DIR"
# Bring along confdefs.h or autoconf gets all confused
cp "$CONFIGURE_START_DIR/confdefs.h" "$WINENV_TEMP_DIR"
@@ -228,7 +228,7 @@ AC_DEFUN([BASIC_WINDOWS_FINALIZE_FIXPATH],
# Platform-specific finalization
AC_DEFUN([BASIC_WINDOWS_FINALIZE],
[
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl2"; then
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl1" || test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl2"; then
# Change back from temp dir
cd $CONFIGURE_START_DIR
fi

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
@@ -382,7 +382,7 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK],
# Finally, set some other options...
# Determine if the boot jdk jar supports the --date option
if $JAR --help 2>&1 | $GREP -q "\-\-date=TIMESTAMP"; then
if $JAR --help 2>&1 | $GREP -q -e "--date=TIMESTAMP"; then
BOOT_JDK_JAR_SUPPORTS_DATE=true
else
BOOT_JDK_JAR_SUPPORTS_DATE=false

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

@@ -234,6 +234,31 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
fi
AC_SUBST(HOTSPOT_OVERRIDE_LIBPATH)
# Should we build the client for the JAWS screen reader?
if test "x$OPENJDK_TARGET_OS" = xwindows; then
AC_MSG_CHECKING([if JAWS client support is enabled])
A11Y_JAWS_ANNOUNCING_ENABLED=true
AC_ARG_ENABLE(
[jaws-client],
[AS_HELP_STRING([--disable-jaws-client], [Set to disable to exclude the client for the JAWS screen reader from the build])],
[
if test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
AC_MSG_WARN([--[enable|disable]-jaws-client[=*] flags are ignored for headless builds])
elif test "x$enableval" != xyes; then
A11Y_JAWS_ANNOUNCING_ENABLED=false
fi
]
)
if test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
A11Y_JAWS_ANNOUNCING_ENABLED=false
fi
AC_MSG_RESULT([$A11Y_JAWS_ANNOUNCING_ENABLED])
else
A11Y_JAWS_ANNOUNCING_ENABLED=false
fi
AC_SUBST(A11Y_JAWS_ANNOUNCING_ENABLED)
])
###############################################################################
@@ -415,7 +440,8 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_ADDRESS_SANITIZER],
CHECK_AVAILABLE: [
AC_MSG_CHECKING([if AddressSanitizer (asan) is available])
if test "x$TOOLCHAIN_TYPE" = "xgcc" ||
test "x$TOOLCHAIN_TYPE" = "xclang"; then
test "x$TOOLCHAIN_TYPE" = "xclang" ||
test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
@@ -423,11 +449,20 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_ADDRESS_SANITIZER],
fi
],
IF_ENABLED: [
# ASan is simply incompatible with gcc -Wstringop-truncation. See
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85650
# It's harmless to be suppressed in clang as well.
ASAN_CFLAGS="-fsanitize=address -Wno-stringop-truncation -fno-omit-frame-pointer -fno-common -DADDRESS_SANITIZER"
ASAN_LDFLAGS="-fsanitize=address"
if test "x$TOOLCHAIN_TYPE" = "xgcc" ||
test "x$TOOLCHAIN_TYPE" = "xclang"; then
# ASan is simply incompatible with gcc -Wstringop-truncation. See
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85650
# It's harmless to be suppressed in clang as well.
ASAN_CFLAGS="-fsanitize=address -Wno-stringop-truncation -fno-omit-frame-pointer -fno-common -DADDRESS_SANITIZER"
ASAN_LDFLAGS="-fsanitize=address"
elif test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then
# -Oy- is equivalent to -fno-omit-frame-pointer in GCC/Clang.
ASAN_CFLAGS="-fsanitize=address -Oy- -DADDRESS_SANITIZER"
# MSVC produces a warning if you pass -fsanitize=address to the linker. It also complains
$ if -DEBUG is not passed to the linker when building with ASan.
ASAN_LDFLAGS="-debug"
fi
JVM_CFLAGS="$JVM_CFLAGS $ASAN_CFLAGS"
JVM_LDFLAGS="$JVM_LDFLAGS $ASAN_LDFLAGS"
CFLAGS_JDKLIB="$CFLAGS_JDKLIB $ASAN_CFLAGS"

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

@@ -0,0 +1,121 @@
#
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022, JetBrains s.r.o.. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
################################################################################
# Setup nvdacontrollerclient (The library for communication with
# NVDA - a screen reader for Microsoft Windows)
################################################################################
AC_DEFUN_ONCE([LIB_SETUP_NVDACONTROLLERCLIENT], [
# To enable NVDA, user specifies neither --with-nvdacontrollerclient or
# a pair (--with-nvdacontrollerclient-include, --with-nvdacontrollerclient-lib)
AC_ARG_WITH(nvdacontrollerclient, [AS_HELP_STRING([--with-nvdacontrollerclient],
[specify prefix directory for the NVDA Controller Client library package
(expecting headers and libs under PATH/<target-arch>/)])])
AC_ARG_WITH(nvdacontrollerclient-include, [AS_HELP_STRING([--with-nvdacontrollerclient-include],
[specify directory for the NVDA Controller Client include files])])
AC_ARG_WITH(nvdacontrollerclient-lib, [AS_HELP_STRING([--with-nvdacontrollerclient-lib],
[specify directory for the NVDA Controller Client library])])
NVDACONTROLLERCLIENT_FOUND=no
NVDACONTROLLERCLIENT_LIB=
NVDACONTROLLERCLIENT_DLL=
NVDACONTROLLERCLIENT_CFLAGS=
if test "x${NEEDS_LIB_NVDACONTROLLERCLIENT}" = "xtrue" ; then
if (test "x${with_nvdacontrollerclient_include}" = "x" && test "x${with_nvdacontrollerclient_lib}" != "x") || \
(test "x${with_nvdacontrollerclient_include}" != "x" && test "x${with_nvdacontrollerclient_lib}" = "x") ; then
AC_MSG_ERROR([Must specify both or neither of --with-nvdacontrollerclient-include and --with-nvdacontrollerclient-lib])
elif (test "x${with_nvdacontrollerclient}" != "x" && test "x${with_nvdacontrollerclient_include}" != "x") ; then
AC_MSG_ERROR([Must specify either --with-nvdacontrollerclient or a pair (--with-nvdacontrollerclient-include, --with-nvdacontrollerclient-lib)])
fi
if (test "x${with_nvdacontrollerclient}" != "x") || \
(test "x${with_nvdacontrollerclient_include}" != "x" && test "x${with_nvdacontrollerclient_lib}" != "x") ; then
AC_MSG_CHECKING([for nvdacontrollerclient])
if test "x${OPENJDK_TARGET_OS}" != "xwindows" ; then
AC_MSG_ERROR([--with-nvdacontrollerclient[-*] flags are applicable only to Windows builds])
fi
if test "x${OPENJDK_TARGET_CPU_ARCH}" = "xaarch64" ; then
NVDACONTROLLERCLIENT_BIN_BASENAME="nvdaControllerClient32"
NVDACONTROLLERCLIENT_ARCHDIR="arm64"
elif test "x${OPENJDK_TARGET_CPU_ARCH}" = "xx86" && test "x${OPENJDK_TARGET_CPU_BITS}" = "x64" ; then
NVDACONTROLLERCLIENT_BIN_BASENAME="nvdaControllerClient64"
NVDACONTROLLERCLIENT_ARCHDIR="x64"
elif test "x${OPENJDK_TARGET_CPU_ARCH}" = "xx86" && test "x${OPENJDK_TARGET_CPU_BITS}" = "x32" ; then
NVDACONTROLLERCLIENT_BIN_BASENAME="nvdaControllerClient32"
NVDACONTROLLERCLIENT_ARCHDIR="x86"
else
AC_MSG_ERROR([The nvdacontrollerclient library exists only for x86_32, x86_64, AArch64 architectures])
fi
if test "x${with_nvdacontrollerclient}" != "x" ; then
# NVDACONTROLLERCLIENT_ARCHDIR is used only here
NVDACONTROLLERCLIENT_INC_PATH="${with_nvdacontrollerclient}/${NVDACONTROLLERCLIENT_ARCHDIR}"
NVDACONTROLLERCLIENT_BIN_PATH="${with_nvdacontrollerclient}/${NVDACONTROLLERCLIENT_ARCHDIR}"
else
NVDACONTROLLERCLIENT_INC_PATH="${with_nvdacontrollerclient_include}"
NVDACONTROLLERCLIENT_BIN_PATH="${with_nvdacontrollerclient_lib}"
fi
POTENTIAL_NVDACONTROLLERCLIENT_DLL="${NVDACONTROLLERCLIENT_BIN_PATH}/${NVDACONTROLLERCLIENT_BIN_BASENAME}.dll"
POTENTIAL_NVDACONTROLLERCLIENT_LIB="${NVDACONTROLLERCLIENT_BIN_PATH}/${NVDACONTROLLERCLIENT_BIN_BASENAME}.lib"
POTENTIAL_NVDACONTROLLERCLIENT_EXP="${NVDACONTROLLERCLIENT_BIN_PATH}/${NVDACONTROLLERCLIENT_BIN_BASENAME}.exp"
if ! test -s "${POTENTIAL_NVDACONTROLLERCLIENT_DLL}" || \
! test -s "${POTENTIAL_NVDACONTROLLERCLIENT_LIB}" || \
! test -s "${POTENTIAL_NVDACONTROLLERCLIENT_EXP}" ; then
AC_MSG_ERROR([Could not find ${NVDACONTROLLERCLIENT_BIN_BASENAME}.dll and/or ${NVDACONTROLLERCLIENT_BIN_BASENAME}.lib and/or ${NVDACONTROLLERCLIENT_BIN_BASENAME}.exp inside ${NVDACONTROLLERCLIENT_BIN_PATH}])
fi
if ! test -s "${NVDACONTROLLERCLIENT_INC_PATH}/nvdaController.h" ; then
AC_MSG_ERROR([Could not find the header file nvdaController.h inside ${NVDACONTROLLERCLIENT_INC_PATH}])
fi
NVDACONTROLLERCLIENT_CFLAGS="-I${NVDACONTROLLERCLIENT_INC_PATH}"
NVDACONTROLLERCLIENT_DLL="${POTENTIAL_NVDACONTROLLERCLIENT_DLL}"
NVDACONTROLLERCLIENT_LIB="${POTENTIAL_NVDACONTROLLERCLIENT_LIB}"
NVDACONTROLLERCLIENT_FOUND=yes
AC_MSG_RESULT([includes at ${NVDACONTROLLERCLIENT_INC_PATH} ; binaries at ${NVDACONTROLLERCLIENT_BIN_PATH}])
fi
elif test "x${with_nvdacontrollerclient}" != "x" || \
test "x${with_nvdacontrollerclient_include}" != "x" || test "x${with_nvdacontrollerclient_lib}" != "x" ; then
AC_MSG_WARN([[nvdacontrollerclient is not used, so --with-nvdacontrollerclient[-*] is ignored]])
fi
if test "x${NVDACONTROLLERCLIENT_FOUND}" = "xyes" ; then
A11Y_NVDA_ANNOUNCING_ENABLED=true
else
A11Y_NVDA_ANNOUNCING_ENABLED=false
fi
AC_SUBST(A11Y_NVDA_ANNOUNCING_ENABLED)
AC_SUBST(NVDACONTROLLERCLIENT_CFLAGS)
AC_SUBST(NVDACONTROLLERCLIENT_DLL)
AC_SUBST(NVDACONTROLLERCLIENT_LIB)
])

View File

@@ -0,0 +1,92 @@
#
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022, JetBrains s.r.o.. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
################################################################################
# Setup speechd
################################################################################
AC_DEFUN_ONCE([LIB_SETUP_SPEECHD],
[
AC_ARG_WITH(speechd, [AS_HELP_STRING([--with-speechd],
[specify prefix directory for the libspeechd package
(expecting the headers under PATH/include); required for AccessibleAnnouncer to work])])
AC_ARG_WITH(speechd-include, [AS_HELP_STRING([--with-speechd-include],
[specify directory for the speechd include files])])
if test "x$NEEDS_LIB_SPEECHD" = xfalse || test "x${with_speechd}" = xno || \
test "x${with_speechd_include}" = xno; then
if (test "x${with_speechd}" != x && test "x${with_speechd}" != xno) || \
(test "x${with_speechd_include}" != x && test "x${with_speechd_include}" != xno); then
AC_MSG_WARN([[speechd not used, so --with-speechd[-*] is ignored]])
fi
A11Y_SPEECHD_ANNOUNCING_ENABLED=false
SPEECHD_CFLAGS=
SPEECHD_LIBS=
else
SPEECHD_FOUND=no
if test "x${with_speechd}" != x && test "x${with_speechd}" != xyes; then
AC_MSG_CHECKING([for speechd header and library])
if test -s "${with_speechd}/include/libspeechd.h"; then
SPEECHD_CFLAGS="-I${with_speechd}/include"
SPEECHD_LIBS="-L${with_speechd}/lib -lspeechd"
SPEECHD_FOUND=yes
AC_MSG_RESULT([$SPEECHD_FOUND])
else
AC_MSG_ERROR([Can't find 'include/libspeechd.h' under ${with_speechd} given with the --with-speechd option.])
fi
fi
if test "x${with_speechd_include}" != x; then
AC_MSG_CHECKING([for speechd headers])
if test -s "${with_speechd_include}/libspeechd.h"; then
SPEECHD_CFLAGS="-I${with_speechd_include}"
SPEECHD_FOUND=yes
AC_MSG_RESULT([$SPEECHD_FOUND])
else
AC_MSG_ERROR([Can't find 'include/libspeechd.h' under ${with_speechd} given with the --with-speechd-include option.])
fi
fi
if test "x$SPEECHD_FOUND" = xno; then
# Are the libspeechd headers installed in the default /usr/include location?
AC_CHECK_HEADERS([libspeechd.h],
[ SPEECHD_FOUND=yes ],
[ SPEECHD_FOUND=no; break ]
)
if test "x$SPEECHD_FOUND" = xyes; then
SPEECHD_CFLAGS=
SPEECHD_LIBS="-lspeechd"
fi
fi
if test "x$SPEECHD_FOUND" = xno; then
A11Y_SPEECHD_ANNOUNCING_ENABLED=false
else
A11Y_SPEECHD_ANNOUNCING_ENABLED=true
fi
fi
AC_SUBST(A11Y_SPEECHD_ANNOUNCING_ENABLED)
AC_SUBST(SPEECHD_CFLAGS)
AC_SUBST(SPEECHD_LIBS)
])

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

@@ -33,7 +33,9 @@ m4_include([lib-freetype.m4])
m4_include([lib-hsdis.m4])
m4_include([lib-std.m4])
m4_include([lib-x11.m4])
m4_include([lib-fontconfig.m4])
m4_include([lib-speechd.m4])
m4_include([lib-nvdacontrollerclient.m4])
m4_include([lib-tests.m4])
################################################################################
@@ -45,10 +47,16 @@ AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
# No X11 support on windows or macosx
NEEDS_LIB_X11=false
NEEDS_LIB_SPEECHD=false
elif test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
# No X11 support needed when building headless only
NEEDS_LIB_X11=false
NEEDS_LIB_SPEECHD=false
else
# All other instances need X11, even if building headless only, libawt still
# needs X11 headers.
NEEDS_LIB_X11=true
NEEDS_LIB_SPEECHD=true
fi
# Check if fontconfig is needed
@@ -87,6 +95,13 @@ AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
else
NEEDS_LIB_FFI=false
fi
# Check if nvdacontrollerclient is needed
if test "x$OPENJDK_TARGET_OS" = xwindows && test "x$ENABLE_HEADLESS_ONLY" != xtrue; then
NEEDS_LIB_NVDACONTROLLERCLIENT=true
else
NEEDS_LIB_NVDACONTROLLERCLIENT=false
fi
])
################################################################################
@@ -132,7 +147,8 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
LIB_SETUP_LIBFFI
LIB_SETUP_MISC_LIBS
LIB_SETUP_X11
LIB_SETUP_SPEECHD
LIB_SETUP_NVDACONTROLLERCLIENT
LIB_TESTS_SETUP_GTEST
BASIC_JDKLIB_LIBS=""
@@ -170,8 +186,8 @@ 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 uuid.lib \
wsock32.lib winmm.lib version.lib psapi.lib"
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib powrprof.lib uuid.lib \
ws2_32.lib winmm.lib version.lib psapi.lib"
fi
LIB_SETUP_JVM_LIBS(BUILD)
LIB_SETUP_JVM_LIBS(TARGET)

View File

@@ -460,6 +460,20 @@ UBSAN_LDFLAGS:=@UBSAN_LDFLAGS@
X_CFLAGS:=@X_CFLAGS@
X_LIBS:=@X_LIBS@
# Linux speechd a11y announcer
A11Y_SPEECHD_ANNOUNCING_ENABLED:=@A11Y_SPEECHD_ANNOUNCING_ENABLED@
SPEECHD_CFLAGS:=@SPEECHD_CFLAGS@
SPEECHD_LIBS:=@SPEECHD_LIBS@
# Windows NVDA a11y announcer
A11Y_NVDA_ANNOUNCING_ENABLED:=@A11Y_NVDA_ANNOUNCING_ENABLED@
NVDACONTROLLERCLIENT_CFLAGS:=@NVDACONTROLLERCLIENT_CFLAGS@
NVDACONTROLLERCLIENT_DLL:=@NVDACONTROLLERCLIENT_DLL@
NVDACONTROLLERCLIENT_LIB:=@NVDACONTROLLERCLIENT_LIB@
# Windows the client for the JAWS screen reader
A11Y_JAWS_ANNOUNCING_ENABLED:=@A11Y_JAWS_ANNOUNCING_ENABLED@
# The lowest required version of macosx
MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
# The highest allowed version of macosx

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
@@ -521,7 +521,7 @@ AC_DEFUN([UTIL_REMOVE_SYMBOLIC_LINKS],
sym_link_dir=`pwd -P`
# Resolve file symlinks
while test $COUNTER -lt 20; do
ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP -e '->' | $SED -e 's/.*-> \(.*\)/\1/'`
if test "x$ISLINK" == x; then
# This is not a symbolic link! We are done!
break

View File

@@ -257,7 +257,7 @@ ifeq ($(HAS_FILE_FUNCTION), true)
else
# Use printf to get consistent behavior on all platforms.
WriteFile = \
$(shell $(PRINTF) "%s" $(call ShellQuote, $1) > $2)
$(shell $(PRINTF) "%s\n" $(strip $(call ShellQuote, $1)) > $2)
endif
# Param 1 - Text to write
@@ -268,5 +268,5 @@ ifeq ($(HAS_FILE_FUNCTION), true)
else
# Use printf to get consistent behavior on all platforms.
AppendFile = \
$(shell $(PRINTF) "%s" $(call ShellQuote, $1) >> $2)
$(shell $(PRINTF) "%s\n" $(strip $(call ShellQuote, $1)) >> $2)
endif

View File

@@ -84,7 +84,7 @@ define ProcessMarkdown
$$(call MakeDir, $$(SUPPORT_OUTPUTDIR)/markdown $$(dir $$($1_$2_PANDOC_OUTPUT)))
$$(call ExecuteWithLog, $$(SUPPORT_OUTPUTDIR)/markdown/$$($1_$2_MARKER), \
$$(PANDOC) $$($1_OPTIONS) -f $$(PANDOC_MARKDOWN_FLAG) \
-t $$($1_FORMAT) --standalone \
-t $$($1_FORMAT) --eol=lf --standalone \
$$($1_$2_CSS_OPTION) $$($1_$2_OPTIONS_FROM_SRC) $$($1_$2_OPTIONS) \
'$$($1_$2_PANDOC_INPUT)' -o '$$($1_$2_PANDOC_OUTPUT)')
ifneq ($$(findstring $$(LOG_LEVEL), debug trace),)

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";
@@ -1048,7 +1048,7 @@ var getJibProfilesDependencies = function (input, common) {
linux_x64: "gcc11.2.0-OL6.4+1.0",
macosx: "Xcode12.4+1.1",
windows_x64: "VS2022-17.1.0+1.1",
linux_aarch64: "gcc11.2.0-OL7.6+1.0",
linux_aarch64: input.build_cpu == "x64" ? "gcc11.2.0-OL7.6+1.1" : "gcc11.2.0-OL7.6+1.0",
linux_arm: "gcc8.2.0-Fedora27+1.0",
linux_ppc64le: "gcc8.2.0-Fedora27+1.0",
linux_s390x: "gcc8.2.0-Fedora27+1.0",

View File

@@ -33,6 +33,8 @@
#if (defined(__GNUC__) && !defined(__clang__)) || __has_attribute(visibility)
#define ATTRIBUTE_DEFAULT_VISIBILITY __attribute__((visibility("default")))
#elif defined(_MSC_VER)
#define ATTRIBUTE_DEFAULT_VISIBILITY __declspec(dllexport)
#else
#define ATTRIBUTE_DEFAULT_VISIBILITY
#endif
@@ -43,12 +45,18 @@
#define ATTRIBUTE_USED
#endif
#if defined(_MSC_VER)
#define CDECL __cdecl
#else
#define CDECL
#endif
// Override weak symbol exposed by ASan to override default options. This is called by ASan
// extremely early during library loading, before main is called. We need to override the default
// options because LSan is enabled by default and Hotspot is not yet compatible with it.
// Additionally we need to prevent ASan from handling SIGSEGV, so that Hotspot's crash handler is
// used. You can override these options by setting the environment variable ASAN_OPTIONS.
ATTRIBUTE_DEFAULT_VISIBILITY ATTRIBUTE_USED const char* __asan_default_options() {
ATTRIBUTE_DEFAULT_VISIBILITY ATTRIBUTE_USED const char* CDECL __asan_default_options() {
return
#ifdef LEAK_SANITIZER
"leak_check_at_exit=0,"

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 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
@@ -476,6 +476,11 @@ charset x-IBM874 IBM874
alias ibm-874
alias 874
# alias for GB18030 is generated at runtime
charset GB18030 GB18030
package sun.nio.cs
type source
########################################################
#
# charsets provided by ExtendedCharsets provider.
@@ -563,11 +568,6 @@ charset GBK GBK # Simplified Chinese
alias windows-936
alias CP936
charset GB18030 GB18030
package sun.nio.cs.ext
type template
alias gb18030-2000
charset GB2312 EUC_CN
package sun.nio.cs.ext
type dbcs

View File

@@ -7,7 +7,6 @@ Big5_HKSCS
EUC_CN
EUC_KR
GBK
GB18030
IBM856
IBM921
IBM922

View File

@@ -11,7 +11,6 @@ EUC_JP_LINUX
EUC_JP_Open
EUC_TW
GBK
GB18030
ISO_8859_11
ISO_8859_3
ISO_8859_6

View File

@@ -1,26 +0,0 @@
#
# generate these charsets into sun.nio.cs
#
Big5
Big5_Solaris
Big5_HKSCS # always together with Big5
EUC_CN
EUC_KR
EUC_JP
EUC_JP_LINUX
EUC_JP_Open
EUC_TW
GBK
GB18030
ISO_8859_11
ISO_8859_3
ISO_8859_6
ISO_8859_8
Johab
PCK
TIS_620
JIS_X_0201
JIS_X_0208
JIS_X_0212
JIS_X_0208_Solaris
JIS_X_0212_Solaris

View File

@@ -2,7 +2,6 @@
# generate these charsets into sun.nio.cs
#
GBK
GB18030
Johab
MS1255
MS1256

View File

@@ -1,4 +1,4 @@
CLDR - Unicode Common Locale Data Repository
http://cldr.unicode.org
CLDR version installed: 42
CLDR version installed: 43

View File

@@ -67,9 +67,9 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="btn" description="Bhutanese Ngultrum"/>
<type name="buk" description="Burmese Kyat" since="1.9"/>
<type name="bwp" description="Botswanan Pula"/>
<type name="byb" description="Belarusian New Ruble (1994-1999)" since="1.9"/>
<type name="byb" description="Belarusian Ruble (1994-1999)" since="1.9"/>
<type name="byn" description="Belarusian Ruble" since="31"/>
<type name="byr" description="Belarusian Ruble (20002016)" since="1.9"/>
<type name="byr" description="Belarusian Ruble (2000-2016)" since="1.9"/>
<type name="bzd" description="Belize Dollar"/>
<type name="cad" description="Canadian Dollar"/>
<type name="cdf" description="Congolese Franc"/>
@@ -112,7 +112,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="fjd" description="Fijian Dollar"/>
<type name="fkp" description="Falkland Islands Pound"/>
<type name="frf" description="French Franc"/>
<type name="gbp" description="British Pound Sterling"/>
<type name="gbp" description="British Pound"/>
<type name="gek" description="Georgian Kupon Larit" since="1.9"/>
<type name="gel" description="Georgian Lari" since="1.9"/>
<type name="ghc" description="Ghanaian Cedi (1979-2007)"/>
@@ -136,8 +136,8 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="idr" description="Indonesian Rupiah"/>
<type name="iep" description="Irish Pound"/>
<type name="ilp" description="Israeli Pound"/>
<type name="ilr" description="Israeli Sheqel (1980-1985)" since="1.9"/>
<type name="ils" description="Israeli New Sheqel"/>
<type name="ilr" description="Israeli Shekel (1980-1985)" since="1.9"/>
<type name="ils" description="Israeli New Shekel"/>
<type name="inr" description="Indian Rupee"/>
<type name="iqd" description="Iraqi Dinar" since="1.9"/>
<type name="irr" description="Iranian Rial" since="1.9"/>
@@ -181,7 +181,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="mkd" description="Macedonian Denar" since="1.9"/>
<type name="mkn" description="Macedonian Denar (1992-1993)" since="1.9"/>
<type name="mlf" description="Malian Franc" since="1.9"/>
<type name="mmk" description="Myanma Kyat"/>
<type name="mmk" description="Myanmar Kyat"/>
<type name="mnt" description="Mongolian Tugrik"/>
<type name="mop" description="Macanese Pataca"/>
<type name="mro" description="Mauritanian Ouguiya (1973-2017)"/>
@@ -189,7 +189,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="mtl" description="Maltese Lira"/>
<type name="mtp" description="Maltese Pound"/>
<type name="mur" description="Mauritian Rupee"/>
<type name="mvp" description="Maldivian Rupee" since="1.9"/>
<type name="mvp" description="Maldivian Rupee (1947-1981)" since="1.9"/>
<type name="mvr" description="Maldivian Rufiyaa" since="1.9"/>
<type name="mwk" description="Malawian Kwacha" since="1.9"/>
<type name="mxn" description="Mexican Peso" since="1.9"/>
@@ -210,7 +210,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="omr" description="Omani Rial" since="1.9"/>
<type name="pab" description="Panamanian Balboa"/>
<type name="pei" description="Peruvian Inti"/>
<type name="pen" description="Peruvian Nuevo Sol"/>
<type name="pen" description="Peruvian Sol"/>
<type name="pes" description="Peruvian Sol (1863-1965)" since="1.9"/>
<type name="pgk" description="Papua New Guinean Kina"/>
<type name="php" description="Philippine Peso"/>
@@ -219,7 +219,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="plz" description="Polish Zloty (1950-1995)" since="1.9"/>
<type name="pte" description="Portuguese Escudo"/>
<type name="pyg" description="Paraguayan Guarani"/>
<type name="qar" description="Qatari Rial"/>
<type name="qar" description="Qatari Riyal"/>
<type name="rhd" description="Rhodesian Dollar"/>
<type name="rol" description="Romanian Leu (1952-2006)" since="1.9"/>
<type name="ron" description="Romanian Leu"/>
@@ -235,11 +235,11 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="sdp" description="Sudanese Pound (1957-1998)" since="1.9"/>
<type name="sek" description="Swedish Krona"/>
<type name="sgd" description="Singapore Dollar"/>
<type name="shp" description="Saint Helena Pound"/>
<type name="shp" description="St. Helena Pound"/>
<type name="sit" description="Slovenian Tolar" since="1.9"/>
<type name="skk" description="Slovak Koruna"/>
<type name="sle" description="Sierra Leonean New Leone"/>
<type name="sll" description="Sierra Leonean Leone"/>
<type name="sle" description="Sierra Leonean Leone" since="41"/>
<type name="sll" description="Sierra Leonean Leone (1964—2022)"/>
<type name="sos" description="Somali Shilling"/>
<type name="srd" description="Surinamese Dollar"/>
<type name="srg" description="Surinamese Guilder"/>
@@ -274,28 +274,28 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="uyp" description="Uruguayan Peso (1975-1993)" since="1.9"/>
<type name="uyu" description="Uruguayan Peso"/>
<type name="uyw" description="Uruguayan Nominal Wage Index Unit" since="34"/>
<type name="uzs" description="Uzbekistan Som" since="1.9"/>
<type name="uzs" description="Uzbekistani Som" since="1.9"/>
<type name="veb" description="Venezuelan Bolívar (1871-2008)" since="1.9"/>
<type name="ved" description="Bolívar Soberano" since="41"/>
<type name="vef" description="Venezuelan Bolívar (2008-2018)"/>
<type name="ves" description="Venezuelan Bolívar" since="34"/>
<type name="ved" description="Bolívar Soberano" since="41"/>
<type name="vnd" description="Vietnamese Dong"/>
<type name="vnn" description="Vietnamese Dong (1978-1985)" since="1.9"/>
<type name="vuv" description="Vanuatu Vatu"/>
<type name="wst" description="Samoan Tala"/>
<type name="xaf" description="CFA Franc BEAC"/>
<type name="xaf" description="Central African CFA Franc"/>
<type name="xag" description="Silver" since="1.9"/>
<type name="xau" description="Gold" since="1.9"/>
<type name="xba" description="European Composite Unit" since="1.9"/>
<type name="xbb" description="European Monetary Unit" since="1.9"/>
<type name="xbc" description="European Unit of Account 9" since="1.9"/>
<type name="xbd" description="European Unit of Account 17" since="1.9"/>
<type name="xbc" description="European Unit of Account (XBC)" since="1.9"/>
<type name="xbd" description="European Unit of Account (XBD)" since="1.9"/>
<type name="xcd" description="East Caribbean Dollar"/>
<type name="xdr" description="Special Drawing Rights" since="1.9"/>
<type name="xeu" description="European Currency Unit" since="1.9"/>
<type name="xfo" description="French Gold Franc" since="1.9"/>
<type name="xfu" description="French UIC-Franc" since="1.9"/>
<type name="xof" description="CFA Franc BCEAO"/>
<type name="xof" description="West African CFA Franc"/>
<type name="xpd" description="Palladium" since="1.9"/>
<type name="xpf" description="CFP Franc"/>
<type name="xpt" description="Platinum" since="1.9"/>

View File

@@ -10,25 +10,25 @@ For terms of use, see http://www.unicode.org/copyright.html
<version number="$Revision$"/>
<keyword>
<key name="dx" description="Scripts to exclude from dictionary break" valueType="multiple" since="38">
<type name="SCRIPT_CODE" description="ISO 15924 script code"/>
<type name="SCRIPT_CODE" description="ISO 15924 script code" since="38"/>
</key>
<key name="lb" description="Line break type key" since="27">
<type name="strict" description="CSS level 3 line-break=strict, e.g. treat CJ as NS"/>
<type name="normal" description="CSS level 3 line-break=normal, e.g. treat CJ as ID, break before hyphens for ja,zh"/>
<type name="loose" description="CSS lev 3 line-break=loose"/>
<type name="strict" description="CSS level 3 line-break=strict, e.g. treat CJ as NS" since="27"/>
<type name="normal" description="CSS level 3 line-break=normal, e.g. treat CJ as ID, break before hyphens for ja,zh" since="27"/>
<type name="loose" description="CSS lev 3 line-break=loose" since="27"/>
</key>
<key name="lw" description="Line break key for CSS lev 3 word-break options" since="28">
<type name="normal" description="CSS lev 3 word-break=normal, normal script/language behavior for midword breaks"/>
<type name="breakall" description="CSS lev 3 word-break=break-all, allow midword breaks unless forbidden by lb setting"/>
<type name="keepall" description="CSS lev 3 word-break=keep-all, prohibit midword breaks except for dictionary breaks"/>
<type name="phrase" description="Prioritize keeping natural phrases (of multiple words) together when breaking, used in short text like title and headline"/>
<type name="normal" description="CSS lev 3 word-break=normal, normal script/language behavior for midword breaks" since="28"/>
<type name="breakall" description="CSS lev 3 word-break=break-all, allow midword breaks unless forbidden by lb setting" since="28"/>
<type name="keepall" description="CSS lev 3 word-break=keep-all, prohibit midword breaks except for dictionary breaks" since="28"/>
<type name="phrase" description="Prioritize keeping natural phrases (of multiple words) together when breaking, used in short text like title and headline" since="41"/>
</key>
<key name="ss" description="Sentence break parameter key to control use of suppressions data" since="28">
<type name="none" description="Don't use segmentation suppressions data"/>
<type name="standard" description="Use segmentation suppressions data of type standard"/>
<type name="none" description="Don't use segmentation suppressions data" since="28"/>
<type name="standard" description="Use segmentation suppressions data of type standard" since="28"/>
</key>
</keyword>

View File

@@ -96,20 +96,20 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="cacfq" description="Creston, Canada" alias="America/Creston" since="21.0.1"/>
<type name="caedm" description="Edmonton, Canada" alias="America/Edmonton Canada/Mountain"/>
<type name="caffs" description="Rainy River, Canada" alias="America/Rainy_River"/>
<type name="cafne" description="Fort Nelson, Canada" alias="America/Fort_Nelson"/>
<type name="cafne" description="Fort Nelson, Canada" alias="America/Fort_Nelson" since="29"/>
<type name="caglb" description="Glace Bay, Canada" alias="America/Glace_Bay"/>
<type name="cagoo" description="Goose Bay, Canada" alias="America/Goose_Bay"/>
<type name="cahal" description="Halifax, Canada" alias="America/Halifax Canada/Atlantic"/>
<type name="caiql" description="Iqaluit, Canada" alias="America/Iqaluit"/>
<type name="camon" description="Moncton, Canada" alias="America/Moncton"/>
<type name="camtr" description="Montreal, Canada" deprecated="true" alias="America/Montreal"/>
<type name="camtr" description="Montreal, Canada" deprecated="true" preferred="cator"/>
<type name="capnt" description="Pangnirtung, Canada" alias="America/Pangnirtung"/>
<type name="careb" description="Resolute, Canada" alias="America/Resolute"/>
<type name="careg" description="Regina, Canada" alias="America/Regina Canada/East-Saskatchewan Canada/Saskatchewan"/>
<type name="casjf" description="St. John's, Canada" alias="America/St_Johns Canada/Newfoundland"/>
<type name="canpg" description="Nipigon, Canada" alias="America/Nipigon"/>
<type name="cathu" description="Thunder Bay, Canada" alias="America/Thunder_Bay"/>
<type name="cator" description="Toronto, Canada" alias="America/Toronto Canada/Eastern"/>
<type name="cator" description="Toronto, Canada" alias="America/Toronto America/Montreal Canada/Eastern"/>
<type name="cavan" description="Vancouver, Canada" alias="America/Vancouver Canada/Pacific"/>
<type name="cawnp" description="Winnipeg, Canada" alias="America/Winnipeg Canada/Central"/>
<type name="caybx" description="Blanc-Sablon, Canada" alias="America/Blanc-Sablon"/>
@@ -177,7 +177,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="frpar" description="Paris, France" alias="Europe/Paris"/>
<type name="galbv" description="Libreville, Gabon" alias="Africa/Libreville"/>
<type name="gaza" description="Gaza Strip, Palestinian Territories" deprecated="true" preferred="gazastrp"/>
<type name="gazastrp" description="Gaza Strip, Palestinian Territories" alias="Asia/Gaza"/>
<type name="gazastrp" description="Gaza Strip, Palestinian Territories" alias="Asia/Gaza" since="40"/>
<type name="gblon" description="London, United Kingdom" alias="Europe/London Europe/Belfast GB GB-Eire"/>
<type name="gdgnd" description="Grenada" alias="America/Grenada"/>
<type name="getbs" description="Tbilisi, Georgia" alias="Asia/Tbilisi"/>
@@ -190,7 +190,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="globy" description="Ittoqqortoormiit (Scoresbysund), Greenland" alias="America/Scoresbysund"/>
<type name="glthu" description="Qaanaaq (Thule), Greenland" alias="America/Thule"/>
<type name="gmbjl" description="Banjul, Gambia" alias="Africa/Banjul"/>
<type name="gmt" description="Greenwich Mean Time" alias="Etc/GMT Etc/GMT+0 Etc/GMT-0 Etc/GMT0 Etc/Greenwich GMT GMT+0 GMT-0 GMT0 Greenwich"/>
<type name="gmt" description="Greenwich Mean Time" alias="Etc/GMT Etc/GMT+0 Etc/GMT-0 Etc/GMT0 Etc/Greenwich GMT GMT+0 GMT-0 GMT0 Greenwich" since="31"/>
<type name="gncky" description="Conakry, Guinea" alias="Africa/Conakry"/>
<type name="gpbbr" description="Guadeloupe" alias="America/Guadeloupe"/>
<type name="gpmsb" description="Marigot, Saint Martin" alias="America/Marigot"/>
@@ -280,7 +280,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="mwblz" description="Blantyre, Malawi" alias="Africa/Blantyre"/>
<type name="mxchi" description="Chihuahua, Mexico" alias="America/Chihuahua"/>
<type name="mxcun" description="Cancún, Mexico" alias="America/Cancun"/>
<type name="mxcjs" description="Ciudad Juárez, Mexico" alias="America/Ciudad_Juarez"/>
<type name="mxcjs" description="Ciudad Juárez, Mexico" alias="America/Ciudad_Juarez" since="43"/>
<type name="mxhmo" description="Hermosillo, Mexico" alias="America/Hermosillo"/>
<type name="mxmam" description="Matamoros, Mexico" alias="America/Matamoros"/>
<type name="mxmex" description="Mexico City, Mexico" alias="America/Mexico_City Mexico/General"/>
@@ -390,7 +390,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="tmasb" description="Ashgabat, Turkmenistan" alias="Asia/Ashgabat Asia/Ashkhabad"/>
<type name="tntun" description="Tunis, Tunisia" alias="Africa/Tunis"/>
<type name="totbu" description="Tongatapu, Tonga" alias="Pacific/Tongatapu"/>
<type name="trist" description="Istanbul, Turkey" alias="Europe/Istanbul Asia/Istanbul Turkey"/>
<type name="trist" description="Istanbul, Türkiye" alias="Europe/Istanbul Asia/Istanbul Turkey"/>
<type name="ttpos" description="Port of Spain, Trinidad and Tobago" alias="America/Port_of_Spain"/>
<type name="tvfun" description="Funafuti, Tuvalu" alias="Pacific/Funafuti"/>
<type name="twtpe" description="Taipei, Taiwan" alias="Asia/Taipei ROC"/>

View File

@@ -7,18 +7,18 @@
<version number="$Revision$" />
<keyword>
<key name="em" description="Emoji presentation style request" since="29">
<type name="emoji" description="use an emoji presentation for emoji characters if possible"/>
<type name="text" description="use a text presentation for emoji characters if possible"/>
<type name="default" description="use the default presentation as specified in UTR #51"/>
<type name="emoji" description="use an emoji presentation for emoji characters if possible" since="29"/>
<type name="text" description="use a text presentation for emoji characters if possible" since="29"/>
<type name="default" description="use the default presentation as specified in UTR #51" since="29"/>
</key>
<key name="rg" description="Alternate region for determining certain data values (e.g. default currency and units) specified by rgScope" since="29">
<type name="RG_KEY_VALUE" description="A region code from idValidity/id[type='region'][idStatus='regular'], suffixed with 'ZZZZ'" />
<type name="RG_KEY_VALUE" description="A region code from idValidity/id[type='region'][idStatus='regular'], suffixed with 'ZZZZ'" since="29"/>
</key>
<key name="sd" description="Region subdivision" since="28">
<type name="SUBDIVISION_CODE"
description="Valid unicode_subdivision_subtag for the region subtag as specified in LDML, based on subdivisionContainment data in supplementalData, prefixed by the associated unicode_region_subtag" />
description="Valid unicode_subdivision_subtag for the region subtag as specified in LDML, based on subdivisionContainment data in supplementalData, prefixed by the associated unicode_region_subtag" since="28"/>
</key>
<key name="va" description="Common locale variant type key">

View File

@@ -1,5 +1,5 @@
<!--
Copyright © 1991-2022 Unicode, Inc.
Copyright © 1991-2023 Unicode, Inc.
For terms of use, see http://www.unicode.org/copyright.html
SPDX-License-Identifier: Unicode-DFS-2016
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
@@ -42,7 +42,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!ATTLIST version number CDATA #REQUIRED >
<!--@MATCH:regex/\$Revision.*\$-->
<!--@METADATA-->
<!ATTLIST version cldrVersion CDATA #FIXED "42" >
<!ATTLIST version cldrVersion CDATA #FIXED "43" >
<!--@MATCH:any-->
<!--@VALUE-->
<!ATTLIST version draft (approved | contributed | provisional | unconfirmed | true | false) #IMPLIED >
@@ -68,6 +68,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!--@METADATA-->
<!--@DEPRECATED:true, false-->
<!ATTLIST language references CDATA #IMPLIED >
<!--@MATCH:any-->
<!--@METADATA-->
<!ELEMENT script ( #PCDATA ) >
@@ -465,6 +466,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!--@METADATA-->
<!--@DEPRECATED-->
<!ATTLIST exemplarCharacters references CDATA #IMPLIED >
<!--@MATCH:any-->
<!--@METADATA-->
<!ATTLIST exemplarCharacters validSubLocales CDATA #IMPLIED >
<!--@VALUE-->
@@ -2825,10 +2827,11 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!ELEMENT cr ( #PCDATA ) >
<!ATTLIST cr alt NMTOKENS #IMPLIED >
<!--@MATCH:literal/variant-->
<!--@MATCH:literal/variant, proposed, short-->
<!ATTLIST cr draft (approved | contributed | provisional | unconfirmed) #IMPLIED >
<!--@METADATA-->
<!ATTLIST cr references CDATA #IMPLIED >
<!--@MATCH:any-->
<!--@METADATA-->
<!-- # Use the cr element instead, with ICU syntax. -->
@@ -3123,7 +3126,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!--@MATCH:or/range/-1.0E20~1.0E20||literal/-x, 0, 0.x, NaN, -Inf, Inf, x,x, x.x-->
<!--@VALUE-->
<!ATTLIST rbnfrule radix CDATA #IMPLIED >
<!--@MATCH:literal/1,000, 100, 1000, 100000, 20-->
<!--@MATCH:literal/1,000, 100, 1000, 100000, 5, 20, 400, 8000, 160,000, 3,200,000, 64,000,000-->
<!--@VALUE-->
<!ATTLIST rbnfrule decexp CDATA #IMPLIED >
<!--@VALUE-->
@@ -3159,10 +3162,8 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!--@METADATA-->
<!ELEMENT personNames ( alias | ( nameOrderLocales*, foreignSpaceReplacement*, initialPattern*, personName*, sampleName*, special* ) ) >
<!--@TECHPREVIEW-->
<!ELEMENT nameOrderLocales ( #PCDATA ) >
<!--@TECHPREVIEW-->
<!ATTLIST nameOrderLocales order (givenFirst | surnameFirst) #REQUIRED >
<!ATTLIST nameOrderLocales alt NMTOKENS #IMPLIED >
<!--@MATCH:literal/variant-->
@@ -3172,7 +3173,6 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!--@METADATA-->
<!ELEMENT foreignSpaceReplacement ( #PCDATA ) >
<!--@TECHPREVIEW-->
<!ATTLIST foreignSpaceReplacement xml:space (default | preserve) "preserve" >
<!--@METADATA-->
<!ATTLIST foreignSpaceReplacement alt NMTOKENS #IMPLIED >
@@ -3183,7 +3183,6 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!--@METADATA-->
<!ELEMENT initialPattern ( #PCDATA ) >
<!--@TECHPREVIEW-->
<!ATTLIST initialPattern type (initial | initialSequence) #REQUIRED >
<!ATTLIST initialPattern alt NMTOKENS #IMPLIED >
<!--@MATCH:literal/variant-->
@@ -3193,18 +3192,16 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!--@METADATA-->
<!ELEMENT personName ( alias | ( namePattern+, special* ) ) >
<!--@TECHPREVIEW-->
<!ATTLIST personName order NMTOKENS #IMPLIED >
<!--@MATCH:set/literal/givenFirst, surnameFirst, sorting-->
<!--@MATCH:literal/givenFirst, surnameFirst, sorting-->
<!ATTLIST personName length NMTOKENS #IMPLIED >
<!--@MATCH:set/literal/long, medium, short-->
<!--@MATCH:literal/long, medium, short-->
<!ATTLIST personName usage NMTOKENS #IMPLIED >
<!--@MATCH:set/literal/referring, addressing, monogram-->
<!--@MATCH:literal/referring, addressing, monogram-->
<!ATTLIST personName formality NMTOKENS #IMPLIED >
<!--@MATCH:set/literal/formal, informal-->
<!--@MATCH:literal/formal, informal-->
<!ELEMENT namePattern ( #PCDATA ) >
<!--@TECHPREVIEW-->
<!ATTLIST namePattern alt (1 | 2) #IMPLIED >
<!ATTLIST namePattern draft (approved | contributed | provisional | unconfirmed) #IMPLIED >
<!--@METADATA-->
@@ -3212,14 +3209,12 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!--@METADATA-->
<!ELEMENT sampleName ( alias | ( nameField+, special* ) ) >
<!--@TECHPREVIEW-->
<!ATTLIST sampleName item NMTOKENS #REQUIRED >
<!--@MATCH:literal/givenOnly, givenSurnameOnly, given12Surname, full-->
<!--@MATCH:literal/nativeG, nativeGS, nativeGGS, nativeFull, foreignG, foreignGS, foreignGGS, foreignFull-->
<!ELEMENT nameField ( #PCDATA ) >
<!--@TECHPREVIEW-->
<!ATTLIST nameField type CDATA #REQUIRED >
<!--@MATCH:literal/prefix, given, given-informal, given2, surname, surname-prefix, surname-core, surname2, suffix-->
<!--@MATCH:literal/title, given, given-informal, given2, surname, surname-prefix, surname-core, surname2, generation, credentials-->
<!ATTLIST nameField alt NMTOKENS #IMPLIED >
<!--@MATCH:literal/variant-->
<!ATTLIST nameField draft (approved | contributed | provisional | unconfirmed) #IMPLIED >

View File

@@ -1,5 +1,5 @@
<!--
Copyright © 1991-2022 Unicode, Inc.
Copyright © 1991-2023 Unicode, Inc.
For terms of use, see http://www.unicode.org/copyright.html
SPDX-License-Identifier: Unicode-DFS-2016
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
@@ -12,7 +12,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!ATTLIST version number CDATA #REQUIRED >
<!--@MATCH:regex/\$Revision.*\$-->
<!--@METADATA-->
<!ATTLIST version cldrVersion CDATA #FIXED "42" >
<!ATTLIST version cldrVersion CDATA #FIXED "43" >
<!--@MATCH:version-->
<!--@VALUE-->

View File

@@ -1,18 +1,18 @@
<!--
Copyright © 1991-2022 Unicode, Inc.
Copyright © 1991-2023 Unicode, Inc.
For terms of use, see http://www.unicode.org/copyright.html
SPDX-License-Identifier: Unicode-DFS-2016
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
-->
<!ELEMENT supplementalData ( version, generation?, cldrVersion?, currencyData?, territoryContainment?, subdivisionContainment?, languageData?, territoryInfo?, postalCodeData?, calendarData?, calendarPreferenceData?, weekData?, timeData?, measurementData?, unitIdComponents?, unitConstants*, unitQuantities*, convertUnits*, unitPreferenceData?, timezoneData?, characters?, transforms?, metadata?, codeMappings?, parentLocales?, personNamesDefaults?, likelySubtags?, metazoneInfo?, plurals?, telephoneCodeData?, numberingSystems?, bcp47KeywordMappings?, gender?, references?, languageMatching?, dayPeriodRuleSet*, metaZones?, primaryZones?, windowsZones?, coverageLevels?, idValidity?, rgScope?, languageGroups?, grammaticalData? ) >
<!ELEMENT supplementalData ( version, generation?, cldrVersion?, currencyData?, territoryContainment?, subdivisionContainment?, languageData?, territoryInfo?, postalCodeData?, calendarData?, calendarPreferenceData?, weekData?, timeData?, measurementData?, unitIdComponents?, unitConstants*, unitQuantities*, convertUnits*, unitPreferenceData?, timezoneData?, characters?, transforms?, metadata?, codeMappings?, parentLocales*, personNamesDefaults?, likelySubtags?, metazoneInfo?, plurals?, telephoneCodeData?, numberingSystems?, bcp47KeywordMappings?, gender?, references?, languageMatching?, dayPeriodRuleSet*, metaZones?, primaryZones?, windowsZones?, coverageLevels?, idValidity?, rgScope?, languageGroups?, grammaticalData? ) >
<!ELEMENT version EMPTY >
<!--@METADATA-->
<!ATTLIST version number CDATA #REQUIRED >
<!--@MATCH:any-->
<!--@METADATA-->
<!ATTLIST version cldrVersion CDATA #FIXED "42" >
<!ATTLIST version cldrVersion CDATA #FIXED "43" >
<!--@MATCH:version-->
<!--@VALUE-->
<!ATTLIST version unicodeVersion CDATA #FIXED "15.0.0" >
@@ -216,7 +216,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!ELEMENT calendarData ( calendar* ) >
<!ELEMENT calendar ( calendarSystem?, eras? ) >
<!ELEMENT calendar ( calendarSystem?, inheritEras?, eras? ) >
<!ATTLIST calendar type NMTOKEN #REQUIRED >
<!--@MATCH:bcp47/ca-->
<!ATTLIST calendar territories NMTOKENS #IMPLIED >
@@ -237,6 +237,11 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!ATTLIST calendarSystem references CDATA #IMPLIED >
<!--@METADATA-->
<!ELEMENT inheritEras EMPTY >
<!ATTLIST inheritEras calendar NMTOKEN #REQUIRED >
<!--@MATCH:bcp47/ca-->
<!--@VALUE-->
<!ELEMENT eras ( era* ) >
<!ATTLIST eras references CDATA #IMPLIED >
<!--@METADATA-->
@@ -250,6 +255,12 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!ATTLIST era end CDATA #IMPLIED >
<!--@MATCH:time/yyyy-MM-dd-->
<!--@VALUE-->
<!ATTLIST era code NMTOKEN #IMPLIED >
<!--@MATCH:regex/[a-z0-9]{3,8}(\-[a-z0-9]{3,8})*-->
<!--@VALUE-->
<!ATTLIST era aliases NMTOKENS #IMPLIED >
<!--@MATCH:set/regex/[a-z0-9]{2,8}(\-[a-z0-9]{3,8})*-->
<!--@VALUE-->
<!ATTLIST era named (true | false) #IMPLIED >
<!--@VALUE-->
@@ -439,7 +450,6 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!--@DEPRECATED-->
<!ATTLIST unitPreferences draft (approved | contributed | provisional | unconfirmed) #IMPLIED >
<!--@METADATA-->
<!--@DEPRECATED-->
<!ELEMENT unitPreference ( #PCDATA ) >
<!--@ORDERED-->
@@ -900,6 +910,8 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!-- # Parent locales -->
<!ELEMENT parentLocales ( parentLocale* ) >
<!ATTLIST parentLocales component NMTOKEN #IMPLIED >
<!--@MATCH:literal/segmentations, collations-->
<!ELEMENT parentLocale EMPTY >
<!ATTLIST parentLocale parent NMTOKEN #REQUIRED >
@@ -923,6 +935,9 @@ CLDR data files are interpreted according to the LDML specification (http://unic
<!ATTLIST likelySubtag to NMTOKEN #REQUIRED >
<!--@MATCH:validity/locale-->
<!--@VALUE-->
<!ATTLIST likelySubtag origin NMTOKENS #IMPLIED >
<!--@MATCH:set/literal/sil1, wikidata, special-->
<!--@METADATA-->
<!ELEMENT metazoneInfo ( timezone* ) >

View File

@@ -0,0 +1,231 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
<!-- Copyright © 1991-2023 Unicode, Inc.
For terms of use, see http://www.unicode.org/copyright.html
SPDX-License-Identifier: Unicode-DFS-2016
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
-->
<ldml>
<identity>
<version number="$Revision$"/>
<language type="aa"/>
</identity>
<localeDisplayNames>
<languages>
<language type="aa" draft="unconfirmed">Qafar</language>
</languages>
<territories>
<territory type="DJ" draft="unconfirmed">Yabuuti</territory>
<territory type="ER" draft="unconfirmed">Eretria</territory>
<territory type="ET" draft="unconfirmed">Otobbia</territory>
</territories>
</localeDisplayNames>
<characters>
<exemplarCharacters>[a b t s e c k x i d q r f g o l m n u w h y]</exemplarCharacters>
<exemplarCharacters type="auxiliary">[j p v z]</exemplarCharacters>
<exemplarCharacters type="index">[A B T S E C K X I D Q R F G O L M N U W H Y]</exemplarCharacters>
</characters>
<dates>
<calendars>
<calendar type="generic">
<dateFormats>
<dateFormatLength type="full">
<dateFormat>
<pattern draft="unconfirmed">EEEE, MMMM dd, y G</pattern>
<datetimeSkeleton draft="unconfirmed">GyMMMMEEEEdd</datetimeSkeleton>
</dateFormat>
</dateFormatLength>
<dateFormatLength type="long">
<dateFormat>
<pattern draft="unconfirmed">dd MMMM y G</pattern>
<datetimeSkeleton draft="unconfirmed">GyMMMMdd</datetimeSkeleton>
</dateFormat>
</dateFormatLength>
<dateFormatLength type="medium">
<dateFormat>
<pattern draft="unconfirmed">dd-MMM-y G</pattern>
<datetimeSkeleton draft="unconfirmed">GyMMMdd</datetimeSkeleton>
</dateFormat>
</dateFormatLength>
<dateFormatLength type="short">
<dateFormat>
<pattern draft="unconfirmed">dd/MM/yy GGGGG</pattern>
<datetimeSkeleton draft="unconfirmed">GGGGGyyMMdd</datetimeSkeleton>
</dateFormat>
</dateFormatLength>
</dateFormats>
</calendar>
<calendar type="gregorian">
<months>
<monthContext type="format">
<monthWidth type="abbreviated">
<month type="1" draft="unconfirmed">Qun</month>
<month type="2" draft="unconfirmed">Nah</month>
<month type="3" draft="unconfirmed">Cig</month>
<month type="4" draft="unconfirmed">Agd</month>
<month type="5" draft="unconfirmed">Cax</month>
<month type="6" draft="unconfirmed">Qas</month>
<month type="7" draft="unconfirmed">Qad</month>
<month type="8" draft="unconfirmed">Leq</month>
<month type="9" draft="unconfirmed">Way</month>
<month type="10" draft="unconfirmed">Dit</month>
<month type="11" draft="unconfirmed">Xim</month>
<month type="12" draft="unconfirmed">Kax</month>
</monthWidth>
<monthWidth type="wide">
<month type="1" draft="unconfirmed">Qunxa Garablu</month>
<month type="2" draft="unconfirmed">Kudo</month>
<month type="3" draft="unconfirmed">Ciggilta Kudo</month>
<month type="4" draft="unconfirmed">Agda Baxis</month>
<month type="5" draft="unconfirmed">Caxah Alsa</month>
<month type="6" draft="unconfirmed">Qasa Dirri</month>
<month type="7" draft="unconfirmed">Qado Dirri</month>
<month type="8" draft="unconfirmed">Liiqen</month>
<month type="9" draft="unconfirmed">Waysu</month>
<month type="10" draft="unconfirmed">Diteli</month>
<month type="11" draft="unconfirmed">Ximoli</month>
<month type="12" draft="unconfirmed">Kaxxa Garablu</month>
</monthWidth>
</monthContext>
<monthContext type="stand-alone">
<monthWidth type="narrow">
<month type="1" draft="unconfirmed">Q</month>
<month type="2" draft="unconfirmed">N</month>
<month type="3" draft="unconfirmed">C</month>
<month type="4" draft="unconfirmed">A</month>
<month type="5" draft="unconfirmed">C</month>
<month type="6" draft="unconfirmed">Q</month>
<month type="7" draft="unconfirmed">Q</month>
<month type="8" draft="unconfirmed">L</month>
<month type="9" draft="unconfirmed">W</month>
<month type="10" draft="unconfirmed">D</month>
<month type="11" draft="unconfirmed">X</month>
<month type="12" draft="unconfirmed">K</month>
</monthWidth>
</monthContext>
</months>
<days>
<dayContext type="format">
<dayWidth type="abbreviated">
<day type="sun" draft="unconfirmed">Aca</day>
<day type="mon" draft="unconfirmed">Etl</day>
<day type="tue" draft="unconfirmed">Tal</day>
<day type="wed" draft="unconfirmed">Arb</day>
<day type="thu" draft="unconfirmed">Kam</day>
<day type="fri" draft="unconfirmed">Gum</day>
<day type="sat" draft="unconfirmed">Sab</day>
</dayWidth>
<dayWidth type="wide">
<day type="sun" draft="unconfirmed">Acaada</day>
<day type="mon" draft="unconfirmed">Etleeni</day>
<day type="tue" draft="unconfirmed">Talaata</day>
<day type="wed" draft="unconfirmed">Arbaqa</day>
<day type="thu" draft="unconfirmed">Kamiisi</day>
<day type="fri" draft="unconfirmed">Gumqata</day>
<day type="sat" draft="unconfirmed">Sabti</day>
</dayWidth>
</dayContext>
<dayContext type="stand-alone">
<dayWidth type="narrow">
<day type="sun" draft="unconfirmed">A</day>
<day type="mon" draft="unconfirmed">E</day>
<day type="tue" draft="unconfirmed">T</day>
<day type="wed" draft="unconfirmed">A</day>
<day type="thu" draft="unconfirmed">K</day>
<day type="fri" draft="unconfirmed">G</day>
<day type="sat" draft="unconfirmed">S</day>
</dayWidth>
</dayContext>
</days>
<dayPeriods>
<dayPeriodContext type="format">
<dayPeriodWidth type="abbreviated">
<dayPeriod type="am" draft="unconfirmed">saaku</dayPeriod>
<dayPeriod type="pm" draft="unconfirmed">carra</dayPeriod>
</dayPeriodWidth>
<dayPeriodWidth type="wide">
<dayPeriod type="am" draft="unconfirmed">saaku</dayPeriod>
<dayPeriod type="pm" draft="unconfirmed">carra</dayPeriod>
</dayPeriodWidth>
</dayPeriodContext>
</dayPeriods>
<eras>
<eraNames>
<era type="0" draft="unconfirmed">Yaasuusuk Duma</era>
<era type="1" draft="unconfirmed">Yaasuusuk Wadir</era>
</eraNames>
<eraAbbr>
<era type="0" draft="unconfirmed">YD</era>
<era type="1" draft="unconfirmed">YW</era>
</eraAbbr>
</eras>
<dateFormats>
<dateFormatLength type="full">
<dateFormat>
<pattern draft="unconfirmed">EEEE, MMMM dd, y</pattern>
<datetimeSkeleton draft="unconfirmed">yMMMMEEEEdd</datetimeSkeleton>
</dateFormat>
</dateFormatLength>
<dateFormatLength type="long">
<dateFormat>
<pattern draft="unconfirmed">dd MMMM y</pattern>
<datetimeSkeleton draft="unconfirmed">yMMMMdd</datetimeSkeleton>
</dateFormat>
</dateFormatLength>
<dateFormatLength type="medium">
<dateFormat>
<pattern draft="unconfirmed">dd-MMM-y</pattern>
<datetimeSkeleton draft="unconfirmed">yMMMdd</datetimeSkeleton>
</dateFormat>
</dateFormatLength>
<dateFormatLength type="short">
<dateFormat>
<pattern draft="unconfirmed">dd/MM/yy</pattern>
<datetimeSkeleton draft="unconfirmed">yyMMdd</datetimeSkeleton>
</dateFormat>
</dateFormatLength>
</dateFormats>
<timeFormats>
<timeFormatLength type="full">
<timeFormat>
<pattern>h:mm:ssa zzzz</pattern>
<datetimeSkeleton>ahmmsszzzz</datetimeSkeleton>
</timeFormat>
</timeFormatLength>
<timeFormatLength type="long">
<timeFormat>
<pattern>h:mm:ssa z</pattern>
<datetimeSkeleton>ahmmssz</datetimeSkeleton>
</timeFormat>
</timeFormatLength>
<timeFormatLength type="medium">
<timeFormat>
<pattern>h:mm:ssa</pattern>
<datetimeSkeleton>ahmmss</datetimeSkeleton>
</timeFormat>
</timeFormatLength>
<timeFormatLength type="short">
<timeFormat>
<pattern>h:mma</pattern>
<datetimeSkeleton>ahmm</datetimeSkeleton>
</timeFormat>
</timeFormatLength>
</timeFormats>
</calendar>
</calendars>
</dates>
<numbers>
<currencyFormats numberSystem="latn">
<currencyFormatLength>
<currencyFormat type="standard">
<pattern draft="unconfirmed">¤#,##0.00</pattern>
</currencyFormat>
</currencyFormatLength>
</currencyFormats>
<currencies>
<currency type="ETB">
<symbol>Br</symbol>
</currency>
</currencies>
</numbers>
</ldml>

View File

@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
<!-- Copyright © 1991-2023 Unicode, Inc.
For terms of use, see http://www.unicode.org/copyright.html
SPDX-License-Identifier: Unicode-DFS-2016
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
-->
<ldml>
<identity>
<version number="$Revision$"/>
<language type="aa"/>
<territory type="DJ"/>
</identity>
<dates>
<calendars>
<calendar type="gregorian">
<months>
<monthContext type="format">
<monthWidth type="wide">
<month type="1" draft="unconfirmed">Qunxa Garablu</month>
<month type="2" draft="unconfirmed">Kudo</month>
<month type="3" draft="unconfirmed">Ciggilta Kudo</month>
<month type="4" draft="unconfirmed">Agda Baxis</month>
<month type="5" draft="unconfirmed">Caxah Alsa</month>
<month type="6" draft="unconfirmed">Qasa Dirri</month>
<month type="7" draft="unconfirmed">Qado Dirri</month>
<month type="8" draft="unconfirmed">Leqeeni</month>
<month type="9" draft="unconfirmed">Waysu</month>
<month type="10" draft="unconfirmed">Diteli</month>
<month type="11" draft="unconfirmed">Ximoli</month>
<month type="12" draft="unconfirmed">Kaxxa Garablu</month>
</monthWidth>
</monthContext>
</months>
</calendar>
</calendars>
</dates>
<numbers>
<currencies>
<currency type="DJF">
<symbol>Fdj</symbol>
</currency>
</currencies>
</numbers>
</ldml>

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