Compare commits

..

3448 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
Tagir F. Valeev
94e7cc8587 8301226: Add clamp() methods to java.lang.Math and to StrictMath
Reviewed-by: qamai, darcy
2023-02-14 05:39:07 +00:00
Serguei Spitsyn
13b1ebba27 8298853: JvmtiVTMSTransitionDisabler should support disabling one virtual thread transitions
Reviewed-by: pchilanomate, lmesnik
2023-02-14 01:28:42 +00:00
Coleen Phillimore
abbeb7e4d2 8302108: Clean up placeholder supername code
Reviewed-by: dholmes, iklam
2023-02-13 20:57:01 +00:00
Amit Kumar
d503c66400 8302155: [AIX] NUM_LCPU is not required variable
Reviewed-by: tsteele, ihse
2023-02-13 19:01:05 +00:00
Gerard Ziemski
c37e9d1c8d 8298293: NMT: os::realloc() should verify that flags do not change between reallocations
Reviewed-by: dholmes, stuefe, iklam
2023-02-13 18:14:31 +00:00
Amit Kumar
101db262e1 8301697: [s390] Optimized-build is broken
Reviewed-by: tsteele, lucy
2023-02-13 16:14:33 +00:00
Erik Österlund
f4d4fa500c 8300255: Introduce interface for GC oop verification in the assembler
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Co-authored-by: Yadong Wang <yadongwang@openjdk.org>
Reviewed-by: fyang, aboldtch, coleenp
2023-02-13 15:50:54 +00:00
Gui Cao
99b6c0eb48 8302289: RISC-V: Use bgez instruction in arraycopy_simple_check when possible
Reviewed-by: fyang, dzhang, luhenry
2023-02-13 15:39:08 +00:00
Richard Reingruber
57aef85734 8301838: PPC: continuation yield intrinsic: exception check not needed if yield succeeded
Reviewed-by: lucy, goetz
2023-02-13 13:33:06 +00:00
sunguoyun
df93880efd 8301942: java/net/httpclient/DigestEchoClientSSL.java fail with -Xcomp
Reviewed-by: dfuchs
2023-02-13 12:50:28 +00:00
Albert Mingkun Yang
0025764ec0 8040793: vmTestbase/nsk/monitoring/stress/lowmem fails on calling isCollectionUsageThresholdExceeded()
Reviewed-by: iwalulya, tschatzl
2023-02-13 11:28:40 +00:00
Claes Redestad
1f9c110c1f 8301958: Reduce Arrays.copyOf/-Range overheads
Reviewed-by: alanb, smarks
2023-02-13 11:17:38 +00:00
Varada M
cb8107303e 8300139: [AIX] Use pthreads to avoid JNI_createVM call from primordial thread
Reviewed-by: dholmes, stuefe
2023-02-13 11:12:36 +00:00
Stuart Monteith
bbd8ae7820 8294194: [AArch64] Create intrinsics compress and expand
Reviewed-by: xgong, adinn, haosun, aph
2023-02-13 11:07:11 +00:00
Johan Sjölen
4e327db1d1 8301499: Replace NULL with nullptr in cpu/zero
Reviewed-by: dholmes, rehn
2023-02-13 09:25:09 +00:00
Prasanta Sadhukhan
0458d3825c 6513512: MetalLookAndFeel.initClassDefaults does not install an entry for MetalMenuBarUI
Reviewed-by: serb, aivanov
2023-02-13 08:59:19 +00:00
Conor Cleary
f4b140b420 8296410: HttpClient throws java.io.IOException: no statuscode in response for HTTP2
Reviewed-by: dfuchs, jpai
2023-02-13 08:34:45 +00:00
Emanuel Peter
5d39d14522 8299970: Speed up compiler/arraycopy/TestArrayCopyConjoint.java
Reviewed-by: chagedorn, kvn, thartmann
2023-02-13 08:13:13 +00:00
Tobias Hartmann
d1c87a03ad 8302203: IR framework should detect non-compilable test methods early
Reviewed-by: chagedorn, kvn
2023-02-13 06:23:24 +00:00
Dingli Zhang
1fec6b5953 8301852: RISC-V: Optimize class atomic when order is memory_order_relaxed
Reviewed-by: fyang
2023-02-13 02:02:40 +00:00
Feilong Jiang
7c233bc1c8 8302114: RISC-V: Several foreign jtreg tests fail with debug build after JDK-8301818
Reviewed-by: fyang, gcao
2023-02-13 02:01:25 +00:00
Joe Darcy
8049e59a5c 8301833: Add wide-ranging tests for FDLIBM porting
Reviewed-by: bpb, alanb
2023-02-12 17:45:55 +00:00
Joe Wang
6a44120a16 8301269: Update Commons BCEL to Version 6.7.0
Reviewed-by: lancea
2023-02-11 22:33:13 +00:00
sunguoyun
6f9f2b5d37 8301737: java/rmi/server/UnicastRemoteObject/serialFilter/FilterUROTest.java fail with -Xcomp
Reviewed-by: rriggs
2023-02-11 16:53:59 +00:00
Doug Simon
1ef9f6507b 8302172: [JVMCI] HotSpotResolvedJavaMethodImpl.canBeInlined must respect ForceInline
Reviewed-by: dlong
2023-02-11 15:38:59 +00:00
Alan Bateman
74b167b23d 8301819: Enable continuations code by default
Reviewed-by: kvn, dholmes, dcubed
2023-02-11 06:20:45 +00:00
Joe Darcy
919a6da2a7 8301202: Port fdlibm log to Java
Reviewed-by: bpb
2023-02-11 02:15:46 +00:00
Jim Laskey
98e98e9049 8296322: javac: use methods to manage parser mode flags
Reviewed-by: mcimadamore
2023-02-11 00:24:24 +00:00
Brian Burkhalter
84e47996e8 8297292: java/nio/channels/FileChannel/FileExtensionAndMap.java is too slow
Reviewed-by: jpai
2023-02-10 19:44:00 +00:00
Brian Burkhalter
57798dd439 6595142: (spec) ByteArrayInputStream treats bytes, not characters
Reviewed-by: alanb
2023-02-10 19:43:30 +00:00
Chris Plummer
880f52fda0 8301638: A number of nsk/jdi invokemethod tests should be converted to create virtual threads
Reviewed-by: lmesnik, amenkov, sspitsyn
2023-02-10 19:29:34 +00:00
Roman Kennke
db1b48ef3b 8302167: Avoid allocating register in fast_lock()
Reviewed-by: kvn, kdnilsen
2023-02-10 18:12:43 +00:00
Coleen Phillimore
582b943439 8278965: crash in SymbolTable::do_lookup
Reviewed-by: dholmes, fparain, iklam
2023-02-10 18:00:19 +00:00
Johan Sjölen
4539899c55 8301480: Replace NULL with nullptr in os/posix
Reviewed-by: coleenp, dholmes
2023-02-10 14:02:20 +00:00
Johan Sjölen
1428db798c 8301224: Replace NULL with nullptr in share/gc/shared/
Reviewed-by: stefank, kbarrett
2023-02-10 14:01:30 +00:00
Per Minborg
c25b4f4619 8301578: Perform output outside synchronization in Module.class
Reviewed-by: alanb
2023-02-10 13:46:46 +00:00
Matthijs Bijman
5830c03e53 8302004: InlineTree should consult replay file in release build
Reviewed-by: phh, xliu
2023-02-10 13:38:42 +00:00
Johan Sjölen
c8ace482ed 8301072: Replace NULL with nullptr in share/oops/
Reviewed-by: stefank, coleenp, dholmes
2023-02-10 09:57:59 +00:00
Kevin Walls
1c7b09bc23 8302069: javax/management/remote/mandatory/notif/NotifReconnectDeadlockTest.java update
Reviewed-by: cjplummer, amenkov
2023-02-10 08:32:39 +00:00
Thomas Schatzl
837d4644a7 8302125: Make G1 full gc abort the VM after failing VerifyDuringGC verification
Reviewed-by: ayang, iwalulya
2023-02-10 08:28:49 +00:00
Ramkumar Sunderbabu
723433dbeb 8302117: IgnoreUnrecognizedVMOptions flag causes failure in ArchiveHeapTestClass
Reviewed-by: dholmes
2023-02-10 05:58:12 +00:00
Xiaohong Gong
e245620f6f 8293198: [vectorapi] Improve the implementation of VectorMask.indexInRange()
Reviewed-by: jbhateja, qamai, psandoz
2023-02-10 01:32:05 +00:00
Kevin Driver
b814cfc39d 8178806: Better exception logging in crypto code
Reviewed-by: valeriep
2023-02-09 22:31:00 +00:00
Rajan Halade
8c87a67419 8245654: Add Certigna Root CA
Reviewed-by: mullan
2023-02-09 20:48:37 +00:00
Coleen Phillimore
97d0c8720d 8302109: Trivial fixes to btree tests
Reviewed-by: lmesnik
2023-02-09 20:42:17 +00:00
Thomas Schatzl
0aeebee284 8301988: VerifyLiveClosure::verify_liveness asserts on bad pointers outside heap
Reviewed-by: dholmes, ayang
2023-02-09 20:09:13 +00:00
Alex Menkov
48155662af 8228604: StackMapFrames are missing from redefined class bytes of retransformed classes
Reviewed-by: cjplummer, sspitsyn
2023-02-09 19:37:32 +00:00
Sergey Bylokhov
5147969253 8272288: Funky multiresolution image breaks graphics context
Reviewed-by: jdv
2023-02-09 19:22:51 +00:00
Robbin Ehn
77ead449e4 8302066: Counter _number_of_nmethods_with_dependencies should be atomic.
Reviewed-by: thartmann, kvn
2023-02-09 18:39:45 +00:00
Chris Plummer
f4b72df428 8282379: [LOOM] vmTestbase/nsk/jdi/ClassType/invokeMethod/invokemethod011 sometimes fails
Reviewed-by: dholmes, sspitsyn
2023-02-09 18:25:04 +00:00
Matthew Donovan
7fd440d97c 8298868: Update EngineCloseOnAlert.java for changes to TLS implementation
Reviewed-by: rhalade
2023-02-09 18:21:38 +00:00
Sean Mullan
7901f459dc 8301260: Add system property to toggle XML Signature secure validation mode
Reviewed-by: weijun, coffeys
2023-02-09 18:18:21 +00:00
SWinxy
597a9a4852 8301822: BasicLookAndFeel does not need to check for null after checking for type
Reviewed-by: serb
2023-02-09 17:46:35 +00:00
Aggelos Biboudis
3b05a94c36 8301858: Verification error when compiling switch with record patterns
Reviewed-by: vromero
2023-02-09 16:03:34 +00:00
Darragh Clarke
e4d1cff659 8300268: ServerImpl allows too many idle connections when using sun.net.httpserver.maxIdleConnections
Reviewed-by: dfuchs, vtewari, michaelm, jpai
2023-02-09 12:27:57 +00:00
Jesper Wilhelmsson
af8973dc50 Merge 2023-02-09 11:59:08 +00:00
Thomas Schatzl
2caa56a66b 8301843: Remove dummy region allocation
Reviewed-by: ayang, lkorinth, ysr
2023-02-09 10:48:14 +00:00
Albert Mingkun Yang
d401982087 8302121: Parallel: Remove unused arg in PSCardTable::inline_write_ref_field_gc
Reviewed-by: tschatzl
2023-02-09 10:37:48 +00:00
Varada M
916374d766 8302067: [AIX] AIX build error on os_aix_ppc.cpp
Reviewed-by: dholmes
2023-02-09 09:47:34 +00:00
Varada M
a4039e30e8 8302043: [AIX] Safefetch fails for bad_addressN and bad_address32
Reviewed-by: stuefe, dholmes
2023-02-09 09:36:40 +00:00
Kevin Walls
04f30185e9 8299739: HashedPasswordFileTest.java and ExceptionTest.java can fail with java.lang.NullPointerException
Reviewed-by: sspitsyn, amenkov, cjplummer
2023-02-09 09:30:44 +00:00
Thomas Schatzl
83e2db6ba3 8301116: Parallelize TLAB resizing in G1
Reviewed-by: ayang, iwalulya
2023-02-09 09:17:06 +00:00
Yasumasa Suenaga
c72f951529 8301853: C4819 warnings were reported in HotSpot on Windows
Reviewed-by: dholmes, ihse
2023-02-09 06:50:00 +00:00
Chihiro Ito
36478ee13f 8288783: Error messages are confusing when options conflict in -XX:StartFlightRecording
Reviewed-by: egahlin
2023-02-09 03:44:01 +00:00
Julian Waters
70f3150166 8301443: Clean broken comments from Windows code
Reviewed-by: aivanov
2023-02-09 03:19:42 +00:00
Harshitha Onkar
5561c397c5 8294484: MetalBorder's FrameBorder & DialogBorder have border rendering issues when scaled
Co-authored-by: Alexey Ivanov <aivanov@openjdk.org>
Reviewed-by: aivanov, kizune
2023-02-09 00:44:58 +00:00
Mandy Chung
c8cc7b67db 8301704: Shorten the number of GCs in UnloadingTest.java to verify a class loader not being unloaded
Reviewed-by: rriggs
2023-02-09 00:38:08 +00:00
Ioi Lam
dc6d52cea5 8301876: Crash in DumpTimeClassInfo::add_verification_constraint
Reviewed-by: ccheung, matsaave
2023-02-09 00:30:07 +00:00
Alexander Zuev
e81f20b504 8301989: new javax.swing.text.DefaultCaret().setBlinkRate(N) results in NPE
Reviewed-by: dnguyen, honkar, prr
2023-02-08 23:55:58 +00:00
Roger Riggs
6f460e4885 8301863: ObjectInputFilter example incorrectly calls rejectUndecidedClass
Reviewed-by: lancea
2023-02-08 22:09:22 +00:00
Jonathan Gibbons
873558ee80 8300914: Allow @ as an escape in documentation comments
Reviewed-by: prappo
2023-02-08 21:57:22 +00:00
Erik Joelsson
8a9e383dba 8301717: Remove obsolete jib profiles
Reviewed-by: dholmes, ihse
2023-02-08 21:52:30 +00:00
Sergey Bylokhov
631a2790e5 8301567: The test/jdk/java/awt/AppContext/ApplicationThreadsStop/java.policy is unused
Reviewed-by: aivanov
2023-02-08 19:55:12 +00:00
Brian Burkhalter
638d612c6b 8298478: (fs) Path.of should allow input to include long path prefix
Reviewed-by: alanb
2023-02-08 19:20:39 +00:00
Mandy Chung
10dd98d0dd 8301462: Convert Permission files to use lambda after JDK-8076596
Reviewed-by: jpai, dfuchs, mullan
2023-02-08 19:06:41 +00:00
Albert Mingkun Yang
8d4c76ddce 8302072: Parallel: Remove unimplemented ParCompactionManager::stack_push
Reviewed-by: tschatzl
2023-02-08 17:20:58 +00:00
Alan Bateman
ecf21a9a24 8301767: Convert virtual thread tests to JUnit
Reviewed-by: cstein, lancea, jpai
2023-02-08 14:56:28 +00:00
Andrey Turbanov
9af2ea203d 8301828: Avoid unnecessary array fill after creation in javax.swing.text
Reviewed-by: prr, serb
2023-02-08 14:29:21 +00:00
Albert Mingkun Yang
3db352d003 8302047: G1: Remove unused G1RegionToSpaceMapper::_region_granularity
Reviewed-by: tschatzl
2023-02-08 13:23:37 +00:00
Markus Grönlund
c92a7deba5 8301380: jdk/jfr/api/consumer/streaming/TestCrossProcessStreaming.java
Reviewed-by: dholmes, egahlin
2023-02-08 10:26:40 +00:00
Julian Waters
0f08785c01 8301756: Missed constructor from 8301659
Reviewed-by: aivanov
2023-02-08 09:10:21 +00:00
Albert Mingkun Yang
4de2d3c3b6 8301862: G1: Remove G1PageBasedVirtualSpace::_executable
Reviewed-by: tschatzl, lkorinth
2023-02-08 08:12:01 +00:00
Daniel Jeliński
e628fd5c39 8301214: Adjust handshakeTimeout value in test HandshakeTimeout.java after 8189338
Reviewed-by: msheppar, vtewari
2023-02-08 08:01:43 +00:00
Emanuel Peter
ac7119f0d5 8280126: C2: detect and remove dead irreducible loops
Reviewed-by: kvn, chagedorn, thartmann
2023-02-08 07:45:09 +00:00
Alisen Chung
2a579ab839 8292588: [macos] Multiscreen/MultiScreenLocationTest/MultiScreenLocationTest.java: Robot.mouseMove test failed on Screen #0
Reviewed-by: dnguyen, jdv
2023-02-07 20:28:52 +00:00
Calvin Cheung
53f72edcf6 8286510: Tests under dynamicArchive/methodHandles should check for loading of lambda proxy classes
Reviewed-by: iklam
2023-02-07 18:48:57 +00:00
Jonathan Gibbons
74485a3f23 8301810: Bug in doctree DocCommentTester.compress
Reviewed-by: prappo
2023-02-07 18:48:02 +00:00
Justin King
27126157d9 8298445: Add LeakSanitizer support in HotSpot
Reviewed-by: erikj, ihse
2023-02-07 17:41:25 +00:00
Mark Powers
2e2e71e1fa 8300416: java.security.MessageDigestSpi clone can result in thread-unsafe clones
Reviewed-by: mullan
2023-02-07 17:40:22 +00:00
Vicente Romero
a73d012c72 8295019: Cannot call a method with a parameter of a local class declared in a lambda
Reviewed-by: mcimadamore
2023-02-07 16:23:52 +00:00
Afshin Zafari
4fe99da74f 8151413: os::allocation_granularity/page_size and friends return signed values
Reviewed-by: stefank, ccheung, ysr
2023-02-07 14:08:01 +00:00
Darragh Clarke
09b8a19597 8300177: URISyntaxException fields can be final
Reviewed-by: dfuchs, alanb, jpai
2023-02-07 12:34:29 +00:00
Kevin Walls
c61a38212e 8296646: com/sun/jdi/JdbLastErrorTest.java test failure
Reviewed-by: dholmes, sspitsyn, cjplummer
2023-02-07 10:14:37 +00:00
Erik Österlund
f5f38a82cc 8301371: Interpreter store barriers on x86_64 don't have disjoint temp registers
Reviewed-by: kvn, tschatzl
2023-02-07 09:33:40 +00:00
Stefan Johansson
77dbcd8569 8301641: NativeMemoryUsageTotal event uses reserved value for committed field
Reviewed-by: eosterlund, stefank
2023-02-07 09:29:59 +00:00
sunguoyun
1aaf394b33 8301736: jdk/incubator/concurrent/StructuredTaskScope/StructuredTaskScopeTest.java fail with -Xcomp
Reviewed-by: alanb
2023-02-07 09:17:23 +00:00
Amit Kumar
9dad874ff9 8298413: [s390] CPUInfoTest fails due to uppercase feature string
Reviewed-by: mdoerr, lucy
2023-02-07 08:38:07 +00:00
Chang Peng
98433a2f6e 8296999: AArch64: scalar intrinsics for reverse method in Integer and Long
Reviewed-by: eliu, ngasson
2023-02-07 08:00:48 +00:00
Gui Cao
c04a982eb4 8301818: RISC-V: Factor out function mvw from MacroAssembler
Reviewed-by: luhenry, fyang, fjiang
2023-02-07 04:48:57 +00:00
Harshitha Onkar
787e16bb44 8289077: Add manual tests to open
Reviewed-by: azvegint
2023-02-06 23:43:18 +00:00
Archie L. Cobbs
07fb4f9a0b 7167356: (javac) investigate failing tests in JavacParserTest
Reviewed-by: vromero
2023-02-06 20:28:08 +00:00
William Kemper
3ac2beddba 8299324: inline_native_setCurrentThread lacks GC barrier for Shenandoah
Reviewed-by: rkennke, phh
2023-02-06 19:53:20 +00:00
Jonathan Gibbons
d53ade12a8 8301813: Bad caret position in error message
Reviewed-by: iris
2023-02-06 18:41:04 +00:00
Archie L. Cobbs
8c01b6e66b 8221580: Confusing diagnostic for assigning a static final field in a constructor
Reviewed-by: vromero
2023-02-06 18:22:22 +00:00
Eirik Bjorsnos
c129ce4660 8300259: Add test coverage for processing of pending block files in signed JARs
Reviewed-by: weijun
2023-02-06 17:15:26 +00:00
Weijun Wang
b56974209b 8301788: AlgorithmId should keep lowercase characters from 3rd party providers
Reviewed-by: mullan
2023-02-06 17:10:46 +00:00
Eirik Bjorsnos
05ea083b05 8301167: Update VerifySignedJar to actually exercise and test verification
Reviewed-by: weijun
2023-02-06 15:43:53 +00:00
Viktor Klang
ecf8842cd2 8300098: java/util/concurrent/ConcurrentHashMap/ConcurrentAssociateTest.java fails with internal timeout when executed with TieredCompilation1/3
Co-authored-by: Doug Lea <dl@openjdk.org>
Reviewed-by: jpai, alanb
2023-02-06 15:26:32 +00:00
Amit Kumar
7ae447f4eb 8301095: [s390x] TestDwarf.java fails
Reviewed-by: lucy, tsteele
2023-02-06 14:22:00 +00:00
Sidraya
9c80b8ad99 8299683: [S390X] Problems with -XX:+VerifyStack
Reviewed-by: mdoerr, lucy
2023-02-06 13:48:26 +00:00
Albert Mingkun Yang
8e9b72670b 8301599: Serial: Refactor nested closures in DefNewGeneration
Reviewed-by: tschatzl, iwalulya
2023-02-06 13:11:32 +00:00
Xiaolin Zheng
773050647e 8299162: Refactor shared trampoline emission logic
Reviewed-by: fyang, adinn, luhenry
2023-02-06 12:38:36 +00:00
Jan Lahoda
522fa13274 8301580: Error recovery does not clear returnResult
Reviewed-by: vromero
2023-02-06 12:25:06 +00:00
Aggelos Biboudis
7ac2079ba7 8301025: ClassCastException in switch with generic record
Reviewed-by: jlahoda
2023-02-06 12:24:21 +00:00
Albert Mingkun Yang
371a0c4f88 8301465: Remove unnecessary nmethod arming in Full GC of Serial/Parallel
Reviewed-by: tschatzl, iwalulya
2023-02-06 11:36:29 +00:00
Johan Sjölen
716f1df609 8301478: Replace NULL with nullptr in os/bsd
Reviewed-by: coleenp, stuefe
2023-02-06 09:21:19 +00:00
Prasanta Sadhukhan
ab528ce3cd 4934362: see also refers to self
Reviewed-by: prr, serb, aivanov
2023-02-06 08:49:53 +00:00
Emanuel Peter
8f195ff236 8298952: All nodes should have type(n) == Value(n) after IGVN
Reviewed-by: kvn, thartmann, chagedorn
2023-02-06 08:45:48 +00:00
Albert Mingkun Yang
e88fd8c2a9 8301768: G1: Remove unimplemented HeapRegionRemSet::split_card
Reviewed-by: tschatzl
2023-02-06 08:38:17 +00:00
Christian Hagedorn
96c50a3486 8301752: [IR Framework] Add more IR framework examples
Reviewed-by: kvn, thartmann
2023-02-06 07:38:21 +00:00
Justin King
3646c4e944 8301171: Rename sanitizers/address.h to sanitizers/address.hpp
Reviewed-by: kbarrett
2023-02-06 07:24:09 +00:00
Yuri Nesterenko
3f3356bcbd 8301760: Fix possible leak in SpNegoContext dispose
Reviewed-by: weijun
2023-02-06 07:08:35 +00:00
Xiaolin Zheng
b4cb6c8e8b 8301743: RISC-V: Add InlineSkippedInstructionsCounter to post-call nops
Reviewed-by: fyang, luhenry
2023-02-06 03:04:52 +00:00
Dingli Zhang
4dd6e8f9dc 8301740: RISC-V: Address::uses() should check address mode
Reviewed-by: luhenry, fjiang, fyang
2023-02-06 02:41:16 +00:00
Gui Cao
8507db1567 8301628: RISC-V: c2 fix pipeline class for several instructions
Reviewed-by: fjiang, fyang, luhenry
2023-02-06 02:28:53 +00:00
Andrey Turbanov
d67bfe21a2 8301342: Prefer ArrayList to LinkedList in LayoutComparator
Reviewed-by: prr, serb
2023-02-05 08:45:23 +00:00
Joe Darcy
34493248c0 8301396: Port fdlibm expm1 to Java
Reviewed-by: bpb
2023-02-04 00:48:26 +00:00
Chris Plummer
3be5317b59 8301798: [BACKOUT] jdb ThreadStartRequest and ThreadDeathRequest should use SUSPEND_NONE instead of SUSPEND_ALL
Reviewed-by: dcubed, dholmes
2023-02-03 22:22:55 +00:00
Matthew Donovan
e7247b10cc 8298872: Update CheckStatus.java for changes to TLS implementation
Reviewed-by: rhalade
2023-02-03 19:55:54 +00:00
Bill Huang
20579e48cf 8299994: java/security/Policy/Root/Root.java fails when home directory is read-only
Reviewed-by: rhalade
2023-02-03 19:19:14 +00:00
Phil Race
5962226cc3 8300891: Deprecate for removal javax.swing.plaf.synth.SynthLookAndFeel.load(URL url)
Reviewed-by: serb, aivanov, kizune, psadhukhan
2023-02-03 16:28:03 +00:00
Daniel Fuchs
8b70256d30 8301787: java/net/httpclient/SpecialHeadersTest failing after JDK-8301306
Reviewed-by: dcubed, rriggs
2023-02-03 16:01:47 +00:00
Varada M
bccd55bfdf 8300295: [AIX] TestDaemonDestroy fails due to !is_primordial_thread assertion
Reviewed-by: dholmes, stuefe
2023-02-03 15:35:26 +00:00
Albert Mingkun Yang
7435b27d68 8301744: Remove unused includes of genOopClosures.hpp
Reviewed-by: tschatzl
2023-02-03 12:26:05 +00:00
sunguoyun
6f9106e0d0 8301306: java/net/httpclient/* fail with -Xcomp
Reviewed-by: dfuchs, alanb
2023-02-03 11:56:06 +00:00
Johan Sjölen
ac9e046748 8301479: Replace NULL with nullptr in os/linux
Reviewed-by: coleenp, sgehwolf
2023-02-03 11:52:22 +00:00
Roland Westrelin
cf68d9fb8e 8299155: C2: SubTypeCheckNode::verify() should not produce dependencies / oop pool entries
Reviewed-by: thartmann, kvn
2023-02-03 07:58:29 +00:00
Matthias Baesken
11804b246e 8301050: Detect Xen Virtualization on Linux aarch64
Reviewed-by: dholmes, clanger
2023-02-03 07:54:33 +00:00
Per Minborg
b504c9411e 8300235: Use VarHandle access in Image(Input | Output)StreamImpl classes
Reviewed-by: rriggs
2023-02-03 07:24:20 +00:00
Andrey Turbanov
406021ad58 8300929: Avoid unnecessary array fill after creation in java.awt.image
Reviewed-by: attila, serb, aivanov
2023-02-03 06:51:54 +00:00
Sibabrata Sahoo
7f313b0cef 8180266: Convert sun/security/provider/KeyStore/DKSTest.sh to Java Jtreg Test
Reviewed-by: rhalade
2023-02-03 05:19:47 +00:00
Feilong Jiang
3ad6aef149 8301313: RISC-V: C2: assert(false) failed: bad AD file due to missing match rule
Reviewed-by: fyang, yadongwang
2023-02-03 05:03:21 +00:00
Jaikiran Pai
4c9de876bf 8301655: Problemlist jdk/jdk/nio/zipfs/TestLocOffsetFromZip64EF.java on Linux
Reviewed-by: lancea
2023-02-03 01:03:28 +00:00
Ioi Lam
04278e6bf2 8301564: Non-C-heap allocated ResourceHashtable keys and values must have trivial destructor
Reviewed-by: coleenp, jvernee
2023-02-02 22:31:53 +00:00
Hai-May Chao
b00b70c240 8286907: keytool should warn about weak PBE algorithms
Reviewed-by: mullan, weijun
2023-02-02 21:17:08 +00:00
Joe Darcy
ee0f5b5ed0 8301392: Port fdlibm log1p to Java
Reviewed-by: bpb
2023-02-02 20:36:34 +00:00
Raffaello Giulietti
f696785fd3 8300869: Make use of the Double.toString(double) algorithm in java.util.Formatter
Reviewed-by: darcy, naoto
2023-02-02 19:10:42 +00:00
Dr Heinz M. Kabutz
cf6b9eb8c8 8301637: ThreadLocalRandom.current().doubles().parallel() contention
Reviewed-by: alanb
2023-02-02 18:28:47 +00:00
Albert Mingkun Yang
c647ae6c32 8301149: Parallel: Refactor MutableNUMASpace::update_layout
Reviewed-by: tschatzl, lkorinth, iveresov
2023-02-02 17:41:52 +00:00
Chris Plummer
de5773325d 8301644: com/sun/jdi/JdbStopThreadTest.java fails after JDK-8300811
Reviewed-by: amenkov, kevinw
2023-02-02 16:58:48 +00:00
Jonathan Gibbons
930ec008e0 8301636: Minor cleanup in CommentHelper and DocPretty
Reviewed-by: prappo
2023-02-02 15:24:49 +00:00
Julian Waters
725d57b2e2 8301659: Resolve initialization reordering issues on Windows for libawt and libsaproc
Reviewed-by: dholmes, aivanov
2023-02-02 15:22:18 +00:00
Leonid Mesnik
2d50c7d477 8298979: Remove duplicated serviceability/jvmti/thread/GetAllThreads/allthr01/allthr01.java
Reviewed-by: sspitsyn
2023-02-02 15:10:27 +00:00
Christian Hagedorn
59b7fb1a91 8300273: [IR framework] Handle <!-- safepoint while printing --> message instead of bailing out
Reviewed-by: thartmann, kvn
2023-02-02 14:39:28 +00:00
Damon Fenacci
5b1584b92c 8298880: VectorLogicalOpIdentityTest.java IR test incorrectly use avx3 instead of avx512
Reviewed-by: chagedorn, kvn, rcastanedalo
2023-02-02 14:33:28 +00:00
Axel Boldt-Christmas
21c1afbc32 8301612: OopLoadProxy constructor should be explicit
Reviewed-by: stefank, jsjolen
2023-02-02 14:04:22 +00:00
Aleksei Efimov
03b23a1e1b 8301367: Add exception handler method to the BaseLdapServer
Reviewed-by: jpai, vtewari, dfuchs
2023-02-02 12:45:00 +00:00
Johan Sjölen
7b6ac41ab1 8286876: NMT.test_unaliged_block_address_vm_assert fails if using clang toolchain
Reviewed-by: stuefe, gziemski
2023-02-02 10:14:26 +00:00
Johan Sjölen
d097b5e628 8301508: Replace NULL with nullptr in os_cpu/linux_s390
Reviewed-by: kbarrett
2023-02-02 09:32:42 +00:00
Johan Sjölen
c8307e37fd 8301500: Replace NULL with nullptr in os_cpu/aix_ppc
Reviewed-by: tschatzl
2023-02-02 09:31:24 +00:00
Johan Sjölen
218223e4a3 8301501: Replace NULL with nullptr in os_cpu/bsd_aarch64
Reviewed-by: tschatzl, dholmes
2023-02-02 09:30:28 +00:00
Johan Sjölen
b81f0ff43a 8301505: Replace NULL with nullptr in os_cpu/linux_arm
Reviewed-by: kbarrett
2023-02-02 09:29:45 +00:00
Johan Sjölen
42a286a158 8301511: Replace NULL with nullptr in os_cpu/linux_zero
Reviewed-by: sgehwolf, dholmes
2023-02-02 09:29:02 +00:00
Johan Sjölen
ad79e49141 8301512: Replace NULL with nullptr in os_cpu/windows_aarch64
Reviewed-by: kbarrett
2023-02-02 09:28:19 +00:00
Johan Sjölen
8cc399b672 8301503: Replace NULL with nullptr in os_cpu/bsd_zero
Reviewed-by: kbarrett
2023-02-02 09:27:30 +00:00
Johan Sjölen
c109dae48c 8301513: Replace NULL with nullptr in os_cpu/windows_x86
Reviewed-by: kbarrett
2023-02-02 09:26:26 +00:00
Johan Sjölen
182d1b2fb7 8301507: Replace NULL with nullptr in os_cpu/linux_riscv
Reviewed-by: kbarrett
2023-02-02 09:25:21 +00:00
Johan Sjölen
5d1f71daf0 8301509: Replace NULL with nullptr in os_cpu/linux_x86
Reviewed-by: kbarrett
2023-02-02 09:24:30 +00:00
Johan Sjölen
6daff6b269 8301502: Replace NULL with nullptr in os_cpu/bsd_x86
Reviewed-by: tschatzl, dholmes
2023-02-02 09:23:48 +00:00
Johan Sjölen
13fcd602d3 8301504: Replace NULL with nullptr in os_cpu/linux_aarch64
Reviewed-by: kbarrett
2023-02-02 09:22:48 +00:00
Johan Sjölen
b1e96989b6 8301506: Replace NULL with nullptr in os_cpu/linux_ppc
Reviewed-by: kbarrett, rrich
2023-02-02 09:22:00 +00:00
Roland Westrelin
af474ce359 8297582: C2: very slow compilation due to type system verification code
Reviewed-by: kvn, vlivanov
2023-02-02 08:29:19 +00:00
Pavel Rappo
8d6e8a47c9 8301618: Compare elements and type mirrors properly
Reviewed-by: jjg
2023-02-01 23:54:22 +00:00
Jesper Wilhelmsson
d6832121b7 Merge 2023-02-01 22:36:07 +00:00
Erik Joelsson
960c393133 8301393: Include cdb in the Windows devkit
Reviewed-by: mikael
2023-02-01 21:04:41 +00:00
Weijun Wang
6c927c92f7 8301299: Wrong class spec on sun.security.util.Pem
Reviewed-by: jnimeh
2023-02-01 20:59:05 +00:00
Mandy Chung
51ac8783b9 8284236: Remove java/lang/ref/ReferenceEnqueue.java from ProblemList-Xcomp.txt
Reviewed-by: alanb
2023-02-01 20:27:20 +00:00
Chris Plummer
9952108734 8300811: jdb ThreadStartRequest and ThreadDeathRequest should use SUSPEND_NONE instead of SUSPEND_ALL
Reviewed-by: alanb, sspitsyn
2023-02-01 18:59:09 +00:00
Jonathan Gibbons
24ff3da054 8301201: Allow \n@ inside inline tags using inlineContent
Reviewed-by: hannesw
2023-02-01 18:28:42 +00:00
Matthew Donovan
3361a26df4 8298874: Update TestAllSuites.java for TLS v1.2 and 1.3
Reviewed-by: rhalade
2023-02-01 17:20:24 +00:00
ryawalla
bc750f70f2 8294527: Some java.security.debug options missing from security docs
Reviewed-by: mullan
2023-02-01 13:50:40 +00:00
Stefan Karlsson
1330d4eaa5 8298377: JfrVframeStream causes deadlocks in ZGC
Backport-of: 453dbd12ee
2023-02-01 13:19:26 +00:00
Justin King
7c6a8db328 8301447: [REDO] CodeHeap has virtual methods that are not overridden
Reviewed-by: kvn, thartmann
2023-02-01 13:11:12 +00:00
Tobias Hartmann
cae577a710 8295486: Inconsistent constant field values observed during compilation
Reviewed-by: chagedorn, kvn, jbhateja, vlivanov
2023-02-01 11:15:35 +00:00
Claes Redestad
969f6a37e4 8301093: C2 fails assert(ctrl == kit.control()) failed: Control flow was added although the intrinsic bailed out
Reviewed-by: thartmann, kvn
2023-02-01 10:55:43 +00:00
Roland Westrelin
2a8ae2ff1c 8300256: C2: vectorization is sometimes skipped on loops where it would succeed
Reviewed-by: kvn, thartmann
2023-02-01 09:48:54 +00:00
Axel Boldt-Christmas
ef0d0a7092 8301402: os::print_location gets is_global_handle assert
Reviewed-by: coleenp, dholmes
2023-02-01 09:47:15 +00:00
Albert Mingkun Yang
4f6f3cc642 8301446: Remove unused includes of gc/shared/genOopClosures
Reviewed-by: stefank, kbarrett
2023-02-01 09:46:02 +00:00
Albert Mingkun Yang
a0aed9bd89 8301459: Serial: Merge KeepAliveClosure into FastKeepAliveClosure
Reviewed-by: stefank, tschatzl
2023-02-01 09:45:16 +00:00
Kevin Walls
225f80532c 8299891: JMX ObjectInputFilter additional classes needed
Reviewed-by: dfuchs, sspitsyn, cjplummer
2023-02-01 09:14:25 +00:00
David Holmes
d269ebbad2 8301570: Test runtime/jni/nativeStack/ needs to detach the native thread
Co-authored-by: Calvin Cheung <ccheung@openjdk.org>
Reviewed-by: lmesnik, ccheung
2023-02-01 07:56:21 +00:00
Deepa Kumari
8164cfbc03 8300696: [AIX] AttachReturnError fails
Reviewed-by: tsteele, dholmes
2023-02-01 07:04:26 +00:00
Bill Huang
09bfbf8063 8300909: Update com/sun/jndi/dns/Test6991580.java manual test instruction
Reviewed-by: alanb
2023-01-31 22:12:07 +00:00
Vicente Romero
6beadbbe9f 8293519: deprecation warnings should be emitted for uses of annotation methods inside other annotations
Reviewed-by: jlahoda
2023-01-31 18:20:11 +00:00
Coleen Phillimore
4bef233a4a 8301549: Fix comment about ClassCircularityError
Reviewed-by: lfoltan
2023-01-31 18:07:15 +00:00
Coleen Phillimore
e1bf471312 8301555: Remove constantPoolCacheKlass friend
Reviewed-by: fparain, kbarrett
2023-01-31 18:06:14 +00:00
Vicente Romero
5744c91bf5 8297158: Suspicious collection method call in Types.isSameTypeVisitor
Reviewed-by: jlahoda
2023-01-31 17:01:14 +00:00
Calvin Cheung
e193a0b72a 8295951: intermittent cmp_baseline task failures with CDS files
Reviewed-by: iklam
2023-01-31 16:51:45 +00:00
Albert Mingkun Yang
60c535de49 8301340: Make DirtyCardToOopClosure stack-allocated
Reviewed-by: stefank, tschatzl
2023-01-31 16:09:48 +00:00
Johan Sjölen
b76a52f210 8301076: Replace NULL with nullptr in share/prims/
Reviewed-by: kbarrett, dholmes
2023-01-31 14:22:44 +00:00
Johan Sjölen
90ec19efed 8301068: Replace NULL with nullptr in share/jvmci/
Reviewed-by: kvn, never
2023-01-31 12:19:42 +00:00
Robbin Ehn
419409bcf6 8301337: Remove unused os::_polling_page
Reviewed-by: coleenp, dnsimon
2023-01-31 11:41:16 +00:00
Aleksey Shipilev
d583767bf1 8301338: Identical branch conditions in CompileBroker::print_heapinfo
Reviewed-by: thartmann
2023-01-31 11:06:47 +00:00
Matthias Baesken
810c8a271b 8301170: perfMemory_windows.cpp add free_security_attr to early returns
Reviewed-by: stuefe, dholmes
2023-01-31 08:20:52 +00:00
Tobias Hartmann
33e653e284 8301448: [BACKOUT] CodeHeap has virtual methods that are not overridden
Reviewed-by: alanb, dholmes
2023-01-31 07:55:52 +00:00
Axel Boldt-Christmas
cdb4ba9657 8301326: Optimize compiler/uncommontrap/TestDeoptOOM.java test
Reviewed-by: rcastanedalo, thartmann
2023-01-31 07:54:20 +00:00
Feilong Jiang
9cc0171ed5 8301153: RISC-V: pipeline class for several instructions is not set correctly
Reviewed-by: fyang, yadongwang
2023-01-31 07:28:33 +00:00
Feilong Jiang
633e291cfc 8301067: RISC-V: better error message when reporting unsupported satp modes
Reviewed-by: fyang, yadongwang
2023-01-31 07:15:37 +00:00
Albert Mingkun Yang
4b0e259d16 8301344: G1: Remove DirtyCardToOopClosure forward declaration in g1OopClosures.hpp
Reviewed-by: tschatzl
2023-01-31 07:10:13 +00:00
Tobias Hartmann
7b3919d3f5 8301346: Remove dead emit_entry_barrier_stub definition
Reviewed-by: chagedorn, kvn
2023-01-31 06:46:47 +00:00
Justin King
a6867a7ec2 8301378: CodeHeap has virtual methods that are not overridden
Reviewed-by: kvn, thartmann
2023-01-31 06:34:45 +00:00
Fei Yang
aa3492442b 8300463: Build failure on Windows 32 after JDK-8296401
Reviewed-by: kbarrett
2023-01-31 00:10:42 +00:00
Christian Wimmer
622b6594d1 8262994: Refactor String.split to help method inlining
Reviewed-by: plevart
2023-01-30 23:33:11 +00:00
Mandy Chung
2d7690b2e5 8301207: (jdeps) Deprecate jdeps -profile option
Reviewed-by: alanb
2023-01-30 22:39:55 +00:00
Jesper Wilhelmsson
561a25e025 Merge 2023-01-30 20:51:54 +00:00
Joe Darcy
63bb2ce8de 8301205: Port fdlibm log10 to Java
Reviewed-by: bpb
2023-01-30 20:33:01 +00:00
Erik Joelsson
b84f4c40fd 8301267: Update of config.guess broke build on WSL
Reviewed-by: tbell, jvernee, djelinski
2023-01-30 20:18:59 +00:00
Chris Plummer
a128a5d07c 8300810: Get rid of unused JDI removeListener() methods
Reviewed-by: kevinw, amenkov
2023-01-30 19:08:08 +00:00
Leonid Mesnik
a91143cc93 8298907: nsk JDI tests pass if the debuggee failed to launch
Reviewed-by: cjplummer, kevinw
2023-01-30 17:32:45 +00:00
Naoto Sato
323813985b 8300916: Re-examine the initialization of JNU Charset in StaticProperty
Reviewed-by: mchung, alanb
2023-01-30 17:06:44 +00:00
Afshin Zafari
f4592b1471 8267935: Replace BasicHashtable and Hashtable
Reviewed-by: coleenp, rehn, tschatzl
2023-01-30 16:23:39 +00:00
Daniel Fuchs
a74ebd048a 8299325: java/net/httpclient/CancelRequestTest.java fails "test CancelRequestTest.testGetSendAsync("https://localhost:46509/https1/x/same/interrupt", true, true)"
Reviewed-by: jpai
2023-01-30 14:41:59 +00:00
Daniel Fuchs
041a12e655 8301255: Http2Connection may send too many GOAWAY frames
Reviewed-by: jpai
2023-01-30 14:36:36 +00:00
Amit Kumar
476f58adc1 8298424: Remove redundant FOUND_CORES variable in build-performance.m4
Reviewed-by: erikj, tsteele
2023-01-30 14:33:28 +00:00
Fei Yang
ebb84ad70d 8301036: RISC-V: Factor out functions baseOffset & baseOffset32 from MacroAssembler
Reviewed-by: luhenry, fjiang, shade
2023-01-30 12:24:19 +00:00
Fei Yang
61a5f114ee 8301033: RISC-V: Handle special cases for MinI/MaxI nodes for Zbb
Reviewed-by: fjiang, luhenry, shade
2023-01-30 12:15:52 +00:00
Albert Mingkun Yang
82df4a2aee 8301148: Serial: Remove ContiguousSpace::reset_saved_mark
Reviewed-by: kbarrett, tschatzl
2023-01-30 11:49:26 +00:00
Erik Österlund
c672ed16f3 8301248: Less side effects in InstanceRefKlass::trace_reference_gc
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: rkennke, stefank
2023-01-30 10:29:47 +00:00
Erik Österlund
cee4bd3ee6 8301047: Clean up type unsafe uses of oop from compiler code
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Reviewed-by: kvn, stefank
2023-01-30 10:28:40 +00:00
Erik Österlund
7fae3a1d8d 8301229: Clean up SuspendibleThreadSet::_suspend_all
Reviewed-by: stefank, kbarrett, tschatzl
2023-01-30 10:27:40 +00:00
Albert Mingkun Yang
f50cda7d45 8301217: Remove FilteringClosure
Reviewed-by: iwalulya, tschatzl
2023-01-30 10:17:46 +00:00
Koichi Sakata
08b24ac7aa 8294066: IGV: Graph changes when deleting a graph in the same group with smaller index
Reviewed-by: rcastanedalo, tholenstein
2023-01-30 09:50:09 +00:00
Richard Reingruber
3db558b67b 8300915: G1: incomplete SATB because nmethod entry barriers don't get armed
Reviewed-by: tschatzl, eosterlund
2023-01-30 08:43:15 +00:00
Matthias Baesken
cbefe1fd35 8301163: jdk/internal/vm/Continuation/Fuzz.java increase COMPILATION_TIMEOUT for Linux ppc64le
Reviewed-by: rrich
2023-01-30 08:15:10 +00:00
Prasanta Sadhukhan
c2ebd17938 6187113: DefaultListSelectionModel.removeIndexInterval(0, Integer.MAX_VALUE) fails
Co-authored-by: Alexey Ivanov <aivanov@openjdk.org>
Reviewed-by: aivanov
2023-01-30 07:35:14 +00:00
Axel Boldt-Christmas
4bd3f0a0d5 8301088: oopDesc::print_on should consistently use a trailing newline
Reviewed-by: tschatzl, coleenp
2023-01-30 07:14:25 +00:00
David Holmes
64b25ea0b4 8291569: Consider removing JNI checks for signals SIGPIPE and SIGXFSZ
Reviewed-by: stuefe, rehn
2023-01-29 23:14:39 +00:00
Ioi Lam
1ff4646ed5 8298612: Refactor archiving of java String objects
Reviewed-by: ccheung
2023-01-29 21:59:48 +00:00
Sergey Bylokhov
d4e9f5e5f2 8238170: BeanContextSupport remove and propertyChange can deadlock
Reviewed-by: phh
2023-01-29 20:04:37 +00:00
Jatin Bhateja
6475501a01 8300208: Optimize Adler32 stub for AVX-512 targets.
Reviewed-by: kvn, sviswanathan
2023-01-29 01:55:46 +00:00
Yadong Wang
af564e46b0 8299844: RISC-V: Implement _onSpinWait intrinsic
Reviewed-by: fjiang, fyang, luhenry
2023-01-28 02:17:44 +00:00
Damon Nguyen
ef6200c727 8300269: The selected item in an editable JComboBox with titled border is not visible in Aqua LAF
Co-authored-by: Manukumar V S <mvs@openjdk.org>
Reviewed-by: psadhukhan, kizune, achung, prr
2023-01-27 23:09:14 +00:00
Eirik Bjorsnos
5dfc4ec7d9 8300140: ZipFile.isSignatureRelated returns true for files in META-INF subdirectories
Reviewed-by: weijun
2023-01-27 22:47:51 +00:00
Jesper Wilhelmsson
5c59de52a3 Merge 2023-01-27 22:46:31 +00:00
Tagir F. Valeev
ae0e76d3dd 8301120: Cleanup utility classes java.util.Arrays and java.util.Collections
Reviewed-by: smarks, darcy
2023-01-27 19:23:53 +00:00
Justin King
b8e5abc1e8 8301097: Update GHA XCode to 12.5.1
Reviewed-by: ihse
2023-01-27 19:09:53 +00:00
Xue-Lei Andrew Fan
9c4bc2c395 8301132: Test update for deprecated sprintf in Xcode 14
Reviewed-by: mikael
2023-01-27 19:01:01 +00:00
Mandy Chung
7f05d57a87 8217920: Lookup.defineClass injects a class that can access private members of any class in its own module
Reviewed-by: psandoz, alanb, darcy
2023-01-27 18:31:03 +00:00
Justin Lu
22c976a9b0 8177418: NPE is not apparent for methods in java.util.TimeZone API docs
Reviewed-by: lancea, naoto
2023-01-27 18:11:20 +00:00
Damon Nguyen
e5860ef60a 8301206: Fix issue with LocaleData after JDK-8300719
Reviewed-by: naoto
2023-01-27 17:22:05 +00:00
Mandy Chung
7aaf76c529 8300924: Method::invoke throws wrong exception type when passing wrong number of arguments to method with 4 or more parameters
Reviewed-by: rriggs
2023-01-27 17:13:54 +00:00
Johan Sjölen
49ff52087b 8300241: Replace NULL with nullptr in share/classfile/
Reviewed-by: coleenp, iklam
2023-01-27 16:15:29 +00:00
Johan Sjölen
f52d35c84b 8300240: Replace NULL with nullptr in share/ci/
Reviewed-by: kvn, coleenp
2023-01-27 15:43:34 +00:00
Johan Sjölen
5c1ec82656 8301077: Replace NULL with nullptr in share/services/
Reviewed-by: cjplummer, coleenp
2023-01-27 15:42:46 +00:00
Deepa Kumari
dff41316a2 8285850: [AIX] unreachable code in basic_tools.m4 -> BASIC_CHECK_TAR
Reviewed-by: erikj, tsteele
2023-01-27 15:28:13 +00:00
Adam Sotona
b22e5216c4 8300953: ClassDesc::ofInternalName missing @since tag
Reviewed-by: darcy, mchung, jjg
2023-01-27 15:09:53 +00:00
Justin King
e2a3b20ca8 8301187: Memory leaks in OopMapCache
Reviewed-by: fparain, coleenp
2023-01-27 14:58:22 +00:00
Coleen Phillimore
fccf818972 8301123: Enable Symbol refcounting underflow checks in PRODUCT
Reviewed-by: fparain, iklam
2023-01-27 14:56:29 +00:00
Damon Fenacci
e4252bb914 8300823: UB: Compile::_phase_optimize_finished is initialized too late
Reviewed-by: thartmann, chagedorn
2023-01-27 12:14:07 +00:00
Tejesh R
db8fa1be05 8300405: Screen capture for test JFileChooserSetLocationTest.java, failure case
Reviewed-by: serb
2023-01-27 11:05:12 +00:00
Johan Sjölen
3758487fda 8301180: Replace NULL with nullptr in share/gc/parallel/
Reviewed-by: stefank, ayang
2023-01-27 11:01:07 +00:00
Darragh Clarke
d7aa87fdbd 8300176: URLEncoder/URLDecoder static fields should be private static final
Reviewed-by: redestad, michaelm, stsypanov, dfuchs, jpai
2023-01-27 10:52:06 +00:00
Johan Sjölen
107e184d59 8301179: Replace NULL with nullptr in share/gc/serial/
Reviewed-by: tschatzl, kbarrett
2023-01-27 09:36:23 +00:00
Johan Sjölen
b77abc6a0d 8301178: Replace NULL with nullptr in share/gc/epsilon/
Reviewed-by: tschatzl, kbarrett
2023-01-27 09:35:42 +00:00
Albert Mingkun Yang
f7da09c349 8301164: Remove unused ResourceStack class
Reviewed-by: coleenp
2023-01-27 08:12:06 +00:00
Erik Österlund
6e4710bc83 8300253: Introduce AArch64 nzcv accessors
Reviewed-by: aph, smonteith
2023-01-27 08:08:59 +00:00
Julian Waters
c6b3f2dd10 8301129: Link to debuginfo files should only be made after stripping
Reviewed-by: erikj, ihse
2023-01-27 07:07:22 +00:00
Koichi Sakata
938b409608 8301133: IGV: NPE occurs when creating a diff graph with a graph in a different folder
Reviewed-by: rcastanedalo, chagedorn
2023-01-27 06:17:14 +00:00
Amit Kumar
0eb1f66fd8 8298038: [s390] Configure script detects num_cores +1
Reviewed-by: tsteele, erikj
2023-01-27 05:41:05 +00:00
Glavo
c3ff151457 8301190: [vectorapi] The typeChar of LaneType is incorrect when default locale is tr
Reviewed-by: psandoz
2023-01-27 01:17:02 +00:00
Damon Nguyen
a67b1e77d3 8300719: JDK 20 RDP2 L10n resource files update
Reviewed-by: cjplummer, naoto, prr, joehw, asemenyuk, jlu, lancea, ihse, jjg, weijun
2023-01-26 22:33:04 +00:00
Valerie Peng
7eff578768 8288050: Add support of SHA-512/224 and SHA-512/256 to the PBKDF2 and PBES2 impls in SunJCE provider
Reviewed-by: weijun
2023-01-26 22:07:31 +00:00
Matthew Donovan
d6007a356f 8298869: Update ConnectionTest.java for changes to TLS implementation
Reviewed-by: rhalade
2023-01-26 21:36:36 +00:00
Brian Burkhalter
c4278144be 8299982: (bf) Buffer.checkIndex(int, int) should use Preconditions.checkIndex(int, int, BiFunction)
Reviewed-by: uschindler, vtewari, rriggs, alanb
2023-01-26 20:09:01 +00:00
Matthew Donovan
7ddafd75b0 8301189: validate-source fails after JDK-8298873
Reviewed-by: dcubed, rhalade
2023-01-26 19:36:41 +00:00
Matthew Donovan
fc26d3e577 8298873: Update IllegalRecordVersion.java for changes to TLS implementation
Reviewed-by: rhalade
2023-01-26 18:36:29 +00:00
Viktor Klang
a2a7703370 8299444: java.util.Set.copyOf allocates needlessly for empty input collections
Reviewed-by: rriggs, shade, smarks
2023-01-26 18:15:56 +00:00
Johan Sjölen
d98a323a8b 8301070: Replace NULL with nullptr in share/memory/
Reviewed-by: stefank, stuefe
2023-01-26 16:30:31 +00:00
Thomas Schatzl
315398c245 8221785: Let possibly_parallel_threads_do cover the same threads as threads_do
Reviewed-by: iwalulya, coleenp
2023-01-26 15:39:22 +00:00
Erik Österlund
14114c2515 8301005: Clean up Copy::conjoint_*_atomic on windows
Reviewed-by: aboldtch, stefank, tschatzl
2023-01-26 15:11:03 +00:00
Erik Österlund
973f741993 8300968: Accessorize raw oop load in DeadCounterClosure
Reviewed-by: tschatzl, stefank
2023-01-26 15:10:08 +00:00
Severin Gehwolf
64ddf9536f 8299858: [Metrics] Swap memory limit reported incorrectly when too large
Reviewed-by: stuefe
2023-01-26 14:50:46 +00:00
Erik Österlund
28545dcf2b 8300247: Harden C1 xchg on AArch64 and PPC
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Reviewed-by: aph, rcastanedalo
2023-01-26 14:35:25 +00:00
Coleen Phillimore
3f6338146e 8300913: ZGC: assert(to_addr != 0) failed: Should be forwarded
Reviewed-by: eosterlund, rehn
2023-01-26 13:04:19 +00:00
Albert Mingkun Yang
da80e7a489 8300962: Parallel: Remove PSParallelCompact::_total_invocations
Reviewed-by: tschatzl, iwalulya
2023-01-26 11:41:07 +00:00
Albert Mingkun Yang
7725fe845b 8299953: Merge ContiguousSpaceDCTOC into DirtyCardToOopClosure
Reviewed-by: tschatzl, iwalulya
2023-01-26 11:40:16 +00:00
Albert Mingkun Yang
a9b8acb643 8300652: Parallel: Refactor oop marking stack in Full GC
Reviewed-by: tschatzl, iwalulya
2023-01-26 11:39:34 +00:00
Roman Marchenko
15a1488401 8297437: javadoc cannot link to old docs (with old style anchors)
Reviewed-by: hannesw
2023-01-26 11:11:21 +00:00
Johan Sjölen
b0376a5f44 8301069: Replace NULL with nullptr in share/libadt/
Reviewed-by: kvn
2023-01-26 10:49:06 +00:00
Albert Mingkun Yang
7328182b68 8300958: Parallel: Remove unused MutableNUMASpace::capacity_in_words
Reviewed-by: tschatzl
2023-01-26 10:44:01 +00:00
Leo Korinth
30cb305dc1 8292170: Convert CodeRootSetTable to use ResourceHashtable
Reviewed-by: coleenp, iwalulya, iklam
2023-01-26 10:32:36 +00:00
Albert Mingkun Yang
3589b80838 8300127: Serial: Remove unnecessary from-space iteration in DefNewGeneration::oop_since_save_marks_iterate
Reviewed-by: tschatzl, ysr
2023-01-26 10:13:51 +00:00
Conor Cleary
48152ef66f 8287134: HttpURLConnection chunked streaming mode doesn't enforce specified size
Reviewed-by: dfuchs, michaelm
2023-01-26 08:35:07 +00:00
Damon Fenacci
4b0e656bb6 8298118: split-if optimization causes empty loop to temporarily have more than one phi
Reviewed-by: roland, thartmann, kvn
2023-01-26 07:41:15 +00:00
Tobias Hartmann
252621d4e0 8301063: Remove dead code from GrowableArray
Reviewed-by: chagedorn, kvn
2023-01-26 06:30:37 +00:00
Joe Darcy
b5a4744f90 8300857: State return value for Types.asElement(NoType) explicitly
Reviewed-by: jjg
2023-01-26 02:14:07 +00:00
Scott Gibbons
7e951f4b4c 8301092: Add benchmark for CRC32
Reviewed-by: ecaspole, sviswanathan
2023-01-26 00:20:41 +00:00
Ioi Lam
adcfd25735 8301098: Remove dead code FileMapInfo::stop_sharing_and_unmap()
Reviewed-by: coleenp, ccheung
2023-01-25 20:04:50 +00:00
ScientificWare
9f0887e205 8296661: Typo Found In CSSParser.java
Reviewed-by: angorya, aivanov, prr
2023-01-25 19:20:39 +00:00
Mikael Vidstedt
ccf2f5837b 8300806: Update googletest to v1.13.0
Reviewed-by: erikj, ihse
2023-01-25 18:27:26 +00:00
Justin King
edf1e1ab4a 8300592: ASan build does not correctly propagate options to some test launchers
Reviewed-by: ihse
2023-01-25 16:18:29 +00:00
Xue-Lei Andrew Fan
e80b5ea448 8299635: Hotspot update for deprecated sprintf in Xcode 14
Reviewed-by: dholmes, mikael
2023-01-25 15:42:53 +00:00
Erik Joelsson
f279c751a5 8300805: Update autoconf build-aux files with latest from 2022-09-17
Reviewed-by: mikael, clanger
2023-01-25 14:14:56 +00:00
Per Minborg
a23ff63af1 8301086: jdk/internal/util/ByteArray/ReadWriteValues.java fails with CompilationError
Reviewed-by: dfuchs
2023-01-25 14:13:22 +00:00
Eirik Bjorsnos
61775c85b0 8300997: Add curl support to createJMHBundle.sh
Reviewed-by: erikj
2023-01-25 14:01:03 +00:00
Jaikiran Pai
8a47429dc0 8295944: Move the Http2TestServer and related classes into a package of its own
Reviewed-by: dfuchs
2023-01-25 13:38:02 +00:00
Daniel Fuchs
c8ad600064 8301004: httpclient: Add more debug to HttpResponseInputStream
Reviewed-by: jpai
2023-01-25 13:33:22 +00:00
Per Minborg
74e1a8bfa8 8300236: Use VarHandle access in Data(Input | Output)Stream classes
Reviewed-by: rriggs, alanb
2023-01-25 12:54:27 +00:00
Johan Sjölen
a5d8e12872 8300244: Replace NULL with nullptr in share/interpreter/
Reviewed-by: coleenp, dholmes
2023-01-25 10:31:51 +00:00
Johan Sjölen
71107f4648 8300651: Replace NULL with nullptr in share/runtime/
Reviewed-by: rehn, dholmes
2023-01-25 10:30:02 +00:00
Severin Gehwolf
3c61d5aa48 8300659: Refactor TestMemoryAwareness to use WhiteBox api for host values
Reviewed-by: mbaesken
2023-01-25 10:24:33 +00:00
Erik Österlund
b2071f79d8 8300657: Remove null filtering in CLD oop handle area
Reviewed-by: coleenp, dholmes
2023-01-25 08:17:56 +00:00
Erik Österlund
95fafd094f 8300644: Remove gc/shenandoah/jni/TestStringCriticalWithDedup.java
Reviewed-by: wkemper, mbaesken
2023-01-25 08:15:35 +00:00
Christian Hagedorn
5a478ef775 8297730: C2: Arraycopy intrinsic throws incorrect exception
Reviewed-by: thartmann, kvn
2023-01-25 07:22:12 +00:00
Prasanta Sadhukhan
7465de453a 6603771: Nimbus L&F: Ctrl+F7 keybinding for Jinternal Frame throws a NPE.
Reviewed-by: abhiscxk, serb
2023-01-25 05:48:07 +00:00
David Holmes
fbe5ab0066 8300830: Remove redundant assertion in src/hotspot/share/runtime/javaCalls.cpp
Reviewed-by: iklam, rehn, dcubed
2023-01-25 01:05:25 +00:00
Jie Fu
133946159c 8300981: Build failure on 32-bit platforms after JDK-8281213
Reviewed-by: coleenp
2023-01-24 23:44:35 +00:00
Jesper Wilhelmsson
81d523d382 Merge 2023-01-24 22:28:07 +00:00
Eirik Bjorsnos
cf46004f27 8300272: Improve readability of the test JarWithOneNonDisabledDigestAlg
Reviewed-by: weijun
2023-01-24 22:16:28 +00:00
Brian Burkhalter
b678e70003 8300942: JDK-8299684 breaks x86 build
Reviewed-by: dholmes, jiefu
2023-01-24 20:32:46 +00:00
Thomas Schatzl
3be5758bb4 8300769: Remove G1CollectionSet::_inc_bytes_used_before
Reviewed-by: ayang, iwalulya
2023-01-24 17:33:35 +00:00
Thomas Schatzl
859ca75b4c 8300862: Remove some G1 collection set remembered set debugging code
Reviewed-by: ayang, iwalulya
2023-01-24 17:15:53 +00:00
Adam Sotona
60b8a98501 8300591: @SuppressWarnings option "lossy-conversions" missing from jdk.compiler module javadoc
Backport-of: 836198a400
2023-01-24 13:15:02 +00:00
Justin King
048705c049 8300910: Remove metaprogramming/integralConstant.hpp
Reviewed-by: kbarrett, tschatzl
2023-01-24 11:39:18 +00:00
Matthias Baesken
544c16e0bd 8300266: Detect Virtualization on Linux aarch64
Reviewed-by: stuefe, lucy
2023-01-24 08:05:03 +00:00
Per Minborg
57f2d48e1e 8300863: Remove C-style array declarations in java.io
Reviewed-by: alanb, rriggs, darcy, iris
2023-01-24 07:43:29 +00:00
Jan Lahoda
a3ed7e94a2 8300623: Lambda deserialization regression involving Enum method reference
Reviewed-by: mcimadamore, vromero
2023-01-24 06:40:06 +00:00
Thomas Stuefe
2292ce137c 8294677: chunklevel::MAX_CHUNK_WORD_SIZE too small for some applications
Reviewed-by: simonis, phh
2023-01-24 06:35:26 +00:00
David Holmes
6dd8723f66 8290918: Initial nroff manpage generation for JDK 21
Reviewed-by: lancea, iris, darcy
2023-01-24 06:27:54 +00:00
Justin Lu
b3822f50c8 8300589: Use @snippet and @linkplain in java.text.CollationKey and java.text.CompactNumberFormat
Reviewed-by: lancea, naoto, iris
2023-01-24 04:35:46 +00:00
Ioi Lam
afd5921f1c 8298610: Refactor archiving of ConstantPool::resolved_references()
Reviewed-by: dholmes, ccheung
2023-01-24 04:07:06 +00:00
david
937ba1cadb 8300111: Add rpath for common lib locations for jpackageapplauncher
Reviewed-by: ihse, asemenyuk, almatvee
2023-01-24 03:07:16 +00:00
Jamil Nimeh
2da2e5a0e8 8300946: Add sun/security/provider/certpath/OCSP/OCSPNoContentLength to ProblemList
Reviewed-by: jpai
2023-01-24 02:09:48 +00:00
Justin Lu
0323609f44 8300706: Use @snippet in java.text
Reviewed-by: naoto
2023-01-24 02:05:05 +00:00
Tingjun Yuan
b5ee3d1f2a 8299497: Usage of constructors of primitive wrapper classes should be avoided in java.desktop API docs
Reviewed-by: serb, prr
2023-01-24 01:25:29 +00:00
David Holmes
77a50105f0 8286775: Remove identical per-compiler definitions of unsigned integral jtypes
Reviewed-by: kbarrett, coleenp
2023-01-24 00:21:29 +00:00
Andrey Turbanov
f79e587181 8300828: Avoid unnecessary array fill after creation in com.sun.media.sound
Reviewed-by: serb, prr
2023-01-23 21:05:14 +00:00
Jesper Wilhelmsson
56dc3b08a6 Merge 2023-01-23 20:58:40 +00:00
Erik Joelsson
0ea2dd1f77 8146132: Excessive output from make test-image
Reviewed-by: ihse
2023-01-23 20:51:13 +00:00
Justin Lu
dcf1523bf2 8300077: Refactor code examples to use @snippet in java.text.ChoiceFormat
Reviewed-by: lancea, iris, naoto
2023-01-23 19:31:36 +00:00
Per Minborg
d117350875 8300866: Declare some classes final in java.io
Reviewed-by: alanb
2023-01-23 19:09:39 +00:00
Jamil Nimeh
1a3cb8c501 8296343: CPVE thrown on missing content-length in OCSP response
Reviewed-by: mullan, rhalade
2023-01-23 18:05:48 +00:00
Mandy Chung
86fed79670 8300693: Lower the compile threshold and reduce the iterations of warmup loop in VarHandles tests
Reviewed-by: jvernee, dholmes, psandoz
2023-01-23 17:58:53 +00:00
Per Minborg
4525aa318a 8300867: Fix document issues in java.io
Reviewed-by: alanb, lancea, iris
2023-01-23 17:53:20 +00:00
Per Minborg
a7f035db76 8300868: Reduce visibility in java.io.SerialCallbackContext
Reviewed-by: rriggs
2023-01-23 17:47:01 +00:00
Per Minborg
079255e312 8300864: Declare some fields in java.io as final
Reviewed-by: rriggs, lancea
2023-01-23 17:40:13 +00:00
Brian Burkhalter
a56598f5a5 8299684: (bf) JNI direct buffer functions with large capacity behave unexpectedly
Reviewed-by: dholmes, alanb
2023-01-23 17:12:49 +00:00
Brian Burkhalter
542bfe61e6 8300587: (bf) Some covariant overrides are missing @since tags
Reviewed-by: lancea, iris
2023-01-23 17:05:36 +00:00
Justin King
03a9a88efb 8300265: Remove metaprogramming/isSigned.hpp
Reviewed-by: kbarrett, tschatzl
2023-01-23 16:03:28 +00:00
Emanuel Peter
5a4945c0d9 8299975: Limit underflow protection CMoveINode in PhaseIdealLoop::do_unroll must also protect type from underflow
Reviewed-by: roland, chagedorn
2023-01-23 13:10:42 +00:00
Fredrik Bredberg
f307e8c667 8299795: Relativize locals in interpreter frames
Reviewed-by: coleenp, rehn, pchilanomate, mdoerr, fyang
2023-01-23 10:43:50 +00:00
Prasanta Sadhukhan
11aadc9d98 8244400: MenuItem may cache the size and did not update it when the screen DPI is changed
Reviewed-by: serb, aivanov
2023-01-23 10:18:23 +00:00
Adam Sotona
836198a400 8300591: @SuppressWarnings option "lossy-conversions" missing from jdk.compiler module javadoc
Reviewed-by: jjg, darcy
2023-01-23 08:14:51 +00:00
David Holmes
fd752178e3 8290919: Update nroff pages in JDK 20 before RC
Reviewed-by: iris, alanb
2023-01-23 07:44:32 +00:00
Tobias Hartmann
45e4e00981 8300079: SIGSEGV in LibraryCallKit::inline_string_copy due to constant NULL src argument
Reviewed-by: roland, chagedorn, kvn
2023-01-23 06:06:32 +00:00
Raffaello Giulietti
030b071db1 8300207: Add a pre-check for the number of canonical equivalent permutations in j.u.r.Pattern
Reviewed-by: smarks
2023-01-22 12:45:52 +00:00
Jatin Bhateja
7ced08d4ec 8300638: Tier1 IR Test failure after JDK-8298632 on macosx-x64-debug
Reviewed-by: kvn, pli
2023-01-22 06:47:00 +00:00
Sergey Bylokhov
3ea4eac145 8300817: The build is broken after JDK-8294693
Reviewed-by: tvaleev, darcy
2023-01-21 21:51:41 +00:00
Andrey Turbanov
cbfc069f6a 8300731: Avoid unnecessary array fill after creation in PaletteBuilder
Reviewed-by: prr, serb
2023-01-21 19:25:18 +00:00
Tagir F. Valeev
67b1c890b3 8294693: Add Collections.shuffle overload that accepts RandomGenerator interface
Reviewed-by: smarks, darcy
2023-01-21 18:36:31 +00:00
Justin King
c8dd7583a9 8300260: Remove metaprogramming/isSame.hpp
Reviewed-by: tschatzl, kbarrett
2023-01-21 15:03:26 +00:00
Dan Lutker
a6c2a2ae79 8300692: GCC 12 reports some compiler warnings in bundled freetype
Reviewed-by: erikj, serb, jwaters
2023-01-21 12:05:35 +00:00
Claes Redestad
bb42e61a61 8300493: Use ArraysSupport.vectorizedHashCode in j.u.zip.ZipCoder
Reviewed-by: alanb, lancea
2023-01-21 11:54:51 +00:00
Doug Simon
06394ee8b1 8300590: [JVMCI] BytecodeFrame.equals is broken
Reviewed-by: adinn, dlong
2023-01-21 11:31:44 +00:00
Justin King
5331a3ef73 8298908: Instrument Metaspace for ASan
Reviewed-by: stuefe, ihse, iklam
2023-01-21 08:57:14 +00:00
Sergey Bylokhov
e1ee6727f7 8300725: Improve performance of ColorConvertOp for default destinations with alpha
Reviewed-by: prr
2023-01-21 07:09:00 +00:00
Scott Gibbons
7c2f77a422 8300584: Accelerate AVX-512 CRC32C for small buffers
Reviewed-by: kvn, sviswanathan
2023-01-21 00:07:31 +00:00
Chris Plummer
5784eb7b68 8300721: Cleanup ProblemList-svc-vthread.txt
Reviewed-by: alanb, lmesnik
2023-01-20 19:58:54 +00:00
Volodymyr Paprotski
9d44dd0cca 8297972: Poly1305 Endianness on ByteBuffer not enforced
Reviewed-by: jnimeh
2023-01-20 19:51:28 +00:00
Mandy Chung
facd41511b 8297757: VarHandles.getStaticFieldFromBaseAndOffset should get the receiver type from VarHandle
Reviewed-by: psandoz, alanb
2023-01-20 17:25:18 +00:00
Darragh Clarke
e803855708 8299863: URLFromURITest.java should import org.junit.jupiter.api.Test
Reviewed-by: dfuchs, cstein
2023-01-20 17:00:53 +00:00
Ralf Schmelter
92d8326e40 8299827: Add resolved IP address in connection exception for sockets
Reviewed-by: alanb, vtewari, jpai, dfuchs
2023-01-20 16:36:45 +00:00
Stuart Marks
c6d5600396 8038146: Clarify Map.Entry's connection to the underlying map
Reviewed-by: alanb
2023-01-20 16:33:48 +00:00
Hannes Wallnöfer
b2d3622115 8299896: Reduce enum values of HtmlLinkInfo.Kind
Reviewed-by: jjg
2023-01-20 14:50:35 +00:00
Thomas Schatzl
623ba5b6dc 8300653: G1EvacInfo should use common naming scheme for collection set
Reviewed-by: ayang, iwalulya
2023-01-20 14:31:06 +00:00
Tobias Holenstein
97c611d029 8289748: C2 compiled code crashes with SIGFPE with -XX:+StressLCM and -XX:+StressGCM
Reviewed-by: thartmann, chagedorn, kvn
2023-01-20 14:20:32 +00:00
Coleen Phillimore
4562b402fb 8300682: InstanceKlassMiscStatus is a bad name
Reviewed-by: fparain, dholmes
2023-01-20 13:20:29 +00:00
Afshin Zafari
26410c180b 8281213: Unsafe uses of long and size_t in MemReporterBase::diff_in_current_scale
Reviewed-by: eastigeevich, kbarrett
2023-01-20 10:17:07 +00:00
Johan Sjölen
eca64795be 8300087: Replace NULL with nullptr in share/cds/
Reviewed-by: dholmes, iklam
2023-01-20 09:57:20 +00:00
Daniel Fuchs
49d60fee49 8300172: java/net/httpclient/MappingResponseSubscriber.java failed with java.net.ConnectException
Reviewed-by: jpai
2023-01-20 09:23:37 +00:00
Damon Fenacci
e1893976d5 8296403: [TESTBUG] IR test runner methods in TestLongRangeChecks.java invoke wrong test methods
Reviewed-by: thartmann, chagedorn, jiefu
2023-01-20 08:16:28 +00:00
Matias Saavedra Silva
77f2d20e96 8287873: Add test for using -XX:+AutoCreateSharedArchive with different JDK versions
Reviewed-by: iklam
2023-01-20 00:55:28 +00:00
Joe Darcy
93a933d4ef 8300400: Update --release 20 symbol information for JDK 20 build 32
Reviewed-by: iris, jjg
2023-01-19 23:24:01 +00:00
Justin Lu
9b97699be5 8300586: Refactor code examples to use @snippet in java.text.Collator
Reviewed-by: iris, lancea, naoto
2023-01-19 22:36:17 +00:00
Justin Lu
fbbb27e770 8300356: Refactor code examples to use @snippet in java.text.CollationElementIterator
Reviewed-by: naoto
2023-01-19 22:35:24 +00:00
Jesper Wilhelmsson
dfcd65c271 Merge 2023-01-19 22:27:45 +00:00
Joe Darcy
f2a1eb9804 8300698: Missing @since tag for ClassFileFormatVersion.RELEASE_21
Reviewed-by: rriggs, mchung
2023-01-19 22:11:23 +00:00
Alexey Ivanov
558d610beb 8299553: Make ScaledEtchedBorderTest.java comprehensive
Reviewed-by: serb, honkar, achung
2023-01-19 19:32:58 +00:00
Harshitha Onkar
80ab50b338 8294680: Refactor scaled border rendering
Co-authored-by: Alexey Ivanov <aivanov@openjdk.org>
Reviewed-by: rmahajan, achung, aivanov, jdv
2023-01-19 18:43:54 +00:00
Weijun Wang
b317658d69 8300399: EdDSA does not verify when there is no message
Reviewed-by: ascarpino
2023-01-19 18:32:08 +00:00
Claes Redestad
d85243f02b 8300647: Miscellaneous hashCode improvements in java.base
Reviewed-by: stsypanov, rriggs
2023-01-19 16:50:07 +00:00
Ron Pressler
1c84050610 8298400: Virtual thread instability when stack overflows
Co-authored-by: Fei Yang <fyang@openjdk.org>
Co-authored-by: Richard Reingruber <rrich@openjdk.org>
Reviewed-by: dlong, pchilanomate
2023-01-19 15:34:01 +00:00
Stefan Karlsson
453dbd12ee 8298377: JfrVframeStream causes deadlocks in ZGC
Co-authored-by: Erik Österlund <eosterlund@openjdk.org>
Reviewed-by: eosterlund, mgronlun
2023-01-19 13:49:14 +00:00
Johan Sjölen
1084fd24eb 8299973: Replace NULL with nullptr in share/utilities/
Reviewed-by: coleenp, stefank, dholmes, kbarrett
2023-01-19 13:42:08 +00:00
Jonathan Dowland
dea58efb62 8300119: CgroupMetrics.getTotalMemorySize0() can report invalid results on 32 bit systems
Reviewed-by: sgehwolf
2023-01-19 13:26:18 +00:00
Alexey Ivanov
2e4a3c47e2 8293862: javax/swing/JFileChooser/8046391/bug8046391.java failed with 'Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because "retVal" is null'
Co-authored-by: Tejesh R <tr@openjdk.org>
Reviewed-by: prr, serb
2023-01-19 13:00:09 +00:00
Matthias Baesken
e326b86d37 8300042: Improve CPU related JFR events descriptions
Reviewed-by: clanger, lucy
2023-01-19 12:01:50 +00:00
Albert Mingkun Yang
11df6eb28a 8300540: Serial: Remove obsolete comments in GenMarkSweep
Reviewed-by: tschatzl
2023-01-19 11:52:40 +00:00
Albert Mingkun Yang
8f7faa631b 8300447: Parallel: Refactor PSPromotionManager::drain_stacks_depth
Reviewed-by: tschatzl, kbarrett
2023-01-19 11:51:43 +00:00
Justin King
eba87a0ee0 8300264: Remove metaprogramming/isPointer.hpp
Reviewed-by: kbarrett, tschatzl
2023-01-19 09:11:22 +00:00
Alan Bateman
08e621829b 8300526: Test runtime/jni/IsVirtualThread/IsVirtualThread.java should exercise alternative virtual thread implementation
Reviewed-by: pchilanomate
2023-01-19 09:00:01 +00:00
Johan Sjölen
cfe57466dd 8300242: Replace NULL with nullptr in share/code/
Reviewed-by: kvn, thartmann
2023-01-19 08:48:36 +00:00
Emanuel Peter
5f66024e95 8299959: C2: CmpU::Value must filter overflow computation against local sub computation
Reviewed-by: kvn, chagedorn, roland
2023-01-19 07:37:50 +00:00
Alan Bateman
5b0af1a80b 8208077: File.listRoots performance degradation
Reviewed-by: lancea, bpb
2023-01-19 06:59:38 +00:00
Christoph Langer
62a2f2327a 8300490: Spaces in name of MacOS Code Signing Identity are not correctly handled after JDK-8293550
Reviewed-by: erikj
2023-01-19 06:43:44 +00:00
SWinxy
2e9cb4b1f6 8267582: BasicLookAndFeel should not call getComponentPopupMenu twice to get a popup menu
Reviewed-by: psadhukhan
2023-01-19 05:05:20 +00:00
Sergey Bylokhov
7348b9ec93 8300167: Add validation of the raster's layout before using in native
Reviewed-by: prr
2023-01-19 05:02:12 +00:00
Feilong Jiang
24cdcd4c70 8293841: RISC-V: Implementation of Foreign Function & Memory API (Preview)
Co-authored-by: Weikai He <weikai@isrc.iscas.ac.cn>
Co-authored-by: Fei Yang <fyang@openjdk.org>
Reviewed-by: jvernee, fyang, shade, yadongwang
2023-01-19 01:33:35 +00:00
Joe Darcy
8e3036cf74 8300595: Use improved @see and @link syntax in javax.lang.model and javax.tools
Reviewed-by: jjg, iris
2023-01-19 01:14:12 +00:00
Pengfei Li
715b509f3d 8298632: [TESTBUG] Add IR checks in jtreg vectorization tests
Reviewed-by: kvn, jbhateja
2023-01-19 01:05:58 +00:00
Calvin Cheung
910dffea86 8292635: Run ArchivedEnumTest.java in jdk tier testing
Reviewed-by: iklam, dholmes
2023-01-19 00:20:13 +00:00
Jesper Wilhelmsson
fc9f8baf56 Merge 2023-01-18 23:29:12 +00:00
Justin Lu
31a2e02afc 8300308: java.text.MessageFormat has incorrect doc comment
Reviewed-by: naoto, lancea
2023-01-18 23:10:57 +00:00
Justin Lu
dfe94b89f8 8300307: Refactor code examples to use @snippet in java.text.DateFormat
Reviewed-by: lancea, iris, naoto
2023-01-18 23:09:46 +00:00
Joe Darcy
601e0ae7da 8300594: Use generalized see and link tags in UnicastRemoteObject
Reviewed-by: rriggs, smarks
2023-01-18 22:44:28 +00:00
Sergey Bylokhov
8b70c432d3 8299772: The ColorModel.getRGBdefault() method is not thread-safe
Reviewed-by: prr
2023-01-18 20:27:30 +00:00
Magnus Ihse Bursie
ba899b42ce 8300550: BASIC_JVM_LIBS is set for buildjdk even if this is incorrect
Reviewed-by: erikj
2023-01-18 20:09:34 +00:00
Joe Darcy
5473e8a1c6 8300357: Use generalized see and link tags in java.management
Reviewed-by: alanb, dfuchs
2023-01-18 20:08:37 +00:00
Joe Darcy
7bf0d1465e 8300133: Use generalized see and link tags in core libs
Reviewed-by: jjg, mchung, naoto, smarks
2023-01-18 18:54:03 +00:00
Rajat Mahajan
2a46e07f7d 8286581: Make Java process DPI Aware if sun.java2d.dpiaware property is set
Reviewed-by: aivanov, prr
2023-01-18 18:04:30 +00:00
Claes Redestad
3ea0b8bc25 8300489: Use ArraysSupport.vectorizedHashCode in j.l.CharacterName
Reviewed-by: alanb, naoto
2023-01-18 17:39:27 +00:00
Johan Sjölen
fcbf9d052e 8300243: Replace NULL with nullptr in share/compiler/
Reviewed-by: thartmann, kvn
2023-01-18 16:56:31 +00:00
Magnus Ihse Bursie
c205caead5 8297851: Add devkit for RISC-V
Reviewed-by: fyang, erikj
2023-01-18 16:16:51 +00:00
Coleen Phillimore
c3242ee452 8298596: vmTestbase/nsk/sysdict/vm/stress/chain/chain008/chain008.java fails with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
Reviewed-by: ayang, tschatzl
2023-01-18 15:19:30 +00:00
Dmitry Chuyko
b3684f4bac 8153837: AArch64: Handle special cases for MaxINode & MinINode
Reviewed-by: fyang, aph
2023-01-18 14:56:53 +00:00
Sergey Tsypanov
754f6e6116 8300237: Minor improvements in MethodHandles
Reviewed-by: redestad
2023-01-18 13:55:09 +00:00
Andrey Turbanov
85d8bacb0f 8300166: Unused array allocation in ProcessPath.doProcessPath
Reviewed-by: aivanov
2023-01-18 13:23:59 +00:00
Afshin Zafari
c464ef1d61 8292741: Convert JvmtiTagMapTable to ResourceHashtable
Reviewed-by: dholmes, coleenp, rehn
2023-01-18 13:21:32 +00:00
Julian Waters
1aded82e54 8300488: Incorrect usage of CATCH_BAD_ALLOC as a macro call
Reviewed-by: aivanov
2023-01-18 13:11:32 +00:00
Johan Sjölen
bd5ca95305 8300222: Replace NULL with nullptr in share/logging
Reviewed-by: coleenp, dholmes
2023-01-18 13:10:13 +00:00
Maurizio Cimadamore
b9275a8ed1 8300275: SegmentScope.isAccessibleBy returning incorrect values
Reviewed-by: alanb, jvernee
2023-01-18 12:36:15 +00:00
Jan Lahoda
c1b4212a53 8300195: Fall-through issue occurs when using record pattern in switch statements
Reviewed-by: vromero
2023-01-18 10:43:53 +00:00
Jie Fu
15a9186db2 8300169: Build failure with clang-15
Reviewed-by: dholmes, prr
2023-01-18 10:32:00 +00:00
Robbin Ehn
d9180423b8 8300267: Remove duplicated setter/getter for do_not_unlock
Reviewed-by: coleenp, dholmes
2023-01-18 10:23:11 +00:00
Daniel Jeliński
7c8b99eedb 8300117: Replace use of JNI_COMMIT mode with mode 0
Reviewed-by: serb, prr
2023-01-18 09:29:04 +00:00
Axel Boldt-Christmas
c7056737e3 8299089: Instrument global jni handles with tag to make them distinguishable
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Co-authored-by: Leslie Zhai <lzhai@openjdk.org>
Reviewed-by: eosterlund, stefank, ayang
2023-01-18 09:21:08 +00:00
Tobias Hartmann
66f7387b5f 8299074: nmethod marked for deoptimization is not deoptimized
Reviewed-by: eosterlund, rehn, kvn
2023-01-18 08:15:19 +00:00
Ramkumar Sunderbabu
1f438a8a70 8282651: ZGC: vmTestbase/gc/ArrayJuggle/ tests fails intermittently with exit code 97
Reviewed-by: lmesnik
2023-01-18 06:53:04 +00:00
Fei Yang
f1194dc07e 8300109: RISC-V: Improve code generation for MinI/MaxI nodes
Reviewed-by: fjiang, luhenry, shade
2023-01-18 01:14:47 +00:00
Sergey Kuksenko
89a032dc05 8300002: Performance regression caused by non-inlined hot methods due to post call noop instructions
Reviewed-by: kvn, iveresov, eosterlund
2023-01-18 00:16:34 +00:00
Jonathan Gibbons
7071397ed9 8299224: TestReporterStreams.java has bad indentation for legal header
Reviewed-by: prappo
2023-01-17 23:43:35 +00:00
Joe Darcy
1d8b87dda4 8300321: Use link tags in javax.sql.rowset package-info
Reviewed-by: lancea, iris
2023-01-17 22:19:30 +00:00
Joe Darcy
f9883fc45b 8300279: Use generalized see and link tags in core libs in client libs
Reviewed-by: aivanov, prr
2023-01-17 22:17:34 +00:00
Justin King
00b6c551ec 8300254: ASan build does not correctly propagate ASAN_OPTIONS
Reviewed-by: ihse
2023-01-17 21:53:34 +00:00
Claes Redestad
e37078f5bb 8282664: Unroll by hand StringUTF16 and StringLatin1 polynomial hash loops
Co-authored-by: Sandhya Viswanathan <sviswanathan@openjdk.org>
Co-authored-by: Ludovic Henry <luhenry@openjdk.org>
Co-authored-by: Claes Redestad <redestad@openjdk.org>
Reviewed-by: vlivanov, sviswanathan, luhenry
2023-01-17 21:06:22 +00:00
Valerie Peng
0f925fefdf 8295723: security/infra/wycheproof/RunWycheproof.java fails with Assertion Error
Reviewed-by: mschoene, ascarpino, coffeys, rhalade, weijun
2023-01-17 20:58:59 +00:00
Jayathirth D V
bd324cee9c 8295687: Better BMP bounds
Reviewed-by: rhalade, mschoene, psadhukhan, prr
2023-01-17 20:58:59 +00:00
Alexander Zuev
93161e46e7 8293742: Better Banking of Sounds
Reviewed-by: rhalade, azvegint, prr
2023-01-17 20:58:59 +00:00
Valerie Peng
6c5aefe60c 8293554: Enhanced DH Key Exchanges
Reviewed-by: rhalade, mschoene, ascarpino, weijun
2023-01-17 20:58:59 +00:00
Jamil Nimeh
2e8073e4f9 8287411: Enhance DTLS Performance
Reviewed-by: rhalade, ahgross, weijun, ascarpino
2023-01-17 20:58:58 +00:00
Prasanta Sadhukhan
d6b1513233 8293717: Objective view of ObjectView
Reviewed-by: kizune, rhalade, prr, azvegint, skoivu
2023-01-17 20:58:58 +00:00
Jayathirth D V
3364c460a4 8293734: Improve BMP image handling
Reviewed-by: kizune, prr, azvegint, rhalade, mschoene
2023-01-17 20:58:58 +00:00
Daniel Jeliński
b7cfb6817b 8293598: Enhance InetAddress address handling
Reviewed-by: skoivu, alanb, aefimov, rhalade, dfuchs
2023-01-17 20:58:58 +00:00
Markus Grönlund
51e52c4eb8 8286496: Improve Thread labels
Reviewed-by: mschoene, rhalade, egahlin
2023-01-17 20:58:58 +00:00
Phil Race
5aae8226fc 8288516: Enhance font creation
Reviewed-by: psadhukhan, azvegint, rhalade, mschoene
2023-01-17 20:58:58 +00:00
Naoto Sato
ba86c23eaf 8286070: Improve UTF8 representation
Reviewed-by: bchristi, rhalade
2023-01-17 20:58:58 +00:00
Justin Lu
ade08e190c 8300093: Refactor code examples to use @snippet in java.text.MessageFormat
Reviewed-by: iris, naoto
2023-01-17 19:40:41 +00:00
Justin Lu
d7c05d1870 8300011: Refactor code examples to use @snippet in java.util.TimeZone
Reviewed-by: lancea, naoto, iris
2023-01-17 18:30:32 +00:00
SWinxy
8c12ae8673 8283203: Fix typo in SystemTray.getTrayIconSize javadoc
Reviewed-by: aivanov
2023-01-17 17:30:25 +00:00
Naoto Sato
e7e3712121 8300010: UnsatisfiedLinkError on calling System.console().readPassword() on Windows
Reviewed-by: alanb
2023-01-17 17:25:44 +00:00
Xin Liu
0b9ff06f3a 8300184: Optimize ResourceHashtableBase::iterate_all using _number_of_entries
Reviewed-by: dholmes, rehn
2023-01-17 17:09:25 +00:00
Magnus Ihse Bursie
75b122feea 8300120: Configure should support different defaults for CI/dev build environments
Reviewed-by: erikj
2023-01-17 17:00:46 +00:00
Justin King
e139ec3db2 8300069: Left shift of negative value in share/adlc/dict2.cpp
Reviewed-by: ihse, kbarrett
2023-01-17 16:59:31 +00:00
Alan Bateman
fb147aaea1 8300228: ModuleReader.find on exploded module throws if resource name maps to invalid file path
Reviewed-by: jpai, chegar, cstein
2023-01-17 16:25:11 +00:00
Albert Mingkun Yang
4cd166ff27 8300125: Serial: Remove unused Generation::reset_saved_marks
Reviewed-by: kbarrett, lkorinth
2023-01-17 15:41:23 +00:00
Erik Österlund
ae0e02766a 8298059: Linked stack watermarks don't support nesting
Reviewed-by: stefank
Backport-of: b17c52422c
2023-01-17 15:05:51 +00:00
Jesper Wilhelmsson
85d70acc6e Merge 2023-01-17 13:19:14 +00:00
Erik Österlund
b7fb8ef89e 8299323: Allow extended registers for cmpw
Reviewed-by: sviswanathan, kvn
2023-01-17 12:16:05 +00:00
Abhishek Kumar
07d5753172 8300168: Typo in AccessibleJTableHeaderEntry javadoc
Reviewed-by: psadhukhan, tr
2023-01-17 10:40:19 +00:00
Matthias Baesken
e82dc6935b 8300205: Swing test bug8078268 make latch timeout configurable
Reviewed-by: aivanov, serb
2023-01-17 08:21:12 +00:00
Erik Österlund
9a36f8aadb 8299673: Simplify object pinning interactions with string deduplication
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: kbarrett, stefank, dholmes
2023-01-17 08:00:56 +00:00
Per Minborg
3462438ae1 8299576: Reimplement java.io.Bits using VarHandle access
Reviewed-by: uschindler, alanb
2023-01-17 07:44:26 +00:00
Hao Sun
f829a67935 8300227: [macos_aarch64] assert(cpu_has("hw.optional.arm.FEAT_AES")) failed after JDK-8297092
Reviewed-by: dholmes
2023-01-17 06:43:58 +00:00
Afshin Zafari
6a81d528e8 8299213: Bad cast in GrowableArrayWithAllocator<>::grow
Reviewed-by: kbarrett, jsjolen, jwaters
2023-01-17 05:44:41 +00:00
Tejesh R
8365c6775c 8300084: AquaFileChooserUI.getDefaultButton returns null
Reviewed-by: aivanov, serb
2023-01-17 04:44:42 +00:00
Archie L. Cobbs
382fe51b6d 8163229: several regression tests have a main method that is never executed
Reviewed-by: vromero
2023-01-17 04:43:40 +00:00
Matthew Donovan
06f9374e0c 8298867: Basics.java fails with SSL handshake exception
Reviewed-by: xuelei, rhalade
2023-01-17 04:41:55 +00:00
Fei Yang
859ccd1a15 8299847: RISC-V: Improve PrintOptoAssembly output of CMoveI/L nodes
Reviewed-by: fjiang, shade
2023-01-17 03:06:57 +00:00
Hao Sun
240830df7e 8297092: [macos_aarch64] Add support for SHA feature detection
Reviewed-by: njian, aph, gziemski
2023-01-17 02:07:43 +00:00
Justin King
f52f6e65fb 8299972: Remove metaprogramming/removeReference.hpp
Reviewed-by: tschatzl, kbarrett
2023-01-16 19:30:16 +00:00
Justin King
4c1e66e0ab 8299971: Remove metaprogramming/conditional.hpp
Reviewed-by: tschatzl, kbarrett
2023-01-16 19:28:25 +00:00
Magnus Ihse Bursie
4073b68565 8298047: Remove all non-significant trailing whitespace from properties files
Reviewed-by: serb, rriggs
2023-01-16 18:53:54 +00:00
Leo Korinth
506c818689 8296401: ConcurrentHashTable::bulk_delete might miss to delete some objects
Reviewed-by: rehn, iwalulya, aboldtch
2023-01-16 16:36:36 +00:00
Albert Mingkun Yang
319de6a6d3 8300124: Remove unnecessary assert in GenCollectedHeap::initialize
Reviewed-by: stefank, tschatzl
2023-01-16 14:25:35 +00:00
Afshin Zafari
289aed465e 8298128: runtime/ErrorHandling/TestSigInfoInHsErrFile.java fails to find pattern with slowdebug
Reviewed-by: dcubed, dholmes, stuefe
2023-01-16 12:36:45 +00:00
Manukumar V S
a2f67660f0 8288415: java/awt/PopupMenu/PopupMenuLocation.java is unstable in MacOS machines
Reviewed-by: dnguyen, aivanov
2023-01-16 12:18:51 +00:00
Erik Österlund
a734285314 8299879: CollectedHeap hierarchy should use override
Reviewed-by: stefank, tschatzl
2023-01-16 10:54:10 +00:00
Bhavana Kilambi
98d75f1879 8299038: Add AArch64 backend support for auto-vectorized FP16 conversions
Reviewed-by: xgong, ngasson
2023-01-16 10:47:38 +00:00
Aleksey Shipilev
cac72a6018 8300053: Shenandoah: Handle more GCCauses in ShenandoahControlThread::request_gc
Reviewed-by: wkemper, rkennke
2023-01-16 09:32:04 +00:00
Emanuel Peter
6fea233e22 8299960: Speed up test/hotspot/jtreg/compiler/c2/irTests/TestVectorizeURShiftSubword.java
Reviewed-by: thartmann, chagedorn, fgao
2023-01-16 09:17:31 +00:00
Emanuel Peter
7c1ebcc4ce 8299962: Speed up compiler/intrinsics/unsafe/DirectByteBufferTest.java and HeapByteBufferTest.java
Reviewed-by: kvn, thartmann
2023-01-16 09:15:31 +00:00
Aleksey Shipilev
abfd7e89f6 8300113: C2: Single-bit fields with signed type in TypePtr after JDK-8297933
Reviewed-by: roland, thartmann
2023-01-16 08:49:02 +00:00
Damon Fenacci
83f2c9a2b2 8293410: Remove GenerateRangeChecks flag
Reviewed-by: thartmann, chagedorn, kvn
2023-01-16 07:34:11 +00:00
Daniel Jeliński
50e7df91c7 8300024: Replace use of JNI_COMMIT mode with mode 0
Reviewed-by: amenkov, sspitsyn, cjplummer
2023-01-16 06:58:27 +00:00
Daniel Jeliński
fe7fca0128 8300032: DwarfParser resource leak
Reviewed-by: cjplummer, sspitsyn
2023-01-16 06:56:43 +00:00
Julian Waters
12edd6f922 8300052: PdhDll::PdhCollectQueryData and PdhLookupPerfNameByIndex will never be NULL
Reviewed-by: dholmes
2023-01-16 06:07:38 +00:00
Ioi Lam
7bcd5f418c 8297914: Remove java_lang_Class::process_archived_mirror()
Reviewed-by: ccheung
2023-01-15 20:30:31 +00:00
Sergey Bylokhov
e15bdc58ab 8299789: Compilation of gtest causes build to fail if runtime libraries are in different dirs
Reviewed-by: erikj
Backport-of: c8a8388aba
2023-01-14 04:19:54 +00:00
Jesper Wilhelmsson
4be94e4350 Merge 2023-01-14 01:57:13 +00:00
Chris Plummer
f4e119d5fc 8300012: Remove unused JDI VirtualMachineImpl.removeObjectMirror(ObjectReferenceImpl object) method
Reviewed-by: alanb, sspitsyn
2023-01-13 23:25:25 +00:00
Justin Lu
87865e0eb8 8299502: Usage of constructors of primitive wrapper classes should be avoided in javax.xml API docs
Backport-of: b8852f65a0
2023-01-13 23:19:02 +00:00
Justin Lu
dc5cc61621 8299499: Usage of constructors of primitive wrapper classes should be avoided in java.net API docs
Backport-of: 63cf4aa0c8
2023-01-13 23:17:53 +00:00
Justin Lu
98eae6dade 8299500: Usage of constructors of primitive wrapper classes should be avoided in java.text API docs
Reviewed-by: iris
Backport-of: cd10c7278d
2023-01-13 23:16:48 +00:00
Justin Lu
628266af60 8299501: Usage of constructors of primitive wrapper classes should be avoided in java.util API docs
Backport-of: f36f1354c6
2023-01-13 23:15:28 +00:00
Justin Lu
ab7f43f080 8299498: Usage of constructors of primitive wrapper classes should be avoided in java.lang API docs
Backport-of: d663b5da10
2023-01-13 23:14:14 +00:00
Daniel D. Daugherty
bc498f87f7 8300141: ProblemList java/util/concurrent/locks/Lock/OOMEInAQS.java with ZGC
8300144: ProblemList vmTestbase/nsk/sysdict/vm/stress/chain/chain007/chain007.java with ZGC
8300147: ProblemList vmTestbase/nsk/jvmti/SetFieldModificationWatch/setfmodw001/TestDescription.java in Xcomp

Reviewed-by: mikael
2023-01-13 22:55:08 +00:00
Artem Semenov
8cb25d3de4 8298644: JNI call of getCurrentComponent on a wrong thread
Reviewed-by: avu, serb, kizune
2023-01-13 19:39:56 +00:00
Justin Lu
500b45e12d 8299865: Unnecessary NullPointerException catch in java.util.TimeZone#setDefaultZone
Reviewed-by: lancea, iris, naoto, aturbanov
2023-01-13 18:13:50 +00:00
Eirik Bjorsnos
4ec3659845 8278349: JarSigner javadoc example uses SHA-1
Reviewed-by: weijun
2023-01-13 17:55:07 +00:00
Albert Mingkun Yang
d117979503 8300054: Use static_assert in basic_types_init
Reviewed-by: stefank, kbarrett
2023-01-13 16:49:26 +00:00
Gerard Ziemski
e0081462f4 8300055: [BACKOUT] OPEN_MAX is no longer the max limit on macOS >= 10.6 for RLIMIT_NOFILE
Reviewed-by: tschatzl, rriggs
2023-01-13 15:38:49 +00:00
Per Minborg
ce1193a1ed 8299976: Initialize static fields in Net eagerly
Reviewed-by: alanb
2023-01-13 15:19:12 +00:00
Jie Fu
3ffc955783 8300099: Configuration fails to auto-detect build user through $USER in dockers
Reviewed-by: ihse
2023-01-13 13:53:22 +00:00
Erik Österlund
e7fa150bc1 8299032: Interface IN_NATIVE oop stores for C2
Reviewed-by: stefank, rcastanedalo
2023-01-13 12:48:30 +00:00
Stefan Karlsson
c250222880 8300110: Unproblemlist Fuzz.java from ProblemList-zgc.txt
Reviewed-by: aboldtch, tschatzl
2023-01-13 12:28:52 +00:00
Markus Grönlund
ac63f5f8dd 8297877: Risk for uninitialized memory in case of CHECK macro early return as part of field access
Reviewed-by: ccheung, egahlin
2023-01-13 12:11:09 +00:00
Matthias Baesken
be8e6d05db 8299957: Enhance error logging in instrument coding with additional jplis_assert_msg
Reviewed-by: sspitsyn
2023-01-13 07:57:38 +00:00
Tobias Hartmann
640eff64d2 8300040: TypeOopPtr::make_from_klass_common calls itself with args in wrong order
Co-authored-by: David Simms <dsimms@openjdk.org>
Reviewed-by: chagedorn, kvn
2023-01-13 07:16:53 +00:00
Justin King
19628e3e0c 8300068: UBSan CFLAGS/LDFLAGS not passed when building ADLC
Reviewed-by: ihse
2023-01-13 04:07:42 +00:00
Jesper Wilhelmsson
9887047228 Merge 2023-01-12 22:24:19 +00:00
Raffaello Giulietti
33412c102c 8299677: Formatter.format might take a long time to format an integer or floating-point
Reviewed-by: alanb, stsypanov, darcy
2023-01-12 19:21:09 +00:00
Mikael Vidstedt
4b92fb0c6b 8299918: Update Xcode11.3.1-MacOSX10.15 devkit at Oracle
Reviewed-by: erikj
Backport-of: a17b563f54
2023-01-12 18:47:08 +00:00
Justin King
7a85d95e82 8298448: UndefinedBehaviorSanitizer
Reviewed-by: erikj, ihse
2023-01-12 15:50:05 +00:00
Julian Waters
26890d1909 8296478: Rework 8282948 and 8282700 to use the new autoconf UTIL_ARG_WITH
Reviewed-by: erikj, ihse
2023-01-12 15:01:59 +00:00
Roger Riggs
6a4a874356 8299034: Runtime::exec clarification of inherited environment
Reviewed-by: alanb
2023-01-12 14:54:39 +00:00
Julian Waters
cf00d09c8c 8299330: Minor improvements in MSYS2 Workflow handling
Reviewed-by: clanger, ihse
2023-01-12 14:32:14 +00:00
Claes Redestad
48c8fb39a7 8299978: Remove MethodHandleNatives.getMembers
Reviewed-by: jvernee, mchung
2023-01-12 13:39:59 +00:00
Axel Boldt-Christmas
89d3f3d96b 8299125: UnifiedOopRef in JFR leakprofiler should treat thread local oops correctly
Reviewed-by: eosterlund, mgronlun
2023-01-12 12:38:13 +00:00
Alan Bateman
4b573343a6 8278326: Socket close is not thread safe and other cleanup
Reviewed-by: jpai
2023-01-12 09:38:31 +00:00
Nick Gasson
036c80844e 8298482: Implement ParallelGC NUMAStats for Linux
Reviewed-by: ayang, sjohanss, tschatzl
2023-01-12 09:28:46 +00:00
Matthias Baesken
0ee8cac7c7 8299672: Enhance HeapDump JFR event
Reviewed-by: rschmelter, clanger
2023-01-12 08:04:46 +00:00
Christoph Langer
752a37016f 8299439: java/text/Format/NumberFormat/CurrencyFormat.java fails for hr_HR
Reviewed-by: naoto
Backport-of: 3b374c0153
2023-01-12 08:02:58 +00:00
Emanuel Peter
d716ec5d30 8299179: ArrayFill with store on backedge needs to reduce length by 1
Reviewed-by: thartmann, kvn
2023-01-12 07:23:19 +00:00
Jorn Vernee
3918f9f523 8299090: Specify coordinate order for additional CaptureCallState parameters on class as well
Reviewed-by: pminborg, mcimadamore
2023-01-12 06:49:27 +00:00
Afshin Zafari
af8d3fb21a 8264684: os::get_summary_cpu_info padded with spaces
Reviewed-by: iklam, ccheung
2023-01-12 01:54:11 +00:00
Sergey Bylokhov
78b1686c15 8227257: javax/swing/JFileChooser/4847375/bug4847375.java fails with AssertionError
Reviewed-by: aivanov, tr
2023-01-12 01:52:56 +00:00
Jesper Wilhelmsson
33f3bd8fad Merge 2023-01-11 21:50:42 +00:00
Rajan Halade
8db73f7743 8300001: ProblemList test java/security/Policy/Root/Root.java
Reviewed-by: mikael, dcubed
2023-01-11 21:36:08 +00:00
Matias Saavedra Silva
43847c43ad 8298065: Provide more information in message of NoSuchFieldError
Reviewed-by: dholmes, iklam, coleenp
2023-01-11 19:13:26 +00:00
Mikael Vidstedt
a17b563f54 8299918: Update Xcode11.3.1-MacOSX10.15 devkit at Oracle
Reviewed-by: erikj
2023-01-11 18:26:38 +00:00
Calvin Cheung
9c1e98dac5 8298321: 2 File Leak defect groups in 2 files
Reviewed-by: vlivanov, iklam, dholmes
2023-01-11 17:48:36 +00:00
Justin Lu
d663b5da10 8299498: Usage of constructors of primitive wrapper classes should be avoided in java.lang API docs
Reviewed-by: naoto, darcy, rriggs, mchung, lancea
2023-01-11 17:18:39 +00:00
Justin Lu
437d69a220 8299836: Make user.timezone system property searchable
Reviewed-by: jpai, naoto
2023-01-11 17:14:08 +00:00
Naoto Sato
c7716a0101 8299571: ZoneRulesProvider.registerProvider() can leave inconsistent state on failure
Reviewed-by: iris, rriggs, joehw
2023-01-11 17:01:48 +00:00
Andrey Turbanov
4cd87f1bda 8299835: (jrtfs) Unnecessary null check in JrtPath.getAttributes
Reviewed-by: alanb, lancea
2023-01-11 15:14:41 +00:00
Per Minborg
7d3400b1cf 8299864: ZipFileStore#supportsFileAttributeView(String) doesn't throw NPE
Reviewed-by: lancea
2023-01-11 15:08:52 +00:00
Tobias Hartmann
d15285f948 8299956: [BACKOUT] 8297487: G1 Remark: no need to keep alive oop constants of nmethods on stack
Reviewed-by: chagedorn, tschatzl
2023-01-11 12:39:50 +00:00
Maurizio Cimadamore
945ef07564 8299862: OfAddress setter should disallow heap segments
Reviewed-by: jvernee
2023-01-11 10:31:25 +00:00
Albert Mingkun Yang
5a9490a40e 8299853: Serial: Use more concrete type for TenuredGeneration::_the_space
Reviewed-by: tschatzl, stefank
2023-01-11 10:07:52 +00:00
Erik Österlund
f857f8a092 8299327: Allow super late barrier expansion of store barriers in C2
Reviewed-by: kvn, rcastanedalo
2023-01-11 09:33:05 +00:00
Adam Sotona
257f667afb 8296789: <TAB>-completion in jshell fails to expose synthetic bridge methods
Reviewed-by: jlahoda
2023-01-11 09:21:28 +00:00
Adam Sotona
030e88d638 8299829: In jshell, the output of "0".repeat(49999)+"2" ends with a '0'
Reviewed-by: jlahoda
2023-01-11 08:30:48 +00:00
Prasanta Sadhukhan
ef32fdb8cc 8284825: sun/java2d/DirectX/MultiPaintEventTest/MultiPaintEventTest.java failed with "RuntimeException: Processed unnecessary paint()."
Reviewed-by: serb
2023-01-11 08:06:57 +00:00
Jan Lahoda
636976ada8 8299849: Revert JDK-8294461: wrong effectively final determination by javac
Reviewed-by: vromero
2023-01-11 07:52:18 +00:00
Abhishek Kumar
0abb87a488 8299227: host exif.org not found in link in doc comment
Reviewed-by: prr, serb
2023-01-11 07:42:42 +00:00
Tejesh R
95b102c9b1 8299309: Test "java/awt/Dialog/ModalDialogTest/ModalDialogTest.java" fails because new frame was not displayed when "New Frame" button was clicked
Reviewed-by: honkar, dnguyen, psadhukhan
2023-01-11 07:35:30 +00:00
Justin King
f312c99977 8299482: Remove metaprogramming/isIntegral.hpp
Reviewed-by: kbarrett, tschatzl
2023-01-11 05:33:29 +00:00
Justin King
10a747c70b 8299479: Remove metaprogramming/decay.hpp
Reviewed-by: tschatzl, kbarrett
2023-01-11 05:31:56 +00:00
Kim Barrett
ddca2b9b46 8299701: Remove unused GCCause::_wb_conc_mark
Reviewed-by: eosterlund, iwalulya
2023-01-11 05:12:26 +00:00
Xiaohong Gong
de79162fdf 8299715: IR test: VectorGatherScatterTest.java fails with SVE randomly
Reviewed-by: psandoz, thartmann
2023-01-11 01:49:56 +00:00
Alexey Semenyuk
c595f965ab 8299278: tools/jpackage/share/AddLauncherTest.java#id1 failed AddLauncherTest.bug8230933
Reviewed-by: almatvee
2023-01-10 18:03:42 +00:00
Alexey Semenyuk
3c99e786ab 8298735: Some tools/jpackage/windows/* tests fails with jtreg test timeout
Reviewed-by: almatvee
2023-01-10 18:02:34 +00:00
Patricio Chilano Mateo
151450ea9b 8294744: AArch64: applications/kitchensink/Kitchensink.java crashed: assert(oopDesc::is_oop(obj)) failed: not an oop
Co-authored-by: Fei Yang <fyang@openjdk.org>
Reviewed-by: aph, fyang, dcubed
2023-01-10 17:16:26 +00:00
Calvin Cheung
5a51ef22ad 8297874: get_dump_directory() in jfrEmergencyDump.cpp should pass correct length to jio_snprintf
Reviewed-by: mgronlun
2023-01-10 17:09:52 +00:00
Mandy Chung
a86b6f6fde 8299183: Invokers.checkExactType passes parameters to create WMTE in opposite order
Reviewed-by: iris, jpai
2023-01-10 17:05:33 +00:00
Christian Hagedorn
8b0133f276 8299259: C2: Div/Mod nodes without zero check could be split through iv phi of loop resulting in SIGFPE
Reviewed-by: roland, kvn, thartmann
2023-01-10 14:35:46 +00:00
Albert Mingkun Yang
d68de02bef 8299845: Remove obsolete comments in DirtyCardToOopClosure::get_actual_top
Co-authored-by: Y. Srinivas Ramakrishna <ysr@openjdk.org>
Reviewed-by: tschatzl, sjohanss
2023-01-10 14:26:32 +00:00
Nick Gasson
21d468e575 8299733: AArch64: "unexpected literal addressing mode" assertion failure with -XX:+PrintC1Statistics
Co-authored-by: Ningsheng Jian <njian@openjdk.org>
Reviewed-by: chagedorn, fyang, aph
2023-01-10 13:29:55 +00:00
Volker Simonis
debe5879aa 8298381: Improve handling of session tickets for multiple SSLContexts
Reviewed-by: xuelei, ascarpino, serb
2023-01-10 11:49:36 +00:00
Richard Reingruber
eab1e6260d 8297487: G1 Remark: no need to keep alive oop constants of nmethods on stack
Reviewed-by: tschatzl, ayang, eosterlund
2023-01-10 10:32:32 +00:00
Sergey Bylokhov
c8a8388aba 8299789: Compilation of gtest causes build to fail if runtime libraries are in different dirs
Reviewed-by: erikj
2023-01-10 10:30:34 +00:00
Albert Mingkun Yang
5f37cbec94 8297572: Remove unused PrecisionStyle::Precise
Reviewed-by: tschatzl, kbarrett
2023-01-10 07:52:28 +00:00
Daniel Jeliński
f95346e870 8299261: Clean up AWT D3D exports
Reviewed-by: serb, aivanov
2023-01-10 07:11:24 +00:00
Hao Sun
195f31371f 8287925: AArch64: intrinsics for compareUnsigned method in Integer and Long
Reviewed-by: adinn, aph
2023-01-10 05:37:02 +00:00
Mikael Vidstedt
5826a077f9 8299693: Change to Xcode12.4+1.1 devkit for building on macOS at Oracle
Reviewed-by: erikj
Backport-of: 4b6809b94a
2023-01-10 04:39:53 +00:00
Yadong Wang
3a66737001 8299525: RISC-V: Add backend support for half float conversion intrinsics
Reviewed-by: fyang, fjiang
2023-01-10 02:43:14 +00:00
Jaikiran Pai
b7eb4e2ffd 8297306: Incorrect brackets in Javadoc for a constructor of IteratorSpliterator
Reviewed-by: alanb, iris, naoto
2023-01-10 01:53:48 +00:00
David Holmes
a63866341e 8255119: Monitor::wait takes signed integer as timeout
Reviewed-by: jsjolen, stuefe, coleenp, gziemski
2023-01-10 00:45:43 +00:00
Jesper Wilhelmsson
4395578b6f Merge 2023-01-09 23:31:32 +00:00
Justin Lu
f79b3d42f0 6381945: (cal) Japanese calendar unit test system should avoid multiple static imports
Reviewed-by: lancea, iris, naoto
2023-01-09 22:10:36 +00:00
Justin Lu
f36f1354c6 8299501: Usage of constructors of primitive wrapper classes should be avoided in java.util API docs
Reviewed-by: naoto, lancea
2023-01-09 21:26:08 +00:00
Justin Lu
b8852f65a0 8299502: Usage of constructors of primitive wrapper classes should be avoided in javax.xml API docs
Reviewed-by: joehw, naoto, lancea
2023-01-09 21:24:40 +00:00
Archie L. Cobbs
679e485838 8043251: Bogus javac error: required: no arguments, found: no arguments
Reviewed-by: vromero
2023-01-09 18:38:15 +00:00
Naoto Sato
d49851a8b8 8299689: Make use of JLine for Console as "opt-in"
Reviewed-by: jpai, alanb
2023-01-09 18:23:42 +00:00
Justin Lu
cd10c7278d 8299500: Usage of constructors of primitive wrapper classes should be avoided in java.text API docs
Reviewed-by: naoto, lancea
2023-01-09 17:43:31 +00:00
Alexandre Iline
bfd5971429 8299757: Update JCov version to 3.0.14
Reviewed-by: erikj, serb
2023-01-09 15:39:46 +00:00
Coleen Phillimore
17a3f0e257 8299275: Add some ClassLoaderData verification code
Reviewed-by: iklam, fparain
2023-01-09 15:01:34 +00:00
Erik Österlund
4ba8122197 8299312: Clean up BarrierSetNMethod
Reviewed-by: mdoerr, fyang
2023-01-09 13:31:26 +00:00
Albert Mingkun Yang
66db0bb6a1 8299692: G1: Remove unused G1BlockOffsetTable::is_card_boundary
Reviewed-by: kbarrett
2023-01-09 11:39:06 +00:00
Patrick Zhang
7068457436 8298472: AArch64: Detect Ampere-1 and Ampere-1A CPUs and set default options
Reviewed-by: aph, ngasson
2023-01-09 11:07:05 +00:00
Johan Sjölen
500c3c1737 8298730: Refactor subsystem_file_line_contents and add docs and tests
Reviewed-by: sgehwolf, iklam
2023-01-09 10:18:26 +00:00
Prasanta Sadhukhan
4072412c1f 8298876: Swing applications do not get repainted coming out of sleep on Windows 10
Reviewed-by: angorya, prr
2023-01-09 10:14:06 +00:00
Erik Österlund
a503ec2cc7 8299608: Add Register + imm32 orq to x86_64 assembler
Reviewed-by: shade, sviswanathan, kvn
2023-01-09 10:01:26 +00:00
Emanuel Peter
d2827ec8f7 8299671: speed up compiler/intrinsics/string/TestStringLatin1IndexOfChar.java
Reviewed-by: thartmann, kvn
2023-01-09 08:34:24 +00:00
Roland Westrelin
05a0a71031 8297933: [REDO] Compiler should only use verified interface types for optimization
Reviewed-by: kvn, vlivanov
2023-01-09 08:26:08 +00:00
Damon Fenacci
9b1ade8e2b 8295406: C1 crash with -XX:TypeProfileArgsLimit=0 -XX:TypeProfileLevel=222
Reviewed-by: thartmann, kvn
2023-01-09 07:56:11 +00:00
Daniel Jeliński
8d17d1ee6f 6914801: IPv6 unavailable if stdin is a socket
Reviewed-by: michaelm
2023-01-09 07:39:12 +00:00
Daniel Jeliński
d03a5d9580 8299593: getprotobyname should not be used
Reviewed-by: cjplummer
2023-01-09 07:32:55 +00:00
Abhishek Kumar
c4449224bb 8218474: JComboBox display issue with GTKLookAndFeel
Reviewed-by: tr, serb
2023-01-09 04:47:33 +00:00
SWinxy
7607c07e00 8299774: SYNTH_BUTTON_UI_KEY field is unused
Reviewed-by: serb
2023-01-09 02:14:43 +00:00
Justin King
d53cac3794 8299481: Remove metaprogramming/removePointer.hpp
Reviewed-by: kbarrett, tschatzl
2023-01-08 10:45:36 +00:00
Srinivas Mandalika
834e50e9ef 8298921: Create a regression test for JDK-8139581
Reviewed-by: serb
2023-01-08 09:08:04 +00:00
Jaikiran Pai
e209693a37 8258776: ThreadLocal#initialValue() Javadoc is unaware of ThreadLocal#withInitial()
Reviewed-by: alanb
2023-01-07 02:33:52 +00:00
Justin Lu
d5b80abcbf 8299617: CurrencySymbols.properties is missing the copyright notice
Reviewed-by: naoto, iris, jpai
2023-01-07 02:20:12 +00:00
Justin Lu
63cf4aa0c8 8299499: Usage of constructors of primitive wrapper classes should be avoided in java.net API docs
Reviewed-by: naoto, jpai
2023-01-07 02:19:15 +00:00
Jesper Wilhelmsson
5393dc9a48 Merge 2023-01-07 02:05:59 +00:00
Sergey Bylokhov
7310131409 8299337: The java.awt.image.ColorModel#pData field is unused
Reviewed-by: prr
2023-01-06 23:09:07 +00:00
Sergey Tsypanov
d086e82b3c 8299600: Use Objects.check*() where appropriate in java.io
Reviewed-by: alanb, bpb
2023-01-06 21:01:21 +00:00
Sergey Bylokhov
4a95c74b76 8299425: "LCMSImageLayout.isIntPacked" flag can be deleted
Reviewed-by: prr
2023-01-06 20:17:10 +00:00
Ashutosh Mehra
d6d6eb4cba 8299699: Test runtime/cds/appcds/WrongClasspath.java fails after JDK-8299329
Reviewed-by: iklam, ccheung
2023-01-06 19:56:12 +00:00
Andrei Pangin
8c70bf3fff 8299544: Improve performance of CRC32C intrinsics (non-AVX-512) for small inputs
Reviewed-by: kvn, eastigeevich, sviswanathan
2023-01-06 19:00:20 +00:00
Alexandre Iline
1f141bd7a9 8299705: JCov coverage runs depend on jdk_symbols
Reviewed-by: erikj
2023-01-06 18:51:41 +00:00
Chris Plummer
d6e9f01584 8285416: [LOOM] Some nsk/jdi tests fail due to needing too many virtual threads
8282383: [LOOM] 6 nsk JDI and JDB tests sometimes failing with vthread wrapper due to running out of carrier threads

Reviewed-by: dholmes, sspitsyn, alanb, lmesnik
2023-01-06 18:49:11 +00:00
Weijun Wang
ba03f42a50 8299746: Accept unknown signatureAlgorithm in PKCS7 SignerInfo
Reviewed-by: kdriver, ascarpino, hchao
2023-01-06 18:46:37 +00:00
Markus KARG
3dcf700161 8299336: InputStream::DEFAULT_BUFFER_SIZE should be 16384
Reviewed-by: bpb
2023-01-06 17:35:17 +00:00
Maurizio Cimadamore
5eee2a07f5 8299740: CaptureCallState is missing @Preview annotation
Reviewed-by: alanb
2023-01-06 14:52:08 +00:00
Coleen Phillimore
1e9972922a 8299274: Add elements to resolved_references consistently
Reviewed-by: iklam, dholmes, rehn, fparain
2023-01-06 13:57:23 +00:00
Jie Fu
8cc1669ffd 8299721: [Vector API] assert in switch-default of LibraryCallKit::arch_supports_vector_rotate is too weak to catch bugs
Reviewed-by: jbhateja
2023-01-06 12:56:36 +00:00
Aleksey Shipilev
5598acc345 8294403: [REDO] make test should report only on executed tests
Reviewed-by: erikj, dholmes, jpai, djelinski
2023-01-06 11:28:38 +00:00
bobpengxie
88f0ea7887 8299726: [cleanup] Some code cleanup in opto/compile.hpp
Reviewed-by: thartmann
2023-01-06 10:48:28 +00:00
Bhavana Kilambi
136f5db03d 8299528: IR test: TestEor3AArch64.java fails on aarch64
Reviewed-by: thartmann, chagedorn
2023-01-06 10:04:04 +00:00
Andrey Turbanov
0234f813e6 8298447: Unnecessary Vector usage in DocPrintJob implementations
Reviewed-by: serb
2023-01-06 08:29:47 +00:00
Tobias Hartmann
cc4936a79e 8298720: Insufficient error handling when CodeBuffer is exhausted
Reviewed-by: kvn, fyang
2023-01-06 08:28:09 +00:00
Sergey Bylokhov
b5b7948d9b 8298240: Replace the usage of ImageLayoutException by the CMMException
Reviewed-by: prr
2023-01-06 08:04:51 +00:00
Tejesh R
99be74088e 8299306: Test "javax/swing/JFileChooser/FileSystemView/CustomFSVLinkTest.java" fails on Windows 10 x64 because there are some buttons did not display button name
Reviewed-by: psadhukhan, abhiscxk
2023-01-06 07:50:33 +00:00
Artem Semenov
775da84a84 8299412: JNI call of getAccessibleActionCount on a wrong thread
Reviewed-by: prr, serb
2023-01-06 07:09:05 +00:00
Anto J
7845b0d7b4 8296934: Write a test to verify whether Undecorated Frame can be iconified or not
Reviewed-by: serb
2023-01-06 00:37:26 +00:00
Pavel Rappo
284c94e20d 8298525: javadoc crashes with "UnsupportedOperationException: Not yet implemented" in SeeTaglet.inherit
Reviewed-by: jjg
2023-01-05 22:43:20 +00:00
Mikael Vidstedt
4b6809b94a 8299693: Change to Xcode12.4+1.1 devkit for building on macOS at Oracle
Reviewed-by: dholmes, erikj
2023-01-05 22:39:44 +00:00
Kim Barrett
dfdbd0fe7f 8299343: Windows: Invalid thread_native_entry declaration
Reviewed-by: dholmes, iklam
2023-01-05 22:02:45 +00:00
Kim Barrett
3e2314d082 8299254: Support dealing with standard assert macro
Reviewed-by: erikj, xuelei, dholmes, mikael
2023-01-05 19:49:01 +00:00
Naoto Sato
a49ccb959b 8299292: Missing elements in aliased String array
Reviewed-by: iris, joehw
2023-01-05 17:49:24 +00:00
Andrey Turbanov
b908388e81 8298449: Unnecessary Vector usage in MetaData.ProxyPersistenceDelegate
Reviewed-by: serb
2023-01-05 16:49:23 +00:00
Ashutosh Mehra
be64bf8cf0 8299329: Assertion failure with fastdebug build when trying to use CDS without classpath
Reviewed-by: iklam, ccheung
2023-01-05 16:09:28 +00:00
Maurizio Cimadamore
9c4ed16be2 8299561: VaList.empty() doesn't return a list associated with the global scope
Reviewed-by: jvernee
2023-01-05 09:44:16 +00:00
Roland Westrelin
872384707e 8298848: C2: clone all of (CmpP (LoadKlass (AddP down at split if
Reviewed-by: kvn, thartmann, chagedorn
2023-01-05 09:33:14 +00:00
Matthias Baesken
1ca31d34fc 8299657: sun/tools/jhsdb/SAGetoptTest.java fails after 8299470
Reviewed-by: clanger
2023-01-05 09:31:38 +00:00
Sergey Bylokhov
e7361cb746 8299430: Cleanup: delete unnecessary semicolons in java.desktop module
Reviewed-by: stsypanov, aghaisas, iris
2023-01-05 08:47:21 +00:00
Matthias Baesken
c929d8be5d 8299475: Enhance SocketException by cause where it is missing in net and nio area
Reviewed-by: alanb
2023-01-05 08:26:38 +00:00
Matthias Baesken
2ccdefc81c 8299470: sun/jvm/hotspot/SALauncher.java handling of negative rmiport args
Reviewed-by: clanger, sspitsyn, kevinw
2023-01-05 07:59:41 +00:00
Abhishek Kumar
578c287a68 8081507: Open or Save button in JFileChooser has OK title in GTK LaF
Reviewed-by: serb, tr
2023-01-04 22:45:39 +00:00
ravi.ra.gupta
5ae6de859d 8299296: Write a test to verify the components selection sends ItemEvent
Reviewed-by: serb
2023-01-04 22:44:38 +00:00
Justin Lu
3b374c0153 8299439: java/text/Format/NumberFormat/CurrencyFormat.java fails for hr_HR
Reviewed-by: naoto, lancea, jpai
2023-01-04 21:59:02 +00:00
Michael Ernst
7dcc689932 8299563: Fix typos
Reviewed-by: lancea, aivanov, sspitsyn
2023-01-04 19:59:45 +00:00
Archie L. Cobbs
44be5edf5a 8219810: javac throws NullPointerException
Reviewed-by: vromero
2023-01-04 17:50:32 +00:00
Archie L. Cobbs
b9758d2201 8200610: Compiling fails with java.nio.file.ReadOnlyFileSystemException
Reviewed-by: vromero
2023-01-04 17:32:33 +00:00
Jesper Wilhelmsson
df1caf9081 Merge 2023-01-04 16:03:09 +00:00
Archie L. Cobbs
6a07fd0ec1 8155259: Suspicious buffer allocation in com.sun.tools.javac.file.BaseFileManager
8172106: javac throws exception when compiling source file of size 1.5G

Reviewed-by: vromero
2023-01-04 16:01:59 +00:00
Archie L. Cobbs
4c0f24ef71 8064931: tools/javac/scope/DupUnsharedTest.java needs to be updated to add the bug id
Reviewed-by: vromero
2023-01-04 16:00:22 +00:00
Yi-Fan Tsai
c6588d5bb3 8299158: Improve MD5 intrinsic on AArch64
Reviewed-by: luhenry, haosun, aph
2023-01-04 14:51:25 +00:00
Erik Österlund
c32a34c2e5 8299072: java_lang_ref_Reference::clear_referent should be GC agnostic
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: dholmes, shade, kbarrett
2023-01-04 14:49:44 +00:00
Coleen Phillimore
ccbcea830d 8299326: LinkResolver::resolve_field resolved_klass cannot be null
Reviewed-by: iklam, fparain
2023-01-04 14:42:15 +00:00
Erik Österlund
e3035bad60 8299079: Better interface nmethod oop accesses
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: kvn, dholmes
2023-01-04 14:31:07 +00:00
Daniel Jeliński
41900b57af 8189338: JMX RMI Remote Mbean server connection hangs if the server stops responding during a SSL Handshake
Reviewed-by: smarks
2023-01-04 13:17:29 +00:00
Aleksey Shipilev
a17f505d73 8299476: PPC64 Zero build fails after JDK-8286302
Reviewed-by: mdoerr
2023-01-04 10:46:34 +00:00
Ioi Lam
82deb5ca61 8298601: Refactor archiving of java.lang.Module objects
Reviewed-by: coleenp, ccheung
2023-01-04 04:03:43 +00:00
Kim Barrett
b743519ba9 8293824: gc/whitebox/TestConcMarkCycleWB.java failed "RuntimeException: assertTrue: expected true, was false"
Reviewed-by: iwalulya, tschatzl
2023-01-04 03:28:31 +00:00
Prasanta Sadhukhan
77ff197746 7030853: JDK 7 Serializable Swing classes not compatible with JDK 6
Reviewed-by: serb, aivanov
2023-01-04 03:26:32 +00:00
Xue-Lei Andrew Fan
38cfc59172 8299378: sprintf is deprecated in Xcode 14
Reviewed-by: kbarrett, dholmes
2023-01-03 22:44:14 +00:00
David Holmes
8254cbb21d 8299483: ProblemList java/text/Format/NumberFormat/CurrencyFormat.java
Backport-of: 5b5552ff2a
2023-01-03 21:22:16 +00:00
Erik Joelsson
031829d885 8298324: Unable to run shell test with make
Reviewed-by: dholmes
2023-01-03 21:07:19 +00:00
Mark Powers
3eb85d19ec 8299235: broken link referencing missing id
Reviewed-by: mullan
2023-01-03 15:41:55 +00:00
Matthias Baesken
ea25a561c5 8299520: TestPrintXML.java output error messages in case compare fails
Reviewed-by: mgronlun
2023-01-03 15:26:10 +00:00
Ryan Wallace
92dfc735f2 8294526: sun/security/provider/SubjectCodeSource.java no longer referenced
Reviewed-by: weijun, xuelei
2023-01-03 13:52:47 +00:00
Jesper Wilhelmsson
3d0db02c76 Merge 2023-01-03 13:10:15 +00:00
Aleksei Voitylov
245f0cf4ac 8291302: ARM32: nmethod entry barriers support
Reviewed-by: eosterlund, rrich, mdoerr, aph
2023-01-03 12:02:39 +00:00
Per Minborg
a9ce7726a7 8299437: Make InetSocketAddressHolder shallowly immutable
Reviewed-by: djelinski, jpai, alanb
2023-01-03 10:00:19 +00:00
Justin King
8afd665bf9 8299395: Remove metaprogramming/removeCV.hpp
Reviewed-by: kbarrett, tschatzl
2023-01-03 09:13:49 +00:00
Tobias Hartmann
a6a903d4b6 8288204: GVN Crash: assert() failed: correct memory chain
Backport-of: 0459159537
2023-01-03 08:21:22 +00:00
David Holmes
375743336d 8295974: jni_FatalError and Xcheck:jni warnings should print the native stack when there are no Java frames
Reviewed-by: coleenp, rehn, sspitsyn
2023-01-03 04:22:51 +00:00
Jaikiran Pai
417d01ea63 8299441: Fix typos in some test files under core-libs component
Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: lancea
2023-01-03 01:58:49 +00:00
David Holmes
5b5552ff2a 8299483: ProblemList java/text/Format/NumberFormat/CurrencyFormat.java
Reviewed-by: lancea
2023-01-02 23:34:20 +00:00
Albert Mingkun Yang
67086ebf80 8299030: Refactor ReservedSpace::reserve
Reviewed-by: dholmes, tschatzl
2023-01-02 14:59:11 +00:00
Justin King
ce6395a135 8299397: Remove metaprogramming/isFloatingPoint.hpp
Reviewed-by: kbarrett, iwalulya, tschatzl
2023-01-02 14:36:01 +00:00
Justin King
71a64a1b7a 8299399: Remove metaprogramming/isArray.hpp
Reviewed-by: kbarrett, iwalulya, tschatzl
2023-01-02 14:34:44 +00:00
Justin King
532ccdb61a 8299396: Remove metaprogramming/removeExtent.hpp
Reviewed-by: kbarrett, iwalulya, tschatzl
2023-01-02 14:33:44 +00:00
Justin King
9d3d03997e 8299402: Remove metaprogramming/isVolatile.hpp
Reviewed-by: kbarrett, iwalulya, tschatzl
2023-01-02 14:16:26 +00:00
Albert Mingkun Yang
c252a85fb0 8298652: G1: Refactor G1MarkAndPushClosure
Reviewed-by: iwalulya, tschatzl
2023-01-02 14:01:34 +00:00
Per Minborg
8a10eef408 8299193: (bf) Buffer.capacity should be declared final
Reviewed-by: rriggs, dholmes, jpai
2023-01-02 13:25:04 +00:00
Per Minborg
e09e243116 8299187: (bf) ByteOrder.name should be declared final
Reviewed-by: jpai
2023-01-02 13:22:19 +00:00
Jorn Vernee
0532045edb 8298590: Refactor LambdaForm constructors
Reviewed-by: redestad
2023-01-02 12:06:26 +00:00
Justin King
d812022890 8299398: Remove metaprogramming/isConst.hpp
Reviewed-by: kbarrett, iwalulya, tschatzl
2023-01-02 12:00:39 +00:00
Matthias Baesken
95d4db3a92 8299424: containers/docker/TestMemoryWithCgroupV1.java fails on SLES12 ppc64le when testing Memory and Swap Limit
Reviewed-by: mdoerr
2023-01-02 11:16:18 +00:00
Prasanta Sadhukhan
18ff1f5a05 6257207: JTable.getDefaultEditor throws NullPointerException
Reviewed-by: tr, dnguyen, aivanov, serb
2023-01-02 09:49:51 +00:00
Abhishek Kumar
2ee34f1488 4912623: GTK L&F: Folder list of the JFileChooser is allowing multiple selection unlike native
Reviewed-by: psadhukhan, jdv, serb
2023-01-02 06:03:12 +00:00
Matthias Baesken
c2e3d72848 8299388: java/util/regex/NegativeArraySize.java fails on Alpine and sometimes Windows
Reviewed-by: mdoerr, alanb
2022-12-30 07:43:32 +00:00
Daniel Jeliński
684e50690c 8299260: libawt and libfreetype should export only explicitly requested symbols
Reviewed-by: prr, aivanov, serb
2022-12-30 06:40:27 +00:00
Jamil Nimeh
37f8b059c1 8298592: Add java man page documentation for ChaCha20 and Poly1305 intrinsics
Reviewed-by: weijun
2022-12-29 22:34:53 +00:00
Matthias Baesken
6f85a9c9a8 8299387: CompressedClassPointers.java still fails on ppc with 'Narrow klass shift: 0' missing
Reviewed-by: mdoerr
2022-12-28 14:22:43 +00:00
Matthias Baesken
d490f15e3b 8235297: sun/security/ssl/SSLSessionImpl/ResumptionUpdateBoundValues.java fails intermittent
Reviewed-by: xuelei
2022-12-28 08:28:02 +00:00
Alan Bateman
11fd651ab1 8298875: A module requiring "java.base" with flags ACC_SYNTHETIC should be rejected
Reviewed-by: jpai, mchung
2022-12-27 07:51:04 +00:00
Yi Yang
0459159537 8288204: GVN Crash: assert() failed: correct memory chain
Reviewed-by: kvn, thartmann
2022-12-26 02:16:06 +00:00
Jesper Wilhelmsson
19373b2ff0 Merge 2022-12-25 01:56:28 +00:00
Toshio Nakamura
26868c1ac4 8299255: Unexpected round errors in FreetypeFontScaler
Reviewed-by: prr, serb
2022-12-24 14:26:42 +00:00
Artem Semenov
5e861e3965 8298645: JNI works with accessibleSelection on a wrong thread
Reviewed-by: serb, kizune
2022-12-23 22:28:41 +00:00
Artem Semenov
fd746a2fe0 8298643: JNI call of getAccessibleRowWithIndex and getAccessibleColumnWithIndex on a wrong thread
Reviewed-by: serb, kizune
2022-12-23 22:07:14 +00:00
Daniel D. Daugherty
188911c925 8299241: jdk/jfr/api/consumer/streaming/TestJVMCrash.java generates unnecessary core file
Reviewed-by: coleenp
2022-12-23 13:51:58 +00:00
Xiaolin Zheng
da75de3184 8299172: RISC-V: [TESTBUG] Fix stack alignment logic in jvmci RISCV64TestAssembler.java
Reviewed-by: fyang
2022-12-23 11:54:00 +00:00
Jesper Wilhelmsson
19ce23c645 Merge 2022-12-23 11:25:10 +00:00
Xiaolin Zheng
2f4098e1dc 8299168: RISC-V: Fix MachNode size mismatch for MacroAssembler::_verify_oops*
Reviewed-by: fyang
2022-12-23 09:22:39 +00:00
Stuart Marks
33042a49d7 8299237: add ArraysSupport.newLength test to a test group
Reviewed-by: naoto
2022-12-22 21:56:04 +00:00
Jonathan Gibbons
2294f225c0 8286311: remove boilerplate from use of runTests
Reviewed-by: hannesw
2022-12-22 21:20:43 +00:00
Ichiroh Takiguchi
5e2de89628 8299194: CustomTzIDCheckDST.java may fail at future date
Reviewed-by: naoto
2022-12-22 21:07:01 +00:00
Ioi Lam
6ccee83958 8292206: TestCgroupMetrics.java fails as getMemoryUsage() is lower than expected
Reviewed-by: dholmes, sgehwolf
2022-12-22 20:50:20 +00:00
Andrey Turbanov
b378381a9c 8299199: Avoid redundant split calls in FontConfiguration.initReorderMap implementations
Reviewed-by: aivanov
2022-12-22 19:09:37 +00:00
Kim Barrett
62a033ecd7 8299191: Unnecessarily global friend functions for relocInfo
Reviewed-by: chagedorn, kvn
2022-12-22 17:30:09 +00:00
Bill Huang
a3693ccc61 8295087: Manual Test to Automated Test Conversion
Reviewed-by: ssahoo, rhalade
2022-12-22 16:50:59 +00:00
Mark Powers
a80c91d036 8299230: Use https: in links
Reviewed-by: jjg, mullan, xuelei
2022-12-22 15:29:53 +00:00
Chris Hegarty
9863f59e1d 8299015: Ensure that HttpResponse.BodySubscribers.ofFile writes all bytes
Backport-of: a7d6de71bb
2022-12-22 12:49:25 +00:00
Ajit Ghaisas
5e001d6ff3 8299207: [Testbug] Add back test/jdk/java/awt/Graphics2D/DrawPrimitivesTest.java
Co-authored-by: Alexey Ushakov <avu@openjdk.org>
Reviewed-by: jdv
2022-12-22 10:38:12 +00:00
Roland Westrelin
a0a09d56ba 8298176: remove OpaqueZeroTripGuardPostLoop once main-loop disappears
Reviewed-by: thartmann, chagedorn, kvn
2022-12-22 08:56:00 +00:00
Sergey Bylokhov
50120396b6 8298887: On the latest macOS+XCode the Robot API may report wrong colors
Reviewed-by: azvegint
2022-12-22 07:20:06 +00:00
Alexander Zuev
fef70d78ba 8299077: [REDO] JDK-4512626 Non-editable JTextArea provides no visual indication of keyboard focus
8299127: [REDO] JDK-8194048 Regression automated test '/open/test/jdk/javax/swing/text/DefaultCaret/HidingSelection/HidingSelectionTest.java' fails
8299128: [REDO] JDK-8213562 Test javax/swing/text/DefaultCaret/HidingSelection/MultiSelectionTest.java fails

Reviewed-by: aivanov, azvegint
2022-12-22 00:12:15 +00:00
Jesper Wilhelmsson
34cdda5b83 Merge 2022-12-21 23:50:59 +00:00
Damon Nguyen
f80faced6e 8202931: [macos] java/awt/Choice/ChoicePopupLocation/ChoicePopupLocation.java fails
Reviewed-by: serb, honkar
2022-12-21 20:10:52 +00:00
Volodymyr Paprotski
22007a1e38 8298893: Rename option UsePolyIntrinsics to UsePoly1305Intrinsics
Reviewed-by: jnimeh, chagedorn, thartmann
2022-12-21 18:43:40 +00:00
Tyler Steele
9adc349cbb 8298726: (fs) Change PollingWatchService to record last modified time as FileTime rather than milliseconds
Backport-of: 5f63f7a742
2022-12-21 18:17:42 +00:00
Naoto Sato
7e59a0ecb6 8298971: Move Console implementation into jdk internal package
Reviewed-by: jpai
2022-12-21 18:09:21 +00:00
Xin Liu
10d62fa218 8299061: Using lambda to optimize GraphKit::compute_stack_effects()
Reviewed-by: kbarrett, thartmann
2022-12-21 16:48:20 +00:00
Matias Saavedra Silva
65442a2e26 8269736: Optimize CDS PatchEmbeddedPointers::do_bit()
Reviewed-by: ccheung, iklam
2022-12-21 15:33:24 +00:00
Roland Westrelin
88bfe4d3bf 8297724: Loop strip mining prevents some empty loops from being eliminated
Reviewed-by: kvn, thartmann
2022-12-21 14:46:57 +00:00
Chris Hegarty
a7d6de71bb 8299015: Ensure that HttpResponse.BodySubscribers.ofFile writes all bytes
Co-authored-by: Daniel Jeliński <djelinski@openjdk.org>
Reviewed-by: dfuchs, djelinski, jpai
2022-12-21 12:19:06 +00:00
Nick Gasson
81933b7a92 8298642: ParallelGC -XX:+UseNUMA eden spaces allocated on wrong node
Reviewed-by: tschatzl, ayang
2022-12-21 11:00:48 +00:00
Christoph Langer
92fe304f08 8298588: WebSockets: HandshakeUrlEncodingTest unnecessarily depends on a response body
Backport-of: 909d0cb4d9
2022-12-21 10:57:24 +00:00
Naveen Narayanan
b005013a00 8296275: Write a test to verify setAccelerator method of JMenuItem
Reviewed-by: mvs, aivanov
2022-12-21 10:48:27 +00:00
Andrey Turbanov
85f9b37d71 8297682: Use Collections.emptyIterator where applicable
Reviewed-by: stsypanov, alanb, jpai
2022-12-21 08:15:11 +00:00
Matthias Baesken
f36e144923 8299025: BMPImageReader.java readColorPalette could use staggeredReadByteStream
Reviewed-by: clanger
2022-12-21 08:05:37 +00:00
Xue-Lei Andrew Fan
f56285c361 8299146: No copyright statement on ArtifactResolverException.java
Reviewed-by: erikj
2022-12-21 01:47:50 +00:00
Kim Barrett
396a9bff68 8298913: Add override qualifiers to Relocation classes
Reviewed-by: kvn, aboldtch
2022-12-21 01:22:11 +00:00
Jonathan Gibbons
f7be5b530d 8299156: Broken link in jdk.compiler/module-info.java
Reviewed-by: iris
2022-12-20 22:53:09 +00:00
Martin Doerr
3d4d9fd6e6 8298947: compiler/codecache/MHIntrinsicAllocFailureTest.java fails intermittently
Reviewed-by: kvn, chagedorn
2022-12-20 22:02:34 +00:00
Jonathan Gibbons
e85d00f6c3 8299147: Minor accessibility errors in the specs and man index pages
Reviewed-by: mchung, erikj
2022-12-20 21:33:53 +00:00
Jesper Wilhelmsson
386db07143 Merge 2022-12-20 20:20:17 +00:00
Albert Mingkun Yang
8dfb6d76e8 8298651: Serial: Remove MarkSweep::follow_klass
Reviewed-by: kbarrett, tschatzl
2022-12-20 19:36:52 +00:00
Daniel D. Daugherty
f4d7f43394 8299123: [BACKOUT] 4512626 Non-editable JTextArea provides no visual indication of keyboard focus
Reviewed-by: tschatzl
2022-12-20 16:20:50 +00:00
Coleen Phillimore
03afec16f8 8298162: Test PrintClasses hits assert when run with code that retransform classes
Reviewed-by: dholmes, mgronlun
2022-12-20 14:09:22 +00:00
Coleen Phillimore
03d992728e 8298061: vmTestbase/nsk/sysdict/vm/stress/btree/btree012/btree012.java failed with "fatal error: refcount has gone to zero"
Reviewed-by: iklam, dholmes
2022-12-20 13:21:50 +00:00
Erik Gahlin
de8153cab7 8298526: JFR: Generate missing filename for time-bound recordings
Reviewed-by: mgronlun
2022-12-20 13:07:25 +00:00
Albert Mingkun Yang
65fc05884b 8298968: G1: Incorrect merged remset stats
Reviewed-by: tschatzl, kbarrett
2022-12-20 12:43:53 +00:00
Erik Gahlin
318526b01e 8299031: JFR: Clean up jdk.management.jfr
Reviewed-by: mgronlun
2022-12-20 12:22:01 +00:00
Jesper Wilhelmsson
c5a4a7a679 Merge 2022-12-20 11:40:56 +00:00
Daniel Fuchs
e5edb10dc5 8299018: java/net/httpclient/HttpsTunnelAuthTest.java fails with java.io.IOException: HTTP/1.1 header parser received no bytes
Reviewed-by: djelinski, jpai
2022-12-20 11:06:36 +00:00
Daniel Fuchs
5df00d34fe 8298931: java/net/httpclient/CancelStreamedBodyTest.java fails with AssertionError due to Pending TCP connections: 1
Reviewed-by: jpai
2022-12-20 11:05:38 +00:00
Erik Gahlin
3dd2cfabdc 8298784: JFR: Test chunk integrity
Reviewed-by: mgronlun
2022-12-20 10:52:11 +00:00
Daniel Jeliński
36de61c460 8298865: Excessive memory allocation in CipherOutputStream AEAD decryption
Reviewed-by: valeriep, ascarpino
2022-12-20 10:27:33 +00:00
lawrence.andrews
dd15d306a6 8299043: test/jdk/javax/swing/AbstractButton/5049549/bug5049549.java fails with java.lang.NullPointerException
Reviewed-by: serb
2022-12-20 01:16:37 +00:00
Kim Barrett
ea40f29939 8298215: gc/g1/TestVerifyGCType.java failed with "Missing expected verification pattern Verifying After GC for: Pause Young (Prepare Mixed): expected true, was false"
Reviewed-by: iwalulya, tschatzl
2022-12-20 00:13:25 +00:00
Phil Race
05f9e7676e 8298974: Add ftcolor.c to imported freetype sources
Reviewed-by: serb
2022-12-19 23:32:58 +00:00
lawrence.andrews
abc1297643 8299044: test/jdk/javax/swing/JComboBox/JComboBoxBorderTest.java fails on non mac
Reviewed-by: serb, honkar
2022-12-19 23:26:01 +00:00
Roger Riggs
d0a7679d2e 4958969: ObjectOutputStream example leads to non-working code
Reviewed-by: lancea, naoto
2022-12-19 23:10:30 +00:00
Daniel D. Daugherty
f07acfc166 8298699: java/lang/reflect/IllegalArgumentsTest.java times out with slowdebug bits
Reviewed-by: iris
2022-12-19 23:08:56 +00:00
Alexander Zuev
3e17e3c1c1 4512626: Non-editable JTextArea provides no visual indication of keyboard focus
8194048: Regression automated test '/open/test/jdk/javax/swing/text/DefaultCaret/HidingSelection/HidingSelectionTest.java' fails
8213562: Test javax/swing/text/DefaultCaret/HidingSelection/MultiSelectionTest.java fails

Reviewed-by: aivanov, azvegint
2022-12-19 22:16:56 +00:00
Jonathan Gibbons
5d330f5285 8299045: tools/doclint/BadPackageCommentTest.java fails after JDK-8298943
Reviewed-by: vromero
2022-12-19 21:09:01 +00:00
Archie L. Cobbs
40cb431fee 8298943: Missing escapes for single quote marks in compiler.properties
Reviewed-by: jjg
2022-12-19 19:48:13 +00:00
Hannes Wallnöfer
188aaef385 8277074: Qualified exported types show up in JavaDoc
Reviewed-by: psandoz
2022-12-19 19:13:29 +00:00
Alan Bateman
2c69c41d48 8298894: java/lang/Thread/virtual/stress/Skynet.java timed out and threw OutOfMemoryError
Reviewed-by: eosterlund
2022-12-19 18:06:19 +00:00
Chris Plummer
9194e91549 8298701: Cleanup SA entries in ProblemList-zgc.txt.
Reviewed-by: sspitsyn, amenkov
2022-12-19 18:02:34 +00:00
Coleen Phillimore
4c927df712 8298470: Short cut java.lang.Object super class loading
Reviewed-by: dholmes, iklam
2022-12-19 17:13:57 +00:00
Matthias Baesken
756a06d4c2 8299022: Linux ppc64le and s390x build issues after JDK-8160404
Reviewed-by: mdoerr, lucy
2022-12-19 16:20:12 +00:00
Damon Fenacci
de0ce792c1 8297801: printnm crashes with invalid address due to null pointer dereference
Reviewed-by: thartmann, chagedorn, kvn
2022-12-19 15:44:38 +00:00
Emanuel Peter
da38d43fcc 8296412: Special case infinite loops with unmerged backedges in IdealLoopTree::check_safepts
Reviewed-by: chagedorn, kvn, thartmann
2022-12-19 12:21:50 +00:00
Damon Fenacci
8e49fcdde4 8295661: CompileTask::compile_id() should be passed as int
Reviewed-by: thartmann, dnsimon, never
2022-12-19 08:50:44 +00:00
Damon Fenacci
86d588b035 8283740: C1: Convert flag TwoOperandLIRForm to a constant on all platforms
Reviewed-by: thartmann, chagedorn
2022-12-19 08:48:41 +00:00
Damon Fenacci
ec95991470 8298736: Revisit usages of log10 in compiler code
Reviewed-by: thartmann, chagedorn, epeter
2022-12-19 08:47:04 +00:00
Damon Fenacci
16225630ec 8265688: Unused ciMethodType::ptype_at should be removed
Reviewed-by: thartmann, kvn
2022-12-19 08:35:00 +00:00
sunguoyun
3637660521 8298813: [C2] Converting double to float cause a loss of precision and resulting crypto.aes scores fluctuate
Reviewed-by: thartmann
2022-12-19 07:56:36 +00:00
Christian Hagedorn
5e678f7500 8298824: C2 crash: assert(is_Bool()) failed: invalid node class: ConI
Reviewed-by: roland, kvn, thartmann
2022-12-19 07:10:12 +00:00
Fei Gao
ba942c24e8 8298244: AArch64: Optimize vector implementation of AddReduction for floating point
Reviewed-by: aph, xgong
2022-12-19 01:11:19 +00:00
Per Minborg
7938f8c32a 8298639: Perform I/O operations in bulk for RandomAccessFile
Co-authored-by: Sergey Tsypanov <stsypanov@openjdk.org>
Reviewed-by: alanb, bpb
2022-12-18 20:25:42 +00:00
Daniel D. Daugherty
34105556d1 8298987: ProblemList jdk/internal/vm/Continuation/Fuzz.java#default with ZGC on X64
8298989: ProblemList vmTestbase/nsk/jvmti/InterruptThread/intrpthrd003/TestDescription.java on macosx-x64
8298990: ProblemList java/lang/Thread/virtual/stress/Skynet.java subtests with ZGC

Reviewed-by: azvegint
2022-12-17 16:13:03 +00:00
Alexander Zvegintsev
d1026720d3 8298905: Test "java/awt/print/PrinterJob/ImagePrinting/PrintARGBImage.java" fails because the frames of instruction does not display
Reviewed-by: honkar, serb
2022-12-17 13:30:24 +00:00
Alexander Zvegintsev
41cc04430a 8298970: Problem list java/awt/event/KeyEvent/KeyTyped/CtrlASCII.java
Reviewed-by: serb
2022-12-17 13:28:39 +00:00
Ajit Ghaisas
3b7970cab3 8298217: Regressions 30-110% in SwingMark on MacOS, more so on aarch64
Reviewed-by: avu, prr, jdv
2022-12-17 06:37:18 +00:00
Daniel D. Daugherty
0ecad28daa 8298976: ProblemList java/util/concurrent/ExecutorService/CloseTest.java on macosx-aarch64
8298977: ProblemList vmTestbase/nsk/stress/strace/strace002.java on 2 platforms
8298978: ProblemList vmTestbase/nsk/stress/strace/strace003.java on 2 platforms

Reviewed-by: kbarrett, iris
2022-12-16 21:17:04 +00:00
Damon Nguyen
c997b5bffd 8298133: JDK 20 RDP1 L10n resource files update - msgdrop 10
Reviewed-by: achung, naoto, joehw, cjplummer, almatvee
2022-12-16 21:15:29 +00:00
Kim Barrett
bfa921ae6c 8160404: RelocationHolder constructors have bugs
Reviewed-by: kvn, jrose, jvernee
2022-12-16 20:47:40 +00:00
Matthew Donovan
bf9a8ce0bb 8249826: 5 javax/net/ssl/SSLEngine tests use @ignore w/o bug-id
Reviewed-by: xuelei, rhalade, ssahoo
2022-12-16 17:51:57 +00:00
Naoto Sato
0eeaeb8e7b 8298808: Check script code on detecting the base locales
Reviewed-by: joehw
2022-12-16 17:16:20 +00:00
Eric Caspole
81e23ab340 8298809: Clean up vm/compiler/InterfaceCalls JMH
Reviewed-by: kvn
2022-12-16 16:30:31 +00:00
Jesper Wilhelmsson
3696711efa Merge 2022-12-16 15:48:24 +00:00
Tobias Hartmann
9e10f00edb 8298919: Add a regression test for JDK-8298520
Reviewed-by: chagedorn, roland
2022-12-16 14:39:48 +00:00
Coleen Phillimore
b14794db00 8298852: Use of uninitialized memory in MetadataFactory::free_metadata
Backport-of: f4caaca100
2022-12-16 14:09:55 +00:00
Justin King
f4caaca100 8298852: Use of uninitialized memory in MetadataFactory::free_metadata
Reviewed-by: coleenp, stefank, dholmes
2022-12-16 14:00:56 +00:00
Ivan Walulya
ac2fcf3f75 8296374: Check for young region in G1BarrierSet::invalidate instead of card-by-card check
Reviewed-by: ayang, tschatzl
2022-12-16 12:59:44 +00:00
Michal Karm Babacek
909d0cb4d9 8298588: WebSockets: HandshakeUrlEncodingTest unnecessarily depends on a response body
Reviewed-by: dfuchs
2022-12-16 12:28:39 +00:00
Maurizio Cimadamore
f771c56e16 8298797: Specification of some restricted methods is incorrect
Reviewed-by: jvernee, pminborg
2022-12-16 10:49:22 +00:00
Markus Grönlund
0ba4734891 8287699: jdk/jfr/api/consumer/TestRecordingFileWrite.java fails with exception: java.lang.Exception: Found event that should not be there.
Reviewed-by: egahlin
2022-12-16 10:46:37 +00:00
Fei Yang
226e579c30 8298088: RISC-V: Make Address a discriminated union internally
Reviewed-by: fjiang, yadongwang, shade
2022-12-16 08:45:52 +00:00
Stefan Johansson
c47e64e4f3 8297979: ZGC: Ensure consistent MemoryUsage from MemoryMXBean.getHeapMemoryUsage()
Reviewed-by: stefank, ayang
2022-12-16 08:06:09 +00:00
Jaikiran Pai
fa322e40b6 8298709: Fix typos in src/java.desktop/ and various test classes of client component
Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: iris, prr
2022-12-16 07:10:36 +00:00
Sergey Bylokhov
03a694afda 8298083: The "CheckBox/RadioButton[Enabled/Disabled].textForeground" stoped working
Reviewed-by: prr
Backport-of: 5540a8c5b7
2022-12-16 06:33:08 +00:00
Jaikiran Pai
e41686b405 8298710: Fix typos in test/jdk/sun/security/tools/jarsigner/
Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: lancea
2022-12-16 05:16:40 +00:00
David Holmes
a3364612f7 8298081: DiagnoseSyncOnValueBasedClasses doesn't report useful information for virtual threads
Reviewed-by: gziemski, pchilanomate
2022-12-16 01:08:30 +00:00
Sergey Bylokhov
2bb727c4ea 8290899: java/lang/String/StringRepeat.java test requests too much heap on windows x86
Reviewed-by: jpai, phh
2022-12-16 00:43:56 +00:00
Daniel D. Daugherty
c7d7e7e3be 8298888: ProblemList gc/g1/TestVerifyGCType.java on linux and macosx
8298889: ProblemList runtime/StackGuardPages/TestStackGuardPages.java on linux
8298891: ProblemList vmTestbase/nsk/monitoring/MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded002/TestDescription.java with ZGC
8298892: ProblemList vmTestbase/nsk/sysdict/vm/stress/chain/chain008/chain008.java with ZGC

Reviewed-by: bpb, lmesnik
2022-12-16 00:01:08 +00:00
Brian Burkhalter
5412439445 8298187: (fs) BsdFileAttributeViews::setTimes does not support lastAccessTime on HFS+
Reviewed-by: alanb
2022-12-15 22:47:29 +00:00
David Holmes
3cdbd878e6 8298241: Replace C-style casts with JavaThread::cast
Reviewed-by: coleenp, stefank, sspitsyn
2022-12-15 21:15:34 +00:00
Coleen Phillimore
10737e168c 8298468: Clean up class_loader parameters
Reviewed-by: dholmes, iklam
2022-12-15 19:54:25 +00:00
Matthew Donovan
4b313b51b1 8297798: Timeout with DTLSOverDatagram test template
Reviewed-by: jnimeh, rhalade
2022-12-15 19:48:35 +00:00
Julian Waters
ae8988e834 8297912: HotSpot Style Guide should permit alignas (Second Proposal Attempt)
Reviewed-by: kbarrett, stuefe, kvn
2022-12-15 19:38:39 +00:00
Naoto Sato
0ef353925e 8298416: Console should be declared sealed
Reviewed-by: jpai, alanb
2022-12-15 19:20:12 +00:00
Brian Burkhalter
831b35fad3 7093322: (fs spec) Files.newBufferedWriter should be clear when coding errors are detected
Reviewed-by: alanb
2022-12-15 17:27:39 +00:00
Brian Burkhalter
ca39eb9066 7093322: (fs spec) Files.newBufferedWriter should be clear when coding errors are detected
Reviewed-by: alanb
2022-12-15 17:27:08 +00:00
Alexander Zvegintsev
0288210f25 8298859: ProblemList java/awt/Mouse/EnterExitEvents/DragWindowTest.java on macosx-all
Reviewed-by: jdv
2022-12-15 16:43:06 +00:00
Per Minborg
2c42499266 8298050: Add links to graph output for javadoc
Reviewed-by: darcy
2022-12-15 15:46:05 +00:00
Stefan Karlsson
48f6127325 8298376: ZGC: thaws stackChunk with stale oops
Backport-of: ed8a2120ca
2022-12-15 11:44:21 +00:00
Jan Lahoda
22a6b59102 8298727: Trees.getPath may crash for unnamed package
Reviewed-by: vromero
2022-12-15 11:33:56 +00:00
Stefan Karlsson
323e574a50 8298371: monitors_on_stack extracts unprocessed oops
Backport-of: b754aa5e3f
2022-12-15 11:28:06 +00:00
Erik Österlund
b17c52422c 8298059: Linked stack watermarks don't support nesting
Reviewed-by: stefank, sspitsyn, rehn, pchilanomate
2022-12-15 09:26:13 +00:00
Matthias Baesken
98fa48c330 8298093: improve cleanup and error handling of awt_parseColorModel in awt_parseImage.c
Reviewed-by: lucy, clanger
2022-12-15 08:11:09 +00:00
Alan Bateman
5f63f7a742 8298726: (fs) Change PollingWatchService to record last modified time as FileTime rather than milliseconds
Reviewed-by: bpb, jpai
2022-12-15 07:14:02 +00:00
Daniel Jeliński
3ae718725a 8298498: sun/net/www/http/KeepAliveCache/B8291637.java fails with "Server exception terminating: java.net.SocketException: Socket closed"
Reviewed-by: dfuchs, jpai
2022-12-15 06:55:25 +00:00
Daniel Jeliński
b9074fa1ed 8298249: Excessive memory allocation in CipherInputStream AEAD decryption
Reviewed-by: ascarpino, valeriep
2022-12-15 06:54:33 +00:00
Jesper Wilhelmsson
10bc86cc26 Merge 2022-12-15 06:36:55 +00:00
Matias Saavedra Silva
d1085d1be7 8281946: VM.native_memory should report size of shareable memory
Reviewed-by: stuefe, iklam
2022-12-15 05:03:57 +00:00
Coleen Phillimore
3ef382416f 8298794: Remove JVM_ACC_PROMOTED_FLAGS breaks minimal build
Reviewed-by: ayang, dcubed
2022-12-14 23:08:32 +00:00
Alisen Chung
0ed6d0b456 8297296: java/awt/Mouse/EnterExitEvents/DragWindowTest.java fails with "No MouseReleased event on label!"
Reviewed-by: psadhukhan, dnguyen
2022-12-14 22:10:01 +00:00
Kim Barrett
80cadd4010 8298785: gc/TestFullGCCount.java fails with "invalid boolean value: null' for expression vm.opt.ExplicitGCInvokesConcurrent'"
Reviewed-by: dcubed
2022-12-14 21:57:55 +00:00
Jesper Wilhelmsson
a130c8a668 Merge 2022-12-14 21:47:29 +00:00
Per Minborg
ebc471040e 8298277: Replace "session" with "scope" for FFM access
Reviewed-by: mcimadamore
2022-12-14 21:40:29 +00:00
Chris Plummer
ccb94acc44 8287812: Cleanup JDWP agent GetEnv initialization
Reviewed-by: alanb, sspitsyn
2022-12-14 19:37:20 +00:00
Thomas Schatzl
8ff2928a04 8297639: Remove preventive GCs in G1
Reviewed-by: ayang, iwalulya
2022-12-14 17:55:15 +00:00
Chris Plummer
7241e358bf 8298692: Fix typos in test/jdk/com/sun/jdi files
Reviewed-by: amenkov, sspitsyn
2022-12-14 17:53:11 +00:00
Emanuel Peter
736fcd49f7 8296318: use-def assert: special case undetected loops nested in infinite loops
Reviewed-by: chagedorn, kvn
2022-12-14 17:25:49 +00:00
Alexander Zvegintsev
c05dbac3cb 8193547: Regression automated test '/open/test/jdk/java/awt/Toolkit/DesktopProperties/rfe4758438.java' fails
Reviewed-by: serb
2022-12-14 16:51:41 +00:00
Daniel Fuchs
0dce5b811d 8296610: java/net/HttpURLConnection/SetAuthenticator/HTTPSetAuthenticatorTest.java failed with "BindException: Address already in use: connect"
Reviewed-by: michaelm
2022-12-14 16:39:32 +00:00
Stefan Karlsson
ed8a2120ca 8298376: ZGC: thaws stackChunk with stale oops
Reviewed-by: eosterlund, pchilanomate
2022-12-14 14:34:24 +00:00
Axel Boldt-Christmas
581f9f2306 8297235: ZGC: assert(regs[i] != regs[j]) failed: Multiple uses of register: rax
Reviewed-by: thartmann, rcastanedalo
Backport-of: 042b7062f1
2022-12-14 14:10:24 +00:00
Erik Gahlin
0eeaf6b219 8298649: JFR: RemoteRecordingStream support for checkpoint event sizes beyond u4
Reviewed-by: mgronlun
2022-12-14 13:40:15 +00:00
Kim Barrett
279170147a 8298296: gc/TestFullGCCount.java fails with "System.gc collections miscounted."
Reviewed-by: tschatzl, ayang
2022-12-14 13:36:36 +00:00
Andrew Haley
0bbc4181cd 8294902: Undefined Behavior in C2 regalloc with null references
Reviewed-by: kvn, vlivanov
2022-12-14 13:32:21 +00:00
Coleen Phillimore
2e801e16ec 8298475: Remove JVM_ACC_PROMOTED_FLAGS
Reviewed-by: sspitsyn, dcubed, dholmes
2022-12-14 12:47:08 +00:00
Albert Mingkun Yang
9ee5037055 8298636: Fix return value in WB_CountAliveClasses and WB_GetSymbolRefcount
Reviewed-by: dholmes
2022-12-14 12:46:15 +00:00
Albert Mingkun Yang
ceca4fc9ec 8298264: Merge OffsetTableContigSpace into TenuredSpace
Reviewed-by: stefank, tschatzl
2022-12-14 12:45:17 +00:00
Jan Lahoda
9bcdfc4285 8298425: System.console().readLine() hangs in jshell
Reviewed-by: naoto, alanb
2022-12-14 11:36:04 +00:00
Matthijs Bijman
d32d6c028d 8297791: update _max_classes in node type system
Reviewed-by: thartmann
2022-12-14 11:30:34 +00:00
Stefan Karlsson
b754aa5e3f 8298371: monitors_on_stack extracts unprocessed oops
Reviewed-by: pchilanomate, rehn
2022-12-14 11:04:49 +00:00
Roland Westrelin
27d4971182 8298520: C2: assert(found_opaque == res) failed: wrong pattern
Reviewed-by: thartmann, chagedorn
2022-12-14 10:03:36 +00:00
Christoph Langer
51f0a1ce4b 8298527: Cygwin's uname -m returns different string than before
Reviewed-by: erikj
2022-12-14 07:32:28 +00:00
Jonathan Gibbons
61ab16f79a 8298700: Typo in DocTree comment
Reviewed-by: darcy
2022-12-13 23:20:43 +00:00
Joe Darcy
c6f22b4160 8297305: Clarify that javax.lang.model.util.Elements.overrides is irreflexive
Reviewed-by: jjg
2022-12-13 20:48:13 +00:00
Alex Menkov
220781fa56 8298513: vmTestbase/nsk/jdi/EventSet/suspendPolicy/suspendpolicy009/TestDescription.java fails with usage tracker
Reviewed-by: cjplummer, sspitsyn, lmesnik
2022-12-13 19:50:09 +00:00
Alex Menkov
a120764cc4 8298514: vmTestbase/nsk/jdi/EventRequestManager/threadDeathRequests/thrdeathreq002/TestDescription.java fails with usage tracker
Reviewed-by: cjplummer, sspitsyn
2022-12-13 19:49:16 +00:00
Ioi Lam
68022770de 8298524: Debug function to trace reachability of CDS archived heap objects
Reviewed-by: ccheung
2022-12-13 19:35:30 +00:00
Brent Christian
bf78f716bd 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt())
Reviewed-by: iris
Backport-of: c7aca73177
2022-12-13 19:07:44 +00:00
Jesper Wilhelmsson
23e18275ac Merge 2022-12-13 16:42:35 +00:00
Axel Boldt-Christmas
042b7062f1 8297235: ZGC: assert(regs[i] != regs[j]) failed: Multiple uses of register: rax
Reviewed-by: eosterlund, ayang, rcastanedalo
2022-12-13 15:43:16 +00:00
Albert Mingkun Yang
4081bba869 8297960: G1: Move Root Region Scan Waiting outside collection in logs
Reviewed-by: iwalulya, tschatzl
2022-12-13 14:29:46 +00:00
Albert Mingkun Yang
216775ff22 8298144: Remove Space::new_dcto_cl
Reviewed-by: stefank, tschatzl
2022-12-13 14:28:40 +00:00
Albert Mingkun Yang
c612f93e5a 8298576: Serial: Move some MarkSweep method definitions to cpp
Reviewed-by: stefank, tschatzl
2022-12-13 13:37:33 +00:00
Coleen Phillimore
04b8d0cf5c 8298084: Memory leak in Method::build_profiling_method_data
Co-authored-by: Justin King <jcking@openjdk.org>
Reviewed-by: kbarrett, eosterlund, dholmes, jcking, thartmann
2022-12-13 13:02:23 +00:00
Yude Lin
dbcfe7bc33 8298521: Rename members in G1MonitoringSupport
Reviewed-by: ayang, tschatzl
2022-12-13 10:26:05 +00:00
Prasanta Sadhukhan
3b1142a280 8298618: Typo in JPEGImageReader and JPEGImageWriter
Reviewed-by: iris, jdv, abhiscxk
2022-12-13 10:21:57 +00:00
Fei Yang
173778e2fe 8298568: Fastdebug build fails after JDK-8296389
Reviewed-by: rkennke, kvn, haosun
2022-12-13 00:57:02 +00:00
Coleen Phillimore
d453190300 8296955: Kitchensink.java failed with "double free or corruption (!prev): <addr>"
Reviewed-by: kbarrett, eosterlund, sspitsyn, dcubed
2022-12-13 00:49:16 +00:00
David Holmes
829cbc2cb1 8292674: ReportJNIFatalError should print all java frames
Reviewed-by: pchilanomate
2022-12-13 00:04:38 +00:00
Alexander Matveev
8962c723a8 8298488: [macos13] tools/jpackage tests failing with "Exit code: 137" on macOS
Reviewed-by: asemenyuk
2022-12-12 22:51:02 +00:00
David Holmes
be69930d9d 8288287: Remove expired flags in JDK 21
Reviewed-by: kvn, rehn
2022-12-12 22:20:16 +00:00
Per Minborg
c3bc4fcb3d 8297505: Declare fields in some sun.security.pkcs11 classes as final
Reviewed-by: valeriep
2022-12-12 21:51:59 +00:00
Brent Christian
c7aca73177 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt())
Reviewed-by: lancea, bpb, naoto, dholmes, smarks
2022-12-12 19:36:55 +00:00
Chris Plummer
781a2e0b2d 8298343: "Could not confirm if TargetJDK is hardened." warning for SA tests on macosx-aarch64-debug
Reviewed-by: amenkov, kevinw
2022-12-12 18:29:58 +00:00
Naoto Sato
0267aa528b 8297288: Example code in Scanner class
Reviewed-by: lancea, bpb, alanb
2022-12-12 17:59:25 +00:00
Per Minborg
9ff85f6577 8298589: java/net/SctpSanity.java fail with NoClassDefFoundError: sun/nio/ch/sctp/UnsupportedUtil
Reviewed-by: alanb
2022-12-12 17:22:17 +00:00
Per Minborg
81f57d568f 8298567: Make field in RandomAccessFile final
Reviewed-by: rriggs, chegar
2022-12-12 17:06:34 +00:00
Severin Gehwolf
cf93933e21 8298271: java/security/SignedJar/spi-calendar-provider/TestSPISigned.java failing on Windows
Reviewed-by: mullan
2022-12-12 15:49:31 +00:00
Per Minborg
56c438bfc2 8297822: De-duplicate code in module jdk.sctp
Reviewed-by: dfuchs, rriggs
2022-12-12 13:33:24 +00:00
Emanuel Peter
fabda24696 8296389: C2: PhaseCFG::convert_NeverBranch_to_Goto must handle both orders of successors
Reviewed-by: thartmann, chagedorn
2022-12-12 12:11:02 +00:00
Albert Mingkun Yang
6c23b4fd0d 8298480: Remove unused KlassRemSet
Reviewed-by: stefank
2022-12-12 11:18:33 +00:00
Albert Mingkun Yang
8e5c3319d0 8298471: Parallel: Don't keep alive nmethods in Young GC
Reviewed-by: stefank, iwalulya
2022-12-12 11:17:22 +00:00
Andrey Turbanov
d646e32b7a 8298090: Use String.join() instead of manual loop in DescriptorSupport.toString
Reviewed-by: stsypanov, sspitsyn, lmesnik
2022-12-12 07:36:34 +00:00
Christoph Langer
d624debe23 8298459: Fix msys2 linking and handling out of tree build directory for source zip creation
Reviewed-by: erikj
2022-12-11 13:50:39 +00:00
Ioi Lam
a37de62d9d 8298126: Print statistics for objects in CDS archive heap
Reviewed-by: ccheung
2022-12-11 02:58:59 +00:00
Sangheon Kim
8ea2a6777b 8292265: Add old gen used field at G1HeapSummary JFR event
Reviewed-by: tschatzl, ayang
2022-12-09 23:31:17 +00:00
Xue-Lei Andrew Fan
478ef389dc 8296812: sprintf is deprecated in Xcode 14
Reviewed-by: stuefe, prr, kbarrett, lucy
2022-12-09 22:37:20 +00:00
Jesper Wilhelmsson
715bf70459 Merge 2022-12-09 22:00:12 +00:00
Artem Semenov
9749a43641 8298457: Instructions in a11y manual tests need to be updated
Reviewed-by: kizune, serb
2022-12-09 20:05:19 +00:00
Joe Darcy
7dbdd83da0 8298190: Update --release 20 symbol information for JDK 20 build 27
Reviewed-by: iris
2022-12-09 19:54:46 +00:00
Chris Plummer
99a6c47855 8298073: gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java causes test task timeout on macosx
8241293: CompressedClassSpaceSizeInJmapHeap.java time out after 8 minutes

Reviewed-by: ayang, sspitsyn
2022-12-09 18:42:35 +00:00
Thomas Stuefe
f729f5b6d0 8298298: NMT: count deltas are printed with 32-bit signed size
Reviewed-by: shade, dholmes
2022-12-09 17:46:28 +00:00
Tyler Steele
a8946490e2 8298225: [AIX] Disable PPC64LE continuations on AIX
Reviewed-by: rrich, mdoerr
2022-12-09 17:04:11 +00:00
Xin Liu
9346535415 8298320: Typo in the comment block of catch_inline_exception
Reviewed-by: thartmann
2022-12-09 16:49:47 +00:00
Jan Lahoda
52fffdd2c8 8298463: tools/javac/modules/EdgeCases.java fails on Windows after JDK-8297988
Reviewed-by: jjg
2022-12-09 16:41:26 +00:00
Roland Westrelin
b7b996cb94 8298353: C2 fails with assert(opaq->outcnt() == 1 && opaq->in(1) == limit) failed
Reviewed-by: chagedorn, thartmann, kvn
2022-12-09 15:33:09 +00:00
Daniel Fuchs
05d67f69e3 8298340: java/net/httpclient/CancelRequestTest.java fails with AssertionError: Found some subscribers for testPostInterrupt
Reviewed-by: jpai
2022-12-09 15:23:22 +00:00
Erik Gahlin
5a92bee185 8298455: JFR: Add logging to TestClose.java
Reviewed-by: mgronlun
2022-12-09 15:21:59 +00:00
Roman Kennke
b30b464d05 8297036: Generalize C2 stub mechanism
Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Co-authored-by: Xiaolin Zheng <xlinzheng@openjdk.org>
Reviewed-by: eosterlund, kvn, fyang
2022-12-09 14:52:27 +00:00
Albert Mingkun Yang
05b0a018c7 8298281: Serial: Refactor MarkAndPushClosure
Reviewed-by: stefank, sjohanss
2022-12-09 13:26:12 +00:00
Sergey Tsypanov
e3c6cf8eaf 8298380: Clean up redundant array length checks in JDK code base
Reviewed-by: dholmes, amenkov, serb, vtewari
2022-12-09 12:50:55 +00:00
Gui Cao
33d955ad6e 8298345: Fix another two C2 IR matching tests for RISC-V
Reviewed-by: fyang, dzhang, fjiang
2022-12-09 12:43:47 +00:00
Jan Lahoda
133ad8e173 8297988: NPE in JavacTypes.getOverriddenMethods from doclint
Reviewed-by: vromero, jjg
2022-12-09 11:11:46 +00:00
Per Minborg
cb766c5535 8297778: Modernize and improve module jdk.sctp
Reviewed-by: dfuchs, stsypanov
2022-12-09 09:46:50 +00:00
Emanuel Peter
11aece21f4 8257197: Add additional verification code to PhaseCCP
Reviewed-by: chagedorn, kvn, thartmann
2022-12-09 07:11:57 +00:00
Joe Darcy
7f9c6ce331 8297679: InvocationTargetException field named target is not declared final
Reviewed-by: alanb
2022-12-09 00:29:08 +00:00
Sergey Bylokhov
5540a8c5b7 8298083: The "CheckBox/RadioButton[Enabled/Disabled].textForeground" stoped working
Reviewed-by: psadhukhan
2022-12-08 23:28:48 +00:00
Y. Srinivas Ramakrishna
c16eb89ce0 8298138: Shenandoah: HdrSeq asserts "sub-bucket index (512) overflow for value ( 1.00)"
Reviewed-by: rkennke, shade
2022-12-08 21:54:16 +00:00
Quan Anh Mai
3dfadeebd0 8292289: [vectorapi] Improve the implementation of VectorTestNode
Reviewed-by: xgong, kvn
2022-12-08 20:25:20 +00:00
Daniel D. Daugherty
553ba65dc4 8298402: ProblemList javax/swing/JFileChooser/4847375/bug4847375.java on windows-x64
8298414: ProblemList gc/TestFullGCCount.java on linux-x64
8298417: ProblemList vmTestbase/nsk/stress/strace/strace004.java on 2 platforms
8298419: ProblemList vmTestbase/nsk/monitoring/ThreadMXBean/ThreadInfo/Multi/Multi005/TestDescription.java on windows-x64

Reviewed-by: rriggs
2022-12-08 20:19:18 +00:00
Alan Bateman
d35e840024 8297295: Remove ThreadGroup.allowThreadSuspension
Reviewed-by: jpai, smarks, chegar, darcy
2022-12-08 18:17:58 +00:00
Joe Darcy
175e3d3ff3 8296149: Start of release updates for JDK 21
8296150: Add SourceVersion.RELEASE_21
8296151: Add source 21 and target 21 to javac

Reviewed-by: dholmes, iris, erikj, vromero, jlahoda
2022-12-08 16:04:00 +00:00
Emanuel Peter
d562d3fcbe 8297642: PhaseIdealLoop::only_has_infinite_loops must detect all loops that never lead to termination
Reviewed-by: thartmann, roland
2022-12-08 15:29:26 +00:00
Matthias Baesken
fc52f21f9a 8298255: JFR provide information about dynamization of number of compiler threads
Reviewed-by: stuefe, mgronlun, egahlin
2022-12-08 15:05:45 +00:00
Erik Gahlin
e555d54705 8298383: JFR: GenerateJfrFiles.java lacks copyright header
Reviewed-by: mgronlun, erikj
2022-12-08 14:42:04 +00:00
Markus Grönlund
c084431fae 8298379: JFR: Some UNTIMED events only sets endTime
Reviewed-by: ehelin, egahlin
2022-12-08 14:37:18 +00:00
Markus Grönlund
ea108f504c 8298129: Let checkpoint event sizes grow beyond u4 limit
Reviewed-by: egahlin
2022-12-08 12:51:46 +00:00
Johan Sjölen
165dcdd27d 8297718: Make NMT free:ing protocol more granular
Reviewed-by: stuefe, gziemski
2022-12-08 12:32:59 +00:00
Kevin Walls
fbe7b00738 8298173: GarbageCollectionNotificationContentTest test failed: no decrease in Eden usage
Reviewed-by: dcubed, cjplummer, sspitsyn
2022-12-08 12:10:26 +00:00
Tobias Hartmann
d8ef60b406 8298272: Clean up ProblemList
Reviewed-by: chagedorn, kvn
2022-12-08 12:06:24 +00:00
Erik Gahlin
9353899bc5 8298175: JFR: Common timestamp for periodic events
Reviewed-by: dholmes, mgronlun
2022-12-08 12:02:13 +00:00
Christian Hagedorn
94575d14f4 8295116: C2: assert(dead->outcnt() == 0 && !dead->is_top()) failed: node must be dead
Reviewed-by: thartmann, rcastanedalo
2022-12-08 12:00:01 +00:00
Christian Hagedorn
49b86224aa 8290850: C2: create_new_if_for_predicate() does not clone pinned phi input nodes resulting in a broken graph
Reviewed-by: thartmann, kvn
2022-12-08 11:23:42 +00:00
Jaikiran Pai
2f426cd68b 8298375: Bad copyright header in test/jdk/java/lang/Character/Supplementary.java
Reviewed-by: alanb
2022-12-08 11:02:21 +00:00
Sergey Tsypanov
b9346e149e 8298033: Character.codePoint{At|Before}(char[], int, int) doesn't do JavaDoc-specified check
Reviewed-by: rriggs
2022-12-08 10:21:56 +00:00
Anthony Vanelverdinghe
297bf6a596 8287397: Print top-level exception when snippet fails to read file
Reviewed-by: jjg
2022-12-08 10:19:39 +00:00
Smita Kamath
073897c88b 8294588: Auto vectorize half precision floating point conversion APIs
Reviewed-by: sviswanathan, kvn, jbhateja, fgao, xgong
2022-12-08 09:46:59 +00:00
Stefan Johansson
46cd457b0f 8298341: Ensure heap growth in TestNativeMemoryUsageEvents.java
Reviewed-by: egahlin, stuefe
2022-12-08 09:33:06 +00:00
Alan Bateman
1166c8e2c0 8296896: Change virtual Thread.yield to use external submit
Reviewed-by: jpai, rpressler
2022-12-08 07:37:32 +00:00
Prasanta Sadhukhan
51759650e5 8298323: trivial typo in JOptionPane.OK_OPTION
Reviewed-by: iris
2022-12-08 07:15:02 +00:00
Tejesh R
d5cf18e7fb 8296198: JFileChooser throws InternalError java.lang.InternalError with Windows shortcuts
Reviewed-by: serb, abhiscxk
2022-12-08 04:34:48 +00:00
Xiaolin Zheng
74f346b33f 8298075: RISC-V: Implement post-call NOPs
Reviewed-by: fyang, luhenry
2022-12-08 02:19:35 +00:00
Darragh Clarke
3aa4070d4c 8294047: HttpResponseInputStream swallows interrupts
Reviewed-by: dfuchs, vtewari, jpai
2022-12-08 01:39:07 +00:00
Alexander Zuev
af8fb7eef7 8282578: AIOOBE in javax.sound.sampled.Clip
Reviewed-by: prr, aivanov, azvegint
2022-12-08 00:32:13 +00:00
Doug Simon
8b69a2e434 8298099: [JVMCI] decouple libgraal from JVMCI module at runtime
Reviewed-by: never
2022-12-07 22:11:11 +00:00
Naoto Sato
8a9911ef17 8295803: Console should be usable in jshell and other environments
Reviewed-by: jlaskey, alanb
2022-12-07 20:49:29 +00:00
Xue-Lei Andrew Fan
5d4c71c8bd 8281236: (D)TLS key exchange named groups
Reviewed-by: mullan
2022-12-07 20:16:45 +00:00
Brian Burkhalter
10356e767a 8298303: (fs) temporarily remove Path.getExtension
Reviewed-by: smarks, alanb
2022-12-07 18:54:18 +00:00
Stefan Johansson
3b8c7ef8e7 8157023: Integrate NMT with JFR
Reviewed-by: stuefe, mgronlun, egahlin
2022-12-07 18:43:42 +00:00
Christian Hagedorn
e86f31b5e7 8298301: C2: assert(main_cmp->in(2)->Opcode() == Op_Opaque1) failed: main loop has no opaque node?
Reviewed-by: thartmann
2022-12-07 18:32:28 +00:00
Olga Mikhaltsova
8edb98df3d 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set.
Co-authored-by: Jason Fordham <jclf@azul.com>
Reviewed-by: prr
2022-12-07 18:02:20 +00:00
Tyler Steele
39344840c7 8298205: Prefer Member Initialization Lists for JFR classes in os_perf.hpp
Reviewed-by: dholmes, mgronlun
2022-12-07 16:54:10 +00:00
Markus KARG
389b8f4b78 8297298: SequenceInputStream should override transferTo
Reviewed-by: bpb
2022-12-07 16:29:43 +00:00
Tyler Steele
dd7385d1e8 8298202: [AIX] Dead code elimination removed jfr constructor used by AIX
Reviewed-by: dholmes, stuefe
2022-12-07 16:24:51 +00:00
Severin Gehwolf
29f1c3c6e3 8298274: Problem list TestSPISigned on Windows
Reviewed-by: mullan, dcubed
2022-12-07 15:45:35 +00:00
Claes Redestad
3de775094d 8298177: Various java.lang.invoke cleanups
8284363: Redundant imports in BoundMethodHandle

Reviewed-by: jvernee
2022-12-07 15:37:58 +00:00
Albert Mingkun Yang
6ed36835ec 8297209: Serial: Refactor GenCollectedHeap::full_process_roots
Reviewed-by: tschatzl, iwalulya
2022-12-07 15:14:32 +00:00
Roland Westrelin
86270e3068 8269820: C2 PhaseIdealLoop::do_unroll get wrong opaque node
Reviewed-by: kvn, thartmann, chagedorn
2022-12-07 14:16:50 +00:00
Jan Lahoda
cf63f2e3ea 8298184: Incorrect record component type in record patterns
Reviewed-by: vromero
2022-12-07 12:03:50 +00:00
Matthias Baesken
58170f657c 8298035: Provide better descriptions for JIT compiler JFR events
Reviewed-by: clanger, stuefe
2022-12-07 11:57:42 +00:00
Markus Grönlund
bfcc238ed0 8297964: Jetty.java fails "assert(_no_handle_mark_nesting == 0) failed: allocating handle inside NoHandleMark"
Reviewed-by: egahlin
2022-12-07 11:25:37 +00:00
Thomas Stuefe
3e041eb909 8298248: Limit sscanf output width in cgroup file parsers
Reviewed-by: dholmes, sgehwolf
2022-12-07 11:12:51 +00:00
Severin Gehwolf
4da8411674 8298108: Add a regression test for JDK-8297684
Reviewed-by: mullan
2022-12-07 10:46:53 +00:00
Albert Mingkun Yang
80cbfab928 8298169: Remove unused methods in space.hpp
Reviewed-by: stefank
2022-12-07 10:35:43 +00:00
Andrew Haley
221e1a4260 8286666: JEP 429: Implementation of Scoped Values (Incubator)
Reviewed-by: psandoz, dlong, alanb, mcimadamore
2022-12-07 10:14:06 +00:00
Alan Bateman
ccc69af966 8296672: Implementation of Virtual Threads (Second Preview)
Reviewed-by: mchung, jpai
2022-12-07 10:12:40 +00:00
Sergey Bylokhov
5a3439db9f 4677581: ColorModel.getComponentSize()-wrong conditions for ArrayIndexOutOfBoundsExceptio
Reviewed-by: prr
2022-12-07 09:35:26 +00:00
Daniel Jeliński
27bbe7be2c 8297976: Remove sun.net.ProgressMonitor and related classes
8240275: Occasional errors in HttpURLConnection due to race with GC

Reviewed-by: jpai, dfuchs, michaelm
2022-12-07 08:56:10 +00:00
Axel Boldt-Christmas
085f96cb1a 8295258: Add BasicType argument to AccessInternal::decorator_fixup
Reviewed-by: stefank, eosterlund
2022-12-07 08:28:20 +00:00
Thomas Stuefe
1c2a093988 8298147: Clang warns about pointless comparisons
Reviewed-by: dholmes
2022-12-07 07:31:29 +00:00
Denghui Dong
8ea369afe6 8298171: Missing newline in the example output of -Xlog:help
Reviewed-by: dholmes
2022-12-07 06:37:54 +00:00
Yi Yang
acf96c64b7 8290432: C2 compilation fails with assert(node->_last_del == _last) failed: must have deleted the edge just produced
Reviewed-by: kvn, thartmann, chagedorn
2022-12-07 03:08:07 +00:00
Andrew John Hughes
ce896731d3 8297804: (tz) Update Timezone Data to 2022g
Reviewed-by: naoto
2022-12-07 00:34:00 +00:00
Chris Plummer
62baff503e 8298221: Problem list gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java on macosx-aarch64
Reviewed-by: dcubed
2022-12-06 22:45:53 +00:00
Daniel D. Daugherty
16a5901845 8298214: ProblemList java/util/concurrent/forkjoin/AsyncShutdownNow.java
8298218: ProblemList java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java on windows-x64
8298222: ProblemList java/awt/Mixing/AWT_Mixing/ViewportOverlapping.java on windows-x64
8298220: ProblemList java/awt/Mixing/AWT_Mixing/OpaqueOverlapping.java on windows-x64

Reviewed-by: rriggs
2022-12-06 22:01:45 +00:00
Anthony Scarpino
b4da0ee706 8296507: GCM using more memory than necessary with in-place operations
Reviewed-by: jnimeh
2022-12-06 21:37:12 +00:00
Martin Doerr
cd2182a996 8295724: VirtualMachineError: Out of space in CodeCache for method handle intrinsic
Reviewed-by: kvn, dlong
2022-12-06 20:56:48 +00:00
Christian Stein
2cdc019565 8298178: Update to use jtreg 7.1.1
Reviewed-by: erikj
2022-12-06 20:51:06 +00:00
Mark Powers
79d163d499 8293412: Remove unnecessary java.security.egd overrides
Reviewed-by: xuelei, djelinski
2022-12-06 20:36:50 +00:00
Rajat Mahajan
ea83cb960d 8297450: ScaledTextFieldBorderTest.java fails when run with -show parameter
Reviewed-by: aivanov, honkar
2022-12-06 18:43:02 +00:00
Thomas Stuefe
336d230a39 8297958: NMT: Display peak values
Reviewed-by: jsjolen, sjohanss
2022-12-06 18:32:42 +00:00
Joe Darcy
0d2a9ee528 8298142: Update internal comment on language features in SourceVersion
Reviewed-by: sundar, jlahoda
2022-12-06 16:55:12 +00:00
Volodymyr Paprotski
203251ffc0 8297379: Enable the ByteBuffer path of Poly1305 optimizations
Reviewed-by: sviswanathan, ascarpino, jnimeh
2022-12-06 16:47:45 +00:00
Aggelos Biboudis
1e468320dc 8297602: Compiler crash with type annotation and generic record during pattern matching
Reviewed-by: jlahoda
2022-12-06 13:00:10 +00:00
Daniel Fuchs
b0e54328c5 8297687: new URI(S,S,S,S) throws exception with incorrect index position reported in the error message
Reviewed-by: jpai
2022-12-06 12:46:01 +00:00
Albert Mingkun Yang
2243646fe3 8298145: Remove ContiguousSpace::capacity
Reviewed-by: tschatzl
2022-12-06 12:26:06 +00:00
Per Minborg
84b927a05b 8296024: Usage of DirectBuffer::address should be guarded
Reviewed-by: mcimadamore, alanb, psandoz, bpb
2022-12-06 10:42:59 +00:00
Thomas Schatzl
a9e6c62ba7 8297186: G1 triggers unnecessary full GCs when heap utilization is low
Reviewed-by: kbarrett, sjohanss
2022-12-06 10:09:59 +00:00
Fei Gao
4458de95f8 8297172: Fix some issues of auto-vectorization of Long.bitCount/numberOfTrailingZeros/numberOfLeadingZeros()
Reviewed-by: kvn, thartmann
2022-12-06 09:35:27 +00:00
Pengfei Li
a61399854a 8297689: Fix incorrect result of Short.reverseBytes() call in loops
Reviewed-by: thartmann, jbhateja
2022-12-06 09:16:47 +00:00
Julian Waters
f8f46305ef 8297963: Partially fix string expansion issues in UTIL_DEFUN_NAMED and related macros
Reviewed-by: ihse
2022-12-06 08:42:36 +00:00
Daniel Jeliński
2a243a33cc 8267617: Certificate's IP x509 NameConstraints raises ArrayIndexOutOfBoundsException
Reviewed-by: mullan
2022-12-06 08:24:17 +00:00
Alan Bateman
923c746650 8298057: (fs) Remove PollingWatchService.POLLING_INIT_DELAY
Reviewed-by: bpb, jpai
2022-12-06 07:30:52 +00:00
Christian Hagedorn
0bd04a6589 8297951: C2: Create skeleton predicates for all If nodes in loop predication
Reviewed-by: thartmann, kvn
2022-12-06 07:18:44 +00:00
Yude Lin
f5ad515db0 8297247: Add GarbageCollectorMXBean for Remark and Cleanup pause time in G1
Reviewed-by: tschatzl, ayang
2022-12-06 07:16:27 +00:00
Albert Mingkun Yang
e9754181af 8298102: Remove DirtyCardToOopClosure::_last_explicit_min_done
Reviewed-by: tschatzl
2022-12-06 06:48:21 +00:00
Thomas Stuefe
04012c4310 8298111: Cleanups after UseMallocOnly removal
Reviewed-by: coleenp
2022-12-06 06:30:59 +00:00
Srikanth Adayapalam
ee9ba74564 8295184: Printing messages with a RecordComponentElement does not include position
Reviewed-by: vromero
2022-12-06 04:23:40 +00:00
Jayathirth D V
ba2d28e911 8298027: Remove SCCS id's from awt jtreg tests
Reviewed-by: aivanov
2022-12-06 03:43:28 +00:00
Alexey Semenyuk
8d8a28ffcb 8296489: tools/jpackage/windows/WinL10nTest.java fails with timeout
Reviewed-by: almatvee
2022-12-06 00:14:31 +00:00
Alexey Semenyuk
884b9ade41 8293453: tools/jpackage/share/AddLShortcutTest.java "Failed: Check the number of mismatched pixels [1024] of [1024] is < [0.100000] threshold"
Reviewed-by: almatvee
2022-12-06 00:13:22 +00:00
Phil Race
8af6e8a67f 8298123: Problem List MaximizedToIconified.java on macOS
Reviewed-by: dcubed
2022-12-05 21:26:44 +00:00
Jorn Vernee
da0917a2ae 8297729: Replace GrowableArray in ComputeMoveOrder with hash table
Reviewed-by: coleenp, jsjolen
2022-12-05 20:47:06 +00:00
Erik Gahlin
9827b75c45 8298043: jdk/jfr/api/consumer/recordingstream/TestStop.java failed with "Expected outer stream to have 3 events"
Reviewed-by: mgronlun
2022-12-05 20:40:35 +00:00
ravi.ra.gupta
7d20a60a98 8297489: Modify TextAreaTextEventTest.java as to verify the content change of TextComponent sends TextEvent
Reviewed-by: honkar, aivanov
2022-12-05 18:41:42 +00:00
Phil Race
601264d97d 8273357: SecurityManager deprecation warning from java/awt/regtesthelpers/Util.java
Reviewed-by: kizune, aivanov
2022-12-05 17:54:15 +00:00
Hannes Wallnöfer
6a7a0db587 8296619: Upgrade jQuery to 3.6.1
Reviewed-by: jjg
2022-12-05 16:23:01 +00:00
Jorn Vernee
a38c63da56 8297733: Refactor Cast binding to enum
Reviewed-by: mcimadamore
2022-12-05 15:28:51 +00:00
Alan Bateman
19d849884b 8297495: j.u.concurrent updates for JDK 20
Reviewed-by: jpai
2022-12-05 15:20:16 +00:00
Tyler Steele
328845926d 8297606: [AIX] Broken build after JDK-8295475
Reviewed-by: mdoerr, stuefe
2022-12-05 14:53:52 +00:00
Jorn Vernee
0452c39fec 8296477: Foreign linker implementation update following JEP 434
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Nick Gasson <ngasson@openjdk.org>
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Reviewed-by: rehn, mcimadamore, vlivanov
2022-12-05 14:47:12 +00:00
Maurizio Cimadamore
73baadceb6 8295044: Implementation of Foreign Function and Memory API (Second Preview)
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: jvernee, pminborg, psandoz, alanb, sundar
2022-12-05 13:49:53 +00:00
Afshin Zafari
bd381886e0 8297766: Remove UseMallocOnly development option
Reviewed-by: coleenp, stuefe, dholmes
2022-12-05 13:31:15 +00:00
Afshin Zafari
b9eec96889 8281214: Unsafe use of long in VMThread::setup_periodic_safepoint_if_needed
Reviewed-by: eastigeevich, shade
2022-12-05 13:30:15 +00:00
Coleen Phillimore
e7e03548fe 8297767: Assert JNICritical_lock/safepoint-1 and AdapterHandlerLibrary_lock/safepoint-1
Reviewed-by: pchilanomate, rehn
2022-12-05 13:18:44 +00:00
Xiaolin Zheng
f9e0f1d5b3 8297763: Fix missing stub code expansion before align() in shared trampolines
Reviewed-by: fyang, luhenry
2022-12-05 12:43:57 +00:00
Jan Lahoda
2300ed458d 8291769: Translation of switch with record patterns could be improved
Reviewed-by: vromero
2022-12-05 12:04:23 +00:00
Aleksey Shipilev
eab0ada3a1 8296545: C2 Blackholes should allow load optimizations
Reviewed-by: kvn, vlivanov
2022-12-05 12:00:30 +00:00
Matthias Baesken
dea2161f06 8297959: Provide better descriptions for some Operating System JFR events
Reviewed-by: stuefe
2022-12-05 11:31:31 +00:00
Robbin Ehn
d523d9d081 8297864: Dead code elimination
Reviewed-by: coleenp, pchilanomate
2022-12-05 10:31:35 +00:00
Jan Lahoda
777fb52ef5 8297974: ClassCastException in com.sun.tools.javac.comp.AttrRecover.doRecovery
Reviewed-by: vromero
2022-12-05 09:33:42 +00:00
Kevin Walls
17666fbcae 8297794: Deprecate JMX Management Applets for Removal
Reviewed-by: dfuchs, mullan, rriggs, alanb
2022-12-05 09:27:14 +00:00
Emanuel Peter
619b68c5d1 8294540: Remove Opaque2Node: it is broken and triggers assert
Reviewed-by: chagedorn, kvn
2022-12-05 08:30:31 +00:00
sendaoYan
82561de722 8296384: [TESTBUG] sun/security/provider/SecureRandom/AbstractDrbg/SpecTest.java intermittently timeout
Reviewed-by: weijun, wetmore
2022-12-05 07:41:42 +00:00
Ivan Walulya
61b7093123 8297872: Non-local G1MonotonicArenaFreePool::_freelist_pool has non-trivial ctor/dtor
Co-authored-by: Thomas Schatzl <tschatzl@openjdk.org>
Reviewed-by: kbarrett, tschatzl
2022-12-05 07:16:56 +00:00
Thomas Stuefe
3b3bbe5487 8296907: VMError: add optional callstacks, siginfo for secondary errors
Reviewed-by: aboldtch, rschmelter
2022-12-05 07:10:31 +00:00
Christian Hagedorn
a57392390b 8297264: C2: Cast node is not processed again in CCP and keeps a wrong too narrow type which is later replaced by top
Reviewed-by: thartmann, rcastanedalo, kvn
2022-12-05 07:09:04 +00:00
Fei Yang
b49fd920b6 8298055: AArch64: fastdebug build fails after JDK-8247645
Reviewed-by: aph, haosun
2022-12-05 03:40:07 +00:00
Michal Karm Babacek
914ef07fed 8297609: Add application/wasm MIME type for wasm file extension
Reviewed-by: jpai, michaelm
2022-12-05 01:59:20 +00:00
Julian Waters
a71d91b96f 8298067: Persistent test failures after 8296012
Reviewed-by: alanb
2022-12-04 17:32:20 +00:00
Daniel D. Daugherty
87572d43be 8298068: ProblemList tests failing due to JDK-8297235
8298070: ProblemList jdk/internal/vm/Continuation/Fuzz.java#default with ZGC on X64
8298071: ProblemList tests failing due to JDK-8298059
8298072: ProblemList compiler/c1/TestPrintC1Statistics.java in Xcomp mode on linux-aarch64

Reviewed-by: azvegint
2022-12-04 16:37:09 +00:00
Andrey Turbanov
0edb5d0805 8297683: Use enhanced-for cycle instead of Enumeration in java.security.jgss
Reviewed-by: weijun
2022-12-04 12:07:42 +00:00
Thomas Stuefe
c67166f120 8298003: NMT: fatal block printout does not show the correct corruption address
Reviewed-by: shade, mbaesken
2022-12-03 06:53:56 +00:00
Daniel D. Daugherty
99e2ef49a8 8298054: ProblemList jdk/jfr/api/consumer/recordingstream/TestStop.java
Reviewed-by: lmesnik
2022-12-03 04:13:33 +00:00
Daniel D. Daugherty
6065516bb3 8291418: adjust monitor deflation logging and deflate_idle_monitors use
Reviewed-by: dholmes, stuefe, pchilanomate
2022-12-02 22:31:08 +00:00
Daniel D. Daugherty
6e5470525d 8295424: adjust timeout for another JLI GetObjectSizeIntrinsicsTest.java subtest
8297367: disable TestRedirectLinks.java in slowdebug mode
8297369: disable Fuzz.java in slowdebug mode

Reviewed-by: sspitsyn, jjg, cjplummer, lmesnik
2022-12-02 22:29:21 +00:00
Jorn Vernee
562bc171b9 8291359: Specification of method j.l.foreign.VaList::skip still deserves clarification
Reviewed-by: mcimadamore
2022-12-02 22:15:27 +00:00
Alex Menkov
2821fa9883 8280798: com.sun.jdi.ObjectReference::setValue spec should prohibit any final field modification
Reviewed-by: alanb, cjplummer, sspitsyn
2022-12-02 20:16:51 +00:00
Coleen Phillimore
fb6fd03233 8291830: jvmti/RedefineClasses/StressRedefine failed: assert(!is_null(v)) failed: narrow klass value can never be zero
Reviewed-by: sspitsyn, eosterlund, kbarrett
2022-12-02 19:09:05 +00:00
Erik Gahlin
1b924659c8 8297608: JFR: Incorrect duration after chunk rotation
Reviewed-by: mgronlun
2022-12-02 17:21:48 +00:00
Leonid Mesnik
6065696e5d 8297982: Exclude vmTestbase/nsk/monitoring/stress/lowmem/ with ZGC until 8297979 is fixed
Reviewed-by: tschatzl
2022-12-02 15:11:41 +00:00
Ashutosh Mehra
415cfd2e28 8297285: Shenandoah pacing causes assertion failure during VM initialization
Reviewed-by: rkennke, phh
2022-12-02 14:22:52 +00:00
Magnus Ihse Bursie
df072556a5 8297984: Turn on warnings as errors for javadoc
Reviewed-by: serb, erikj
2022-12-02 14:00:44 +00:00
Feilong Jiang
227364d592 8297953: Fix several C2 IR matching tests for RISC-V
Reviewed-by: fyang, chagedorn
2022-12-02 12:48:42 +00:00
Albert Mingkun Yang
1370228cd7 8297941: Add override modifier in space.hpp
Reviewed-by: kbarrett, tschatzl
2022-12-02 12:30:29 +00:00
Prasanta Sadhukhan
319faa5afc 8296084: javax/swing/JSpinner/4788637/bug4788637.java fails intermittently on a VM
Reviewed-by: tr, serb
2022-12-02 11:48:28 +00:00
Erik Gahlin
b73363fd7b 8297686: JFR: Improve documentation of EventStream::onMetadata(Consumer)
Reviewed-by: mgronlun
2022-12-02 11:35:15 +00:00
Justin King
1376f33011 8297911: Memory leak in JfrUpcalls::on_retransform
Reviewed-by: mgronlun
2022-12-02 11:31:19 +00:00
Christoph Langer
5c0ff26f32 8291444: GHA builds/tests won't run manually if disabled from automatic running
Reviewed-by: serb, erikj, ihse
2022-12-02 11:03:53 +00:00
Daniel Fuchs
6d0fbb2c49 8297645: Drop the test/jdk/java/net/httpclient/reactivestreams-tck-tests/TckDriver.java test
Reviewed-by: alanb, jpai, michaelm
2022-12-02 10:44:29 +00:00
Dingli Zhang
687fd714bb 8297549: RISC-V: Add support for Vector API vector load const operation
Reviewed-by: fyang, gcao
2022-12-02 08:30:00 +00:00
Fei Yang
d50015af99 8297715: RISC-V: C2: Use single-bit instructions from the Zbs extension
Reviewed-by: fjiang, yadongwang, shade
2022-12-02 08:26:22 +00:00
Aleksey Shipilev
9bbcb546c8 8297784: Optimize @Stable field for Method.isCallerSensitive
Reviewed-by: redestad, jvernee, alanb
2022-12-02 07:29:27 +00:00
Jie Fu
11ba7591df 8297992: Tests fail after JDK-8297215 due to lack of @enablePreview
Reviewed-by: darcy
2022-12-02 06:04:10 +00:00
Magnus Ihse Bursie
b035056d28 8297455: Use the official ToolProvider API to call javac
Reviewed-by: erikj
2022-12-02 00:08:34 +00:00
Magnus Ihse Bursie
257aa15f15 8297444: Refactor the javacserver build tool
Reviewed-by: erikj, cstein
2022-12-01 23:41:58 +00:00
Liam Miller-Cushon
e846b0438c 8297875: jar should not compress the manifest directory entry
Reviewed-by: lancea
2022-12-01 22:07:57 +00:00
Vicente Romero
82031d32a0 8297294: compiler/c2/irTests/TestMulNodeIdealization.java failed compilation
Reviewed-by: mcimadamore
2022-12-01 21:57:55 +00:00
Leonid Mesnik
337ca10085 8297978: Exclude vmTestbase/nsk/stress/except/except012.java until 8297977 is fixed
Reviewed-by: dcubed
2022-12-01 21:29:18 +00:00
Joe Darcy
770ff5a812 8297215: Update libs tests to use @enablePreview
Reviewed-by: alanb, sspitsyn
2022-12-01 20:38:16 +00:00
Andrew Haley
c69aa42d02 8297968: Crash in PrintOptoAssembly
Reviewed-by: kvn
2022-12-01 20:34:18 +00:00
Kim Barrett
5a5ced3a90 8297830: aarch64: Make Address a discriminated union internally
Reviewed-by: aph, dcubed
2022-12-01 20:15:14 +00:00
Ioi Lam
391599bc9d 8297313: Refactor APIs for calculating address of CDS archive heap regions
Reviewed-by: matsaave, ccheung
2022-12-01 19:59:14 +00:00
Harshitha Onkar
09629570f5 8297449: Update JInternalFrame Metal Border code
Reviewed-by: aivanov, kizune
2022-12-01 18:57:50 +00:00
Alexander Zvegintsev
9f94cbec51 8271519: java/awt/event/SequencedEvent/MultipleContextsFunctionalTest.java failed with "Total [200] - Expected [400]"
Reviewed-by: serb
2022-12-01 18:10:31 +00:00
Christian Stein
c70d1e1bd3 8296710: Update to use jtreg 7.1
Reviewed-by: erikj, alanb, jjg
2022-12-01 16:49:40 +00:00
Matthijs Bijman
4899d78292 8293294: Remove dead code in Parse::check_interpreter_type
Reviewed-by: vlivanov, thartmann
2022-12-01 15:57:09 +00:00
Albert Mingkun Yang
5459b1104f 8297033: G1: Improve logging for Remembered Sets
Reviewed-by: tschatzl, kbarrett
2022-12-01 15:32:27 +00:00
Sergey Tsypanov
c6156f9123 8297561: Redundant index check in String.offsetByCodePoints()
Reviewed-by: aturbanov, rriggs, redestad
2022-12-01 15:28:39 +00:00
Erik Gahlin
eec24aa203 8295350: JFR: Add stop methods for recording streams
Reviewed-by: mgronlun
2022-12-01 15:01:42 +00:00
Roland Westrelin
9430f3e65c 8297934: [BACKOUT] Compiler should only use verified interface types for optimization
Reviewed-by: thartmann, kvn
2022-12-01 14:19:28 +00:00
Aggelos Biboudis
2cb64a7557 8294943: Implement record patterns in enhanced for
8296802: Parse errors when deconstructing a record using the enhanced for loop of JEP 432

Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: mcimadamore, vromero
2022-12-01 12:40:09 +00:00
Jan Lahoda
fc9d419b4f 8297928: Update jdk.internal.javac.PreviewFeature.Feature to reflect JEP 432 and JEP 433
Reviewed-by: alanb
2022-12-01 11:46:13 +00:00
Jan Lahoda
b60cce6f3b 8297118: Change IncompatibleClassChangeError to MatchException for exhaustive switch statements and switch expressions
Reviewed-by: vromero
2022-12-01 10:51:57 +00:00
Alan Bateman
cd776093c7 8294278: ForkJoinPool.getAndAddPoolIds should use Unsafe.staticFieldBase
Reviewed-by: burban, chegar, martin
2022-12-01 10:40:36 +00:00
Stefan Johansson
eea1a8a95e 8297427: Avoid keeping class loaders alive when executing ClassLoaderStatsVMOperation
Reviewed-by: eosterlund, stefank
2022-12-01 10:30:14 +00:00
Albert Mingkun Yang
794114787b 8297503: Merge FilteringDCTOC into ContiguousSpaceDCTOC
Reviewed-by: tschatzl, kbarrett
2022-12-01 10:00:57 +00:00
Tobias Hartmann
9f24a6f43c 8297389: resexhausted003 fails with assert(!thread->owns_locks()) failed: must release all locks when leaving VM
Reviewed-by: dholmes, rrich, dlong
2022-12-01 08:49:54 +00:00
Andrey Turbanov
fa0c599a00 8297750: Unnecessary Vector usage in IIORegistry
Reviewed-by: prr, serb
2022-12-01 08:16:55 +00:00
Aleksey Shipilev
34fcd83c5e 8297821: jdk/jshell/Test8294583.java fails on some platforms
Reviewed-by: alanb, jlahoda
2022-12-01 08:11:54 +00:00
Abhishek Kumar
ce048e7cb5 8295006: Colored text is not shown on disabled checkbox and radio button with GTK LAF for bug4314194.
Reviewed-by: prr, tr
2022-12-01 08:07:22 +00:00
Jan Lahoda
756dd5bb0d 8294942: Compiler implementation for Record Patterns (Second Preview)
8294945: Compiler implementation for Pattern Matching for switch (Fourth Preview)

Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: mcimadamore, vromero
2022-12-01 08:02:40 +00:00
Prasanta Sadhukhan
c612512014 8296660: Swing HTML table with omitted closing tags misparsed
Reviewed-by: prr, jdv
2022-12-01 07:57:10 +00:00
Julian Waters
56048f9718 8297852: Backout 8252584 for the time being
Reviewed-by: kbarrett
2022-12-01 04:21:52 +00:00
Feilong Jiang
f49acd5259 8297697: RISC-V: Add support for SATP mode detection
Reviewed-by: fyang, luhenry
2022-12-01 04:01:25 +00:00
Jonathan Gibbons
3b513a4f5c 8297802: display of @spec tags should mimic that of @see tags
Reviewed-by: prappo
2022-12-01 00:26:27 +00:00
Claes Redestad
4485d4e517 8297728: Cache invocation type rather than invoker in NamedFunction
Reviewed-by: jvernee
2022-11-30 20:53:56 +00:00
Per Minborg
e9d501e442 8297519: Improve expressions and modernise code in PKCS
Reviewed-by: weijun
2022-11-30 20:19:52 +00:00
Jorn Vernee
1722f9cce3 8290231: java/foreign/malloc/TestMixedMallocFree.java crashed in JDK19 ATR run
Reviewed-by: mcimadamore
2022-11-30 20:00:59 +00:00
Jorn Vernee
1a2ff58761 8297736: test/jdk/java/foreign/TestMatrix.java is broken
8291642: java/foreign/TestMatrix.java -few tests are failing due to JDK-8287158.

Reviewed-by: mcimadamore
2022-11-30 19:59:43 +00:00
Magnus Ihse Bursie
6bac332371 8297853: windows-x86 test build broken
Reviewed-by: jvernee
2022-11-30 18:59:47 +00:00
Alex Menkov
53dd214318 8297742: Combine vmTestbase/nsk/monitoring/ThreadMXBean/resetPeakThreadCount tests
Reviewed-by: dholmes, lmesnik, kevinw, sspitsyn
2022-11-30 18:39:24 +00:00
Chris Plummer
1323e98df1 8297170: misc JCK tests fail with "FATAL ERROR in native method: JDWP Can't disable vthread end events, jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)"
Reviewed-by: amenkov, dcubed, lmesnik, sspitsyn
2022-11-30 18:08:19 +00:00
Joe Darcy
c68556916a 8297731: Remove redundant check in MutableBigInteger.divide
Reviewed-by: bpb
2022-11-30 16:51:26 +00:00
Afshin Zafari
dcf431db0b 8287400: Make BitMap range parameter names consistent
Reviewed-by: dholmes, lkorinth
2022-11-30 16:38:24 +00:00
Stefan Johansson
a1f4db55c5 8297584: G1 parallel phase event for scan heap roots is sent too often
Reviewed-by: tschatzl, ayang
2022-11-30 14:51:31 +00:00
Erik Österlund
be4245e814 8294924: JvmtiExport::post_exception_throw() doesn't deal well with concurrent stack processing
Reviewed-by: pchilanomate, sspitsyn, dholmes
2022-11-30 14:15:18 +00:00
Erik Österlund
be99e84c98 8296875: Generational ZGC: Refactor loom code
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: stefank, rrich, pchilanomate
2022-11-30 14:08:57 +00:00
Coleen Phillimore
301cf52fa2 8297284: ResolutionErrorTable's key is wrong
Reviewed-by: matsaave, iklam
2022-11-30 13:14:52 +00:00
Albert Mingkun Yang
a97e7d9887 8297740: runtime/ClassUnload/UnloadTest.java failed with "Test failed: should still be live"
Reviewed-by: dcubed
2022-11-30 13:01:34 +00:00
Magnus Ihse Bursie
4d730f561f 8297644: RISC-V: Compilation error when shenandoah is disabled
Reviewed-by: fyang, yadongwang
2022-11-30 12:56:25 +00:00
Matthias Baesken
27b339d189 8297523: Various GetPrimitiveArrayCritical miss result - NULL check
Reviewed-by: stuefe, jdv
2022-11-30 12:49:23 +00:00
Jaikiran Pai
3f8882b2eb 8297693: Fix typos in src/hotspot and test/hotspot files
Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: kevinw, dholmes, sspitsyn
2022-11-30 11:28:11 +00:00
Jan Lahoda
b52611bc36 8295401: Error recovery in module-info.java could be improved
Reviewed-by: vromero
2022-11-30 09:49:51 +00:00
Jan Lahoda
9e80cf9c37 8296390: Incremental build failed with a NPE
Reviewed-by: vromero
2022-11-30 09:47:48 +00:00
Aleksey Shipilev
b3501fd11c 8297600: Check current thread in selected JRT_LEAF methods
Reviewed-by: dholmes, coleenp
2022-11-30 09:09:42 +00:00
Per Minborg
f05bfb1578 8297515: serialVersionUID fields are not annotated with @Serial
Reviewed-by: rriggs, lancea
2022-11-30 07:43:17 +00:00
Julian Waters
22f5d01428 8252584: HotSpot Style Guide should permit alignas
Co-authored-by: Kim Barrett <kbarrett@openjdk.org>
Reviewed-by: kbarrett
2022-11-30 07:37:22 +00:00
Sergey Bylokhov
8ffed34e1d 8297681: Unnecessary color conversion during 4BYTE_ABGR_PRE to INT_ARGB_PRE blit
Reviewed-by: prr
2022-11-30 07:29:32 +00:00
Tobias Hartmann
abe532a89c 8296924: C2: assert(is_valid_AArch64_address(dest.target())) failed: bad address
Co-authored-by: Andrew Haley <aph@openjdk.org>
Reviewed-by: aph, kvn
2022-11-30 06:39:27 +00:00
Johnny Lim
5dcaf6cc6c 8297749: Remove duplicate space in the ProtocolException message being thrown from HttpURLConnection
Reviewed-by: dfuchs, jpai
2022-11-30 06:15:07 +00:00
Ioi Lam
c7a679fbdd 8297290: Use int indices to reference CDS archived primitive mirrors
Reviewed-by: ccheung
2022-11-30 05:34:03 +00:00
Sergey Bylokhov
37f613bad3 8297676: DataBuffer.TYPE_SHORT/TYPE_FLOAT/TYPE_DOUBLE are not placeholders
Reviewed-by: azvegint, prr
2022-11-30 04:16:13 +00:00
Sergey Bylokhov
87f00f4a1b 8296878: Document Filter attached to JPasswordField and setText("") is not cleared instead inserted characters replaced with unicode null characters
Reviewed-by: prr, aivanov
2022-11-30 03:22:52 +00:00
Jaikiran Pai
9ced2ea0ab 8297311: Improve exception message thrown by java.net.HostPortrange::toLowerCase(String s)
Reviewed-by: dfuchs, michaelm, rriggs
2022-11-30 01:11:24 +00:00
Sergey Bylokhov
defe0607e3 8296905: Replace the native LCMS#getProfileID() method with the accessor
Reviewed-by: prr
2022-11-30 01:00:44 +00:00
Jaikiran Pai
e10778acce 8297695: Fix typos in test/langtools files
Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: prappo, jjg, iris
2022-11-30 00:42:40 +00:00
Jaikiran Pai
0ce182723b 8294321: Fix typos in files under test/jdk/java, test/jdk/jdk, test/jdk/jni
Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: alanb, lancea, dfuchs
2022-11-30 00:37:31 +00:00
Srinivas Mandalika
e2d71c0a0d 8297481: Create a regression test for JDK-4424517
Reviewed-by: serb
2022-11-29 21:54:33 +00:00
Per Minborg
f4063a3cfd 8297210: Add a @sealedGraph tag to selected java.desktop classes
Reviewed-by: prr
2022-11-29 21:51:15 +00:00
Abhishek Kumar
2084451193 8078471: Backspace does not work in JFileChooser with GTK L&F
Reviewed-by: psadhukhan, prr
2022-11-29 21:49:50 +00:00
Aggelos Biboudis
7af6b4b54c 8296012: jshell crashes on mismatched record pattern
Reviewed-by: vromero
2022-11-29 19:33:18 +00:00
Justin Lu
ae5b1f7656 8297685: Typo in NullPointerException description specified by Locale.lookup
Reviewed-by: naoto, lancea, jpai
2022-11-29 18:32:44 +00:00
Alexander Zvegintsev
3ce0042158 8297780: Problem list java/awt/Frame/RestoreToOppositeScreen/RestoreToOppositeScreen.java
Reviewed-by: aivanov
2022-11-29 17:56:02 +00:00
Xue-Lei Andrew Fan
b778cd52b3 8295010: Reduce if required in EC limbs operations
Reviewed-by: djelinski, jjiang
2022-11-29 17:39:40 +00:00
Bhavana Kilambi
54e6d6aaeb 8293488: Add EOR3 backend rule for aarch64 SHA3 extension
Reviewed-by: haosun, njian, eliu, aturbanov, ngasson
2022-11-29 17:17:15 +00:00
Hannes Wallnöfer
69ede5baed 8293177: Verify version numbers in legal files
Reviewed-by: jjg
2022-11-29 14:46:35 +00:00
Jamil Nimeh
cd6bebbf34 8247645: ChaCha20 intrinsics
Reviewed-by: sviswanathan, ngasson, vlivanov, ascarpino
2022-11-29 14:40:20 +00:00
Bo Zhang
33587ffd35 8292625: jshell crash on "var a = a"
Reviewed-by: jlaskey, jlahoda
2022-11-29 13:57:56 +00:00
Weijun Wang
2deb318c9f 8297065: DerOutputStream operations should not throw IOExceptions
Reviewed-by: mullan, valeriep
2022-11-29 12:57:46 +00:00
Daniel Fuchs
d83a07b72c 8297200: java/net/httpclient/SpecialHeadersTest.java failed once in AssertionError due to selector thread remaining alive
Reviewed-by: jpai
2022-11-29 12:42:37 +00:00
Daniel Fuchs
5d2772a43e 8297424: java/net/httpclient/AsyncExecutorShutdown.java fails in AssertionError due to misplaced assert
Reviewed-by: jpai
2022-11-29 12:36:20 +00:00
Hannes Wallnöfer
361b50e724 8292594: Use CSS custom properties for all fonts and colors
Reviewed-by: jjg
2022-11-29 11:50:39 +00:00
Conor Cleary
42b60ed22c 8297030: Reduce Default Keep-Alive Timeout Value for httpclient
Reviewed-by: dfuchs, michaelm, jpai
2022-11-29 11:42:51 +00:00
Axel Boldt-Christmas
1301fb0b5f 8296470: Refactor VMError::report STEP macro to improve readability
Reviewed-by: stuefe, coleenp
2022-11-29 11:38:59 +00:00
Michael McMahon
48017b1d9c 8296804: Document HttpClient configuration properties in java.net.http module-info
Reviewed-by: dfuchs, jpai
2022-11-29 11:11:10 +00:00
Aleksey Shipilev
bd51b7ea43 8296645: org.openjdk.bench.javax.tools.Javac leaves class files in current directory
Reviewed-by: redestad, jpai
2022-11-29 11:09:06 +00:00
Hannes Wallnöfer
b27a61e624 8297216: Search results omit some methods
Reviewed-by: jjg
2022-11-29 10:20:58 +00:00
Ivan Walulya
33dfc7d2ef 8296954: G1: Enable parallel scanning for heap region remset
Reviewed-by: tschatzl, ayang
2022-11-29 09:56:16 +00:00
Justin King
6f06f440bc 8297242: Use-after-free during library unloading on Linux
Reviewed-by: dholmes, jsjolen
2022-11-29 06:53:56 +00:00
Prasanta Sadhukhan
4e8e853bc9 6788481: CellEditorListener.editingCanceled is never called
Reviewed-by: prr, azvegint, serb
2022-11-29 05:08:38 +00:00
David Holmes
692bedbc1d 8297106: Remove the -Xcheck:jni local reference capacity checking
Reviewed-by: dcubed, kevinw
2022-11-29 02:03:49 +00:00
David Holmes
05128c2110 8286185: The Java manpage can be more platform inclusive
Reviewed-by: sspitsyn, kvn, iklam
2022-11-28 22:04:07 +00:00
Weijun Wang
d450314bd3 8297276: Remove thread text from Subject.current
Reviewed-by: xuelei, rriggs, mullan
2022-11-28 22:02:54 +00:00
Weibing Xiao
cdf9ed07de 8297528: java/io/File/TempDirDoesNotExist.java test failing on windows-x64
Reviewed-by: rriggs, iris, bpb, naoto
2022-11-28 21:34:36 +00:00
Smita Kamath
105d9d75e8 8295351: java/lang/Float/Binary16Conversion.java fails with "Unexpected result of converting"
Reviewed-by: sviswanathan, thartmann
2022-11-28 19:24:25 +00:00
Christian Stein
a80552e1e1 8236919: Refactor com.sun.tools.javac.main.CommandLine into a reusable module for other JDK tools
Reviewed-by: jjg
2022-11-28 17:33:59 +00:00
Matias Saavedra Silva
a249a52501 8296754: AutoCreateSharedArchive in JDK 20 is not compatible with JDK 19
Reviewed-by: ccheung, iklam, erikj
2022-11-28 15:26:27 +00:00
Aleksey Shipilev
405b1886b3 8297570: jdk/jfr/threading/TestDeepVirtualStackTrace.java fails with -XX:-UseTLAB
Reviewed-by: mgronlun
2022-11-28 14:49:28 +00:00
Alan Bateman
ba0a2521ba 8297717: Remove jdk/internal/misc/TerminatingThreadLocal/TestTerminatingThreadLocal.java from ProblemList
Reviewed-by: jpai
2022-11-28 13:27:18 +00:00
Thomas Stuefe
c05dc80234 8297660: x86: Redundant test+jump in C1 allocateArray
Reviewed-by: aph, yyang
2022-11-28 12:45:36 +00:00
Roland Westrelin
eff4c039da 8297343: TestStress*.java fail with "got different traces for the same seed"
Reviewed-by: thartmann, chagedorn
2022-11-28 12:27:14 +00:00
Albert Mingkun Yang
6a856bc3f6 8297499: Parallel: Missing iteration over klass when marking objArrays/objArrayOops during Full GC
Co-authored-by: Stefan Johansson <sjohanss@openjdk.org>
Reviewed-by: sjohanss, tschatzl
2022-11-28 11:57:18 +00:00
Justin King
b80f5af698 8297309: Memory leak in ShenandoahFullGC
Reviewed-by: rkennke, shade
2022-11-28 11:03:47 +00:00
Johan Sjölen
81eb5fbff5 8297534: Specify the size of MEMFLAGS
Reviewed-by: stuefe, tschatzl
2022-11-28 09:30:53 +00:00
Martin Doerr
012dafee5b 8297082: Remove sun/tools/jhsdb/BasicLauncherTest.java from problem list
Reviewed-by: rrich, cjplummer
2022-11-28 09:26:08 +00:00
Richard Reingruber
43d1173605 8286302: Port JEP 425 to PPC64
Reviewed-by: tsteele, mdoerr
2022-11-28 08:09:09 +00:00
Thomas Stuefe
d6102110e1 8297408: Consolidate code in runtime/ErrorHandling
Reviewed-by: dholmes, mbaesken
2022-11-28 07:31:18 +00:00
Emanuel Peter
2f83b5c487 8297640: Increase buffer size for buf (insert_features_names) in Abstract_VM_Version::insert_features_names
Reviewed-by: chagedorn, rehn
2022-11-27 13:41:26 +00:00
Ryan Ernst
50f9043c69 8297451: ProcessHandleImpl should assert privilege when modifying reaper thread
Reviewed-by: chegar, alanb
2022-11-26 20:04:59 +00:00
Vladimir Kempik
99d3840d36 8297359: RISC-V: improve performance of floating Max Min intrinsics
Reviewed-by: fyang
2022-11-26 16:15:55 +00:00
Aggelos Biboudis
6c05771b9b 8295447: NullPointerException with invalid pattern matching construct in constructor call
Reviewed-by: vromero
2022-11-26 15:53:00 +00:00
Per Minborg
76a24c3f90 8297145: Add a @sealedGraph tag to ConstantDesc
Reviewed-by: darcy
2022-11-26 08:29:34 +00:00
Per Minborg
099b42f360 8297148: Add a @sealedGraph tag to CallSite
Reviewed-by: darcy
2022-11-26 08:28:31 +00:00
Ioi Lam
85ddd8f2af 8295253: Remove kludge from v1_0/PerfDataBuffer.java
Reviewed-by: sspitsyn, dholmes, cjplummer
2022-11-25 19:54:03 +00:00
Doug Simon
952e100551 8297431: [JVMCI] HotSpotJVMCIRuntime.encodeThrowable should not throw an exception
Reviewed-by: never
2022-11-25 17:39:21 +00:00
Severin Gehwolf
08e6a820bc 8297590: [TESTBUG] HotSpotResolvedJavaFieldTest does not run
Reviewed-by: chagedorn, dnsimon
2022-11-25 16:29:53 +00:00
Aggelos Biboudis
4f65570204 8294583: JShell: NPE in switch with non existing record pattern
Reviewed-by: jlahoda
2022-11-25 12:31:47 +00:00
Zhiqiang Zang
fd910f77bc 8297384: Add IR tests for existing idealizations of arithmetic nodes
Reviewed-by: chagedorn
2022-11-25 08:17:44 +00:00
Roland Westrelin
cfe5a3716e 8297556: Parse::check_interpreter_type fails with assert "must constrain OSR typestate"
Reviewed-by: thartmann, vlivanov
2022-11-25 08:06:14 +00:00
Volodymyr Paprotski
74d3baccb3 8297417: Poly1305IntrinsicFuzzTest fails with tag mismatch exception
Reviewed-by: sviswanathan, vlivanov, rcastanedalo, thartmann
2022-11-25 07:07:39 +00:00
Dongxu Wang
0ed8b337ea 8297385: Remove duplicated null typos in javadoc
Reviewed-by: dfuchs, rriggs
2022-11-25 05:55:19 +00:00
Kim Barrett
1fb9dadb6a 8296419: [REDO] JDK-8295319: pending_cards_at_gc_start doesn't include cards in thread buffers
Reviewed-by: tschatzl, sjohanss
2022-11-25 02:02:54 +00:00
Jaikiran Pai
2f47f83add 8297569: URLPermission constructor throws IllegalArgumentException: Invalid characters in hostname after JDK-8294378
Reviewed-by: dfuchs
2022-11-25 01:23:53 +00:00
Claes Redestad
87d1097d9b 8297530: java.lang.IllegalArgumentException: Negative length on strings concatenation
Reviewed-by: enikitin, alanb
2022-11-24 17:40:30 +00:00
Per Minborg
390e69ad06 8297150: Add a @sealedGraph tag to Reference
Reviewed-by: darcy, alanb
2022-11-24 17:07:53 +00:00
Daniel Fuchs
8effaa8f1f 8223783: sun/net/www/http/HttpClient/MultiThreadTest.java sometimes detect threads+1 connections
Reviewed-by: djelinski, michaelm
2022-11-24 16:18:28 +00:00
KIRIYAMA Takuya
ab1f9ffa78 8051627: Invariants about java.net.URI resolve and relativize are wrong
Reviewed-by: dfuchs
2022-11-24 16:16:45 +00:00
Stefan Karlsson
df6cf1e41d 8296886: Fix various include sort order issues
Reviewed-by: kbarrett, dholmes, stuefe
2022-11-24 15:06:19 +00:00
Fei Yang
5e196b4b8e 8297476: Increase InlineSmallCode default from 1000 to 2500 for RISC-V
Reviewed-by: shade, yzhu
2022-11-24 13:32:52 +00:00
Kevin Walls
070a84cbae 8297192: Warning generating API docs for javax.management.MBeanServer: overridden methods do not document exception type
Reviewed-by: dfuchs, sspitsyn, amenkov
2022-11-24 12:28:46 +00:00
Severin Gehwolf
3c4d5204ff 8296671: [JFR] jdk.ContainerConfiguration event should include host total memory
Reviewed-by: egahlin
2022-11-24 10:05:18 +00:00
Hao Sun
8b7397064b 8296208: AArch64: Enable SHA512 intrinsic by default on supported hardware
Reviewed-by: njian, ngasson
2022-11-24 09:11:18 +00:00
Aleksey Shipilev
f4cf7589c0 8297491: Loom: Stack chunks allocation code uses TLABs even when TLABs are disabled
Reviewed-by: tschatzl, aboldtch, aph
2022-11-24 09:00:06 +00:00
Thomas Schatzl
5e5b774bfb 8296768: Use different explicit claim marks for CLDs in Parallel and Serial GC
Reviewed-by: ayang, sjohanss, kbarrett
2022-11-24 08:58:13 +00:00
Martin Doerr
9c77e41b81 8297445: PPC64: Represent Registers as values
Reviewed-by: mbaesken, rrich
2022-11-24 08:35:26 +00:00
Matthias Baesken
2f8a5c2eca 8297480: GetPrimitiveArrayCritical in imageioJPEG misses result - NULL check
Reviewed-by: jdv
2022-11-24 08:03:53 +00:00
Sergey Bylokhov
abeddab991 6528710: sRGB-ColorSpace to sRGB-ColorSpace Conversion
Reviewed-by: jdv, dnguyen
2022-11-24 03:54:40 +00:00
Roger Riggs
09ac9eb563 8297533: ProblemList java/io/File/TempDirDoesNotExist.java test failing on windows-x64
Reviewed-by: naoto
2022-11-23 21:49:01 +00:00
Daniel D. Daugherty
53251454df 8297529: ProblemList javax/swing/JFileChooser/8046391/bug8046391.java on windows-x64
Reviewed-by: naoto, azvegint
2022-11-23 20:55:10 +00:00
Jan Lahoda
91cd8a0366 8297525: jdk/jshell/ToolBasicTest.java fails after JDK-8295984
Reviewed-by: dcubed
2022-11-23 20:21:31 +00:00
Valerie Peng
6dc4d891c3 7181214: Need specify SKF translateKey(SecurityKey) method requires instance of PBEKey for PBKDF2 algorithms
Reviewed-by: xuelei, weijun
2022-11-23 18:49:35 +00:00
Erik Gahlin
2afb4c3327 8297338: JFR: RemoteRecordingStream doesn't respect setMaxAge and setMaxSize
Reviewed-by: mgronlun
2022-11-23 17:48:29 +00:00
Weibing Xiao
8df3bc4ec5 8290313: Produce warning when user specified java.io.tmpdir directory doesn't exist
Reviewed-by: rriggs, naoto, coffeys
2022-11-23 17:10:05 +00:00
Aleksey Shipilev
086763a629 8297154: Improve safepoint cleanup logging
Reviewed-by: jsjolen, rehn
2022-11-23 16:21:19 +00:00
Jayathirth D V
e6e57fe86d 8297507: Update header after JDK-8297230
Reviewed-by: aivanov, ihse, kcr, dfuchs, dcubed
2022-11-23 15:07:34 +00:00
Jan Lahoda
bc59f2a4ac 8295984: Remove unexpected JShell feature
Reviewed-by: cstein, sundar
2022-11-23 14:43:41 +00:00
Ludvig Janiuk
0d93ab9dff 8297000: [jib] Add more friendly warning for proxy issues
Reviewed-by: erikj, ihse
2022-11-23 14:26:45 +00:00
Laurent Bourgès
5b3d86f229 8297230: Update Marlin2D to 0.9.4.6
Reviewed-by: prr, serb
2022-11-23 13:29:20 +00:00
Albert Mingkun Yang
f4b5065c37 8297435: Remove unused CompactibleSpaceClosure
Reviewed-by: dholmes
2022-11-23 10:15:41 +00:00
Ralf Schmelter
bde0e35ded 8297142: jdk/jfr/event/runtime/TestShutdown.java fails on Linux ppc64le and Linux aarch64
Reviewed-by: clanger
2022-11-23 09:36:08 +00:00
Aleksey Shipilev
f26bd4e0e8 8297350: Update JMH devkit to 1.36
Reviewed-by: erikj
2022-11-23 07:12:21 +00:00
Christoph Langer
470f3424fc 8296904: Improve handling of macos xcode toolchain
Reviewed-by: erikj, ihse
2022-11-23 07:08:00 +00:00
Jayathirth D V
b4bd287f73 8191406: [hidpi] sun/java2d/SunGraphics2D/DrawImageBilinear.java test fails
Reviewed-by: serb
2022-11-23 03:38:37 +00:00
Prasanta Sadhukhan
412b43658a 6201035: Document NPE for passing null insets to constructors and methods of several javax.swing.border.* classes
Reviewed-by: tr, prr, aivanov, serb
2022-11-23 03:20:30 +00:00
Bo Zhang
faf48e61be 8296329: jar validator doesn't account for minor class file version
Reviewed-by: jvernee
2022-11-23 03:09:12 +00:00
Alex Menkov
09f70dad2f 8296265: Use modern HTML in the JVMTI spec
Reviewed-by: sspitsyn, kevinw
2022-11-22 23:55:39 +00:00
Serguei Spitsyn
e661c5a3d0 8296323: JVMTI can_support_virtual_threads not available for agents loaded into running VM
Reviewed-by: alanb, rrich
2022-11-22 23:43:15 +00:00
Kim Barrett
974cb8370d 8297310: Remove unimplemented HeapInspection::iterate_over_heap
Reviewed-by: amenkov, cjplummer, shade
2022-11-22 23:12:21 +00:00
Weijun Wang
e174558cad 8296742: Illegal X509 Extension should not be created
Reviewed-by: mullan
2022-11-22 22:21:50 +00:00
David Holmes
a6c418eaf8 8297168: Provide a bulk OopHandle release mechanism with the ServiceThread
Reviewed-by: rehn, coleenp
2022-11-22 21:57:33 +00:00
Christoph Langer
4a544bb0fc 8297091: New langtools test jdk/javadoc/doclet/testValueTag/TestValueFormats.java fails on machines with unexpected number format
Reviewed-by: prappo, jjg
2022-11-22 21:00:08 +00:00
Damon Nguyen
b6dddf4ce6 8239801: [macos] java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.java fails
Reviewed-by: honkar, azvegint
2022-11-22 20:12:36 +00:00
Xue-Lei Andrew Fan
260e4dcbfd 8295011: EC point multiplication improvement for secp256r1
Reviewed-by: djelinski, jjiang
2022-11-22 18:19:59 +00:00
Sergey Bylokhov
fb6c992f32 8296957: One more cast in SAFE_SIZE_NEW_ARRAY2
Reviewed-by: aivanov
2022-11-22 18:08:12 +00:00
Gerard Ziemski
ccc6e16918 8291067: macOS should use O_CLOEXEC instead of FD_CLOEXEC
Reviewed-by: dcubed, dholmes, stuefe
2022-11-22 16:30:24 +00:00
Albert Mingkun Yang
0ac5b55311 8297349: Parallel: Use correct claim value for CLD oop iteration in PSScavengeCLDClosure
Reviewed-by: tschatzl, shade
2022-11-22 14:40:51 +00:00
Albert Mingkun Yang
932bf3539c 8297333: Parallel: Remove unused methods in PCIterateMarkAndPushClosure
Reviewed-by: tschatzl, sjohanss
2022-11-22 14:39:10 +00:00
Tobias Hartmann
42c2037429 8297382: Test fails to compile after JDK-8288047
Reviewed-by: chagedorn
2022-11-22 09:25:44 +00:00
Alexander Zvegintsev
6d6046b379 8252713: jtreg time out of CtrlASCII.java seems to hang the Xserver.
Reviewed-by: prr
2022-11-22 09:20:46 +00:00
Matthias Baesken
88957a7ce8 8297147: UnexpectedSourceImageSize test times out on slow machines when fastdebug is used
Reviewed-by: stuefe, serb
2022-11-22 08:02:04 +00:00
Markus Karg
069685489a 8297299: SequenceInputStream should not use Vector
Reviewed-by: alanb, jpai
2022-11-22 05:04:40 +00:00
pandaapo
f0e99c6346 8297301: Cleanup unused methods in JavaUtilJarAccess
Reviewed-by: weijun
2022-11-22 03:22:05 +00:00
Jaikiran Pai
392ac7055d 8297211: Expensive fillInStackTrace operation in HttpURLConnection.getOutputStream0 when no content-length in response
Reviewed-by: simonis, dfuchs
2022-11-22 01:48:39 +00:00
Jonathan Gibbons
5a45c25151 8297164: Update troff man pages and CheckManPageOptions.java
Reviewed-by: dholmes
2022-11-21 22:03:48 +00:00
Volodymyr Paprotski
f12710e938 8288047: Accelerate Poly1305 on x86_64 using AVX512 instructions
Reviewed-by: sviswanathan, vlivanov
2022-11-21 21:01:25 +00:00
Magnus Ihse Bursie
cd6a203a3e 8297348: make CONF=xxx should match if xxx is an exact match
Reviewed-by: erikj
2022-11-21 18:34:52 +00:00
Magnus Ihse Bursie
817e039bb5 8297352: configure should check pandoc version
Reviewed-by: erikj
2022-11-21 18:33:32 +00:00
Magnus Ihse Bursie
15e2e2852b 8297353: Regenerated checked-in html files with new pandoc
Reviewed-by: lancea, erikj
2022-11-21 18:32:40 +00:00
Xue-Lei Andrew Fan
b366d17a94 8294073: Performance improvement for message digest implementations
Reviewed-by: jjiang
2022-11-21 15:56:19 +00:00
Weijun Wang
57f5cfdeb5 8296399: crlNumExtVal might be null inside X509CRLSelector::match
Reviewed-by: xuelei
2022-11-21 15:25:18 +00:00
Tobias Hartmann
0b04a99245 8297347: Problem list compiler/debug/TestStress*.java
Reviewed-by: chagedorn
2022-11-21 15:20:58 +00:00
Magnus Ihse Bursie
0ac01485d3 8297342: make LOG=debug is too verbose
Reviewed-by: erikj
2022-11-21 15:13:08 +00:00
Sean Coffey
d0a7938eb7 8286575: Document how properties in java.security are parsed
Reviewed-by: mullan
2022-11-21 14:28:07 +00:00
Coleen Phillimore
5c3345404d 8296472: Remove ObjectLocker around appendToClassPathForInstrumentation call
Reviewed-by: sspitsyn, alanb, dholmes
2022-11-21 14:16:49 +00:00
Coleen Phillimore
08008139cc 8293584: CodeCache::old_nmethods_do incorrectly filters is_unloading nmethods
Reviewed-by: eosterlund, kvn
2022-11-21 13:46:09 +00:00
Alexander Zvegintsev
16ab754e49 8196018: java/awt/Scrollbar/ScrollbarMouseWheelTest/ScrollbarMouseWheelTest.java fails
Reviewed-by: psadhukhan, serb, dnguyen
2022-11-21 13:40:06 +00:00
Christian Hagedorn
8b8d8481bc 8293422: DWARF emitted by Clang cannot be parsed
Reviewed-by: tschatzl, ihse, stuefe
2022-11-21 12:58:45 +00:00
Albert Mingkun Yang
59d8f67a71 8297265: G1: Remove unnecessary null-check in RebuildCodeRootClosure::do_code_blob
Reviewed-by: tschatzl
2022-11-21 11:14:05 +00:00
Alexander Zvegintsev
2fc340a703 8148041: Test java/awt/Mouse/TitleBarDoubleClick/TitleBarDoubleClick fails on Ubuntu with mouseReleased event after double click on title bar
Reviewed-by: prr
2022-11-21 10:48:44 +00:00
Gui Cao
e4206618ac 8297238: RISC-V: C2: Use Matcher::vector_element_basic_type when checking for vector element type in predicate
Reviewed-by: dzhang, fyang
2022-11-21 10:01:29 +00:00
Bhavana Kilambi
891c706a10 8295276: AArch64: Add backend support for half float conversion intrinsics
Reviewed-by: ngasson, aph, njian
2022-11-21 09:56:38 +00:00
Jayathirth D V
3c0949824e 8297241: Update sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java
8297153: sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java fails again

Reviewed-by: serb
2022-11-21 09:50:57 +00:00
Roland Westrelin
45d1807ad3 6312651: Compiler should only use verified interface types for optimization
Reviewed-by: vlivanov, kvn
2022-11-21 08:47:42 +00:00
Matthias Baesken
bcc6b12b71 8296945: PublicMethodsTest is slow due to dependency verification with debug builds
Reviewed-by: mchung, thartmann
2022-11-21 07:41:11 +00:00
Aleksey Shipilev
fc616588c1 8294591: Fix cast-function-type warning in TemplateTable
Reviewed-by: ihse, coleenp
2022-11-21 07:22:56 +00:00
Srikanth Adayapalam
544e317225 8059632: Method reference compilation uses incorrect qualifying type
Reviewed-by: mcimadamore
2022-11-21 03:02:29 +00:00
Ashutosh Mehra
651e54798a 8297217: Incorrect generation name in the heap verification log message with Serial GC
Reviewed-by: kbarrett, tschatzl
2022-11-20 23:55:47 +00:00
Daniel D. Daugherty
dd55310134 8297303: ProblemList java/awt/Mouse/EnterExitEvents/DragWindowTest.java on macosx-all
Reviewed-by: alanb, azvegint
2022-11-20 15:19:00 +00:00
Leonid Mesnik
3ea89711e3 8269817: serviceability/jvmti/DynamicCodeGenerated/DynamicCodeGeneratedTest.java timed out with -Xcomp
Reviewed-by: cjplummer, kevinw, sspitsyn
2022-11-19 20:31:37 +00:00
Thomas Stuefe
0a3b0fc8ad 8296784: Provide clean mallinfo/mallinfo2 wrapper for Linux glibc platforms
Reviewed-by: rkennke, mbaesken
2022-11-19 18:06:48 +00:00
Alan Bateman
7b3d581497 8297293: Add java/nio/channels/FileChannel/FileExtensionAndMap.java to ProblemList
Reviewed-by: lancea
2022-11-19 17:12:13 +00:00
Thomas Stuefe
251e065a17 8296764: NMT: reduce loads in os::malloc
Reviewed-by: adinn, iklam
2022-11-19 14:45:45 +00:00
Thomas Stuefe
0845b39caf 8296796: Provide clean, platform-agnostic interface to C-heap trimming
Reviewed-by: dholmes, rkennke
2022-11-19 11:52:55 +00:00
Sergey Bylokhov
c50a9047b4 8297195: AWTAccessor and SwingAccessor should avoid double racy reads from non-volatile fields
Reviewed-by: azvegint, prr
2022-11-19 04:40:02 +00:00
Jaikiran Pai
906f1ca4d7 8292317: Missing null check for Iterator.forEachRemaining implementations
Reviewed-by: sundar, smarks
2022-11-19 00:55:14 +00:00
Serguei Spitsyn
0ec575a203 8297289: problem list runtime/vthread/RedefineClass.java and TestObjectAllocationSampleEvent.java
Reviewed-by: dcubed
2022-11-18 23:46:20 +00:00
Jonathan Gibbons
dcb83754ce 8245246: Deprecate -profile option in javac
Reviewed-by: darcy
2022-11-18 23:43:26 +00:00
Jonathan Gibbons
52494df4f7 8290845: Consider an alternative item separator for multi-item option values
Reviewed-by: prappo
2022-11-18 22:30:09 +00:00
Phil Race
c56c69ed3e 8285604: closed sun/java2d/GdiRendering/ClipShapeRendering.java failed with "Incorrect color ffeeeeee instead of ff0000ff in pixel (100, 100)"
Reviewed-by: psadhukhan
2022-11-18 22:00:22 +00:00
Joe Darcy
6fd1442123 8296743: Tighten Class.getModifiers spec for array classes
Reviewed-by: rriggs, mchung, heidinga
2022-11-18 21:51:55 +00:00
Adam Sotona
3a15e8483c 8297258: Typo in java -help referencing -disable-@files instead of --disable-@files
Reviewed-by: mchung
2022-11-18 21:41:32 +00:00
Alexander Zuev
43ce047f9f 8178698: javax/sound/midi/Sequencer/MetaCallback.java failed with timeout
Reviewed-by: prr, psadhukhan
2022-11-18 21:20:34 +00:00
Serguei Spitsyn
035eaeecab 8296324: JVMTI GetStackTrace truncates vthread stack trace for agents loaded into running VM
Reviewed-by: cjplummer, lmesnik
2022-11-18 20:52:56 +00:00
ravi.ra.gupta
59a308b9d0 8296632: Write a test to verify the content change of TextArea sends TextEvent
Reviewed-by: mvs, prr, honkar, aivanov, serb
2022-11-18 20:34:53 +00:00
Alisen Chung
11fc65fa58 8023562: [TEST_BUG] java/awt/Mouse/EnterExitEvents/DragWindowTest.java failed on ubuntu 13 and mac 10.11
Reviewed-by: azvegint, honkar, jdv
2022-11-18 20:17:53 +00:00
Alisen Chung
2c692aa356 8297088: Update LCMS to 2.14
Reviewed-by: erikj, serb, prr, honkar
2022-11-18 19:39:47 +00:00
Chris Plummer
9b4e0e8446 8297080: Remove com/sun/jdi/NashornPopFrameTest.java from the problem list
Reviewed-by: dcubed, lmesnik
2022-11-18 19:16:29 +00:00
Chris Plummer
3272954a00 8297083: Remove vmTestbase/nsk/jvmti/GetAllThreads/allthr001 from problem list
Reviewed-by: dcubed, lmesnik, amenkov
2022-11-18 19:15:33 +00:00
Xue-Lei Andrew Fan
c4b6920a40 8296910: Add EdDSA/XDH/RSASSA-PSS to KeyPairGeneratorBench.java
Reviewed-by: weijun
2022-11-18 17:43:54 +00:00
Erik Gahlin
f34ca80167 8297245: JFR: TestRemoteDump should use RemoteRecordingStream
Reviewed-by: mgronlun
2022-11-18 16:03:12 +00:00
Adam Sotona
13158cb52d 8293041: --disable-@files option doesn't work and cause an error
Reviewed-by: alanb
2022-11-18 14:55:30 +00:00
Roland Westrelin
761a4f4852 8295788: C2 compilation hits "assert((mode == ControlAroundStripMined && use == sfpt) || !use->is_reachable_from_root()) failed: missed a node"
Reviewed-by: kvn, thartmann
2022-11-18 13:46:01 +00:00
Jaikiran Pai
2f2d40465b 8297129: Inflater documentation refers to 'deflate' methods
Reviewed-by: alanb, lancea
2022-11-18 12:04:10 +00:00
tianshuang
dd18d76b4c 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks
Reviewed-by: sgehwolf, alanb
2022-11-18 10:45:36 +00:00
Hao Sun
2b6dbc71d8 8293856: AArch64: Remove clear_inst_mark from aarch64_enc_java_dynamic_call
Reviewed-by: aph, eastigeevich
2022-11-18 09:01:33 +00:00
Archie L. Cobbs
2f063b86fb 8296846: Minor cleanup of some dead code in Flow.java
Reviewed-by: vromero
2022-11-18 04:25:12 +00:00
Weijun Wang
ab6b7ef988 8296901: Do not create unsigned certificate and CRL
Reviewed-by: mullan
2022-11-18 02:21:03 +00:00
David Holmes
7b3984cb5a 8296463: Memory leak in JVM_StartThread with the integration of Virtual threads
Reviewed-by: alanb, coleenp, dcubed
2022-11-18 00:46:09 +00:00
Stefan Karlsson
373e52c0ab 8296785: Use realloc for CHeap-allocated BitMaps
Reviewed-by: stuefe, aboldtch
2022-11-17 21:23:27 +00:00
Phil Race
a53be204cb 8282404: DrawStringWithInfiniteXform.java failed with "RuntimeException: drawString with InfiniteXform transform takes long time"
Reviewed-by: psadhukhan, jdv
2022-11-17 20:33:48 +00:00
Andrey Turbanov
66228f77fe 8297074: Use enhanced-for cycle instead of Enumeration in javax.crypto
Reviewed-by: weijun, wetmore
2022-11-17 20:25:53 +00:00
Matthew Donovan
819af69f40 8249693: java/nio/channels/FileChannel/FileExtensionAndMap.java uses @ignore w/o bug id
Reviewed-by: rhalade
2022-11-17 19:42:20 +00:00
Mikael Vidstedt
9c432a09db 8297165: Update Pandoc to version 2.19.2 for Oracle builds
Reviewed-by: erikj
2022-11-17 17:03:13 +00:00
Naoto Sato
8b140e2d74 8297152: Add a @sealedGraph tag to ZoneId
Reviewed-by: iris, joehw
2022-11-17 16:59:08 +00:00
Justin Lu
992f209def 8287180: Update IANA Language Subtag Registry to Version 2022-08-08
Reviewed-by: naoto, lancea, iris
2022-11-17 16:55:43 +00:00
Thomas Stuefe
a768fed779 8297184: Test runtime/ErrorHandling/TestSigInfoInHsErrFile.java is failing
Reviewed-by: dcubed, coleenp
2022-11-17 16:40:32 +00:00
Daniel Fuchs
134acab5a4 8297149: REDO JDK-8296889: Race condition when cancelling a request
8297075: java/net/httpclient/CancelStreamedBodyTest.java fails with "java.lang.AssertionError: WARNING: tracker for HttpClientImpl(1) has outstanding operations"

Reviewed-by: jpai
2022-11-17 15:08:04 +00:00
Tobias Holenstein
4120db13d4 8297007: IGV: Link/Unlink node selection of open tabs
Reviewed-by: rcastanedalo, chagedorn
2022-11-17 14:06:01 +00:00
Xiaolin Zheng
38eb80d4d8 8296975: RISC-V: Enable UseRVA20U64 profile by default
Reviewed-by: fyang, vkempik
2022-11-17 13:45:56 +00:00
Tobias Hartmann
b6aff54245 8297201: Obsolete AliasLevel flag
Co-authored-by: Tobias Holenstein <tholenstein@openjdk.org>
Reviewed-by: chagedorn, dholmes, tholenstein, rcastanedalo
2022-11-17 13:23:02 +00:00
Tobias Holenstein
d02bfdf9d7 8297032: IGV: shortcut to center selected nodes
Reviewed-by: chagedorn, rcastanedalo
2022-11-17 13:04:07 +00:00
Raffaello Giulietti
35acb89166 8296292: Document the default behavior of '$' in regular expressions correctly
Reviewed-by: lancea
2022-11-17 12:46:19 +00:00
Coleen Phillimore
d8c809b196 8296492: Remove ObjectLocker in JVMTI get_subgroups call
Reviewed-by: dholmes, alanb, sspitsyn
2022-11-17 11:58:00 +00:00
Per Minborg
171553a611 8297194: Add a @sealedGraph tag to Buffer
Reviewed-by: alanb
2022-11-17 11:46:51 +00:00
Vladimir Kempik
bd57e2138f 8296602: RISC-V: improve performance of copy_memory stub
Reviewed-by: fyang
2022-11-17 10:29:17 +00:00
Magnus Ihse Bursie
4527dc67be 8297041: Remove the last remnants of sjavac
Reviewed-by: cstein, erikj, jjg
2022-11-17 09:20:22 +00:00
Alan Bateman
636040f875 8296405: java/util/concurrent/forkjoin/AsyncShutdownNow.java is too slow
Reviewed-by: jpai
2022-11-17 09:18:50 +00:00
Dong Bo
2f728d0cbb 8295698: AArch64: test/jdk/sun/security/ec/ed/EdDSATest.java failed with -XX:+UseSHA3Intrinsics
Reviewed-by: haosun, aph
2022-11-17 09:05:43 +00:00
Conor Cleary
b9db16ab09 8288717: Add a means to close idle connections in HTTP/2 connection pool
Reviewed-by: dfuchs, michaelm
2022-11-17 08:38:25 +00:00
Thomas Stuefe
9f8b6d2aa6 8296437: NMT incurs costs if disabled
Reviewed-by: dholmes, iklam
2022-11-17 08:31:21 +00:00
Roman Kennke
e81359f148 8296170: Refactor stack-locking path in C2_MacroAssembler::fast_unlock()
Reviewed-by: thartmann, phh
2022-11-17 08:23:57 +00:00
Tobias Hartmann
502fa3eeea 8296912: C2: CreateExNode::Identity fails with assert(i < _max) failed: oob: i=1, _max=1
Reviewed-by: chagedorn, kvn
2022-11-17 07:39:57 +00:00
Abhishek Kumar
5795c760db 8296222: SwingEventMonitor - installListeners(Component , int ) - CELLEDITOR - bug
Reviewed-by: angorya, kizune
2022-11-17 07:17:03 +00:00
Thomas Stuefe
b9d6e83e9b 8296906: VMError::controlled_crash crashes with wrong code and address
Reviewed-by: dholmes, mbaesken
2022-11-17 07:08:14 +00:00
Tobias Hartmann
cd9c688bfc 8276064: CheckCastPP with raw oop input floats below a safepoint
Reviewed-by: kvn, vlivanov, roland
2022-11-17 05:58:38 +00:00
Tom Rodriguez
d61720a4dc 8218885: Restore pop_frame and force_early_return functionality for Graal
Reviewed-by: kvn, dlong, sspitsyn, amenkov
2022-11-17 05:18:49 +00:00
Prasanta Sadhukhan
dd9aa7272d 8296083: javax/swing/JTree/6263446/bug6263446.java fails intermittently on a VM
Reviewed-by: tr, prr
2022-11-17 03:25:37 +00:00
Fei Gao
cc44419840 8295407: C2 crash: Error: ShouldNotReachHere() in multiple vector tests with -XX:-MonomorphicArrayCheck -XX:-UncommonNullCast
Reviewed-by: thartmann, kvn
2022-11-17 01:39:56 +00:00
Joe Darcy
e2269fd2ca 8296968: Update langtools tests to use @enablePreview
Reviewed-by: sundar, jjg
2022-11-17 00:49:53 +00:00
Xin Liu
2159170b41 8296453: Simplify resource_area uses in ClassPathDirEntry::open_stream
Reviewed-by: dholmes, phh
2022-11-16 22:40:04 +00:00
Doug Simon
95c390ec75 8296956: [JVMCI] HotSpotResolvedJavaFieldImpl.getIndex returns wrong value
Reviewed-by: thartmann, never
2022-11-16 21:21:04 +00:00
Weijun Wang
68d3ed5cee 8296442: EncryptedPrivateKeyInfo can be created with an uninitialized AlgorithmParameters
Reviewed-by: xuelei, kdriver, mullan
2022-11-16 20:30:34 +00:00
Doug Simon
37848a9ca2 8296967: [JVMCI] rationalize relationship between getCodeSize and getCode in ResolvedJavaMethod
Reviewed-by: never
2022-11-16 20:27:19 +00:00
Doug Simon
b3ef337566 8296960: [JVMCI] list HotSpotConstantPool.loadReferencedType to ConstantPool
Reviewed-by: never
2022-11-16 20:25:00 +00:00
Calvin Cheung
f0474b826d 8283238: make/scripts/compare.sh should show the diff when classlist does not match
Reviewed-by: erikj, ihse
2022-11-16 20:10:42 +00:00
Erik Gahlin
04a4d347bd 8297006: JFR: AbstractEventStream should not hold thread instance
Reviewed-by: mgronlun
2022-11-16 20:01:37 +00:00
Doug Simon
5db1b58c86 8296961: [JVMCI] Access to j.l.r.Method/Constructor/Field for ResolvedJavaMethod/ResolvedJavaField
Reviewed-by: never
2022-11-16 19:58:09 +00:00
Doug Simon
4ce4f384d7 8296958: [JVMCI] add API for retrieving ConstantValue attributes
Reviewed-by: never
2022-11-16 19:56:14 +00:00
Ioi Lam
8c26d029b5 8295315: [REDO] 8276687 Remove support for JDK 1.4.1 PerfData shared memory files
Reviewed-by: dholmes, kevinw, sspitsyn
2022-11-16 18:31:37 +00:00
Xue-Lei Andrew Fan
8752bb4be8 8296818: Enhance JMH tests java/security/Signatures.java
Reviewed-by: weijun
2022-11-16 17:43:40 +00:00
Brian Burkhalter
b97fc93437 7132279: (ch) SeekableByteChannel operation may throw Non{Readable,Writable}ChannelException
Reviewed-by: lancea, jpai
2022-11-16 17:33:14 +00:00
Alexander Zvegintsev
39dda24dc6 8157173: [macosx] java/awt/Robot/ModifierRobotKey/ModifierRobotKeyTest.java fails
Reviewed-by: jdv, prr, serb
2022-11-16 17:05:32 +00:00
Per Minborg
51f690decb 8297134: Add a @sealedGraph tag to InetAddress
Reviewed-by: jpai, aefimov
2022-11-16 16:41:30 +00:00
Calvin Cheung
3eb6d0e2f8 8291991: Adjust the "shared class paths mismatch" message if class path logging is enabled
Reviewed-by: iklam, matsaave
2022-11-16 15:47:32 +00:00
Lutz Schmidt
eac26f4eb2 8296709: WARNING: JNI call made without checking exceptions
Reviewed-by: kevinw, sspitsyn, clanger
2022-11-16 15:00:20 +00:00
Tobias Holenstein
4946737fcb 8297047: IGV: graphContent not set when opening a new tab
Reviewed-by: chagedorn, rcastanedalo
2022-11-16 13:52:41 +00:00
Daniel Fuchs
8b1ff9e37e 8297132: BACKOUT JDK-8296889: Race condition when cancelling a request
Reviewed-by: djelinski, alanb
2022-11-16 13:13:54 +00:00
Claes Redestad
e72b0ac4af 8296429: Remove os::supports_sse
Reviewed-by: stuefe
2022-11-16 13:03:14 +00:00
Stefan Karlsson
813b223a6b 8296926: Sort include lines of files in the include/ directory
Reviewed-by: kbarrett, erikj, lkorinth
2022-11-16 12:51:26 +00:00
Stefan Karlsson
8cdcec44d8 8296774: Removed default MEMFLAGS value from CHeapBitMap
Reviewed-by: lkorinth, eosterlund
2022-11-16 12:26:09 +00:00
Fei Yang
c3b285a8ac 8296916: RISC-V: Move some small macro-assembler functions to header file
Reviewed-by: fjiang, yadongwang, shade
2022-11-16 12:01:42 +00:00
Albert Mingkun Yang
720c3d08c6 8296932: G1: Remove unused G1RootClosures::weak_oops
Reviewed-by: tschatzl
2022-11-16 11:50:32 +00:00
Stefan Karlsson
196d0210df 8297020: Rename GrowableArray::on_stack
Reviewed-by: stuefe, coleenp
2022-11-16 11:01:39 +00:00
Stefan Karlsson
5f51dff697 8296776: Stop using mtNone as marker for CHeap allocations in GrowableArray
Reviewed-by: sspitsyn, xliu, stuefe
2022-11-16 10:52:57 +00:00
Pavel Rappo
499406c764 8285488: Improve DocFinder
8287796: Stop auto-inheriting documentation for subclasses of exceptions whose documentation is inherited
8291869: Match exceptions using types of javax.lang.model, not strings
8288045: Clean up ParamTaglet
8288046: Clean up ThrowsTaglet
8295277: Expand {@inheritDoc} in @throws fully

Reviewed-by: jjg
2022-11-16 09:43:21 +00:00
Pavel Rappo
97ab2c3ea6 8296953: Fix a typo in exception documentation
Reviewed-by: cjplummer, dfuchs
2022-11-16 09:18:14 +00:00
Thomas Stuefe
5e08b3f40e 8296931: NMT tests slowed down considerably by JDK-8242181
Reviewed-by: chagedorn, mbaesken
2022-11-16 08:51:47 +00:00
Jayathirth D V
65f7de2523 8022403: sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java fails
Reviewed-by: prr, psadhukhan
2022-11-16 07:58:55 +00:00
Zdenek Zambersky
3f2f128af6 8295952: Problemlist existing compiler/rtm tests also on x86
Reviewed-by: chagedorn, kvn
2022-11-16 06:29:52 +00:00
Yi-Fan Tsai
6ead2b0195 8296548: Improve MD5 intrinsic for x86_64
Reviewed-by: kvn, sviswanathan, luhenry
2022-11-16 06:13:15 +00:00
Daniel D. Daugherty
bd3acbea8c 8297089: [BACKOUT] JDK-8297088 Update LCMS to 2.14
Reviewed-by: dholmes
2022-11-15 23:02:42 +00:00
Alisen Chung
6a60d318b6 8295369: Update LCMS to 2.14
Reviewed-by: honkar, prr
2022-11-15 22:12:24 +00:00
Joshua Cao
0cbf084b44 8296969: C1: PrintC1Statistics is broken after JDK-8292878
Reviewed-by: chagedorn, kvn, xliu
2022-11-15 21:13:11 +00:00
Man Cao
f662a06046 8296970: Remove sysThreadAvailableStackWithSlack from hotspot-symbols
Reviewed-by: clanger, erikj
2022-11-15 20:34:45 +00:00
Daniel Fuchs
7357a1a379 8296889: Race condition when cancelling a request
Reviewed-by: jpai
2022-11-15 18:36:45 +00:00
Joe Darcy
87530e66dd 8296913: Correct enable preview idiom in JdbLastErrorTest.java
Reviewed-by: cjplummer, kevinw, alanb, sspitsyn
2022-11-15 18:22:00 +00:00
Chris Plummer
fafe682967 8295861: get rid of list argument in debug agent's removeNode() API
Reviewed-by: amenkov, kevinw, sspitsyn
2022-11-15 17:37:59 +00:00
Leonid Mesnik
216c6f6340 8294881: test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java fails
Reviewed-by: cjplummer, sspitsyn
2022-11-15 17:19:48 +00:00
Lance Andersen
6aef3a4a3d 8262435: Clarify the behavior of a few inherited ZipInputStream methods
Reviewed-by: alanb, bpb, jpai
2022-11-15 16:44:14 +00:00
Xue-Lei Andrew Fan
c042b8ede1 8294731: Improve multiplicative inverse for secp256r1 implementation
Reviewed-by: djelinski, jjiang
2022-11-15 15:55:00 +00:00
Weijun Wang
d3051a75a3 8296736: Some PKCS9Attribute can be created but cannot be encoded
Reviewed-by: xuelei, valeriep
2022-11-15 15:33:08 +00:00
Christian Hagedorn
decb1b79bc 8286800: Assert in PhaseIdealLoop::dump_real_LCA is too strong
Reviewed-by: kvn, rcastanedalo
2022-11-15 14:44:26 +00:00
Adam Sotona
c49e48417d 8294739: jdk/jshell/ToolShiftTabTest.java timed out
Reviewed-by: jlahoda
2022-11-15 12:13:36 +00:00
Adam Sotona
a45c9af124 8295814: jdk/jshell/CommandCompletionTest.java fails with "lists don't have the same size expected [2] but found [1]"
Reviewed-by: jlahoda
2022-11-15 12:09:59 +00:00
Dmitry Samersoff
d0fae43e89 8294947: Use 64bit atomics in patch_verified_entry on x86_64
Reviewed-by: kvn
2022-11-15 10:43:05 +00:00
Tobias Holenstein
6f467cd829 8295934: IGV: keep node selection when changing view or graph
Reviewed-by: thartmann, rcastanedalo
2022-11-15 10:13:53 +00:00
Julian Waters
9adb728378 8295070: Introduce more target combinations for compiler flags
Reviewed-by: erikj, ihse
2022-11-15 09:47:37 +00:00
Nick Gasson
8ab70d3b59 8294775: Shenandoah: reduce contention on _threads_in_evac
Reviewed-by: rkennke, shade
2022-11-15 09:31:50 +00:00
Ralf Schmelter
5551cb66ba 8293166: jdk/jfr/jvm/TestDumpOnCrash.java fails on Linux ppc64le and Linux aarch64
Reviewed-by: mbaesken, stuefe
2022-11-15 07:34:49 +00:00
Kevin Walls
8a9eabbec6 8296786: Limit VM modes for com/sun/jdi/JdbLastErrorTest.java
Reviewed-by: cjplummer, dcubed
2022-11-15 07:23:40 +00:00
Erik Gahlin
873eccde01 8296923: JFR: jfr --version should return System.getProperty("java version")
Reviewed-by: mgronlun
2022-11-15 01:17:02 +00:00
Fei Yang
93d6b1f3e8 8295711: Rename ZBarrierSetAssembler::load_at parameter name from "tmp_thread" to "tmp2"
Reviewed-by: fjiang, haosun, tschatzl, eosterlund
2022-11-15 00:59:25 +00:00
Chris Plummer
2f7dc5c4cd 8296089: Remove debug agent code for special handling of Thread.resume()
Reviewed-by: alanb
2022-11-14 20:22:45 +00:00
Phil Race
c71d87e54c 8286624: Regression Test CoordinateTruncationBug.java fails on OL8.3
Reviewed-by: azvegint, kizune
2022-11-14 19:50:45 +00:00
Weijun Wang
a7c2338a6d 8296900: CertificateValidity fields are not optional
Reviewed-by: mullan
2022-11-14 19:46:43 +00:00
Vicente Romero
3eb789af74 8296171: Compiler incorrectly rejects code with variadic method references
Reviewed-by: mcimadamore
2022-11-14 18:31:26 +00:00
Brian Burkhalter
749335d34a 8291911: java/io/File/GetXSpace.java fails with "53687091200 != 161051996160"
Reviewed-by: rriggs
2022-11-14 18:08:33 +00:00
Markus Karg
95b84050fc 8296431: PushbackInputStream should override transferTo
Reviewed-by: bpb
2022-11-14 18:03:18 +00:00
Mark Powers
e269dc03ad 8293681: ResponseAPDU getData() method javadoc
Reviewed-by: valeriep
2022-11-14 17:37:42 +00:00
Roland Westrelin
8c472e4816 8294217: Assertion failure: parsing found no loops but there are some
Reviewed-by: chagedorn, thartmann
2022-11-14 15:08:15 +00:00
Roland Westrelin
0fe2bf51b2 8296805: ctw build is broken
Reviewed-by: kvn, thartmann
2022-11-14 15:05:57 +00:00
Weijun Wang
e1d298c12d 8296741: Illegal X400Address and EDIPartyName should not be created
Reviewed-by: xuelei, valeriep
2022-11-14 14:53:53 +00:00
Alexander Zvegintsev
b0edfc1159 8164464: Consistent failure of java/awt/dnd/MissingEventsOnModalDialog/MissingEventsOnModalDialogTest.java
Reviewed-by: jdv, serb
2022-11-14 14:45:17 +00:00
Roger Riggs
9c39932672 8294899: Process.waitFor() throws IllegalThreadStateException when a process on Windows returns an exit code of 259
Reviewed-by: alanb, jpai
2022-11-14 14:17:46 +00:00
Albert Mingkun Yang
3f401b3091 8296670: G1: Remove unused G1GCPhaseTimes::record_preserve_cm_referents_time_ms
Reviewed-by: tschatzl, iwalulya
2022-11-14 10:07:50 +00:00
Tobias Holenstein
68301cdeca 8296665: IGV: Show dialog with stack trace for exceptions
Reviewed-by: thartmann, chagedorn
2022-11-14 08:41:04 +00:00
Olga Mikhaltsova
277f0c24a2 8296821: compiler/jvmci/jdk.vm.ci.code.test/src/jdk/vm/ci/code/test/NativeCallTest.java fails after JDK-8262901
Reviewed-by: kvn, thartmann
2022-11-14 08:40:11 +00:00
Christian Hagedorn
34d10f19f5 8296243: [IR Framework] Fix issues with IRNode.ALLOC* regexes
Reviewed-by: mdoerr, thartmann
2022-11-14 08:28:41 +00:00
Alan Bateman
8eb90e2d9c 8296797: java/nio/channels/vthread/BlockingChannelOps.testSocketChannelWriteAsyncClose failed with ClosedChannelException
Reviewed-by: chegar, jpai
2022-11-13 07:45:38 +00:00
Yadong Wang
a2cdcdd65d 8296630: Fix SkipIfEqual on AArch64 and RISC-V
Reviewed-by: ngasson, fyang, luhenry, aph
2022-11-13 03:07:09 +00:00
Thomas Stuefe
657a0b2f15 8295865: Several issues with os::realloc
Reviewed-by: dholmes, jsjolen
2022-11-12 05:51:50 +00:00
Ryan Wallace
ff2c987669 8294378: URLPermission constructor exception when using tr locale
Reviewed-by: dfuchs, jpai, aefimov
2022-11-12 01:37:46 +00:00
Vladimir Ivanov
34a499de8e 8294033: x86_64: libm stubs are missing
Reviewed-by: jvernee, kvn
2022-11-11 22:50:08 +00:00
Julian Waters
f0b648bc5c 8296758: [BACKOUT] Revert 8296115
Reviewed-by: ihse
2022-11-11 21:48:45 +00:00
Magnus Ihse Bursie
7f587e5a5c 8296872: gtest is built with the build-jdk
Co-authored-by: Mikael Vidstedt <mikael@openjdk.org>
Reviewed-by: dholmes, mikael
2022-11-11 21:47:00 +00:00
Vladimir Kozlov
819c6919ca 8295867: TestVerifyGraphEdges.java fails with exit code -1073741571 when using AlwaysIncrementalInline
Reviewed-by: chagedorn, shade
2022-11-11 16:09:39 +00:00
Erik Gahlin
ced88a2fd9 8296733: JFR: File Read event for RandomAccessFile::write(byte[]) is incorrect
Reviewed-by: clanger, mgronlun
2022-11-11 15:49:36 +00:00
Erik Gahlin
87b809a2cb 8296229: JFR: jfr tool should print unsigned values correctly
Reviewed-by: coffeys, mgronlun
2022-11-11 14:55:41 +00:00
Erik Österlund
e7c2a8e60e 8295214: Generational ZGC: Guard nmethods from cross modifying code
Reviewed-by: dholmes, rehn
2022-11-11 14:36:02 +00:00
Yanhong Zhu
d4d183edfe 8296301: Interpreter(RISC-V): Implement -XX:+PrintBytecodeHistogram and -XX:+PrintBytecodePairHistogram options
Reviewed-by: fjiang, fyang
2022-11-11 13:57:35 +00:00
Thomas Schatzl
f75484063f 8296773: G1: Factor out hash function for G1CardSet
Reviewed-by: iwalulya, kbarrett
2022-11-11 13:53:47 +00:00
Darragh Clarke
fdabd37960 8293696: java/nio/channels/DatagramChannel/SelectWhenRefused.java fails with "Unexpected wakeup"
Reviewed-by: dfuchs, msheppar
2022-11-11 11:56:41 +00:00
Daniel Fuchs
4a300818fe 8296747: com/sun/net/httpserver/simpleserver/StressDirListings.java timed out
Reviewed-by: jpai
2022-11-11 11:23:57 +00:00
Kim Barrett
12e76cbc72 8296349: [aarch64] Avoid slicing Address::extend
Reviewed-by: aph, thartmann
2022-11-11 08:34:43 +00:00
Xiaolin Zheng
7244eac9df 8296771: RISC-V: C2: assert(false) failed: bad AD file
Reviewed-by: shade, fyang
2022-11-11 08:03:48 +00:00
David Holmes
956d75bcc0 8295099: vmTestbase/nsk/stress/strace/strace013.java failed with "TestFailure: wrong lengths of stack traces: strace013Thread0: NNN strace013Thread83: MMM"
Reviewed-by: stuefe, lmesnik
2022-11-11 03:41:54 +00:00
Vladimir Kozlov
2f9a94f41c 8296824: ProblemList compiler/jvmci/jdk.vm.ci.code.test/src/jdk/vm/ci/code/test/NativeCallTest.java
Reviewed-by: dcubed
2022-11-10 23:58:25 +00:00
Daniel D. Daugherty
43ebd96301 8296822: ProblemList jdk/jfr/api/consumer/TestRecordingFileWrite.java
Reviewed-by: naoto
2022-11-10 23:05:31 +00:00
Alexander Zuev
84e12244a4 8296496: Overzealous check in sizecalc.h prevents large memory allocation
Reviewed-by: aivanov, azvegint
2022-11-10 22:43:02 +00:00
Weijun Wang
27527b4975 8296612: CertAttrSet is useless
Reviewed-by: mullan
2022-11-10 22:23:58 +00:00
Olga Mikhaltsova
6b456f7a9b 8262901: [macos_aarch64] NativeCallTest expected:<-3.8194101E18> but was:<3.02668882E10>
Reviewed-by: aph
2022-11-10 21:06:15 +00:00
Thomas Schatzl
e1badb77fb 8295871: G1: Use different explicit claim marks for CLDs
Reviewed-by: sjohanss, ayang
2022-11-10 19:36:11 +00:00
Aleksei Efimov
9ef7852be3 8290714: Make com.sun.jndi.dns.DnsClient virtual threads friendly
Reviewed-by: dfuchs, jpai
2022-11-10 19:20:33 +00:00
Xue-Lei Andrew Fan
d6468be81f 8293886: The abstract keyword can be removed in AESCipher
Reviewed-by: ascarpino, wetmore
2022-11-10 17:51:03 +00:00
Naoto Sato
54c986e7d5 8296715: CLDR v42 update for tzdata 2022f
Reviewed-by: joehw
2022-11-10 16:51:52 +00:00
Abhishek Kumar
4a68210d9f 6972078: Can not select single directory with GTKLookAndFeel
Reviewed-by: psadhukhan, tr
2022-11-10 14:11:52 +00:00
Ludovic Henry
4465361ee9 8295948: Support for Zicbop/prefetch instructions on RISC-V
Reviewed-by: fyang, yadongwang
2022-11-10 13:37:41 +00:00
Dingli Zhang
f2acdfdcbd 8296638: RISC-V: NegVI node emits wrong code when vector element basic type is T_BYTE/T_SHORT
Reviewed-by: gcao, fyang, shade
2022-11-10 08:39:04 +00:00
Stefan Karlsson
bfc5816595 8295475: Move non-resource allocation strategies out of ResourceObj
Reviewed-by: coleenp, stuefe, rehn, dholmes
2022-11-10 08:31:37 +00:00
Adam Sotona
e802b124b7 8296196: Class.getEnumConstants() throws undocumented ClassCastException and NullPointerException
Reviewed-by: darcy
2022-11-10 06:20:57 +00:00
Sergey Bylokhov
78a08a0f21 8295430: Use cmsDoTransformLineStride instead of cmsDoTransform in the loop
Reviewed-by: prr
2022-11-10 06:18:03 +00:00
Sergey Bylokhov
f0a6e71e4d 8295812: Skip the "half float" support in LittleCMS during the build
Reviewed-by: erikj, prr, ihse
2022-11-10 06:07:58 +00:00
Prasanta Sadhukhan
79c0092125 8285635: javax/swing/JRootPane/DefaultButtonTest.java failed with Default Button not pressed for L&F: com.sun.java.swing.plaf.motif.MotifLookAndFeel
Reviewed-by: tr, jdv
2022-11-10 05:51:13 +00:00
Alexander Matveev
0981bfb1a3 8296156: [macos] Resize DMG windows and background to fit additional DMG contents
Reviewed-by: asemenyuk
2022-11-10 02:20:03 +00:00
Xiaolin Zheng
93fed9b251 8296448: RISC-V: Fix temp usages of heapbase register killed by MacroAssembler::en/decode_klass_not_null
Reviewed-by: fyang, yadongwang
2022-11-10 01:30:51 +00:00
Mikhailo Seledtsov
d6e2d0d03d 8296611: Problemlist several sun/security tests until JDK-8295343 is resolved
Reviewed-by: rhalade
2022-11-10 00:43:59 +00:00
Sean Coffey
102b2b32fe 8292033: Move jdk.X509Certificate event logic to JCA layer
Reviewed-by: mullan
2022-11-09 21:46:56 +00:00
Xin Liu
1b94ae13d3 8296139: Make GrowableBitMap the base class of all implementations
Reviewed-by: aboldtch, stefank, simonis
2022-11-09 19:51:54 +00:00
Bill Huang
cc8bf95046 8296718: Refactor bootstrap Test Common Functionalities to test/lib/Utils
Reviewed-by: sspitsyn, kevinw
2022-11-09 19:02:50 +00:00
Xue-Lei Andrew Fan
17e3412363 8296615: use of undeclared identifier 'IPV6_DONTFRAG'
Reviewed-by: michaelm
2022-11-09 17:36:12 +00:00
Xue-Lei Andrew Fan
a5d838c337 8296591: Signature benchmark
Reviewed-by: weijun
2022-11-09 17:34:36 +00:00
Weijun Wang
fa8a8668a6 8296675: Exclude linux-aarch64 in NSS tests
Reviewed-by: dcubed, mullan
2022-11-09 16:49:10 +00:00
Matthias Baesken
d4376f8b55 8296406: ChainingConstructors jtreg test reduce code duplication
Reviewed-by: mullan
2022-11-09 13:49:46 +00:00
Johan Sjölen
4a0093ccc4 8294362: UL: Replace the internal usage of manual buffers with stringStream in LogSelection
Reviewed-by: dholmes, rehn
2022-11-09 10:55:08 +00:00
Gui Cao
fef68bbaf6 8296515: RISC-V: Small refactoring for MaxReductionV/MinReductionV/AddReductionV node implementation
Reviewed-by: luhenry, dzhang, yzhu, fyang
2022-11-09 09:38:36 +00:00
Andrey Turbanov
82cbfb5fb0 8296140: Drop unused field java.util.Calendar.DATE_MASK
Reviewed-by: naoto
2022-11-09 08:58:30 +00:00
Justin Lu
fd83764981 8296239: ISO 4217 Amendment 174 Update
Reviewed-by: naoto
2022-11-09 01:18:01 +00:00
Claes Redestad
d9b25e860b 8296426: x86: Narrow UseAVX and UseSSE flags
Reviewed-by: vlivanov, kvn
2022-11-08 23:41:50 +00:00
Man Cao
8146e1af82 8296347: Memory leak from ClassPathDirEntry::_dir
Co-authored-by: Justin King <jcking@google.com>
Reviewed-by: dholmes, ccheung
2022-11-08 23:34:45 +00:00
Weijun Wang
671f84bd86 8296143: CertAttrSet's set/get mechanism is not type-safe
Reviewed-by: mullan
2022-11-08 22:35:29 +00:00
Calvin Cheung
d04d6566b0 8296433: Encountered null CLD while loading shared lambda proxy class
Reviewed-by: iklam, dholmes
2022-11-08 21:55:51 +00:00
Chris Plummer
74f2b16a8e 8295303: cleanup debug agent's confusing use of EI_GC_FINISH
Reviewed-by: amenkov, sspitsyn
2022-11-08 21:37:24 +00:00
Man Cao
0ee25de704 8296504: Memory leak in G1PLABAllocator::PLABData
Co-authored-by: Justin King <jcking@google.com>
Reviewed-by: kbarrett, tschatzl
2022-11-08 19:37:31 +00:00
Ivan Walulya
dd5d4df5b6 8295658: G1: Refactor G1SegmentedArray to indicate that it is an allocator
Reviewed-by: tschatzl, sjohanss
2022-11-08 09:02:11 +00:00
pandaapo
cf656056a3 8296445: C++ syntax error in jdwpTransport.h
Reviewed-by: cjplummer, lmesnik, sspitsyn
2022-11-08 06:28:54 +00:00
Dingli Zhang
1169dc066c 8296447: RISC-V: Make the operands order of vrsub_vx/vrsub_vi consistent with RVV 1.0 spec
Reviewed-by: luhenry, fyang
2022-11-08 02:48:19 +00:00
Feilong Jiang
4c80dff2ca 8296435: RISC-V: Small refactoring for increment/decrement
Reviewed-by: fyang
2022-11-08 01:12:35 +00:00
Chris Plummer
47d2c7b4cf 8295376: Improve debug agent virtual thread performance when no debugger is attached
Reviewed-by: sspitsyn, kevinw
2022-11-08 01:09:26 +00:00
Coleen Phillimore
76790ad242 8295673: Deprecate and disable legacy parallel class loading workaround for non-parallel-capable class loaders
Reviewed-by: mchung, dholmes
2022-11-07 23:31:21 +00:00
Ludvig Janiuk
b6738c1831 8295663: Rephrase introduction to testing.md
Reviewed-by: ihse, erikj
2022-11-07 23:12:21 +00:00
Alexander Matveev
7e85b41d37 8296154: [macos] Change "/Applications" to "Applications" in DMG image
Reviewed-by: asemenyuk
2022-11-07 20:52:57 +00:00
Vicente Romero
60db5f2ba2 8294020: improve errors for record declarations
Reviewed-by: jlahoda
2022-11-07 20:16:04 +00:00
Rajan Halade
520db1eeb1 8296485: BuildEEBasicConstraints.java test fails with SunCertPathBuilderException
Reviewed-by: weijun
2022-11-07 19:09:57 +00:00
Magnus Ihse Bursie
b29817a626 8296479: Remove stray comment about POST_STRIP_CMD
Reviewed-by: iris
2022-11-07 19:02:30 +00:00
Rajan Halade
b6ea69c06a 8296480: java/security/cert/pkix/policyChanges/TestPolicy.java is failing
Reviewed-by: xuelei, mullan
2022-11-07 18:22:08 +00:00
Andrey Turbanov
3baad069a6 8295953: Use enhanced-for cycle instead of Enumeration in sun.security
Reviewed-by: weijun
2022-11-07 16:45:39 +00:00
Matias Saavedra Silva
ba303c048e 8295893: Improve printing of Constant Pool Cache Entries
Reviewed-by: dholmes, coleenp, iklam
2022-11-07 16:15:09 +00:00
Jonathan Gibbons
f8b2574ebc 8296137: diags-examples.xml is broken
Reviewed-by: iris, vromero, ihse
2022-11-07 15:58:42 +00:00
Sean Mullan
00d22f605d 8279164: Disable TLS_ECDH_* cipher suites
Reviewed-by: xuelei, rhalade, wetmore
2022-11-07 14:07:10 +00:00
Thomas Schatzl
d634ddefdd 8295354: Remove G1 incremental non-copy time calculation
Reviewed-by: ayang, iwalulya
2022-11-07 12:30:57 +00:00
Matthias Baesken
8836b92593 8296226: Add constructors (String,Throwable) and (Throwable) to InvalidParameterException
Reviewed-by: mullan, mdoerr
2022-11-07 07:50:12 +00:00
Thomas Stuefe
51f8e9b0e1 8296443: NMT: Remove cmdline_tracking_level handling code
Reviewed-by: dholmes
2022-11-07 05:59:25 +00:00
Gui Cao
087cedc080 8295261: RISC-V: Support ReductionV instructions for Vector API
Reviewed-by: yadongwang, dzhang, fyang, eliu
2022-11-07 04:59:45 +00:00
Man Cao
556377a058 8296270: Memory leak in ClassLoader::setup_bootstrap_search_path_impl
Co-authored-by: Justin King <jcking@google.com>
Reviewed-by: dholmes, jiangli
2022-11-07 03:53:32 +00:00
lawrence.andrews
c2f7638389 8296335: Fix accessibility manual test instruction
Reviewed-by: prr, aivanov
2022-11-05 21:27:52 +00:00
Fei Yang
91292d56a9 8286301: Port JEP 425 to RISC-V
Co-authored-by: Xiaolin Zheng <xlinzheng@openjdk.org>
Reviewed-by: fjiang, xlinzheng, yadongwang, jiefu, rrich
2022-11-05 02:18:49 +00:00
Markus Karg
581133a0c8 8294696: BufferedInputStream.transferTo should drain buffer when mark set
Reviewed-by: bpb, alanb
2022-11-04 21:07:59 +00:00
Sergey Bylokhov
d8573b2c5b 8294488: Delete KCMS transforms wrappers
Reviewed-by: prr
2022-11-04 20:57:38 +00:00
Harshitha Onkar
f857f795a9 8015739: Background of JInternalFrame is located out of JInternalFrame
Reviewed-by: kizune, aivanov
2022-11-04 19:48:31 +00:00
Thomas Schatzl
b847fb6877 8296414: [BACKOUT] JDK-8295319: pending_cards_at_gc_start doesn't include cards in thread buffers
Reviewed-by: lkorinth
2022-11-04 18:22:55 +00:00
Brian Burkhalter
5b7e70645b 8295753: (fs) UnixPath::toRealPath does not return correct case when links not followed
Reviewed-by: alanb
2022-11-04 17:32:32 +00:00
Jonathan Gibbons
82f9819eac 8294536: Update troff form of man page for new --spec-base-url option
Reviewed-by: hannesw
2022-11-04 17:29:25 +00:00
Bhavana Kilambi
b49bdaeade 8294816: C2: Math.min/max vectorization miscompilation
Reviewed-by: thartmann, ngasson
2022-11-04 17:22:54 +00:00
Leonid Mesnik
c206f28629 8283101: serviceability/jvmti/thread/GetFrameCount/framecnt01/framecnt01.java failing #VirtualThread-Frozen: number of frames expected: 14, got: 9
Reviewed-by: sspitsyn, kevinw
2022-11-04 17:01:57 +00:00
Joe Darcy
97c5a64d5c 8296287: Improve documentation for Types.directSupertypes()
Reviewed-by: jlahoda, prappo
2022-11-04 16:22:09 +00:00
Hannes Wallnöfer
f9c7cdaed6 8294109: JavaDoc search should search whole index
Reviewed-by: jjg
2022-11-04 16:00:36 +00:00
Hannes Wallnöfer
5622b09565 8200337: Generalize see and link tags for user-defined anchors
Reviewed-by: jjg
2022-11-04 14:57:43 +00:00
Renjith
22347e46f7 8277775: Fixup bugids in RemoveDropTargetCrashTest.java - add 4357905
Reviewed-by: prr, aivanov
2022-11-04 12:35:39 +00:00
Albert Mingkun Yang
12316829b4 8296305: Remove unimplemented deoptimized_wrt_marked_nmethods
Reviewed-by: dholmes
2022-11-04 11:14:39 +00:00
Albert Mingkun Yang
3378bfe439 8296224: G1: Remove unnecessary update in VM_G1CollectForAllocation
Reviewed-by: kbarrett, tschatzl
2022-11-04 11:13:42 +00:00
Stefan Karlsson
8ee0f7d598 8296231: Fix MEMFLAGS for CHeapBitMaps
Reviewed-by: coleenp, dholmes
2022-11-04 09:36:26 +00:00
Tobias Holenstein
bd729e6906 8296380: IGV: Shortcut for quick search not working
Reviewed-by: chagedorn
2022-11-04 09:32:53 +00:00
Dingli Zhang
c116ae75a7 8295967: RISC-V: Support negVI/negVL instructions for Vector API
Reviewed-by: yadongwang, fyang
2022-11-04 09:08:26 +00:00
Yoshiki Sato
9d3b4ef2ad 8296108: (tz) Update Timezone Data to 2022f
Reviewed-by: serb, naoto
2022-11-04 02:23:17 +00:00
Fei Yang
4d1bc1b5ad 8296285: test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java fails after JDK-8280378
Reviewed-by: jiefu, thartmann, chagedorn
2022-11-04 00:56:47 +00:00
Kim Barrett
034980393f 8295319: pending_cards_at_gc_start doesn't include cards in thread buffers
Reviewed-by: iwalulya, tschatzl
2022-11-03 23:35:37 +00:00
Ioi Lam
8f6c048911 8296337: CDS SharedArchiveConsistency tests fail after JDK-8296157
Reviewed-by: ccheung
2022-11-03 22:30:28 +00:00
Matias Saavedra Silva
a8070fba21 8296157: Rename FileMapInfo::space_at() to region_at()
Reviewed-by: iklam, ccheung
2022-11-03 21:24:12 +00:00
Yi-Fan Tsai
f43bb9feaa 8296190: TestMD5Intrinsics and TestMD5MultiBlockIntrinsics don't test the intrinsics
Reviewed-by: eastigeevich, phh, simonis
2022-11-03 19:26:20 +00:00
Harshitha Onkar
b685fc2de4 8295685: Update Libpng to 1.6.38
Reviewed-by: prr, azvegint
2022-11-03 18:28:54 +00:00
Coleen Phillimore
94eb25a4f1 8256072: Eliminate JVMTI tagmap rehashing
Reviewed-by: kbarrett, eosterlund
2022-11-03 17:27:00 +00:00
Daniel Fuchs
4338f527aa 8294241: Deprecate URL public constructors
Reviewed-by: joehw, prr, alanb, aefimov, michaelm
2022-11-03 17:18:14 +00:00
Lance Andersen
68209adfa7 8288232: Address typos in jar man page
Reviewed-by: joehw, naoto, bpb
2022-11-03 17:05:28 +00:00
Joe Wang
2ff9d3af81 8294858: XMLStreamReader does not respect jdk.xml.maxXMLNameLimit=0 for namespace names
Reviewed-by: lancea, naoto
2022-11-03 17:04:14 +00:00
Lance Andersen
72f74df49a 8292427: Improve specification of InflaterInputStream.fill()
Reviewed-by: bpb, alanb, simonis
2022-11-03 17:02:33 +00:00
Stuart Marks
53905e600a 8178355: IdentityHashMap uses identity-based comparison for values everywhere except remove(K,V) and replace(K,V,V)
Reviewed-by: smarks
2022-11-03 16:36:29 +00:00
Brian Burkhalter
25dfcbdea5 8289689: (fs) Re-examine the need for normalization to Unicode Normalization Format D (macOS)
Reviewed-by: jpai, alanb
2022-11-03 15:47:51 +00:00
Magnus Ihse Bursie
b7442d12e2 8295653: Add a graph of the sealed class hierarchy for marked classes
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Reviewed-by: erikj, jjg
2022-11-03 14:51:24 +00:00
Martin Doerr
59a13b1856 8295872: [PPC64] JfrGetCallTrace: Need pc == nullptr check before frame constructor
Reviewed-by: shade, lucy, mbaesken
2022-11-03 14:29:51 +00:00
ravi.ra.gupta
2a79dfc1f9 8295774: Write a test to verify List sends ItemEvent/ActionEvent
Reviewed-by: serb, aivanov
2022-11-03 13:39:00 +00:00
Erik Österlund
cc3c5a18ed 8296101: nmethod::is_unloading result unstable with concurrent unloading
Reviewed-by: kbarrett, dlong
2022-11-03 13:31:07 +00:00
Jie Fu
d771abb2fb 8295970: Add vector api sanity tests in tier1
Reviewed-by: shade, erikj, kvn
2022-11-03 12:13:10 +00:00
Vicente Romero
7a85441a85 8232933: Javac inferred type does not conform to equality constraint
Reviewed-by: mcimadamore
2022-11-03 12:08:23 +00:00
Claes Redestad
6ee8ccfcfe 8296168: x86: Add reasonable constraints between AVX and SSE
Reviewed-by: kvn, vlivanov
2022-11-03 12:05:13 +00:00
Emanuel Peter
19507470c4 8279913: obsolete ExtendedDTraceProbes
Reviewed-by: thartmann, chagedorn
2022-11-03 07:10:48 +00:00
David Holmes
13b20e0e6d 8296262: Remove dead code from InstanceKlass::signature_name()
Reviewed-by: iklam
2022-11-03 02:27:30 +00:00
Jonathan Gibbons
fd60036a34 8296188: Update style and header in JDWP Protocol spec and JVMTI spec
Reviewed-by: erikj
2022-11-02 21:12:25 +00:00
Kim Barrett
c7b95a895f 8296163: [aarch64] Cleanup Pre/Post addressing mode classes
Reviewed-by: chagedorn, aph
2022-11-02 20:29:58 +00:00
Justin Lu
f84b0ad07c 8295670: Remove duplication in java/util/Formatter/Basic*.java
Reviewed-by: bchristi, lancea, naoto
2022-11-02 17:30:02 +00:00
Julian Waters
a124d8e047 8296115: Allow for compiling the JDK with strict standards conformance
8241499: Enable new "permissive-" for standard C++ compliance on Visual Studio if possible

Reviewed-by: erikj, ihse
2022-11-02 17:03:19 +00:00
Erik Österlund
491d43c187 8289838: ZGC: OOM before clearing all SoftReferences
Reviewed-by: ayang, tschatzl
2022-11-02 16:36:38 +00:00
Tobias Holenstein
a1c349f8b3 8290063: IGV: Give the graphs a unique number in the outline
Reviewed-by: thartmann, chagedorn
2022-11-02 16:05:58 +00:00
Tobias Holenstein
b807470af4 8296235: IGV: Change shortcut to delete graph from ctrl+del to del
Reviewed-by: chagedorn, thartmann
2022-11-02 16:00:37 +00:00
Daniel Fuchs
e15d2419ab 8295991: java/net/httpclient/CancelRequestTest.java fails intermittently
Reviewed-by: jpai
2022-11-02 15:31:50 +00:00
Weijun Wang
16a041a67a 8296142: CertAttrSet::(getName|getElements|delete) are mostly useless
Reviewed-by: mullan
2022-11-02 14:40:47 +00:00
Thomas Schatzl
6626a29a74 8294845: Make globals accessed by G1 young gen revising atomic
Reviewed-by: iwalulya, kbarrett
2022-11-02 13:30:37 +00:00
Julian Waters
dac6ecc857 8295990: Improve make handling of strip flags
Reviewed-by: erikj
2022-11-02 13:07:20 +00:00
Albert Mingkun Yang
38c1f2a70e 8296130: G1: Remove G1YoungCollector::_target_pause_time_ms
Reviewed-by: iwalulya, kbarrett
2022-11-02 13:01:12 +00:00
Dingli Zhang
2bd24c4542 8295968: RISC-V: Rename some assembler intrinsic functions for RVV 1.0
Reviewed-by: fyang
2022-11-02 12:34:23 +00:00
Ivan Walulya
1a58cb1c02 8233697: CHT: Iteration parallelization
Reviewed-by: tschatzl, rehn
2022-11-02 11:38:45 +00:00
Roman Kennke
7619602c36 8296136: Use correct register in aarch64_enc_fast_unlock()
Reviewed-by: aph, fyang
2022-11-02 11:32:14 +00:00
Renjith
47d513baa2 8252075: Documentation error in LayoutManager2 interface
Reviewed-by: aivanov
2022-11-02 11:11:35 +00:00
Thomas Schatzl
8de3edac6d 8295476: Split G1 cost per byte predictor on gc phase
Reviewed-by: ayang, iwalulya, kbarrett
2022-11-02 09:35:24 +00:00
Xiaolin Zheng
2634eff24f 8295646: Ignore zero pairs in address descriptors read by dwarf parser
Reviewed-by: chagedorn
2022-11-02 09:09:39 +00:00
Brian Burkhalter
50d91a31d4 8057113: (fs) Path should have a method to obtain the filename extension
Reviewed-by: rriggs, lancea, mr, alanb
2022-11-01 21:35:54 +00:00
Jonathan Gibbons
d17bf51f91 8295914: Add a header to generated HTML files in specs
Reviewed-by: erikj, iris
2022-11-01 18:39:50 +00:00
Rajat Mahajan
9911405e54 8282958: Rendering issues of borders, TextFields on Windows High-DPI systems
Co-authored-by: Alexey Ivanov <aivanov@openjdk.org>
Reviewed-by: aivanov, honkar, kizune
2022-11-01 18:38:00 +00:00
Kim Barrett
2fb64a4a4f 8296162: [aarch64] Remove unused Address::_is_lval
Reviewed-by: chagedorn, aph
2022-11-01 17:15:19 +00:00
Kim Barrett
15b8b45178 8296161: [aarch64] Remove unused "pcrel" addressing mode tag
Reviewed-by: chagedorn, aph
2022-11-01 16:59:17 +00:00
Christian Hagedorn
f829b5a73f 8280378: [IR Framework] Support IR matching for different compile phases
Reviewed-by: kvn, rcastanedalo
2022-11-01 15:41:09 +00:00
Weijun Wang
da0ae5128a 8296167: test/langtools/tools/jdeps/jdkinternals/ShowReplacement.java failing after JDK-8296072
Reviewed-by: alanb
2022-11-01 15:14:19 +00:00
Weijun Wang
0d0bd7bd40 8296072: CertAttrSet::encode and DerEncoder::derEncode should write into DerOutputStream
Reviewed-by: xuelei, mullan
2022-11-01 12:49:11 +00:00
Dean Long
37107fc157 8296007: crash in runtime/DefineClass/NullClassBytesTest.java
Reviewed-by: dcubed, dholmes
2022-11-01 00:46:24 +00:00
Brian Burkhalter
4999f2cb16 8156593: DataOutput.write(byte[],int,int) and its implementations do not specify index out bounds
Reviewed-by: alanb, aturbanov
2022-10-31 22:18:26 +00:00
Mark Powers
8480f87044 8291974: PrivateCredentialPermission should not use local variable to enable debugging
Reviewed-by: mullan
2022-10-31 19:55:47 +00:00
Naoto Sato
590de37bd7 8284842: Update Unicode Data Files to Version 15.0.0
8284844: Update ICU4J to Version 72.1

Reviewed-by: joehw
2022-10-31 17:57:30 +00:00
Sean Mullan
16744b3449 8256660: Disable DTLS 1.0
Reviewed-by: xuelei, hchao, wetmore
2022-10-31 16:46:40 +00:00
Tyler Steele
f4d8c20c3b 8294729: [s390] Implement nmethod entry barriers
Reviewed-by: mdoerr, eosterlund
2022-10-31 15:58:44 +00:00
Coleen Phillimore
7e88209e6c 8295964: Move InstanceKlass::_misc_flags
Reviewed-by: sspitsyn, dholmes
2022-10-31 13:00:09 +00:00
Prasanta Sadhukhan
91072ee393 5074006: Swing JOptionPane shows </html> tag as a string after newline
8042134: JOptionPane bungles HTML messages

Reviewed-by: jdv, tr
2022-10-31 12:30:23 +00:00
Matthias Baesken
274ea1db5b 8295993: use K instead of 1024 in a couple of hotspot outputs
Reviewed-by: lucy, dholmes
2022-10-31 09:09:43 +00:00
David Holmes
9b9be88bca 8295125: os::signal should be os specific
Reviewed-by: jsjolen, kbarrett
2022-10-31 05:55:54 +00:00
Phil Race
f8cc067792 8296087: Problem list headful tests which may fail on Linux VMs
Reviewed-by: jdv
2022-10-31 05:19:11 +00:00
Andrey Turbanov
2e7163759c 8282463: javax/sound/sampled/Clip/DataPusherThreadCheck.java fails
Reviewed-by: prr, serb
2022-10-30 17:33:12 +00:00
Boris Ulasevich
f3ca0cab75 8293999: [JVMCI] need support for aligned constants in generated code larger than 8 bytes
Reviewed-by: dlong, dnsimon
2022-10-29 14:08:30 +00:00
Vladimir Kozlov
8aa1526b44 8285835: SIGSEGV in PhaseIdealLoop::build_loop_late_post_work
Reviewed-by: roland, vlivanov
2022-10-29 12:32:36 +00:00
Roman Kennke
a44ebd5fbc 8295849: Consolidate Threads::owning_thread*
Reviewed-by: dcubed, sspitsyn
2022-10-28 20:23:21 +00:00
Chris Plummer
1c86cf5507 8294672: Typo in description of JDWP VirtualMachine/AllThreads command
Reviewed-by: jpai, dholmes
2022-10-28 17:27:52 +00:00
bobpengxie
823fd4a9df 8293785: Add a jtreg test for TraceOptoParse
Reviewed-by: chagedorn, jiefu
2022-10-28 13:18:39 +00:00
Jie Fu
754bd53137 8296030: compiler/c2/irTests/TestVectorizeTypeConversion.java fails with release VMs after JDK-8291781
Reviewed-by: chagedorn
2022-10-28 12:46:32 +00:00
Xiaolin Zheng
1fdbb1ba33 8295926: RISC-V: C1: Fix LIRGenerator::do_LibmIntrinsic
Reviewed-by: yadongwang, fyang
2022-10-28 11:56:21 +00:00
SuperCoder79
cf5546b3ac 8291336: Add ideal rule to convert floating point multiply by 2 into addition
Reviewed-by: qamai, thartmann, chagedorn
2022-10-28 10:04:38 +00:00
Fei Gao
4b89fce083 8291781: assert(!is_visited) failed: visit only once with -XX:+SuperWordRTDepCheck
Reviewed-by: thartmann
2022-10-28 07:27:02 +00:00
Matthias Baesken
d5d34241e2 8295405: Add cause in a couple of IllegalArgumentException and InvalidParameterException shown by sun/security/pkcs11 tests
Reviewed-by: mdoerr, mullan
2022-10-28 07:04:27 +00:00
Ioi Lam
fd668dc44f 8295537: Enhance TRACE_METHOD_LINKAGE to show the target MethodHandle
Reviewed-by: jvernee, redestad, mchung
2022-10-27 22:07:54 +00:00
Michael McMahon
182c215888 8295994: Remove left over InetAddressContainer class
Co-authored-by: Andrey Turbanov <aturbanov@openjdk.org>
Reviewed-by: dfuchs
2022-10-27 21:05:44 +00:00
Justin Lu
78763fc8e0 8295000: java/util/Formatter/Basic test cleanup
Reviewed-by: bchristi, naoto, lancea
2022-10-27 20:55:26 +00:00
Andrey Turbanov
907d583376 8295323: Unnecessary HashTable usage in StyleSheet
Reviewed-by: aivanov, prr
2022-10-27 19:00:53 +00:00
Sean Mullan
2157145766 8293858: Change PKCS7 code to use default SecureRandom impl instead of SHA1PRNG
Reviewed-by: weijun, xuelei
2022-10-27 17:30:11 +00:00
Archie L. Cobbs
b8ad6cd98a 8294461: wrong effectively final determination by javac
Reviewed-by: vromero
2022-10-27 15:58:46 +00:00
Brian Burkhalter
d6678952a6 8294399: (ch) Refactor some methods out of sun.nio.ch.UnixFileDispatcherImpl
Reviewed-by: alanb
2022-10-27 15:35:24 +00:00
Kevin Walls
628820f47e 8283093: JMX connections should default to using an ObjectInputFilter
Reviewed-by: dfuchs, sspitsyn
2022-10-27 08:24:01 +00:00
Ioi Lam
521e71222a 8286431: Do not use resource array in posix mmap_attach_shared()
Reviewed-by: dholmes, jsjolen
2022-10-27 05:14:22 +00:00
Srikanth Adayapalam
4d9a1cd26f 8292159: TYPE_USE annotations on generic type arguments of record components discarded
Reviewed-by: vromero
2022-10-27 04:56:22 +00:00
Tejesh R
210fe49e25 6244831: JFileChooser does not have tooltip for Desktop, Recent etc ToggleButton on Windows Look and feel
Reviewed-by: psadhukhan
2022-10-27 04:37:06 +00:00
Chris Plummer
c2d7a35a4b 8269235: serviceability/sa/ClhsdbJstackXcompStress.java timed out
Reviewed-by: dcubed
2022-10-26 22:58:47 +00:00
Igor Veresov
58a7141a0d 8295066: Folding of loads is broken in C2 after JDK-8242115
Reviewed-by: kvn, thartmann
2022-10-26 20:45:26 +00:00
Coleen Phillimore
a8450b37ee 8295713: runtime/ParallelLoad/SuperWait/SuperWaitTest.java fails intermittently on Windows
Reviewed-by: pchilanomate, dholmes
2022-10-26 17:28:44 +00:00
Andrey Turbanov
46e6aee0d0 8295823: Use enhanced-for cycle instead of Enumeration in java.naming
Reviewed-by: aefimov, dfuchs, vtewari
2022-10-26 16:50:31 +00:00
Mark Powers
8e5d680a98 8293093: NPE in P11KeyStore.getID
Reviewed-by: ascarpino, xuelei
2022-10-26 15:53:52 +00:00
Tobias Holenstein
3135914362 8265441: IGV: select block nodes by clicking on it
Reviewed-by: rcastanedalo, thartmann
2022-10-26 14:04:38 +00:00
Erik Gahlin
78454b69da 8295879: JFR: Remove warnings in the jdk.jfr module
Reviewed-by: mgronlun
2022-10-26 09:33:43 +00:00
Albert Mingkun Yang
33ff80dd7a 8295402: G1: Tighten assertion in G1ScanHRForRegionClosure::scan_heap_roots
Reviewed-by: tschatzl, iwalulya
2022-10-26 09:25:40 +00:00
Albert Mingkun Yang
303548babc 8294752: G1: Remove redundant checks in check_obj_during_refinement
Reviewed-by: tschatzl, iwalulya
2022-10-26 09:16:15 +00:00
Thomas Stuefe
cf121df17e 8295889: NMT preinit code does not handle allocation errors
Reviewed-by: dholmes, mbaesken
2022-10-26 08:35:05 +00:00
Aleksey Shipilev
772be2e02b 8295868: 32-bit Windows build failures after JDK-8294466
Reviewed-by: erikj
2022-10-26 08:10:42 +00:00
Zixian Cai
e173fd7922 8295885: GHA: Bump gcc versions
Reviewed-by: shade
2022-10-26 07:59:44 +00:00
Matthias Baesken
b2878c904b 8295710: remove os::dll_file_extension
Reviewed-by: dholmes, mdoerr, lucy
2022-10-26 06:35:20 +00:00
Andrey Turbanov
e3a5a34c4d 8295767: Remove unused fields in sun.awt.geom.Edge
Reviewed-by: prr
2022-10-26 06:07:23 +00:00
Erik Gahlin
324bec19aa 8295863: JFR: Use expected size for Maps and Sets
Reviewed-by: mgronlun
2022-10-26 03:04:14 +00:00
Leonid Mesnik
3bd3caf897 8294486: Remove vmTestbase/nsk/jvmti/ tests ported to serviceability/jvmti.
Reviewed-by: sspitsyn
2022-10-25 22:48:00 +00:00
Chris Plummer
fec61746d1 8295816: jdwp jck tests failing with "FATAL ERROR in native method: JDWP SetTag, jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)"
8295815: misc JDI tests failed with "JDWP exit error JVMTI_ERROR_WRONG_PHASE(112)"

Reviewed-by: sspitsyn, amenkov, dcubed
2022-10-25 22:14:36 +00:00
Ludovic Henry
e0c29307f7 8295282: Use Zicboz/cbo.zero to zero-out memory on RISC-V
Reviewed-by: yadongwang, vkempik, fyang
2022-10-25 20:11:48 +00:00
Justin Lu
d393e051e6 8294989: ResourceBundle naming convention issue in JdbcRowSetResourceBundle.java
Reviewed-by: naoto, lancea, bchristi
2022-10-25 19:21:34 +00:00
Calvin Cheung
0caea818b5 8295895: build error after JDK-8279366
Reviewed-by: dcubed
2022-10-25 18:54:48 +00:00
Thomas Schatzl
ee0dec8bf5 8295838: Document why we do not print Code Cache Roots phase in G1 logging
Reviewed-by: ayang, iwalulya
2022-10-25 18:51:43 +00:00
Thomas Schatzl
ef606086a9 8295732: Directly embed TruncatedSeqs in G1Analytics
Reviewed-by: iwalulya, sjohanss
2022-10-25 18:50:08 +00:00
Thomas Schatzl
3e49f8fd28 8295839: G1: Single threaded phases (within parallel phases) report as using multiple threads in logs
Reviewed-by: ayang, iwalulya
2022-10-25 18:49:06 +00:00
Calvin Cheung
427f50624f 8279366: CDS should allow alternative locations for JAR files in classpath
Reviewed-by: iklam, coleenp
2022-10-25 17:52:18 +00:00
Kim Barrett
3a873d3c5b 8295808: GrowableArray should support capacity management
Reviewed-by: aboldtch, tschatzl, sspitsyn
2022-10-25 17:42:48 +00:00
Chris Plummer
6289600fe8 8295810: cleanup debug agent removeThread() api
Reviewed-by: kevinw, sspitsyn, amenkov
2022-10-25 16:28:57 +00:00
Thomas Schatzl
5c4d99a051 8295118: G1: Clear CLD claim marks concurrently
Reviewed-by: iwalulya, sjohanss, ayang
2022-10-25 16:21:18 +00:00
Erik Joelsson
af2de975cb 8287754: Update jib GNU make dependency on Windows to latest cygwin build
Reviewed-by: djelinski, ihse, mikael
2022-10-25 12:44:23 +00:00
Kevin Walls
9051dded84 8294993: LingeredApp test update
Reviewed-by: cjplummer, amenkov
2022-10-25 11:44:39 +00:00
Thomas Schatzl
f37a6055c4 8295212: G1: Add wrapper for TruncatedSeqs that need separation by gc phase
Reviewed-by: iwalulya, sjohanss
2022-10-25 10:18:44 +00:00
Sergey Bylokhov
6673cd8577 8295554: Move the "sizecalc.h" to the correct location
Reviewed-by: erikj, ihse, prr, kizune, aivanov
2022-10-25 09:45:33 +00:00
Daniel Jeliński
706d1b7508 8295798: (ch) Test java/nio/channels/Channels/ReadXBytes.java is very slow on Windows
Reviewed-by: alanb, bpb
2022-10-25 07:25:07 +00:00
Ioi Lam
89dafc002f 8292699: Improve printing of classes in native debugger
Reviewed-by: coleenp
2022-10-24 22:17:51 +00:00
Daniel D. Daugherty
7520d0a725 8295855: ProblemList jdk/jshell/CommandCompletionTest.java on linux-all
Reviewed-by: dholmes
2022-10-24 21:39:16 +00:00
Magnus Ihse Bursie
1d15e5cdd6 8295716: Minimize disabled warnings in security libs
Reviewed-by: erikj
2022-10-24 20:47:24 +00:00
Magnus Ihse Bursie
8c86e92535 8295847: slow debug build error after JDK-8294466
Reviewed-by: erikj, dcubed
2022-10-24 20:32:31 +00:00
Vladimir Kozlov
e122321cb5 8295844: jdk/test/whitebox/CPUInfoTest.java failed with "not all features are known: expected true, was false"
Reviewed-by: tschatzl, dnsimon
2022-10-24 19:11:56 +00:00
Alexey Ivanov
df81b3c66a 8295738: Automate javax/swing/JFileChooser/FileSizeCheck.java
Reviewed-by: serb
2022-10-24 17:39:57 +00:00
Alexey Ivanov
68cf248b44 8295298: Automate javax/swing/JFileChooser/FileViewNPETest.java
Reviewed-by: tr, serb
2022-10-24 17:29:51 +00:00
Matias Saavedra Silva
fefbddf835 8291443: Obsolete the PrintSharedDictionary flag
Reviewed-by: dholmes, iklam
2022-10-24 16:08:51 +00:00
Naoto Sato
5b3de6e143 8284840: Update CLDR to Version 42.0
Reviewed-by: erikj, iris, joehw
2022-10-24 15:48:38 +00:00
Daniel Jeliński
2f3f3b6185 8295792: Clean up old async close code
Reviewed-by: alanb
2022-10-24 15:25:48 +00:00
Tobias Holenstein
5ac6f185ee 8290010: IGV: Fix UndoRedo Action
Reviewed-by: thartmann, rcastanedalo
2022-10-24 15:04:35 +00:00
Tobias Holenstein
c055dfc3ce 8294565: IGV: ClassCastException when clicking on an edge in the graph
Reviewed-by: rcastanedalo, thartmann
2022-10-24 14:17:33 +00:00
Tobias Holenstein
3898385788 8295461: IGV: Wrong src/dest nodes highlighted for edge
Reviewed-by: thartmann, rcastanedalo
2022-10-24 14:14:12 +00:00
Matthias Neugschwandtner
d50b6eb342 8295776: [JVMCI] Add x86 CPU flags for MPK and CET
Reviewed-by: kvn, dnsimon
2022-10-24 12:09:05 +00:00
Michael McMahon
5596d9ad5c 8288493: Document JDK specific system properties in jdk.httpserver
Reviewed-by: dfuchs, jpai, aefimov
2022-10-24 11:40:15 +00:00
Magnus Ihse Bursie
7a49c9baa1 8295717: Minimize disabled warnings in accessibility native code
Reviewed-by: erikj, prr
2022-10-24 10:01:04 +00:00
Magnus Ihse Bursie
74606614e0 8294466: Minimize disabled warnings in java.desktop
Reviewed-by: erikj, prr
2022-10-24 09:50:58 +00:00
Johan Sjölen
89a94d0502 8293873: Centralize the initialization of UL
Reviewed-by: stuefe, rehn
2022-10-24 09:12:59 +00:00
Richard Reingruber
08d3ef4fe6 8295413: com/sun/jdi/EATests.java fails with compiler flag -XX:+StressReflectiveCode
Reviewed-by: lmesnik, kvn, sspitsyn
2022-10-24 08:00:06 +00:00
Daniel Jeliński
65c84e0cf8 8295777: java/net/httpclient/ConnectExceptionTest.java should not rely on system resolver
Reviewed-by: dfuchs, jpai
2022-10-24 06:08:40 +00:00
Daniel Jeliński
329b49a938 8266900: java/net/httpclient/ShortResponseBody.java fails on windows with java.io.IOException: Unable to establish loopback connection
Reviewed-by: dfuchs
2022-10-24 06:07:10 +00:00
Ioi Lam
aad81f2eba 8293979: Resolve JVM_CONSTANT_Class references at CDS dump time
Reviewed-by: coleenp, ccheung
2022-10-23 23:26:05 +00:00
Jie Fu
7cbf6721dc 8295811: serviceability/sa/TestObjectAlignment.java fails on x86_32
Reviewed-by: cjplummer
2022-10-23 04:01:16 +00:00
Jie Fu
adad59ee11 8295762: [Vector API] Update generate_iota_indices for x86_32 after JDK-8293409
Reviewed-by: xgong, kvn
2022-10-22 03:50:41 +00:00
Dean Long
b5efa2afe2 8294538: missing is_unloading() check in SharedRuntime::fixup_callers_callsite()
Reviewed-by: kvn, thartmann, eosterlund
2022-10-22 02:11:55 +00:00
Alex Menkov
6acbdb59da 8295427: popframe004: report more details on error
Reviewed-by: cjplummer, lmesnik, sspitsyn
2022-10-22 00:18:39 +00:00
Justin Lu
902162ca9f 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher
Reviewed-by: lancea, bchristi, naoto
2022-10-21 22:59:18 +00:00
Jonathan Gibbons
f5dabf9440 8295088: Update External Spec page to show tabs for hosts
Reviewed-by: hannesw
2022-10-21 19:27:54 +00:00
Chris Plummer
218104247e 8295375: debug agent class tracking should not piggy back on the cbClassPrepare() callback
Reviewed-by: amenkov, sspitsyn
2022-10-21 18:34:43 +00:00
Erik Gahlin
f41711ef63 8295650: JFR: jfr scrub should warn if an event type doesn't exist
Reviewed-by: mgronlun
2022-10-21 17:14:24 +00:00
Lance Andersen
0c13d66622 8295530: Update Zlib Data Compression Library to Version 1.2.13
Reviewed-by: alanb, jpai
2022-10-21 10:45:54 +00:00
Boris Ulasevich
15bebf922f 8295666: Linux x86 build fails after 8292591
Reviewed-by: dholmes, shade
2022-10-21 08:59:24 +00:00
Boris Ulasevich
50647187e8 8294460: CodeSection::alignment checks for CodeBuffer::SECT_STUBS incorrectly
Reviewed-by: phh, kvn
2022-10-21 08:57:20 +00:00
Jaikiran Pai
8b010e014c 8030616: sun/management/jmxremote/bootstrap/RmiBootstrapTest fails intermittently with cannot find a free port
Reviewed-by: sspitsyn, msheppar
2022-10-21 08:29:09 +00:00
Magnus Ihse Bursie
b35922be6d 8295714: GHA ::set-output is deprecated and will be removed
Reviewed-by: shade
2022-10-21 08:23:45 +00:00
Aleksey Shipilev
dfd2d83144 8295657: SA: Allow larger object alignments
Reviewed-by: stuefe, cjplummer
2022-10-21 08:15:49 +00:00
Erik Gahlin
a345df20d0 8280131: jcmd reports "Module jdk.jfr not found." when "jdk.management.jfr" is missing
Reviewed-by: mgronlun, alanb
2022-10-21 08:14:24 +00:00
Fei Yang
ef62b614d1 8295703: RISC-V: Remove implicit noreg temp register arguments in MacroAssembler
Reviewed-by: shade, fjiang
2022-10-21 02:29:45 +00:00
Alex Menkov
6240431b38 8295697: Resolve conflicts between serviceability/jvmti and nsk/jvmti shared code
Reviewed-by: lmesnik, sspitsyn, cjplummer
2022-10-20 23:41:54 +00:00
Kim Barrett
1164258ec7 8295124: Atomic::add to pointer type may return wrong value
Reviewed-by: tschatzl, coleenp
2022-10-20 22:24:53 +00:00
Dean Long
d3eba859f9 8295414: [Aarch64] C2: assert(false) failed: bad AD file
Reviewed-by: kvn, chagedorn, aph
2022-10-20 21:24:36 +00:00
Kim Barrett
028e8b3d5e 8137022: Concurrent refinement thread adjustment and (de-)activation suboptimal
8155996: Improve concurrent refinement green zone control
8134303: Introduce -XX:-G1UseConcRefinement

Reviewed-by: sjohanss, tschatzl, iwalulya, ayang
2022-10-20 20:29:19 +00:00
Magnus Ihse Bursie
faa6b66257 8295715: Minimize disabled warnings in serviceability libs
Reviewed-by: cjplummer, erikj
2022-10-20 18:51:34 +00:00
Magnus Ihse Bursie
de1e0c57a7 8295719: Remove unneeded disabled warnings in jdk.sctp
Reviewed-by: erikj, dfuchs
2022-10-20 18:48:08 +00:00
Joe Darcy
9612cf998a 8295529: Add link to JBS to README.md
Reviewed-by: jpai
2022-10-20 17:30:11 +00:00
Naoto Sato
b37421e757 8295564: Norwegian Nynorsk Locale is missing formatting
Reviewed-by: iris, joehw
2022-10-20 15:59:22 +00:00
Vicente Romero
6707bfbc15 8029633: Raw inner class constructor ref should not perform diamond inference
Reviewed-by: jlahoda
2022-10-20 15:43:10 +00:00
Jan Lahoda
7bc9692a51 8294670: Enhanced switch statements have an implicit default which does not complete normally
Reviewed-by: vromero
2022-10-20 15:21:26 +00:00
Vicente Romero
95dd376ba2 8291914: generated constructors are considered compact when they shouldn't
Reviewed-by: darcy, jlahoda
2022-10-20 14:58:56 +00:00
Archie L. Cobbs
9b971626f7 7039014: Confusing error message for method conflict
Reviewed-by: vromero
2022-10-20 13:58:09 +00:00
Jan Lahoda
78dc497786 8294550: Sealed check for casts isn't applied to array components
Reviewed-by: vromero
2022-10-20 13:01:12 +00:00
Raffaello Giulietti
c08ff2c7b8 8294705: Disable an assertion in test/jdk/java/util/DoubleStreamSums/CompensatedSums.java
Reviewed-by: bpb
2022-10-20 10:47:39 +00:00
Magnus Ihse Bursie
d5a1521fde 8295470: Update openjdk.java.net => openjdk.org URLs in test code
Reviewed-by: michaelm, prr, darcy
2022-10-20 10:33:18 +00:00
Daniel Fuchs
9d0cfd1130 8294948: Document IllegalArgumentException and NullPointerException thrown by URLStreamHandler::parseURL and URLStreamHandler::setURL
Reviewed-by: jpai, aefimov, alanb, michaelm
2022-10-20 08:54:45 +00:00
Daniel Fuchs
dcd46501e6 8294916: Cancelling a request must eventually cause its response body subscriber to be unregistered
Reviewed-by: michaelm, jpai
2022-10-20 08:48:40 +00:00
Aleksey Shipilev
4f994c0370 8295709: Linux AArch64 builds broken after JDK-8294438
Reviewed-by: dholmes, aph
2022-10-20 07:58:35 +00:00
Aleksey Shipilev
545021b18d 8294438: Fix misleading-indentation warnings in hotspot
Reviewed-by: ihse, dholmes, coleenp
2022-10-20 07:16:41 +00:00
Serguei Spitsyn
c5e0464098 8291456: com/sun/jdi/ClassUnloadEventTest.java failed with: Wrong number of class unload events: expected 10 got 4
Reviewed-by: cjplummer, amenkov
2022-10-20 01:18:39 +00:00
Ioi Lam
8d4c077218 8295302: Do not use ArrayList when LambdaForm has a single ClassData
Reviewed-by: vlivanov, redestad, mchung
2022-10-19 21:11:36 +00:00
Coleen Phillimore
017e7988b1 8293939: Move continuation_enter_setup and friends
Reviewed-by: dlong, pchilanomate
2022-10-19 20:12:48 +00:00
Joshua Cao
f872467d69 8255746: Make PrintCompilation available on a per method level
Reviewed-by: chagedorn, kvn, xliu
2022-10-19 19:40:18 +00:00
Aleksey Shipilev
388a56e4c4 8294467: Fix sequence-point warnings in Hotspot
Reviewed-by: dholmes, thartmann, roland
2022-10-19 18:52:10 +00:00
Aleksey Shipilev
ceb5b08964 8294468: Fix char-subscripts warnings in Hotspot
Reviewed-by: dholmes, kbarrett
2022-10-19 18:51:14 +00:00
Quan Anh Mai
7b1c6767fc 8295662: jdk/incubator/vector tests fail "assert(VM_Version::supports_avx512vlbw()) failed"
Reviewed-by: chagedorn, thartmann
2022-10-19 16:39:25 +00:00
Daniel D. Daugherty
5eaf568665 8295668: validate-source failure after JDK-8290011
Reviewed-by: chagedorn
2022-10-19 16:32:18 +00:00
Naoto Sato
e238920bb6 8295372: CompactNumberFormat handling of number one with decimal part
Reviewed-by: joehw
2022-10-19 16:24:15 +00:00
Brian Burkhalter
a5f6e31ccb 8295456: (ch) sun.nio.ch.Util::checkBufferPositionAligned gives misleading/incorrect error
Reviewed-by: alanb
2022-10-19 15:53:01 +00:00
Tobias Holenstein
e27bea0c4d 8290011: IGV: Remove dead code and cleanup
Reviewed-by: chagedorn
2022-10-19 15:49:22 +00:00
Aleksei Efimov
d37ce4cdd1 8290368: Introduce LDAP and RMI protocol-specific object factory filters to JNDI implementation
Reviewed-by: dfuchs, rriggs, jpai
2022-10-19 14:41:28 +00:00
Damon Nguyen
21aeb9e794 8295429: Update harfbuzz md file
Reviewed-by: azvegint
2022-10-19 14:17:41 +00:00
Aleksey Shipilev
1d883c5312 8295417: Pass $AR to binutils cross-build
Reviewed-by: erikj, ihse
2022-10-19 11:58:24 +00:00
Joakim Nordström
fc889577ea 8286707: JFR: Don't commit JFR internal jdk.JavaMonitorWait events
Reviewed-by: dholmes, egahlin
2022-10-19 10:34:17 +00:00
Xiaohong Gong
857b0f9b05 8293409: [vectorapi] Intrinsify VectorSupport.indexVector
Reviewed-by: eliu, jbhateja
2022-10-19 09:24:05 +00:00
Aleksey Shipilev
3f3d63d02a 8294211: Zero: Decode arch-specific error context if possible
Reviewed-by: stuefe, luhenry
2022-10-19 08:40:15 +00:00
Jie Fu
f502ab85c9 8295435: Build failure with GCC7 after JDK-8294314 due to strict-overflow warnings
Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Reviewed-by: shade, ihse
2022-10-19 07:41:27 +00:00
Ioi Lam
3f4964f83d 8293291: Simplify relocation of native pointers in archive heap
Reviewed-by: ccheung, coleenp
2022-10-19 04:57:56 +00:00
Jaikiran Pai
1553551d82 8286918: Better HttpServer service
Reviewed-by: dfuchs, michaelm, ahgross, rhalade
2022-10-18 22:41:16 +00:00
Alexander Zuev
400aa2fb2c 8286511: Improve macro allocation
Reviewed-by: azvegint, rhalade, prr
2022-10-18 22:41:16 +00:00
Daniel Jeliński
2cee77444f 8289366: Improve HTTP/2 client usage
Reviewed-by: dfuchs, rhalade
2022-10-18 22:41:16 +00:00
Weijun Wang
1ae6836521 8288508: Enhance ECDSA usage
Reviewed-by: ascarpino, ahgross, rhalade
2022-10-18 22:41:15 +00:00
Daniel Fuchs
40539de8da 8286910: Improve JNDI lookups
Reviewed-by: jpai, msheppar, rhalade, aefimov
2022-10-18 22:41:15 +00:00
Alexander Zuev
896a29dfae 8287446: Enhance icon presentations
Reviewed-by: prr, azvegint
2022-10-18 22:41:15 +00:00
Hai-May Chao
5a8e5ea3e2 8286526: Improve NTLM support
Reviewed-by: weijun, rhalade
2022-10-18 22:41:15 +00:00
Harold Seigel
c622d56a0d 8286519: Better memory handling
Reviewed-by: coleenp, rhalade
2022-10-18 22:41:14 +00:00
Jamil Nimeh
48cc9a8717 8285662: Better permission resolution
Reviewed-by: rhalade, weijun, mullan
2022-10-18 22:41:14 +00:00
Weijun Wang
ff1867438f 8286077: Wider MultiByte conversions
Reviewed-by: rhalade, valeriep
2022-10-18 22:41:14 +00:00
Joe Darcy
25e88b21af 8282252: Improve BigInteger/Decimal validation
Reviewed-by: jboes, rhalade, skoivu, bpb, smarks
2022-10-18 22:41:14 +00:00
Erik Gahlin
ecfb6bce5a 8295419: JFR: Change name of jdk.JitRestart
Reviewed-by: mgronlun
2022-10-18 21:43:06 +00:00
Joe Darcy
95baf83dd6 8295517: Fix stutter typo in JDK-8294539
Reviewed-by: naoto, bpb, lancea
2022-10-18 21:00:41 +00:00
Coleen Phillimore
37f93b6728 8295029: runtime/cds/appcds/LotsOfClasses.java fail with jfx
Reviewed-by: iklam, ccheung, gziemski
2022-10-18 20:26:15 +00:00
Leonid Mesnik
0233ba763d 8284614: on macOS "spindump" should be run from failure_handler as root
Co-authored-by: Chris Plummer <cjplummer@openjdk.org>
Reviewed-by: dnsimon, dcubed
2022-10-18 17:34:07 +00:00
Magnus Ihse Bursie
2a799e5c82 8285306: Fix typos in java.desktop
Co-authored-by: Andrey Turbanov <aturbanov@openjdk.org>
Reviewed-by: aturbanov, prr
2022-10-18 17:08:49 +00:00
Brian Burkhalter
d1f794587c 6924219: (fc spec) FileChannel.write(ByteBuffer, position) behavior when file opened for append not specified
Reviewed-by: alanb
2022-10-18 16:58:45 +00:00
Zixian Cai
5dbd495115 8295457: Make the signatures of write barrier methods consistent
Reviewed-by: tschatzl, shade
2022-10-18 15:32:20 +00:00
Aleksey Shipilev
7b2e83b395 8295469: S390X: Optimized builds are broken
Reviewed-by: stuefe
2022-10-18 15:27:13 +00:00
Xin Liu
63867c4b52 8295433: EpsilonHeap doesn't need to override post_initialize()
Reviewed-by: shade, tschatzl
2022-10-18 15:08:50 +00:00
Aleksey Shipilev
e7375f9c52 8295468: RISC-V: Minimal builds are broken
Reviewed-by: stuefe, luhenry, fyang
2022-10-18 15:07:01 +00:00
Daniel Fuchs
bd41428a56 8293590: Some syntax checks performed by URL.openConnection() could be performed earlier, at URL construction
Reviewed-by: jpai, michaelm
2022-10-18 14:30:51 +00:00
Prasanta Sadhukhan
78fed9d307 7175397: The divider color is not changed to green when dragging for Nimbus LaF.
Reviewed-by: jdv
2022-10-18 14:05:37 +00:00
Sean Coffey
8c40b7dc8c 8292177: InitialSecurityProperty JFR event
Reviewed-by: mullan
2022-10-18 11:41:07 +00:00
Aleksey Shipilev
e7a964b4db 8295268: Optimized builds are broken due to incorrect assert_is_rfp shortcuts
Reviewed-by: jiefu
2022-10-18 09:59:05 +00:00
Raffaello Giulietti
0b7d811c98 8294730: Add @throws and @implNote clauses to BigInteger::isProblablePrime and BigInteger::nextProblablePrime
Reviewed-by: darcy, bpb
2022-10-18 09:56:03 +00:00
Ludovic Henry
4434cbb719 8295264: Fix PaX check on RISC-V
Reviewed-by: yadongwang, fyang
2022-10-18 09:47:23 +00:00
Axel Boldt-Christmas
a8c18ebc15 8295257: Remove implicit noreg temp register arguments in aarch64 MacroAssembler
Reviewed-by: aph, tschatzl
2022-10-18 08:59:25 +00:00
Axel Boldt-Christmas
6553065cab 8295273: Remove unused argument in [load/store]_sized_value on aarch64 and riscv
Reviewed-by: fyang, haosun
2022-10-18 08:58:25 +00:00
Aleksey Shipilev
b06f1b149c 8294594: Fix cast-function-type warnings in signal handling code
Reviewed-by: dholmes, kbarrett
2022-10-18 08:45:28 +00:00
Jan Lahoda
71aa821091 8295176: some langtools test pollutes source tree
Reviewed-by: sadayapalam, darcy, vromero
2022-10-18 07:45:23 +00:00
Matthias Baesken
bca7ab3c11 8295412: support latest VS2022 MSC_VER in abstract_vm_version.cpp
Reviewed-by: dholmes, lucy
2022-10-18 07:43:59 +00:00
Prasanta Sadhukhan
c33ca0c5ed 6229853: BasicTextAreaUI:create incompletely documents the possible returned View types
Reviewed-by: aivanov, prr
2022-10-18 05:11:51 +00:00
Damon Nguyen
358ac07255 8294254: [macOS] javax/swing/plaf/aqua/CustomComboBoxFocusTest.java failure
Reviewed-by: jdv, achung
2022-10-18 03:55:23 +00:00
Fei Gao
490fcd0c25 8293833: Error mixing types with -XX:+UseCMoveUnconditionally -XX:+UseVectorCmov
Reviewed-by: chagedorn, kvn
2022-10-18 02:00:53 +00:00
Xiaolin Zheng
529cc48f35 8295396: RISC-V: Cleanup useless CompressibleRegions
Reviewed-by: fyang
2022-10-18 01:15:49 +00:00
Zixian Cai
692cdab2be 8295016: Make the arraycopy_epilogue signature consistent with its usage
Reviewed-by: shade
2022-10-18 00:53:17 +00:00
Serguei Spitsyn
21a825e059 8288387: GetLocalXXX/SetLocalXXX spec should require suspending target thread
Reviewed-by: lmesnik, dsamersoff
2022-10-17 23:36:22 +00:00
Julian Waters
8d751de319 8295231: Move all linking of native libraries to make
Reviewed-by: ihse, erikj
2022-10-17 20:57:26 +00:00
Jonathan Gibbons
f300ec8631 8294546: document where javac differs when invoked via launcher and ToolProvider
Reviewed-by: darcy
2022-10-17 20:18:25 +00:00
Aleksey Shipilev
b269c51d10 8295395: Linux Alpha Zero builds fail after JDK-8292591
Reviewed-by: stuefe
2022-10-17 17:56:49 +00:00
Hao Sun
ae60599e2b 8295023: Interpreter(AArch64): Implement -XX:+PrintBytecodeHistogram and -XX:+PrintBytecodePairHistogram options
Reviewed-by: aph, ngasson
2022-10-17 14:46:12 +00:00
Ludovic Henry
4d37ef2d54 8295262: Build binutils out of source tree
Reviewed-by: shade, erikj, ihse
2022-10-17 14:02:47 +00:00
Eric Liu
0919a3a0c1 8294186: AArch64: VectorMaskToLong failed on SVE2 machine with -XX:UseSVE=1
Reviewed-by: njian, aph
2022-10-17 13:28:33 +00:00
Thomas Stuefe
ec2981b83b 8293711: Factor out size parsing functions from arguments.cpp
Reviewed-by: dholmes, jsjolen
2022-10-17 12:44:51 +00:00
Coleen Phillimore
5d273b9f04 8295278: Add parallel class loading tests
Reviewed-by: vlivanov, ccheung
2022-10-17 12:31:39 +00:00
Albert Mingkun Yang
172006c0e9 8295333: G1: Remove unnecessary check in G1Policy::calculate_desired_eden_length_by_mmu
Reviewed-by: tschatzl, kbarrett
2022-10-17 09:44:43 +00:00
Magnus Ihse Bursie
7743345f6f 8294314: Minimize disabled warnings in hotspot
Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Reviewed-by: erikj, shade
2022-10-17 09:29:50 +00:00
Magnus Ihse Bursie
552d8a2821 8295192: Use original configure command line when called from a script
Reviewed-by: erikj
2022-10-17 09:28:23 +00:00
Srikanth Adayapalam
cf07eaeb92 8295020: javac emits incorrect code for for-each on an intersection type.
Reviewed-by: mcimadamore
2022-10-17 07:40:19 +00:00
Matthias Baesken
b3bb3e6ed8 8295325: tools/jlink/plugins/SaveJlinkArgfilesPluginTest.java fails on Linux ppc64le
Reviewed-by: alanb, mdoerr, mchung
2022-10-17 06:53:49 +00:00
Xiaolin Zheng
9005af3b90 8295110: RISC-V: Mark out relocations as incompressible
Reviewed-by: fyang, yadongwang
2022-10-17 05:56:59 +00:00
Sergey Tsypanov
74a51ccc86 8292698: Improve performance of DataInputStream
Reviewed-by: dfuchs
2022-10-17 04:41:12 +00:00
Yadong Wang
d3781ac8a3 8295009: RISC-V: Interpreter intrinsify Thread.currentThread()
Reviewed-by: fyang, shade
2022-10-16 10:36:26 +00:00
Daniel D. Daugherty
e7d0ab227f 8295379: ProblemList java/lang/Float/Binary16Conversion.java in Xcomp mode on x64
8295380: ProblemList gc/cslocker/TestCSLocker.java in Xcomp mode on x64

Reviewed-by: alanb
2022-10-15 14:50:10 +00:00
Quan Anh Mai
404e8de155 8294865: x86: Improve the code generation of MulVB and MulVL
Reviewed-by: kvn, vlivanov
2022-10-15 11:28:02 +00:00
Roger Riggs
2087424736 8295370: Update java.io.ObjectStreamField to use Class.descriptorString
Reviewed-by: bpb, mchung
2022-10-14 23:45:03 +00:00
Vladimir Ivanov
8487c56f7e 8295294: Misc cleanups in runtime/InvocationTests
Reviewed-by: dholmes
2022-10-14 17:46:11 +00:00
Jatin Bhateja
0043d58c5d 8293531: C2: some vectorapi tests fail assert "Not monotonic" with flag -XX:TypeProfileLevel=222
Reviewed-by: kvn
2022-10-14 16:34:48 +00:00
Thomas Schatzl
2e2a51ee22 8295267: Improve G1 scan to merge ratio calculation
Reviewed-by: ayang, iwalulya
2022-10-14 14:45:56 +00:00
Ioi Lam
dfcd9d538e 8295320: [BACKOUT] 8276687 Remove support for JDK 1.4.1 PerfData shared memory files
Reviewed-by: redestad, kevinw
2022-10-14 14:26:39 +00:00
Nikita Provotorov
2da079c64e 8294426: Two fingers tap generates wrong mouse modifiers on M2 MacBooks
Reviewed-by: prr
2022-10-14 14:14:23 +00:00
Thomas Schatzl
449b52fd23 8295158: G1: Increase card-based cost sample reporting threshold
Reviewed-by: iwalulya, ayang
2022-10-14 14:12:26 +00:00
Thomas Schatzl
312985eea6 8295156: G1: Improve constant other time calculation
Co-authored-by: Ivan Walulya <iwalulya@openjdk.org>
Reviewed-by: kbarrett, iwalulya
2022-10-14 13:53:52 +00:00
Archie L. Cobbs
786ce1c27b 8295024: Cyclic constructor error is non-deterministic and inconsistent
Reviewed-by: vromero
2022-10-14 13:52:50 +00:00
Thomas Schatzl
1efa93e602 8294844: Improve G1 young gen length revise trigger
Reviewed-by: iwalulya, kbarrett
2022-10-14 13:37:15 +00:00
Joshua Cao
3dbc38a2c9 8295288: Some vm_flags tests associate with a wrong BugID
Reviewed-by: phh
2022-10-14 13:36:12 +00:00
Thomas Schatzl
ef5210fce0 8295149: Misnomer for_young_gc instead of for_young_only_phase in G1Analytics
Reviewed-by: kbarrett, iwalulya
2022-10-14 13:12:55 +00:00
Thomas Schatzl
64813f48c8 8294850: Make rs length/pending card predictors dependent on gc phase
Reviewed-by: kbarrett, iwalulya, ayang
2022-10-14 12:46:48 +00:00
Markus Grönlund
21e4f06ada 8295274: HelidonAppTest.java fails "assert(event->should_commit()) failed: invariant" from compiled frame"
Reviewed-by: egahlin
2022-10-14 12:34:42 +00:00
Thomas Schatzl
f31c80d951 8294842: Pass actual pending cards to G1Policy::update_young_length_bounds during young gen revise
Reviewed-by: kbarrett, ayang
2022-10-14 11:26:06 +00:00
Prasanta Sadhukhan
7133fc93e1 7172359: HTML parser StackOverflowError on invalid HTML: <li> tag inside an <option>
Reviewed-by: tr, jdv, aivanov
2022-10-14 09:05:39 +00:00
Fei Yang
3d75e88eb2 8295270: RISC-V: Clean up and refactoring for assembler functions
Reviewed-by: fjiang, yadongwang, shade
2022-10-14 07:53:56 +00:00
Andrey Turbanov
be3b335452 8295026: Remove unused fields in StyleSheet
Reviewed-by: aivanov
2022-10-14 06:43:05 +00:00
Ioi Lam
67046ae49a 8276687: Remove support for JDK 1.4.1 PerfData shared memory files
Reviewed-by: dholmes, kevinw, redestad
2022-10-14 04:28:45 +00:00
Darragh Clarke
b30d922009 8292876: Do not include the deprecated userinfo component of the URI in HTTP/2 headers
Reviewed-by: aefimov, dfuchs, jpai
2022-10-14 01:37:29 +00:00
Julian Waters
2b4830a395 8295017: Remove Windows specific workaround in JLI_Snprintf
Reviewed-by: dholmes
2022-10-13 23:50:01 +00:00
Phil Race
fdb74ed452 8295301: Problem list TrayIcon tests that fail on Ubuntu 22.04
Reviewed-by: dholmes
2022-10-13 21:37:28 +00:00
David Alvarez
21407dec01 8295173: (tz) Update Timezone Data to 2022e
Reviewed-by: naoto
2022-10-13 20:48:43 +00:00
Ioi Lam
f5f8df11ce 8295295: CDS ArchivedEnumTest fails with StaticProperty::JAVA_LOCALE_USE_OLD_ISO_CODES
Reviewed-by: ccheung
2022-10-13 18:50:29 +00:00
Brian Burkhalter
18dd9ee701 8295025: (bf) ByteBuffer "Access to binary data" section suggests putFloat is void
Reviewed-by: alanb
2022-10-13 18:39:48 +00:00
Naoto Sato
4224d45132 8295232: "java.locale.useOldISOCodes" property is read lazily
Reviewed-by: lancea, bpb, iris, rriggs, coffeys
2022-10-13 16:18:53 +00:00
Abhishek Kumar
3b3438752c 8288882: JFileChooser - empty (0 bytes) file is displayed as 1 KB
Reviewed-by: aivanov, angorya, psadhukhan
2022-10-13 16:14:49 +00:00
Erik Gahlin
c7f65438bb 8295223: JFR: At most one native periodic event thread at a time
Reviewed-by: mgronlun
2022-10-13 15:53:33 +00:00
Thomas Schatzl
7e4868de7b 8294847: Fix calculation of G1 effective scanned cards prediction
Reviewed-by: kbarrett, ayang
2022-10-13 12:00:01 +00:00
Daniel Jeliński
2f60675e06 8294997: Improve ECC math operations
Reviewed-by: xuelei
2022-10-13 10:16:33 +00:00
Daniel Jeliński
94caecbe57 8294906: Memory leak in PKCS11 NSS TLS server
Reviewed-by: valeriep
2022-10-13 09:29:17 +00:00
Doug Simon
03e63a2b87 8295225: [JVMCI] codeStart should be cleared when entryPoint is cleared
Reviewed-by: never
2022-10-13 08:34:36 +00:00
Michael McMahon
26ac836636 8291638: Keep-Alive timeout of 0 should close connection immediately
Reviewed-by: dfuchs, jpai
2022-10-13 08:32:48 +00:00
Andrey Turbanov
6ae7e4d4aa 8293984: Unnecessary Vector usage in PropertyEditorSupport
Reviewed-by: serb
2022-10-13 06:56:20 +00:00
Magnus Ihse Bursie
cd1357b0af 8295229: Try to verify gtest version
Reviewed-by: erikj
2022-10-13 06:16:15 +00:00
Ioi Lam
90fb9a085b 8295102: Always load @lambda-form-invoker lines from default classlist
Reviewed-by: redestad, ccheung
2022-10-13 00:01:06 +00:00
Bill Huang
ac1941425b 8294994: Update Jarsigner and Keytool i18n tests to validate i18n compliance
Reviewed-by: naoto
2022-10-12 22:17:19 +00:00
Mahendra Chhipa
1961e81e02 8289509: Improve test coverage for XPath Axes: descendant, descendant-or-self, following, following-sibling
Reviewed-by: bhuang, joehw
2022-10-12 18:13:20 +00:00
Johan Sjölen
5699041adb 8294772: Remove workaround in os::dll_address_to_library_name
Reviewed-by: dholmes, iklam
2022-10-12 16:23:19 +00:00
Daniel Jeliński
d1252653b0 8277970: Test jdk/sun/security/ssl/SSLSessionImpl/NoInvalidateSocketException.java fails with "tag mismatch"
Reviewed-by: jnimeh, xuelei
2022-10-12 15:32:36 +00:00
Leonid Mesnik
0475c34120 8292386: jvmti/thread/SuspendThread/suspendthrd03 failed with "FAIL: Status is 2"
Reviewed-by: sspitsyn, dcubed
2022-10-12 14:59:19 +00:00
Magnus Ihse Bursie
760a260fbb 8295213: Run GHA manually with user-specified make and configure arguments
Reviewed-by: shade
2022-10-12 13:34:50 +00:00
Magnus Ihse Bursie
8402260535 8295198: Update more openjdk.java.net => openjdk.org URLs
Reviewed-by: erikj
2022-10-12 13:34:07 +00:00
Magnus Ihse Bursie
c357b5908a 8295211: Fix autoconf 2.71 warning "AC_CHECK_HEADERS: you should use literals"
Reviewed-by: shade, erikj
2022-10-12 13:32:49 +00:00
Magnus Ihse Bursie
860784238e 8295205: Add jcheck whitespace checking for markdown files
Reviewed-by: erikj
2022-10-12 13:31:54 +00:00
Michael McMahon
cb62f1c5c0 8295218: New KeepAliveTest.java has invalid copyright notice
Reviewed-by: dfuchs, tschatzl
2022-10-12 12:10:07 +00:00
Stefan Karlsson
9cf6651202 8294238: ZGC: Move CLD claimed mark clearing
Reviewed-by: coleenp, tschatzl, eosterlund
2022-10-12 12:06:21 +00:00
Stefan Karlsson
adaff7d585 8294900: Refactor ZObjArrayAllocator
Reviewed-by: eosterlund
2022-10-12 12:05:20 +00:00
Ramesh Bhagavatam Gangadhar
86ec158dfb 8291226: Create Test Cases to cover scenarios for JDK-8278067
Reviewed-by: dfuchs, michaelm
2022-10-12 11:44:44 +00:00
Erik Gahlin
94ec729faa 8263044: jdk/jfr/jvm/TestDumpOnCrash.java timed out
Reviewed-by: mgronlun
2022-10-12 11:42:47 +00:00
Richard Reingruber
bdb4ed0fb1 8294580: frame::interpreter_frame_print_on() crashes if free BasicObjectLock exists in frame
Reviewed-by: dholmes, mdoerr
2022-10-12 08:48:26 +00:00
Thomas Schatzl
461d9030d8 8294841: G1: Refactor predict_base_elapsed_time_ms
Reviewed-by: ayang, iwalulya
2022-10-12 08:38:25 +00:00
Dingli Zhang
392f35df4b 8295033: hsdis configure error when cross-compiling with --with-binutils-src
Reviewed-by: erikj, ihse, shade
2022-10-12 07:24:30 +00:00
Johan Sjölen
16e0c5994a 8294950: print_sys_devices_cpu_info doesn't use the provided buffer
Reviewed-by: dholmes, stefank
2022-10-12 07:10:57 +00:00
12314 changed files with 897908 additions and 444312 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

@@ -42,5 +42,5 @@ runs:
run: |
# Extract value from configuration file
value="$(grep -h ${{ inputs.var }}= make/conf/github-actions.conf | cut -d '=' -f 2-)"
echo "::set-output name=value::$value"
echo "value=$value" >> $GITHUB_OUTPUT
shell: bash

View File

@@ -61,7 +61,7 @@ runs:
$build_dir/make-support/failure-summary.log \
$build_dir/make-support/failure-logs/* \
failure-logs/ 2> /dev/null || true
echo '::set-output name=failure::true'
echo 'failure=true' >> $GITHUB_OUTPUT
fi
shell: bash

View File

@@ -42,7 +42,7 @@ runs:
run: |
# Convert platform name to upper case
platform_prefix="$(echo ${{ inputs.platform }} | tr [a-z-] [A-Z_])"
echo "::set-output name=value::$platform_prefix"
echo "value=$platform_prefix" >> $GITHUB_OUTPUT
shell: bash
- name: 'Get URL configuration'
@@ -105,5 +105,5 @@ runs:
id: path-name
run: |
# Export the path
echo '::set-output name=path::bootjdk/jdk'
echo 'path=bootjdk/jdk' >> $GITHUB_OUTPUT
shell: bash

View File

@@ -103,7 +103,7 @@ runs:
tests_dir="$(cygpath $tests_dir)"
fi
echo "::set-output name=jdk::$jdk_dir"
echo "::set-output name=symbols::$symbols_dir"
echo "::set-output name=tests::$tests_dir"
echo "jdk=$jdk_dir" >> $GITHUB_OUTPUT
echo "symbols=$symbols_dir" >> $GITHUB_OUTPUT
echo "tests=$tests_dir" >> $GITHUB_OUTPUT
shell: bash

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -43,12 +43,12 @@ runs:
uses: actions/checkout@v3
with:
repository: google/googletest
ref: 'release-${{ steps.version.outputs.value }}'
ref: 'v${{ steps.version.outputs.value }}'
path: gtest
- name: 'Export path to where GTest is installed'
id: path-name
run: |
# Export the path
echo '::set-output name=path::gtest'
echo 'path=gtest' >> $GITHUB_OUTPUT
shell: bash

View File

@@ -68,5 +68,5 @@ runs:
id: path-name
run: |
# Export the path
echo '::set-output name=path::jtreg/installed'
echo 'path=jtreg/installed' >> $GITHUB_OUTPUT
shell: bash

View File

@@ -34,11 +34,11 @@ runs:
with:
install: 'autoconf tar unzip zip make'
path-type: minimal
location: msys2
location: ${{ runner.tool_cache }}/msys2
# We can't run bash until this is completed, so stick with pwsh
- name: 'Set MSYS2 path'
run: |
# Prepend msys2/msys64/usr/bin to the PATH
echo "$env:GITHUB_WORKSPACE/msys2/msys64/usr/bin" >> $env:GITHUB_PATH
echo "$env:RUNNER_TOOL_CACHE/msys2/msys64/usr/bin" >> $env:GITHUB_PATH
shell: pwsh

View File

@@ -62,9 +62,9 @@ runs:
fi
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$symbols_bundle$tests_bundle" != "" ]]; then
echo '::set-output name=bundles-found::true'
echo 'bundles-found=true' >> $GITHUB_OUTPUT
else
echo '::set-output name=bundles-found::false'
echo 'bundles-found=false' >> $GITHUB_OUTPUT
fi
shell: bash

View File

@@ -25,6 +25,7 @@
#
GITHUB_STEP_SUMMARY="$1"
GITHUB_OUTPUT="$2"
test_suite_name=$(cat build/run-test-prebuilt/test-support/test-last-ids.txt)
results_dir=build/run-test-prebuilt/test-results/$test_suite_name/text
@@ -41,12 +42,12 @@ error_count=$(echo $errors | wc -w || true)
if [[ "$failures" = "" && "$errors" = "" ]]; then
# We know something went wrong, but not what
echo '::set-output name=error-message::Unspecified test suite failure. Please see log for job for details.'
echo 'error-message=Unspecified test suite failure. Please see log for job for details.' >> $GITHUB_OUTPUT
exit 0
fi
echo '::set-output name=failure::true'
echo "::set-output name=error-message::Test run reported $failure_count test failure(s) and $error_count error(s). See summary for details."
echo 'failure=true' >> $GITHUB_OUTPUT
echo "error-message=Test run reported $failure_count test failure(s) and $error_count error(s). See summary for details." >> $GITHUB_OUTPUT
echo '### :boom: Test failures summary' >> $GITHUB_STEP_SUMMARY

View File

@@ -40,6 +40,12 @@ on:
extra-conf-options:
required: false
type: string
configure-arguments:
required: false
type: string
make-arguments:
required: false
type: string
jobs:
build-cross-compile:
@@ -165,7 +171,7 @@ jobs:
--with-jmod-compress=zip-1
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-${{ inputs.gcc-major-version }}
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-${{ inputs.gcc-major-version }}
${{ inputs.extra-conf-options }} || (
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
echo "Dumping config.log:" &&
cat config.log &&
exit 1)
@@ -174,5 +180,5 @@ jobs:
id: build
uses: ./.github/actions/do-build
with:
make-target: 'hotspot'
make-target: 'hotspot ${{ inputs.make-arguments }}'
platform: linux-${{ matrix.target-cpu }}

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -58,6 +58,12 @@ on:
apt-extra-packages:
required: false
type: string
configure-arguments:
required: false
type: string
make-arguments:
required: false
type: string
jobs:
build-linux:
@@ -96,7 +102,7 @@ jobs:
run: |
# Set a proper suffix for packages if using a different architecture
if [[ '${{ inputs.apt-architecture }}' != '' ]]; then
echo '::set-output name=suffix:::${{ inputs.apt-architecture }}'
echo 'suffix=:${{ inputs.apt-architecture }}' >> $GITHUB_OUTPUT
fi
# Upgrading apt to solve libc6 installation bugs, see JDK-8260460.
@@ -120,10 +126,9 @@ jobs:
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
--with-jtreg=${{ steps.jtreg.outputs.path }}
--with-gtest=${{ steps.gtest.outputs.path }}
--enable-jtreg-failure-handler
--with-zlib=system
--with-jmod-compress=zip-1
${{ inputs.extra-conf-options }} || (
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
echo "Dumping config.log:" &&
cat config.log &&
exit 1)
@@ -132,7 +137,7 @@ jobs:
id: build
uses: ./.github/actions/do-build
with:
make-target: '${{ inputs.make-target }}'
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
platform: ${{ inputs.platform }}
debug-suffix: '${{ matrix.suffix }}'

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -45,6 +45,12 @@ on:
xcode-toolset-version:
required: true
type: string
configure-arguments:
required: false
type: string
make-arguments:
required: false
type: string
jobs:
build-macos:
@@ -95,10 +101,9 @@ jobs:
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
--with-jtreg=${{ steps.jtreg.outputs.path }}
--with-gtest=${{ steps.gtest.outputs.path }}
--enable-jtreg-failure-handler
--with-zlib=system
--with-jmod-compress=zip-1
${{ inputs.extra-conf-options }} || (
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
echo "Dumping config.log:" &&
cat config.log &&
exit 1)
@@ -107,7 +112,7 @@ jobs:
id: build
uses: ./.github/actions/do-build
with:
make-target: '${{ inputs.make-target }}'
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
platform: ${{ inputs.platform }}
debug-suffix: '${{ matrix.suffix }}'

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -48,6 +48,12 @@ on:
msvc-toolset-architecture:
required: true
type: string
configure-arguments:
required: false
type: string
make-arguments:
required: false
type: string
env:
# These are needed to make the MSYS2 bash work properly
@@ -108,10 +114,9 @@ jobs:
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
--with-jtreg=${{ steps.jtreg.outputs.path }}
--with-gtest=${{ steps.gtest.outputs.path }}
--enable-jtreg-failure-handler
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
--with-jmod-compress=zip-1
${{ inputs.extra-conf-options }} || (
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
echo "Dumping config.log:" &&
cat config.log &&
exit 1)
@@ -119,12 +124,13 @@ jobs:
# We need a minimal PATH on Windows
# Set PATH to "", so just GITHUB_PATH is included
PATH: ''
shell: env /usr/bin/bash --login -eo pipefail {0}
- name: 'Build'
id: build
uses: ./.github/actions/do-build
with:
make-target: '${{ inputs.make-target }}'
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
platform: ${{ inputs.platform }}
debug-suffix: '${{ matrix.suffix }}'

View File

@@ -26,16 +26,18 @@
name: 'OpenJDK GHA Sanity Checks'
on:
push:
branches-ignore:
- master
- pr/*
workflow_dispatch:
inputs:
platforms:
description: 'Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
required: true
default: 'linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64'
default: 'linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
configure-arguments:
description: 'Additional configure arguments'
required: false
make-arguments:
description: 'Additional make arguments'
required: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -53,12 +55,14 @@ 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 }}
windows-x64: ${{ steps.include.outputs.windows-x64 }}
windows-aarch64: ${{ steps.include.outputs.windows-aarch64 }}
docs: ${{ steps.include.outputs.docs }}
steps:
# This function must be inlined in main.yml, or we'd be forced to checkout the repo
@@ -71,19 +75,17 @@ jobs:
# 'false' otherwise.
# arg $1: platform name or names to look for
function check_platform() {
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
echo 'false'
return
fi
if [[ $GITHUB_EVENT_NAME == workflow_dispatch ]]; then
input='${{ github.event.inputs.platforms }}'
elif [[ $GITHUB_EVENT_NAME == push ]]; then
input='${{ secrets.JDK_SUBMIT_PLATFORMS }}'
else
echo 'Internal error in GHA'
exit 1
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 ' ')"
@@ -104,14 +106,15 @@ jobs:
echo 'false'
}
echo "::set-output name=linux-x64::$(check_platform linux-x64 linux x64)"
echo "::set-output name=linux-x86::$(check_platform linux-x86 linux x86)"
echo "::set-output name=linux-x64-variants::$(check_platform linux-x64-variants variants)"
echo "::set-output name=linux-cross-compile::$(check_platform linux-cross-compile cross-compile)"
echo "::set-output name=macos-x64::$(check_platform macos-x64 macos x64)"
echo "::set-output name=macos-aarch64::$(check_platform macos-aarch64 macos aarch64)"
echo "::set-output name=windows-x64::$(check_platform windows-x64 windows x64)"
echo "::set-output name=windows-aarch64::$(check_platform windows-aarch64 windows aarch64)"
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-aarch64=$(check_platform windows-aarch64 windows aarch64)" >> $GITHUB_OUTPUT
echo "docs=$(check_platform docs)" >> $GITHUB_OUTPUT
###
### Build jobs
@@ -124,7 +127,9 @@ jobs:
with:
platform: linux-x64
gcc-major-version: '10'
apt-gcc-version: '10.3.0-15ubuntu1'
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'
@@ -136,12 +141,14 @@ jobs:
platform: linux-x86
gcc-major-version: '10'
gcc-package-suffix: '-multilib'
apt-gcc-version: '10.3.0-15ubuntu1'
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-x64-hs-nopch:
@@ -153,8 +160,10 @@ jobs:
make-target: 'hotspot'
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
apt-gcc-version: '10.3.0-15ubuntu1'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
extra-conf-options: '--disable-precompiled-headers'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.linux-x64-variants == 'true'
build-linux-x64-hs-zero:
@@ -166,8 +175,10 @@ jobs:
make-target: 'hotspot'
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
apt-gcc-version: '10.3.0-15ubuntu1'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
extra-conf-options: '--with-jvm-variants=zero --disable-precompiled-headers'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.linux-x64-variants == 'true'
build-linux-x64-hs-minimal:
@@ -179,8 +190,10 @@ jobs:
make-target: 'hotspot'
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
apt-gcc-version: '10.3.0-15ubuntu1'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
extra-conf-options: '--with-jvm-variants=minimal --disable-precompiled-headers'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.linux-x64-variants == 'true'
build-linux-x64-hs-optimized:
@@ -193,8 +206,10 @@ jobs:
# Technically this is not the "debug" level, but we can't inject a new matrix state for just this job
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
apt-gcc-version: '10.3.0-15ubuntu1'
apt-gcc-version: '10.4.0-4ubuntu1~22.04'
extra-conf-options: '--with-debug-level=optimized --disable-precompiled-headers'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.linux-x64-variants == 'true'
build-linux-cross-compile:
@@ -205,8 +220,10 @@ jobs:
uses: ./.github/workflows/build-cross-compile.yml
with:
gcc-major-version: '10'
apt-gcc-version: '10.3.0-15ubuntu1'
apt-gcc-cross-version: '10.3.0-8ubuntu1cross1'
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:
@@ -215,7 +232,9 @@ jobs:
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-x64
xcode-toolset-version: '11.7'
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:
@@ -224,8 +243,10 @@ jobs:
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-aarch64
xcode-toolset-version: '12.4'
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:
@@ -236,6 +257,8 @@ jobs:
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-aarch64:
@@ -248,8 +271,27 @@ jobs:
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'
###
### Test jobs
###

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
@@ -138,9 +143,9 @@ jobs:
# We need a minimal PATH on Windows
# Set PATH to "", so just GITHUB_PATH is included
if [[ '${{ runner.os }}' == 'Windows' ]]; then
echo "::set-output name=value::"
echo "value=" >> $GITHUB_OUTPUT
else
echo "::set-output name=value::$PATH"
echo "value=$PATH" >> $GITHUB_OUTPUT
fi
- name: 'Run tests'
@@ -154,7 +159,7 @@ jobs:
SYMBOLS_IMAGE_DIR=${{ steps.bundles.outputs.symbols-path }}
TEST_IMAGE_DIR=${{ steps.bundles.outputs.tests-path }}
JTREG='JAVA_OPTIONS=-XX:-CreateCoredumpOnCrash;VERBOSE=fail,error,time;KEYWORDS=!headful'
&& bash ./.github/scripts/gen-test-summary.sh "$GITHUB_STEP_SUMMARY"
&& bash ./.github/scripts/gen-test-summary.sh "$GITHUB_STEP_SUMMARY" "$GITHUB_OUTPUT"
env:
PATH: ${{ steps.path.outputs.value }}
@@ -187,7 +192,7 @@ jobs:
fi
artifact_name="results-${{ inputs.platform }}-$(echo ${{ matrix.test-name }} | tr '/ ' '__')"
echo "::set-output name=artifact-name::$artifact_name"
echo "artifact-name=$artifact_name" >> $GITHUB_OUTPUT
if: always()
- name: 'Upload test results'

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,7 +1,7 @@
[general]
project=jdk
jbs=JDK
version=20
version=21
[checks]
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists
@@ -15,7 +15,7 @@ version=0
domain=openjdk.org
[checks "whitespace"]
files=.*\.cpp|.*\.hpp|.*\.c|.*\.h|.*\.java|.*\.cc|.*\.hh|.*\.m|.*\.mm|.*\.gmk|.*\.m4|.*\.ac|Makefile
files=.*\.cpp|.*\.hpp|.*\.c|.*\.h|.*\.java|.*\.cc|.*\.hh|.*\.m|.*\.mm|.*\.md|.*\.gmk|.*\.m4|.*\.ac|Makefile
ignore-tabs=.*\.gmk|Makefile
[checks "merge"]

View File

@@ -2,8 +2,8 @@
OPENJDK ASSEMBLY EXCEPTION
The OpenJDK source code made available by Oracle America, Inc. (Oracle) at
openjdk.java.net ("OpenJDK Code") is distributed under the terms of the GNU
General Public License <http://www.gnu.org/copyleft/gpl.html> version 2
openjdk.org ("OpenJDK Code") is distributed under the terms of the GNU
General Public License <https://www.gnu.org/copyleft/gpl.html> version 2
only ("GPL2"), with the following clarification and special exception.
Linking this OpenJDK Code statically or dynamically with other code
@@ -12,7 +12,7 @@ only ("GPL2"), with the following clarification and special exception.
As a special exception, Oracle gives you permission to link this
OpenJDK Code with certain code licensed by Oracle as indicated at
http://openjdk.java.net/legal/exception-modules-2007-05-08.html
https://openjdk.org/legal/exception-modules-2007-05-08.html
("Designated Exception Modules") to produce an executable,
regardless of the license terms of the Designated Exception Modules,
and to copy and distribute the resulting executable under GPL2,

View File

@@ -1,3 +1,3 @@
# Contributing to the JDK
Please see <https://openjdk.java.net/contribute/> for how to contribute.
Please see <https://openjdk.org/contribute> for how to contribute.

View File

@@ -1,58 +1,7 @@
[![official JetBrains project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
# Welcome to the JDK!
## Wakefield
This is a temporary section created to host information on the
[Wakefield](https://wiki.openjdk.java.net/display/wakefield) project.
### Building
There are two addition `configure` arguments:
```
--with-wayland specify prefix directory for the wayland package
(expecting the headers under PATH/include)
--with-wayland-include specify directory for the wayland include files
```
As usual, there should be no need to specify those explicitly unless you're doing
something tricky.
However, a variant of `libwayland-dev` needs to be installed on the build system.
### Running
Make sure your system is configured such that `libwayland` can find the socket to connect to;
usually this means that the environment variable `WAYLAND_DISPLAY` is set to something
sensible. Then add this argument to `java`
```
-Dawt.toolkit.name=WLToolkit
```
### Testing
Testing that involves `Robot` is done inside a [Weston](https://gitlab.freedesktop.org/wayland/weston/)
instance with a special module loaded called `libwakefield`
that provides the necessary functionality. The Wayland-specific tests are therefore executed with a dedicated test driver
`test/jdk/java/awt/wakefield/WakefieldTestDriver.java`. The driver also provides an easy
way to run the test in several configurations with a different size and even number
of "outputs" (monitors).
To run the Wayland-specific tests, perform these steps:
* Install Weston version 9 (earlier versions are known NOT to work).
* Obtain `libwakefield.so` either by building from source (available under
`src/java.desktop/share/native/libwakefield` and not integrated into the rest of the
build infrastructure; see `README.md` there)
or by fetching the latest pre-built `x64` binary
```
wget https://github.com/mkartashev/wakefield/raw/main/libwakefield.so
```
* Set `LIBWAKEFIELD` environment variable to the full path to `libwakefield.so`
```
export LIBWAKEFIELD=/tmp/wakefield-testing/libwakefield.so
```
* Run `jtreg` like so
```
jtreg -e:XDG_RUNTIME_DIR -e:LIBWAKEFIELD -testjdk:... test/jdk/java/awt/wakefield/
```
This was verified to work in `Ubuntu 21.10`.
This does NOT work in `Ubuntu 21.04` or `Fedora 34`.
## Generic Info (not Wakefield-specific)
For build instructions please see the
[online documentation](https://openjdk.org/groups/build/doc/building.html),
or either of these files:
@@ -60,5 +9,6 @@ or either of these files:
- [doc/building.html](doc/building.html) (html version)
- [doc/building.md](doc/building.md) (markdown version)
See <https://openjdk.org/> for more information about
the OpenJDK Community and the JDK.
See <https://openjdk.org/> for more information about the OpenJDK
Community and the JDK and see <https://bugs.openjdk.org> for JDK issue
tracking.

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

@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -128,6 +128,15 @@ install_jib() {
exit 1
fi
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
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."
echo "The download URL was: ${jib_url}"
exit 1
fi
echo "Extracting JIB bootstrap script"
rm -f "${installed_jib_script}"
gunzip "${installed_jib_script}.gz"
@@ -135,6 +144,28 @@ install_jib() {
echo "${data_string}" > "${install_data}"
}
# Returns a shell-escaped version of the argument given.
shell_quote() {
if [[ -n "$1" ]]; then
# Uses only shell-safe characters? No quoting needed.
# '=' is a zsh meta-character, but only in word-initial position.
if echo "$1" | grep '^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\.:,%/+=_-]\{1,\}$' > /dev/null \
&& ! echo "$1" | grep '^=' > /dev/null; then
quoted="$1"
else
if echo "$1" | grep "[\'!]" > /dev/null; then
# csh does history expansion within single quotes, but not
# when backslash-escaped!
local quoted_quote="'\\''" quoted_exclam="'\\!'"
word="${1//\'/${quoted_quote}}"
word="${1//\!/${quoted_exclam}}"
fi
quoted="'$1'"
fi
echo "$quoted"
fi
}
# Main body starts here
setup_url
@@ -151,4 +182,16 @@ if [ -z "${JIB_SRC_DIR}" ]; then
export JIB_SRC_DIR="${mydir}/../"
fi
# Save the original command line
conf_quoted_arguments=()
for conf_option; do
conf_quoted_arguments=("${conf_quoted_arguments[@]}" "$(shell_quote "$conf_option")")
done
export REAL_CONFIGURE_COMMAND_LINE="${conf_quoted_arguments[@]}"
myfulldir="$(cd "${mydir}" > /dev/null && pwd)"
export REAL_CONFIGURE_COMMAND_EXEC_FULL="$BASH $myfulldir/$myname"
export REAL_CONFIGURE_COMMAND_EXEC_SHORT="$myname"
${installed_jib_script} "$@"

0
configure vendored Normal file → Executable file
View File

File diff suppressed because it is too large Load Diff

View File

@@ -311,14 +311,17 @@ Build Wiki page for details about which versions of AIX are supported.
Large portions of the JDK consists of native code, that needs to be compiled to
be able to run on the target platform. In theory, toolchain and operating
system should be independent factors, but in practice there's more or less a
one-to-one correlation between target operating system and toolchain.
one-to-one correlation between target operating system and toolchain. There are
ongoing efforts to loosen this strict coupling between compiler and operating
system (see [JDK-8288293](https://bugs.openjdk.org/browse/JDK-8288293)) but it
will likely be a very long time before this goal can be realized.
Operating system Supported toolchain
------------------ -------------------------
Linux gcc, clang
macOS Apple Xcode (using clang)
AIX IBM XL C/C++
Windows Microsoft Visual Studio
| Operating system | Supported toolchain |
| ------------------ | ------------------------- |
| Linux | gcc, clang |
| macOS | Apple Xcode (using clang) |
| AIX | IBM XL C/C++ |
| Windows | Microsoft Visual Studio |
Please see the individual sections on the toolchains for version
recommendations. As a reference, these versions of the toolchains are used, at
@@ -327,11 +330,11 @@ possible to compile the JDK with both older and newer versions, but the closer
you stay to this list, the more likely you are to compile successfully without
issues.
Operating system Toolchain version
------------------ -------------------------------------------------------
Linux gcc 11.2.0
macOS Apple Xcode 10.1 (using clang 10.0.0)
Windows Microsoft Visual Studio 2022 update 17.1.0
| Operating system | Toolchain version |
| ------------------ | ------------------------------------------ |
| Linux | gcc 11.2.0 |
| macOS | Apple Xcode 10.1 (using clang 10.0.0) |
| Windows | Microsoft Visual Studio 2022 update 17.1.0 |
All compilers are expected to be able to compile to the C99 language standard,
as some C99 features are used in the source code. Microsoft Visual Studio
@@ -359,20 +362,20 @@ To use clang instead of gcc on Linux, use `--with-toolchain-type=clang`.
The oldest supported version of Xcode is 8.
You will need the Xcode command lines developers tools to be able to build
the JDK. (Actually, *only* the command lines tools are needed, not the IDE.)
You will need the Xcode command line developer tools to be able to build
the JDK. (Actually, *only* the command line tools are needed, not the IDE.)
The simplest way to install these is to run:
```
xcode-select --install
```
It is advisable to keep an older version of Xcode for building the JDK when
updating Xcode. This [blog page](
http://iosdevelopertips.com/xcode/install-multiple-versions-of-xcode.html) has
good suggestions on managing multiple Xcode versions. To use a specific version
of Xcode, use `xcode-select -s` before running `configure`, or use
`--with-toolchain-path` to point to the version of Xcode to use, e.g.
`configure --with-toolchain-path=/Applications/Xcode8.app/Contents/Developer/usr/bin`
When updating Xcode, it is advisable to keep an older version for building the JDK.
To use a specific version of Xcode you have multiple options:
* Use `xcode-select -s` before running `configure`, e.g. `xcode-select -s /Applications/Xcode13.1.app`. The drawback is that the setting
is system wide and you may have to revert it after an OpenJDK build.
* Use configure option `--with-xcode-path`, e.g. `configure --with-xcode-path=/Applications/Xcode13.1.app`
This allows using a specific Xcode version for an OpenJDK build, independently of the active Xcode version by `xcode-select`.
If you have recently (inadvertently) updated your OS and/or Xcode version, and
the JDK can no longer be built, please see the section on [Problems with the
@@ -857,17 +860,18 @@ 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.
Building of Hotspot Gtest suite requires the source code of Google Test framework.
The top directory, which contains both `googletest` and `googlemock`
directories, should be specified via `--with-gtest`.
The supported version of Google Test is 1.8.1, whose source code can be obtained:
Building of Hotspot Gtest suite requires the source code of Google
Test framework. The top directory, which contains both `googletest`
and `googlemock` directories, should be specified via `--with-gtest`.
The minimum supported version of Google Test is 1.13.0, whose source
code can be obtained:
* by downloading and unpacking the source bundle from [here](https://github.com/google/googletest/releases/tag/release-1.8.1)
* or by checking out `release-1.8.1` tag of `googletest` project: `git clone -b release-1.8.1 https://github.com/google/googletest`
* by downloading and unpacking the source bundle from [here](https://github.com/google/googletest/releases/tag/v1.13.0)
* or by checking out `v1.13.0` tag of `googletest` project: `git clone -b v1.13.0 https://github.com/google/googletest`
To execute the most basic tests (tier 1), use:
```
@@ -1143,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
@@ -1158,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 \
@@ -1166,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:
@@ -1213,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
@@ -1222,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
@@ -1330,12 +1375,12 @@ it.
To use, setup an icecc network, and install icecc on the build machine. Then
run `configure` using `--enable-icecc`.
### Using sjavac
### Using the javac server
To speed up compilation of Java code, especially during incremental compilations,
the sjavac server is automatically enabled in the configuration step by default.
To explicitly enable or disable sjavac, use either `--enable-javac-server`
or `--disable-javac-server`.
To speed up compilation of Java code, especially during incremental
compilations, the javac server is automatically enabled in the configuration
step by default. To explicitly enable or disable the javac server, use either
`--enable-javac-server` or `--disable-javac-server`.
### Building the Right Target

File diff suppressed because it is too large Load Diff

View File

@@ -572,8 +572,12 @@ 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 <cstddef>` to use `std::nullptr_t`.
* `#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
@@ -651,6 +655,51 @@ constant members. Compilers having such bugs are no longer supported.
Except where an enum is semantically appropriate, new code should use
integral constants.
### alignas
_Alignment-specifiers_ (`alignas`
[n2341](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2341.pdf))
are permitted, with restrictions.
_Alignment-specifiers_ are permitted when the requested alignment is a
_fundamental alignment_ (not greater than `alignof(std::max_align_t)`
[C++14 3.11/2](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4296.pdf)).
_Alignment-specifiers_ with an _extended alignment_ (greater than
`alignof(std::max_align_t)`
[C++14 3.11/3](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4296.pdf))
may only be used to align variables with static or automatic storage duration
([C++14 3.7.1, 3.7.3](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4296.pdf)).
As a consequence, _over-aligned types_ are forbidden; this may change if
HotSpot updates to using C++17 or later
([p0035r4](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0035r4.html)).
Large _extended alignments_ should be avoided, particularly for stack
allocated objects. What is a large value may depend on the platform and
configuration. There may also be hard limits for some platforms.
An _alignment-specifier_ must always be applied to a definition
([C++14 10.6.2/6](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4296.pdf)).
(C++ allows an _alignment-specifier_ to optionally also be applied to a
declaration, so long as the definition has equivalent alignment. There isn't
any known benefit from duplicating the alignment in a non-definition
declaration, so such duplication should be avoided in HotSpot code.)
Enumerations are forbidden from having _alignment-specifiers_. Aligned
enumerations were originally permitted but insufficiently specified, and were
later (C++20) removed
([CWG 2354](https://cplusplus.github.io/CWG/issues/2354.html)).
Permitting such usage in HotSpot now would just cause problems in the future.
_Alignment-specifiers_ are forbidden in `typedef` and _alias-declarations_.
This may work or may have worked in some versions of some compilers, but was
later (C++14) explicitly disallowed
([CWG 1437](https://cplusplus.github.io/CWG/issues/1437.html)).
The HotSpot macro `ATTRIBUTE_ALIGNED` provides similar capabilities for
platforms that define it. This macro predates the use by HotSpot of C++
versions providing `alignas`. New code should use `alignas`.
### thread_local
Avoid use of `thread_local`
@@ -1009,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))
@@ -1108,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.
@@ -1136,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

@@ -5,11 +5,19 @@
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Native/Unit Test Development Guidelines</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<link rel="stylesheet" href="../make/data/docs-resources/resources/jdk-default.css" />
<!--[if lt IE 9]>
@@ -20,174 +28,442 @@
<header id="title-block-header">
<h1 class="title">Native/Unit Test Development Guidelines</h1>
</header>
<nav id="TOC">
<nav id="TOC" role="doc-toc">
<ul>
<li><a href="#good-test-properties">Good test properties</a><ul>
<li><a href="#lightness">Lightness</a></li>
<li><a href="#isolation">Isolation</a></li>
<li><a href="#atomicity-and-self-containment">Atomicity and self-containment</a></li>
<li><a href="#repeatability">Repeatability</a></li>
<li><a href="#informativeness">Informativeness</a></li>
<li><a href="#testing-instead-of-visiting">Testing instead of visiting</a></li>
<li><a href="#nearness">Nearness</a></li>
<li><a href="#good-test-properties" id="toc-good-test-properties">Good
test properties</a>
<ul>
<li><a href="#lightness" id="toc-lightness">Lightness</a></li>
<li><a href="#isolation" id="toc-isolation">Isolation</a></li>
<li><a href="#atomicity-and-self-containment"
id="toc-atomicity-and-self-containment">Atomicity and
self-containment</a></li>
<li><a href="#repeatability"
id="toc-repeatability">Repeatability</a></li>
<li><a href="#informativeness"
id="toc-informativeness">Informativeness</a></li>
<li><a href="#testing-instead-of-visiting"
id="toc-testing-instead-of-visiting">Testing instead of
visiting</a></li>
<li><a href="#nearness" id="toc-nearness">Nearness</a></li>
</ul></li>
<li><a href="#asserts">Asserts</a><ul>
<li><a href="#several-checks">Several checks</a></li>
<li><a href="#first-parameter-is-expected-value">First parameter is expected value</a></li>
<li><a href="#floating-point-comparison">Floating-point comparison</a></li>
<li><a href="#c-string-comparison">C string comparison</a></li>
<li><a href="#error-messages">Error messages</a></li>
<li><a href="#uncluttered-output">Uncluttered output</a></li>
<li><a href="#failures-propagation">Failures propagation</a></li>
<li><a href="#asserts" id="toc-asserts">Asserts</a>
<ul>
<li><a href="#several-checks" id="toc-several-checks">Several
checks</a></li>
<li><a href="#first-parameter-is-expected-value"
id="toc-first-parameter-is-expected-value">First parameter is expected
value</a></li>
<li><a href="#floating-point-comparison"
id="toc-floating-point-comparison">Floating-point comparison</a></li>
<li><a href="#c-string-comparison" id="toc-c-string-comparison">C string
comparison</a></li>
<li><a href="#error-messages" id="toc-error-messages">Error
messages</a></li>
<li><a href="#uncluttered-output"
id="toc-uncluttered-output">Uncluttered output</a></li>
<li><a href="#failures-propagation"
id="toc-failures-propagation">Failures propagation</a></li>
</ul></li>
<li><a href="#naming-and-grouping">Naming and Grouping</a><ul>
<li><a href="#test-group-names">Test group names</a></li>
<li><a href="#filename">Filename</a></li>
<li><a href="#file-location">File location</a></li>
<li><a href="#test-names">Test names</a></li>
<li><a href="#fixture-classes">Fixture classes</a></li>
<li><a href="#friend-classes">Friend classes</a></li>
<li><a href="#oscpu-specific-tests">OS/CPU specific tests</a></li>
<li><a href="#naming-and-grouping" id="toc-naming-and-grouping">Naming
and Grouping</a>
<ul>
<li><a href="#test-group-names" id="toc-test-group-names">Test group
names</a></li>
<li><a href="#filename" id="toc-filename">Filename</a></li>
<li><a href="#file-location" id="toc-file-location">File
location</a></li>
<li><a href="#test-names" id="toc-test-names">Test names</a></li>
<li><a href="#fixture-classes" id="toc-fixture-classes">Fixture
classes</a></li>
<li><a href="#friend-classes" id="toc-friend-classes">Friend
classes</a></li>
<li><a href="#oscpu-specific-tests" id="toc-oscpu-specific-tests">OS/CPU
specific tests</a></li>
</ul></li>
<li><a href="#miscellaneous">Miscellaneous</a><ul>
<li><a href="#hotspot-style">Hotspot style</a></li>
<li><a href="#codetest-metrics">Code/test metrics</a></li>
<li><a href="#access-to-non-public-members">Access to non-public members</a></li>
<li><a href="#death-tests">Death tests</a></li>
<li><a href="#external-flags">External flags</a></li>
<li><a href="#test-specific-flags">Test-specific flags</a></li>
<li><a href="#flag-restoring">Flag restoring</a></li>
<li><a href="#googletest-documentation">GoogleTest documentation</a></li>
<li><a href="#miscellaneous" id="toc-miscellaneous">Miscellaneous</a>
<ul>
<li><a href="#hotspot-style" id="toc-hotspot-style">Hotspot
style</a></li>
<li><a href="#codetest-metrics" id="toc-codetest-metrics">Code/test
metrics</a></li>
<li><a href="#access-to-non-public-members"
id="toc-access-to-non-public-members">Access to non-public
members</a></li>
<li><a href="#death-tests" id="toc-death-tests">Death tests</a></li>
<li><a href="#external-flags" id="toc-external-flags">External
flags</a></li>
<li><a href="#test-specific-flags"
id="toc-test-specific-flags">Test-specific flags</a></li>
<li><a href="#flag-restoring" id="toc-flag-restoring">Flag
restoring</a></li>
<li><a href="#googletest-documentation"
id="toc-googletest-documentation">GoogleTest documentation</a></li>
</ul></li>
<li><a href="#todo">TODO</a></li>
<li><a href="#todo" id="toc-todo">TODO</a></li>
</ul>
</nav>
<p>The purpose of these guidelines is to establish a shared vision on what kind of native tests and how we want to develop them for Hotspot using GoogleTest. Hence these guidelines include style items as well as test approach items.</p>
<p>First section of this document describes properties of good tests which are common for almost all types of test regardless of language, framework, etc. Further sections provide recommendations to achieve those properties and other HotSpot and/or GoogleTest specific guidelines.</p>
<p>The purpose of these guidelines is to establish a shared vision on
what kind of native tests and how we want to develop them for Hotspot
using GoogleTest. Hence these guidelines include style items as well as
test approach items.</p>
<p>First section of this document describes properties of good tests
which are common for almost all types of test regardless of language,
framework, etc. Further sections provide recommendations to achieve
those properties and other HotSpot and/or GoogleTest specific
guidelines.</p>
<h2 id="good-test-properties">Good test properties</h2>
<h3 id="lightness">Lightness</h3>
<p>Use the most lightweight type of tests.</p>
<p>In Hotspot, there are 3 different types of tests regarding their dependency on a JVM, each next level is slower than previous</p>
<p>In Hotspot, there are 3 different types of tests regarding their
dependency on a JVM, each next level is slower than previous</p>
<ul>
<li><p><code>TEST</code> : a test does not depend on a JVM</p></li>
<li><p><code>TEST_VM</code> : a test does depend on an initialized JVM, but are supposed not to break a JVM, i.e. leave it in a workable state.</p></li>
<li><p><code>TEST_OTHER_VM</code> : a test depends on a JVM and requires a freshly initialized JVM or leaves a JVM in non-workable state</p></li>
<li><p><code>TEST_VM</code> : a test does depend on an initialized JVM,
but are supposed not to break a JVM, i.e. leave it in a workable
state.</p></li>
<li><p><code>TEST_OTHER_VM</code> : a test depends on a JVM and requires
a freshly initialized JVM or leaves a JVM in non-workable state</p></li>
</ul>
<h3 id="isolation">Isolation</h3>
<p>Tests have to be isolated: not to have visible side-effects, influences on other tests results.</p>
<p>Results of one test should not depend on test execution order, other tests, otherwise it is becoming almost impossible to find out why a test failed. Due to hotspot-specific, it is not so easy to get a full isolation, e.g. we share an initialized JVM between all <code>TEST_VM</code> tests, so if your test changes JVM's state too drastically and does not change it back, you had better consider <code>TEST_OTHER_VM</code>.</p>
<h3 id="atomicity-and-self-containment">Atomicity and self-containment</h3>
<p>Tests should be <em>atomic</em> and <em>self-contained</em> at the same time.</p>
<p>One test should check a particular part of a class, subsystem, functionality, etc. Then it is quite easy to determine what parts of a product are broken basing on test failures. On the other hand, a test should test that part more-or-less entirely, because when one sees a test <code>FooTest::bar</code>, they assume all aspects of bar from <code>Foo</code> are tested.</p>
<p>However, it is impossible to cover all aspects even of a method, not to mention a subsystem. In such cases, it is recommended to have several tests, one for each aspect of a thing under test. For example one test to tests how <code>Foo::bar</code> works if an argument is <code>null</code>, another test to test how it works if an argument is acceptable but <code>Foo</code> is not in the right state to accept it and so on. This helps not only to make tests atomic, self-contained but also makes test name self-descriptive (discussed in more details in <a href="#test-names">Test names</a>).</p>
<p>Tests have to be isolated: not to have visible side-effects,
influences on other tests results.</p>
<p>Results of one test should not depend on test execution order, other
tests, otherwise it is becoming almost impossible to find out why a test
failed. Due to hotspot-specific, it is not so easy to get a full
isolation, e.g. we share an initialized JVM between all
<code>TEST_VM</code> tests, so if your test changes JVM's state too
drastically and does not change it back, you had better consider
<code>TEST_OTHER_VM</code>.</p>
<h3 id="atomicity-and-self-containment">Atomicity and
self-containment</h3>
<p>Tests should be <em>atomic</em> and <em>self-contained</em> at the
same time.</p>
<p>One test should check a particular part of a class, subsystem,
functionality, etc. Then it is quite easy to determine what parts of a
product are broken basing on test failures. On the other hand, a test
should test that part more-or-less entirely, because when one sees a
test <code>FooTest::bar</code>, they assume all aspects of bar from
<code>Foo</code> are tested.</p>
<p>However, it is impossible to cover all aspects even of a method, not
to mention a subsystem. In such cases, it is recommended to have several
tests, one for each aspect of a thing under test. For example one test
to tests how <code>Foo::bar</code> works if an argument is
<code>null</code>, another test to test how it works if an argument is
acceptable but <code>Foo</code> is not in the right state to accept it
and so on. This helps not only to make tests atomic, self-contained but
also makes test name self-descriptive (discussed in more details in <a
href="#test-names">Test names</a>).</p>
<h3 id="repeatability">Repeatability</h3>
<p>Tests have to be repeatable.</p>
<p>Reproducibility is very crucial for a test. No one likes sporadic test failures, they are hard to investigate, fix and verify a fix.</p>
<p>In some cases, it is quite hard to write a 100% repeatable test, since besides a test there can be other moving parts, e.g. in case of <code>TEST_VM</code> there are several concurrently running threads. Despite this, we should try to make a test as reproducible as possible.</p>
<p>Reproducibility is very crucial for a test. No one likes sporadic
test failures, they are hard to investigate, fix and verify a fix.</p>
<p>In some cases, it is quite hard to write a 100% repeatable test,
since besides a test there can be other moving parts, e.g. in case of
<code>TEST_VM</code> there are several concurrently running threads.
Despite this, we should try to make a test as reproducible as
possible.</p>
<h3 id="informativeness">Informativeness</h3>
<p>In case of a failure, a test should be as <em>informative</em> as possible.</p>
<p>Having more information about a test failure than just compared values can be very useful for failure troubleshooting, it can reduce or even completely eliminate debugging hours. This is even more important in case of not 100% reproducible failures.</p>
<p>Achieving this property, one can easily make a test too verbose, so it will be really hard to find useful information in the ocean of useless information. Hence they should not only think about how to provide <a href="#error-messages">good information</a>, but also <a href="#uncluttered-output">when to do it</a>.</p>
<p>In case of a failure, a test should be as <em>informative</em> as
possible.</p>
<p>Having more information about a test failure than just compared
values can be very useful for failure troubleshooting, it can reduce or
even completely eliminate debugging hours. This is even more important
in case of not 100% reproducible failures.</p>
<p>Achieving this property, one can easily make a test too verbose, so
it will be really hard to find useful information in the ocean of
useless information. Hence they should not only think about how to
provide <a href="#error-messages">good information</a>, but also <a
href="#uncluttered-output">when to do it</a>.</p>
<h3 id="testing-instead-of-visiting">Testing instead of visiting</h3>
<p>Tests should <em>test</em>.</p>
<p>It is not enough just to &quot;visit&quot; some code, a test should check that code does that it has to do, compare return values with expected values, check that desired side effects are done, and undesired are not, and so on. In other words, a test should contain at least one GoogleTest assertion and do not rely on JVM asserts.</p>
<p>Generally speaking to write a good test, one should create a model of the system under tests, a model of possible bugs (or bugs which one wants to find) and design tests using those models.</p>
<p>It is not enough just to "visit" some code, a test should check that
code does that it has to do, compare return values with expected values,
check that desired side effects are done, and undesired are not, and so
on. In other words, a test should contain at least one GoogleTest
assertion and do not rely on JVM asserts.</p>
<p>Generally speaking to write a good test, one should create a model of
the system under tests, a model of possible bugs (or bugs which one
wants to find) and design tests using those models.</p>
<h3 id="nearness">Nearness</h3>
<p>Prefer having checks inside test code.</p>
<p>Not only does having test logic outside, e.g. verification method, depending on asserts in product code contradict with several items above but also decreases tests readability and stability. It is much easier to understand that a test is testing when all testing logic is located inside a test or nearby in shared test libraries. As a rule of thumb, the closer a check to a test, the better.</p>
<p>Not only does having test logic outside, e.g. verification method,
depending on asserts in product code contradict with several items above
but also decreases tests readability and stability. It is much easier
to understand that a test is testing when all testing logic is located
inside a test or nearby in shared test libraries. As a rule of thumb,
the closer a check to a test, the better.</p>
<h2 id="asserts">Asserts</h2>
<h3 id="several-checks">Several checks</h3>
<p>Prefer <code>EXPECT</code> over <code>ASSERT</code> if possible.</p>
<p>This is related to the <a href="#informativeness">informativeness</a> property of tests, information for other checks can help to better localize a defects root-cause. One should use <code>ASSERT</code> if it is impossible to continue test execution or if it does not make much sense. Later in the text, <code>EXPECT</code> forms will be used to refer to both <code>ASSERT/EXPECT</code>.</p>
<p>When it is possible to make several different checks, but impossible to continue test execution if at least one check fails, you can use <code>::testing::Test::HasNonfatalFailure()</code> function. The recommended way to express that is <code>ASSERT_FALSE(::testing::Test::HasNonfatalFailure())</code>. Besides making it clear why a test is aborted, it also allows you to provide more information about a failure.</p>
<h3 id="first-parameter-is-expected-value">First parameter is expected value</h3>
<p>In all equality assertions, expected values should be passed as the first parameter.</p>
<p>This convention is adopted by GoogleTest, and there is a slight difference in how GoogleTest treats parameters, the most important one is <code>null</code> detection. Due to different reasons, <code>null</code> detection is enabled only for the first parameter, that is to said <code>EXPECT_EQ(NULL, object)</code> checks that object is <code>null</code>, while <code>EXPECT_EQ(object, NULL)</code> checks that object equals to <code>NULL</code>, GoogleTest is very strict regarding types of compared values so the latter will generates a compile-time error.</p>
<p>This is related to the <a href="#informativeness">informativeness</a>
property of tests, information for other checks can help to better
localize a defects root-cause. One should use <code>ASSERT</code> if it
is impossible to continue test execution or if it does not make much
sense. Later in the text, <code>EXPECT</code> forms will be used to
refer to both <code>ASSERT/EXPECT</code>.</p>
<p>When it is possible to make several different checks, but impossible
to continue test execution if at least one check fails, you can use
<code>::testing::Test::HasNonfatalFailure()</code> function. The
recommended way to express that is
<code>ASSERT_FALSE(::testing::Test::HasNonfatalFailure())</code>.
Besides making it clear why a test is aborted, it also allows you to
provide more information about a failure.</p>
<h3 id="first-parameter-is-expected-value">First parameter is expected
value</h3>
<p>In all equality assertions, expected values should be passed as the
first parameter.</p>
<p>This convention is adopted by GoogleTest, and there is a slight
difference in how GoogleTest treats parameters, the most important one
is <code>null</code> detection. Due to different reasons,
<code>null</code> detection is enabled only for the first parameter,
that is to said <code>EXPECT_EQ(NULL, object)</code> checks that object
is <code>null</code>, while <code>EXPECT_EQ(object, NULL)</code> checks
that object equals to <code>NULL</code>, GoogleTest is very strict
regarding types of compared values so the latter will generates a
compile-time error.</p>
<h3 id="floating-point-comparison">Floating-point comparison</h3>
<p>Use floating-point special macros to compare <code>float/double</code> values.</p>
<p>Because of floating-point number representations and round-off errors, regular equality comparison will not return true in most cases. There are special <code>EXPECT_FLOAT_EQ/EXPECT_DOUBLE_EQ</code> assertions which check that the distance between compared values is not more than 4 ULPs, there is also <code>EXPECT_NEAR(v1, v2, eps)</code> which checks that the absolute value of the difference between <code>v1</code> and <code>v2</code> is not greater than <code>eps</code>.</p>
<p>Use floating-point special macros to compare
<code>float/double</code> values.</p>
<p>Because of floating-point number representations and round-off
errors, regular equality comparison will not return true in most cases.
There are special <code>EXPECT_FLOAT_EQ/EXPECT_DOUBLE_EQ</code>
assertions which check that the distance between compared values is not
more than 4 ULPs, there is also <code>EXPECT_NEAR(v1, v2, eps)</code>
which checks that the absolute value of the difference between
<code>v1</code> and <code>v2</code> is not greater than
<code>eps</code>.</p>
<h3 id="c-string-comparison">C string comparison</h3>
<p>Use string special macros for C strings comparisons.</p>
<p><code>EXPECT_EQ</code> just compares pointers values, which is hardly what one wants comparing C strings. GoogleTest provides <code>EXPECT_STREQ</code> and <code>EXPECT_STRNE</code> macros to compare C string contents. There are also case-insensitive versions <code>EXPECT_STRCASEEQ</code>, <code>EXPECT_STRCASENE</code>.</p>
<p><code>EXPECT_EQ</code> just compares pointers values, which is
hardly what one wants comparing C strings. GoogleTest provides
<code>EXPECT_STREQ</code> and <code>EXPECT_STRNE</code> macros to
compare C string contents. There are also case-insensitive versions
<code>EXPECT_STRCASEEQ</code>, <code>EXPECT_STRCASENE</code>.</p>
<h3 id="error-messages">Error messages</h3>
<p>Provide informative, but not too verbose error messages.</p>
<p>All GoogleTest asserts print compared expressions and their values, so there is no need to have them in error messages. Asserts print only compared values, they do not print any of interim variables, e.g. <code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8)) || i == 18)</code> prints only one value. If you use some complex predicates, please consider <code>EXPECT_PRED*</code> or <code>EXPECT_FORMAT_PRED</code> assertions family, they check that a predicate returns true/success and print out all parameters values.</p>
<p>However in some cases, default information is not enough, a commonly used example is an assert inside a loop, GoogleTest will not print iteration values (unless it is an assert's parameter). Other demonstrative examples are printing error code and a corresponding error message; printing internal states which might have an impact on results. One should add this information to assert message using <code>&lt;&lt;</code> operator.</p>
<p>All GoogleTest asserts print compared expressions and their values,
so there is no need to have them in error messages. Asserts print only
compared values, they do not print any of interim variables, e.g.
<code>ASSERT_TRUE((val1 == val2 &amp;&amp; isFail(foo(8)) || i == 18)</code>
prints only one value. If you use some complex predicates, please
consider <code>EXPECT_PRED*</code> or <code>EXPECT_FORMAT_PRED</code>
assertions family, they check that a predicate returns true/success and
print out all parameters values.</p>
<p>However in some cases, default information is not enough, a commonly
used example is an assert inside a loop, GoogleTest will not print
iteration values (unless it is an assert's parameter). Other
demonstrative examples are printing error code and a corresponding error
message; printing internal states which might have an impact on results.
One should add this information to assert message using
<code>&lt;&lt;</code> operator.</p>
<h3 id="uncluttered-output">Uncluttered output</h3>
<p>Print information only if it is needed.</p>
<p>Too verbose tests which print all information even if they pass are very bad practice. They just pollute output, so it becomes harder to find useful information. In order not print information till it is really needed, one should consider saving it to a temporary buffer and pass to an assert. <a href="https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp" class="uri">https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp</a> has a good example how to do that.</p>
<p>Too verbose tests which print all information even if they pass are
very bad practice. They just pollute output, so it becomes harder to
find useful information. In order not print information till it is
really needed, one should consider saving it to a temporary buffer and
pass to an assert. <a
href="https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp"
class="uri">https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp</a>
has a good example how to do that.</p>
<h3 id="failures-propagation">Failures propagation</h3>
<p>Wrap a subroutine call into <code>EXPECT_NO_FATAL_FAILURE</code> macro to propagate failures.</p>
<p><code>ASSERT</code> and <code>FAIL</code> abort only the current function, so if you have them in a subroutine, a test will not be aborted after the subroutine even if <code>ASSERT</code> or <code>FAIL</code> fails. You should call such subroutines in <code>ASSERT_NO_FATAL_FAILURE</code> macro to propagate fatal failures and abort a test. <code>(EXPECT|ASSERT)_NO_FATAL_FAILURE</code> can also be used to provide more information.</p>
<p>Due to obvious reasons, there are no <code>(EXPECT|ASSERT)_NO_NONFATAL_FAILURE</code> macros. However, if you need to check if a subroutine generated a nonfatal failure (failed an <code>EXPECT</code>), you can use <code>::testing::Test::HasNonfatalFailure</code> function, or <code>::testing::Test::HasFailure</code> function to check if a subroutine generated any failures, see <a href="#several-checks">Several checks</a>.</p>
<p>Wrap a subroutine call into <code>EXPECT_NO_FATAL_FAILURE</code>
macro to propagate failures.</p>
<p><code>ASSERT</code> and <code>FAIL</code> abort only the current
function, so if you have them in a subroutine, a test will not be
aborted after the subroutine even if <code>ASSERT</code> or
<code>FAIL</code> fails. You should call such subroutines in
<code>ASSERT_NO_FATAL_FAILURE</code> macro to propagate fatal failures
and abort a test. <code>(EXPECT|ASSERT)_NO_FATAL_FAILURE</code> can also
be used to provide more information.</p>
<p>Due to obvious reasons, there are no
<code>(EXPECT|ASSERT)_NO_NONFATAL_FAILURE</code> macros. However, if you
need to check if a subroutine generated a nonfatal failure (failed an
<code>EXPECT</code>), you can use
<code>::testing::Test::HasNonfatalFailure</code> function, or
<code>::testing::Test::HasFailure</code> function to check if a
subroutine generated any failures, see <a href="#several-checks">Several
checks</a>.</p>
<h2 id="naming-and-grouping">Naming and Grouping</h2>
<h3 id="test-group-names">Test group names</h3>
<p>Test group names should be in CamelCase, start and end with a letter. A test group should be named after tested class, functionality, subsystem, etc.</p>
<p>This naming scheme helps to find tests, filter them and simplifies test failure analysis. For example, class <code>Foo</code> - test group <code>Foo</code>, compiler logging subsystem - test group <code>CompilerLogging</code>, G1 GC — test group <code>G1GC</code>, and so forth.</p>
<p>Test group names should be in CamelCase, start and end with a letter.
A test group should be named after tested class, functionality,
subsystem, etc.</p>
<p>This naming scheme helps to find tests, filter them and simplifies
test failure analysis. For example, class <code>Foo</code> - test group
<code>Foo</code>, compiler logging subsystem - test group
<code>CompilerLogging</code>, G1 GC — test group <code>G1GC</code>, and
so forth.</p>
<h3 id="filename">Filename</h3>
<p>A test file must have <code>test_</code> prefix and <code>.cpp</code> suffix.</p>
<p>Both are actually requirements from the current build system to recognize your tests.</p>
<p>A test file must have <code>test_</code> prefix and <code>.cpp</code>
suffix.</p>
<p>Both are actually requirements from the current build system to
recognize your tests.</p>
<h3 id="file-location">File location</h3>
<p>Test file location should reflect a location of the tested part of the product.</p>
<p>Test file location should reflect a location of the tested part of
the product.</p>
<ul>
<li><p>All unit tests for a class from <code>foo/bar/baz.cpp</code> should be placed <code>foo/bar/test_baz.cpp</code> in <code>hotspot/test/native/</code> directory. Having all tests for a class in one file is a common practice for unit tests, it helps to see all existing tests at once, share functions and/or resources without losing encapsulation.</p></li>
<li><p>For tests which test more than one class, directory hierarchy should be the same as product hierarchy, and file name should reflect the name of the tested subsystem/functionality. For example, if a sub-system under tests belongs to <code>gc/g1</code>, tests should be placed in <code>gc/g1</code> directory.</p></li>
<li><p>All unit tests for a class from <code>foo/bar/baz.cpp</code>
should be placed <code>foo/bar/test_baz.cpp</code> in
<code>hotspot/test/native/</code> directory. Having all tests for a
class in one file is a common practice for unit tests, it helps to see
all existing tests at once, share functions and/or resources without
losing encapsulation.</p></li>
<li><p>For tests which test more than one class, directory hierarchy
should be the same as product hierarchy, and file name should reflect
the name of the tested subsystem/functionality. For example, if a
sub-system under tests belongs to <code>gc/g1</code>, tests should be
placed in <code>gc/g1</code> directory.</p></li>
</ul>
<p>Please note that framework prepends directory name to a test group name. For example, if <code>TEST(foo, check_this)</code> and <code>TEST(bar, check_that)</code> are defined in <code>hotspot/test/native/gc/shared/test_foo.cpp</code> file, they will be reported as <code>gc/shared/foo::check_this</code> and <code>gc/shared/bar::check_that</code>.</p>
<p>Please note that framework prepends directory name to a test group
name. For example, if <code>TEST(foo, check_this)</code> and
<code>TEST(bar, check_that)</code> are defined in
<code>hotspot/test/native/gc/shared/test_foo.cpp</code> file, they will
be reported as <code>gc/shared/foo::check_this</code> and
<code>gc/shared/bar::check_that</code>.</p>
<h3 id="test-names">Test names</h3>
<p>Test names should be in small_snake_case, start and end with a letter. A test name should reflect that a test checks.</p>
<p>Such naming makes tests self-descriptive and helps a lot during the whole test life cycle. It is easy to do test planning, test inventory, to see what things are not tested, to review tests, to analyze test failures, to evolve a test, etc. For example <code>foo_return_0_if_name_is_null</code> is better than <code>foo_sanity</code> or <code>foo_basic</code> or just <code>foo</code>, <code>humongous_objects_can_not_be_moved_by_young_gc</code> is better than <code>ho_young_gc</code>.</p>
<p>Actually using underscore is against GoogleTest project convention, because it can lead to illegal identifiers, however, this is too strict. Restricting usage of underscore for test names only and prohibiting test name starts or ends with an underscore are enough to be safe.</p>
<p>Test names should be in small_snake_case, start and end with a
letter. A test name should reflect that a test checks.</p>
<p>Such naming makes tests self-descriptive and helps a lot during the
whole test life cycle. It is easy to do test planning, test inventory,
to see what things are not tested, to review tests, to analyze test
failures, to evolve a test, etc. For example
<code>foo_return_0_if_name_is_null</code> is better than
<code>foo_sanity</code> or <code>foo_basic</code> or just
<code>foo</code>,
<code>humongous_objects_can_not_be_moved_by_young_gc</code> is better
than <code>ho_young_gc</code>.</p>
<p>Actually using underscore is against GoogleTest project convention,
because it can lead to illegal identifiers, however, this is too strict.
Restricting usage of underscore for test names only and prohibiting test
name starts or ends with an underscore are enough to be safe.</p>
<h3 id="fixture-classes">Fixture classes</h3>
<p>Fixture classes should be named after tested classes, subsystems, etc (follow <a href="#test-group-names">Test group names rule</a>) and have <code>Test</code> suffix to prevent class name conflicts.</p>
<p>Fixture classes should be named after tested classes, subsystems, etc
(follow <a href="#test-group-names">Test group names rule</a>) and have
<code>Test</code> suffix to prevent class name conflicts.</p>
<h3 id="friend-classes">Friend classes</h3>
<p>All test purpose friends should have either <code>Test</code> or <code>Testable</code> suffix.</p>
<p>It greatly simplifies understanding of friendships purpose and allows statically check that private members are not exposed unexpectedly. Having <code>FooTest</code> as a friend of <code>Foo</code> without any comments will be understood as a necessary evil to get testability.</p>
<p>All test purpose friends should have either <code>Test</code> or
<code>Testable</code> suffix.</p>
<p>It greatly simplifies understanding of friendships purpose and
allows statically check that private members are not exposed
unexpectedly. Having <code>FooTest</code> as a friend of
<code>Foo</code> without any comments will be understood as a necessary
evil to get testability.</p>
<h3 id="oscpu-specific-tests">OS/CPU specific tests</h3>
<p>Guard OS/CPU specific tests by <code>#ifdef</code> and have OS/CPU name in filename.</p>
<p>For the time being, we do not support separate directories for OS, CPU, OS-CPU specific tests, in case we will have lots of such tests, we will change directory layout and build system to support that in the same way it is done in hotspot.</p>
<p>Guard OS/CPU specific tests by <code>#ifdef</code> and have OS/CPU
name in filename.</p>
<p>For the time being, we do not support separate directories for OS,
CPU, OS-CPU specific tests, in case we will have lots of such tests, we
will change directory layout and build system to support that in the
same way it is done in hotspot.</p>
<h2 id="miscellaneous">Miscellaneous</h2>
<h3 id="hotspot-style">Hotspot style</h3>
<p>Abide the norms and rules accepted in Hotspot style guide.</p>
<p>Tests are a part of Hotspot, so everything (if applicable) we use for Hotspot, should be used for tests as well. Those guidelines cover test-specific things.</p>
<p>Tests are a part of Hotspot, so everything (if applicable) we use for
Hotspot, should be used for tests as well. Those guidelines cover
test-specific things.</p>
<h3 id="codetest-metrics">Code/test metrics</h3>
<p>Coverage information and other code/test metrics are quite useful to decide what tests should be written, what tests should be improved and what can be removed.</p>
<p>For unit tests, widely used and well-known coverage metric is branch coverage, which provides good quality of tests with relatively easy test development process. For other levels of testing, branch coverage is not as good, and one should consider others metrics, e.g. transaction flow coverage, data flow coverage.</p>
<p>Coverage information and other code/test metrics are quite useful to
decide what tests should be written, what tests should be improved and
what can be removed.</p>
<p>For unit tests, widely used and well-known coverage metric is branch
coverage, which provides good quality of tests with relatively easy test
development process. For other levels of testing, branch coverage is not
as good, and one should consider others metrics, e.g. transaction flow
coverage, data flow coverage.</p>
<h3 id="access-to-non-public-members">Access to non-public members</h3>
<p>Use explicit friend class to get access to non-public members.</p>
<p>We do not use GoogleTest macro to declare friendship relation, because, from our point of view, it is less clear than an explicit declaration.</p>
<p>Declaring a test fixture class as a friend class of a tested test is the easiest and the clearest way to get access. However, it has some disadvantages, here is some of them:</p>
<p>We do not use GoogleTest macro to declare friendship relation,
because, from our point of view, it is less clear than an explicit
declaration.</p>
<p>Declaring a test fixture class as a friend class of a tested test is
the easiest and the clearest way to get access. However, it has some
disadvantages, here is some of them:</p>
<ul>
<li>Each test has to be declared as a friend</li>
<li>Subclasses do not inheritance friendship relation</li>
</ul>
<p>In other words, it is harder to share code between tests. Hence if you want to share code or expect it to be useful in other tests, you should consider making members in a tested class protected and introduce a shared test-only class which expose those members via public functions, or even making members publicly accessible right away in a product class. If it is not an option to change members visibility, one can create a friend class which exposes members.</p>
<p>In other words, it is harder to share code between tests. Hence if
you want to share code or expect it to be useful in other tests, you
should consider making members in a tested class protected and introduce
a shared test-only class which expose those members via public
functions, or even making members publicly accessible right away in a
product class. If it is not an option to change members visibility, one
can create a friend class which exposes members.</p>
<h3 id="death-tests">Death tests</h3>
<p>You can not use death tests inside <code>TEST_OTHER_VM</code> and <code>TEST_VM_ASSERT*</code>.</p>
<p>We tried to make Hotspot-GoogleTest integration as transparent as possible, however, due to the current implementation of <code>TEST_OTHER_VM</code> and <code>TEST_VM_ASSERT*</code> tests, you cannot use death test functionality in them. These tests are implemented as GoogleTest death tests, and GoogleTest does not allow to have a death test inside another death test.</p>
<p>You can not use death tests inside <code>TEST_OTHER_VM</code> and
<code>TEST_VM_ASSERT*</code>.</p>
<p>We tried to make Hotspot-GoogleTest integration as transparent as
possible, however, due to the current implementation of
<code>TEST_OTHER_VM</code> and <code>TEST_VM_ASSERT*</code> tests, you
cannot use death test functionality in them. These tests are implemented
as GoogleTest death tests, and GoogleTest does not allow to have a death
test inside another death test.</p>
<h3 id="external-flags">External flags</h3>
<p>Passing external flags to a tested JVM is not supported.</p>
<p>The rationality of such design decision is to simplify both tests and a test framework and to avoid failures related to incompatible flags combination till there is a good solution for that. However there are cases when one wants to test a JVM with specific flags combination, <code>_JAVA_OPTIONS</code> environment variable can be used to do that. Flags from <code>_JAVA_OPTIONS</code> will be used in <code>TEST_VM</code>, <code>TEST_OTHER_VM</code> and <code>TEST_VM_ASSERT*</code> tests.</p>
<p>The rationality of such design decision is to simplify both tests and
a test framework and to avoid failures related to incompatible flags
combination till there is a good solution for that. However there are
cases when one wants to test a JVM with specific flags combination,
<code>_JAVA_OPTIONS</code> environment variable can be used to do that.
Flags from <code>_JAVA_OPTIONS</code> will be used in
<code>TEST_VM</code>, <code>TEST_OTHER_VM</code> and
<code>TEST_VM_ASSERT*</code> tests.</p>
<h3 id="test-specific-flags">Test-specific flags</h3>
<p>Passing flags to a tested JVM in <code>TEST_OTHER_VM</code> and <code>TEST_VM_ASSERT*</code> should be possible, but is not implemented yet.</p>
<p>Facility to pass test-specific flags is needed for system, regression or other types of tests which require a fully initialized JVM in some particular configuration, e.g. with Serial GC selected. There is no support for such tests now, however, there is a plan to add that in upcoming releases.</p>
<p>For now, if a test depends on flags values, it should have <code>if (!&lt;flag&gt;) { return }</code> guards in the very beginning and <code>@requires</code> comment similar to jtreg <code>@requires</code> directive right before test macros. <a href="https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp" class="uri">https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp</a> ha an example of this temporary workaround. It is important to follow that pattern as it allows us to easily find all such tests and update them as soon as there is an implementation of flag passing facility.</p>
<p>In long-term, we expect jtreg to support GoogleTest tests as first class citizens, that is to say, jtreg will parse <span class="citation" data-cites="requires">@requires</span> comments and filter out inapplicable tests.</p>
<p>Passing flags to a tested JVM in <code>TEST_OTHER_VM</code> and
<code>TEST_VM_ASSERT*</code> should be possible, but is not implemented
yet.</p>
<p>Facility to pass test-specific flags is needed for system, regression
or other types of tests which require a fully initialized JVM in some
particular configuration, e.g. with Serial GC selected. There is no
support for such tests now, however, there is a plan to add that in
upcoming releases.</p>
<p>For now, if a test depends on flags values, it should have
<code>if (!&lt;flag&gt;) { return }</code> guards in the very beginning
and <code>@requires</code> comment similar to jtreg
<code>@requires</code> directive right before test macros. <a
href="https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp"
class="uri">https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp</a>
ha an example of this temporary workaround. It is important to follow
that pattern as it allows us to easily find all such tests and update
them as soon as there is an implementation of flag passing facility.</p>
<p>In long-term, we expect jtreg to support GoogleTest tests as first
class citizens, that is to say, jtreg will parse <span class="citation"
data-cites="requires">@requires</span> comments and filter out
inapplicable tests.</p>
<h3 id="flag-restoring">Flag restoring</h3>
<p>Restore changed flags.</p>
<p>It is quite common for tests to configure JVM in a certain way changing flags values. GoogleTest provides two ways to set up environment before a test and restore it afterward: using either constructor and destructor or <code>SetUp</code> and <code>TearDown</code> functions. Both ways require to use a test fixture class, which sometimes is too wordy. The simpler facilities like <code>FLAG_GUARD</code> macro or <code>*FlagSetting</code> classes could be used in such cases to restore/set values.</p>
<p>It is quite common for tests to configure JVM in a certain way
changing flags values. GoogleTest provides two ways to set up
environment before a test and restore it afterward: using either
constructor and destructor or <code>SetUp</code> and
<code>TearDown</code> functions. Both ways require to use a test fixture
class, which sometimes is too wordy. The simpler facilities like
<code>FLAG_GUARD</code> macro or <code>*FlagSetting</code> classes could
be used in such cases to restore/set values.</p>
<p>Caveats:</p>
<ul>
<li><p>Changing a flags value could break the invariants between flags' values and hence could lead to unexpected/unsupported JVM state.</p></li>
<li><p><code>FLAG_SET_*</code> macros can change more than one flag (in order to maintain invariants) so it is hard to predict what flags will be changed and it makes restoring all changed flags a nontrivial task. Thus in case one uses <code>FLAG_SET_*</code> macros, they should use <code>TEST_OTHER_VM</code> test type.</p></li>
<li><p>Changing a flags value could break the invariants between flags'
values and hence could lead to unexpected/unsupported JVM
state.</p></li>
<li><p><code>FLAG_SET_*</code> macros can change more than one flag (in
order to maintain invariants) so it is hard to predict what flags will
be changed and it makes restoring all changed flags a nontrivial task.
Thus in case one uses <code>FLAG_SET_*</code> macros, they should use
<code>TEST_OTHER_VM</code> test type.</p></li>
</ul>
<h3 id="googletest-documentation">GoogleTest documentation</h3>
<p>In case you have any questions regarding GoogleTest itself, its asserts, test declaration macros, other macros, etc, please consult its documentation.</p>
<p>In case you have any questions regarding GoogleTest itself, its
asserts, test declaration macros, other macros, etc, please consult its
documentation.</p>
<h2 id="todo">TODO</h2>
<p>Although this document provides guidelines on the most important parts of test development using GTest, it still misses a few items:</p>
<p>Although this document provides guidelines on the most important
parts of test development using GTest, it still misses a few items:</p>
<ul>
<li><p>Examples, esp for <a href="#access-to-non-public-members">access to non-public members</a></p></li>
<li>test types: purpose, drawbacks, limitation
<li><p>Examples, esp for <a href="#access-to-non-public-members">access
to non-public members</a></p></li>
<li><p>test types: purpose, drawbacks, limitation</p>
<ul>
<li><code>TEST_VM</code></li>
<li><code>TEST_VM_F</code></li>
@@ -195,7 +471,7 @@
<li><code>TEST_VM_ASSERT</code></li>
<li><code>TEST_VM_ASSERT_MSG</code></li>
</ul></li>
<li>Miscellaneous
<li><p>Miscellaneous</p>
<ul>
<li>Test libraries
<ul>
@@ -208,7 +484,8 @@
<li>how to run tests in random order</li>
<li>how to run only specific tests</li>
<li>how to run each test separately</li>
<li>check that a test can find bugs it is supposed to by introducing them</li>
<li>check that a test can find bugs it is supposed to by introducing
them</li>
</ul></li>
<li>mocks/stubs/dependency injection</li>
<li>setUp/tearDown

View File

@@ -100,7 +100,7 @@ Generally speaking to write a good test, one should create a model of
the system under tests, a model of possible bugs (or bugs which one
wants to find) and design tests using those models.
### Nearness
### Nearness
Prefer having checks inside test code.
@@ -156,7 +156,7 @@ that the distance between compared values is not more than 4 ULPs,
there is also `EXPECT_NEAR(v1, v2, eps)` which checks that the absolute
value of the difference between `v1` and `v2` is not greater than `eps`.
### C string comparison
### C string comparison
Use string special macros for C strings comparisons.
@@ -194,7 +194,7 @@ very bad practice. They just pollute output, so it becomes harder to
find useful information. In order not print information till it is
really needed, one should consider saving it to a temporary buffer and
pass to an assert.
<https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp>
<https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp>
has a good example how to do that.
### Failures propagation
@@ -229,7 +229,7 @@ test failure analysis. For example, class `Foo` - test group `Foo`,
compiler logging subsystem - test group `CompilerLogging`, G1 GC — test
group `G1GC`, and so forth.
### Filename
### Filename
A test file must have `test_` prefix and `.cpp` suffix.
@@ -283,7 +283,7 @@ Fixture classes should be named after tested classes, subsystems, etc
(follow [Test group names rule](#test-group-names)) and have
`Test` suffix to prevent class name conflicts.
### Friend classes
### Friend classes
All test purpose friends should have either `Test` or `Testable` suffix.
@@ -303,7 +303,7 @@ the same way it is done in hotspot.
## Miscellaneous
### Hotspot style
### Hotspot style
Abide the norms and rules accepted in Hotspot style guide.
@@ -383,7 +383,7 @@ upcoming releases.
For now, if a test depends on flags values, it should have `if
(!<flag>) { return }` guards in the very beginning and `@requires`
comment similar to jtreg `@requires` directive right before test macros.
<https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp>
<https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp>
ha an example of this temporary workaround. It is important to follow
that pattern as it allows us to easily find all such tests and update
them as soon as there is an implementation of flag passing facility.
@@ -392,7 +392,7 @@ In long-term, we expect jtreg to support GoogleTest tests as first
class citizens, that is to say, jtreg will parse @requires comments
and filter out inapplicable tests.
### Flag restoring
### Flag restoring
Restore changed flags.
@@ -404,7 +404,7 @@ require to use a test fixture class, which sometimes is too wordy. The
simpler facilities like `FLAG_GUARD` macro or `*FlagSetting` classes could
be used in such cases to restore/set values.
Caveats:
Caveats:
* Changing a flags value could break the invariants between flags' values and hence could lead to unexpected/unsupported JVM state.

View File

@@ -5,11 +5,19 @@
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>IDE support in the JDK</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<link rel="stylesheet" href="../make/data/docs-resources/resources/jdk-default.css" />
<!--[if lt IE 9]>
@@ -20,41 +28,144 @@
<header id="title-block-header">
<h1 class="title">IDE support in the JDK</h1>
</header>
<nav id="TOC">
<nav id="TOC" role="doc-toc">
<ul>
<li><a href="#introduction">Introduction</a><ul>
<li><a href="#ide-support-for-native-code">IDE support for native code</a></li>
<li><a href="#ide-support-for-java-code">IDE support for Java code</a></li>
<li><a href="#introduction" id="toc-introduction">Introduction</a>
<ul>
<li><a href="#ide-support-for-native-code"
id="toc-ide-support-for-native-code">IDE support for native
code</a></li>
<li><a href="#ide-support-for-java-code"
id="toc-ide-support-for-java-code">IDE support for Java code</a></li>
</ul></li>
</ul>
</nav>
<h2 id="introduction">Introduction</h2>
<p>When you are familiar with building and testing the JDK, you may want to configure an IDE to work with the source code. The instructions differ a bit depending on whether you are interested in working with the native (C/C++) or the Java code.</p>
<p>When you are familiar with building and testing the JDK, you may want
to configure an IDE to work with the source code. The instructions
differ a bit depending on whether you are interested in working with the
native (C/C++) or the Java code.</p>
<h3 id="ide-support-for-native-code">IDE support for native code</h3>
<p>There are a few ways to generate IDE configuration for the native sources, depending on which IDE to use.</p>
<p>There are a few ways to generate IDE configuration for the native
sources, depending on which IDE to use.</p>
<h4 id="visual-studio-code">Visual Studio Code</h4>
<p>The make system can generate a <a href="https://code.visualstudio.com">Visual Studio Code</a> workspace that has C/C++ source indexing configured correctly, as well as launcher targets for tests and the Java launcher. After configuring, a workspace for the configuration can be generated using:</p>
<p>The make system can generate a <a
href="https://code.visualstudio.com">Visual Studio Code</a> workspace
that has C/C++ source indexing configured correctly, as well as launcher
targets for tests and the Java launcher. After configuring, a workspace
for the configuration can be generated using:</p>
<pre class="shell"><code>make vscode-project</code></pre>
<p>This creates a file called <code>jdk.code-workspace</code> in the build output folder. The full location will be printed after the workspace has been generated. To use it, choose <code>File -&gt; Open Workspace...</code> in Visual Studio Code.</p>
<p>This creates a file called <code>jdk.code-workspace</code> in the
build output folder. The full location will be printed after the
workspace has been generated. To use it, choose
<code>File -&gt; Open Workspace...</code> in Visual Studio Code.</p>
<h5 id="alternative-indexers">Alternative indexers</h5>
<p>The main <code>vscode-project</code> target configures the default C++ support in Visual Studio Code. There are also other source indexers that can be installed, that may provide additional features. It's currently possible to generate configuration for two such indexers, <a href="https://clang.llvm.org/extra/clangd/">clangd</a> and <a href="https://github.com/Andersbakken/rtags">rtags</a>. These can be configured by appending the name of the indexer to the make target, such as:</p>
<p>The main <code>vscode-project</code> target configures the default
C++ support in Visual Studio Code. There are also other source indexers
that can be installed, that may provide additional features. It's
currently possible to generate configuration for two such indexers, <a
href="https://clang.llvm.org/extra/clangd/">clangd</a> and <a
href="https://github.com/Andersbakken/rtags">rtags</a>. These can be
configured by appending the name of the indexer to the make target, such
as:</p>
<pre class="shell"><code>make vscode-project-clangd</code></pre>
<p>Additional instructions for configuring the given indexer will be displayed after the workspace has been generated.</p>
<p>Additional instructions for configuring the given indexer will be
displayed after the workspace has been generated.</p>
<h4 id="visual-studio">Visual Studio</h4>
<p>The make system can generate a Visual Studio project for the Hotspot native source. After configuring, the project is generated using:</p>
<p>The make system can generate a Visual Studio project for the Hotspot
native source. After configuring, the project is generated using:</p>
<pre class="shell"><code>make hotspot-ide-project</code></pre>
<p>This creates a file named <code>jvm.vcxproj</code> in <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>
<p>This creates a file named <code>jvm.vcxproj</code> in
<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 href="https://clang.llvm.org/docs/JSONCompilationDatabase.html">Compilation Database</a> that can be used by many different IDEs and source code indexers.</p>
<p>The make system can generate generic native code indexing support in
the form of a <a
href="https://clang.llvm.org/docs/JSONCompilationDatabase.html">Compilation
Database</a> that can be used by many different IDEs and source code
indexers.</p>
<pre class="shell"><code>make compile-commands</code></pre>
<p>It's also possible to generate the Compilation Database for the HotSpot source code only, which is a bit faster as it includes less information.</p>
<p>It's also possible to generate the Compilation Database for the
HotSpot source code only, which is a bit faster as it includes less
information.</p>
<pre class="shell"><code>make compile-commands-hotspot</code></pre>
<h3 id="ide-support-for-java-code">IDE support for Java code</h3>
<h4 id="intellij-idea">IntelliJ IDEA</h4>
<p>The JDK project has a script that can be used for indexing the project with IntelliJ. After configuring and building the JDK, an IntelliJ workspace can be generated by running the following command in the top-level folder of the cloned repository:</p>
<p>The JDK project has a script that can be used for indexing the
project with IntelliJ. After configuring and building the JDK, an
IntelliJ workspace can be generated by running the following command in
the top-level folder of the cloned repository:</p>
<pre class="shell"><code>bash bin/idea.sh</code></pre>
<p>To use it, choose <code>File -&gt; Open...</code> in IntelliJ and select the folder where you ran the above script.</p>
<p>Next, configure the project SDK in IntelliJ. Open <code>File -&gt; Project Structure -&gt; Project</code> and select <code>build/&lt;config&gt;/images/jdk</code> as the SDK to use.</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>
<p>To use it, choose <code>File -&gt; Open...</code> in IntelliJ and
select the folder where you ran the above script.</p>
<p>Next, configure the project SDK in IntelliJ. Open
<code>File -&gt; Project Structure -&gt; Project</code> and select
<code>build/&lt;config&gt;/images/jdk</code> as the SDK to use.</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

@@ -5,54 +5,99 @@
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Testing the JDK</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<link rel="stylesheet" href="../make/data/docs-resources/resources/jdk-default.css" />
<style type="text/css">pre, code, tt { color: #1d6ae5; }</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
<style type="text/css">pre, code, tt { color: #1d6ae5; }</style>
</head>
<body>
<header id="title-block-header">
<h1 class="title">Testing the JDK</h1>
</header>
<nav id="TOC">
<nav id="TOC" role="doc-toc">
<ul>
<li><a href="#using-make-test-the-run-test-framework">Using &quot;make test&quot; (the run-test framework)</a><ul>
<li><a href="#configuration">Configuration</a></li>
<li><a href="#overview" id="toc-overview">Overview</a></li>
<li><a href="#running-tests-locally-with-make-test"
id="toc-running-tests-locally-with-make-test">Running tests locally with
<code>make test</code></a>
<ul>
<li><a href="#configuration"
id="toc-configuration">Configuration</a></li>
</ul></li>
<li><a href="#test-selection">Test selection</a><ul>
<li><a href="#common-test-groups">Common Test Groups</a></li>
<li><a href="#jtreg">JTReg</a></li>
<li><a href="#gtest">Gtest</a></li>
<li><a href="#microbenchmarks">Microbenchmarks</a></li>
<li><a href="#special-tests">Special tests</a></li>
<li><a href="#test-selection" id="toc-test-selection">Test selection</a>
<ul>
<li><a href="#common-test-groups" id="toc-common-test-groups">Common
Test Groups</a></li>
<li><a href="#jtreg" id="toc-jtreg">JTReg</a></li>
<li><a href="#gtest" id="toc-gtest">Gtest</a></li>
<li><a href="#microbenchmarks"
id="toc-microbenchmarks">Microbenchmarks</a></li>
<li><a href="#special-tests" id="toc-special-tests">Special
tests</a></li>
</ul></li>
<li><a href="#test-results-and-summary">Test results and summary</a></li>
<li><a href="#test-suite-control">Test suite control</a><ul>
<li><a href="#general-keywords-test_opts">General keywords (TEST_OPTS)</a></li>
<li><a href="#jtreg-keywords">JTReg keywords</a></li>
<li><a href="#gtest-keywords">Gtest keywords</a></li>
<li><a href="#microbenchmark-keywords">Microbenchmark keywords</a></li>
<li><a href="#test-results-and-summary"
id="toc-test-results-and-summary">Test results and summary</a></li>
<li><a href="#test-suite-control" id="toc-test-suite-control">Test suite
control</a>
<ul>
<li><a href="#general-keywords-test_opts"
id="toc-general-keywords-test_opts">General keywords
(TEST_OPTS)</a></li>
<li><a href="#jtreg-keywords" id="toc-jtreg-keywords">JTReg
keywords</a></li>
<li><a href="#gtest-keywords" id="toc-gtest-keywords">Gtest
keywords</a></li>
<li><a href="#microbenchmark-keywords"
id="toc-microbenchmark-keywords">Microbenchmark keywords</a></li>
</ul></li>
<li><a href="#notes-for-specific-tests">Notes for Specific Tests</a><ul>
<li><a href="#docker-tests">Docker Tests</a></li>
<li><a href="#non-us-locale">Non-US locale</a></li>
<li><a href="#pkcs11-tests">PKCS11 Tests</a></li>
<li><a href="#client-ui-tests">Client UI Tests</a></li>
<li><a href="#notes-for-specific-tests"
id="toc-notes-for-specific-tests">Notes for Specific Tests</a>
<ul>
<li><a href="#docker-tests" id="toc-docker-tests">Docker Tests</a></li>
<li><a href="#non-us-locale" id="toc-non-us-locale">Non-US
locale</a></li>
<li><a href="#pkcs11-tests" id="toc-pkcs11-tests">PKCS11 Tests</a></li>
<li><a href="#client-ui-tests" id="toc-client-ui-tests">Client UI
Tests</a></li>
</ul></li>
<li><a href="#editing-this-document">Editing this document</a></li>
<li><a href="#editing-this-document"
id="toc-editing-this-document">Editing this document</a></li>
</ul>
</nav>
<h2 id="using-make-test-the-run-test-framework">Using &quot;make test&quot; (the run-test framework)</h2>
<p>This new way of running tests is developer-centric. It assumes that you have built a JDK locally and want to test it. Running common test targets is simple, and more complex ad-hoc combination of tests is possible. The user interface is forgiving, and clearly report errors it cannot resolve.</p>
<p>The main target <code>test</code> uses the jdk-image as the tested product. There is also an alternate target <code>exploded-test</code> that uses the exploded image instead. Not all tests will run successfully on the exploded image, but using this target can greatly improve rebuild times for certain workflows.</p>
<p>Previously, <code>make test</code> was used to invoke an old system for running tests, and <code>make run-test</code> was used for the new test framework. For backward compatibility with scripts and muscle memory, <code>run-test</code> (and variants like <code>exploded-run-test</code> or <code>run-test-tier1</code>) are kept as aliases.</p>
<h2 id="overview">Overview</h2>
<p>The bulk of JDK tests use <a
href="https://openjdk.org/jtreg/">jtreg</a>, a regression test framework
and test runner built for the JDK's specific needs. Other test
frameworks are also used. The different test frameworks can be executed
directly, but there is also a set of make targets intended to simplify
the interface, and figure out how to run your tests for you.</p>
<h2 id="running-tests-locally-with-make-test">Running tests locally with
<code>make test</code></h2>
<p>This is the easiest way to get started. Assuming you've built the JDK
locally, execute:</p>
<pre><code>$ make test</code></pre>
<p>This will run a default set of tests against the JDK, and present you
with the results. <code>make test</code> is part of a family of
test-related make targets which simplify running tests, because they
invoke the various test frameworks for you. The "make test framework" is
simple to start with, but more complex ad-hoc combination of tests is
also possible. You can always invoke the test frameworks directly if you
want even more control.</p>
<p>Some example command-lines:</p>
<pre><code>$ make test-tier1
$ make test-jdk_lang JTREG=&quot;JOBS=8&quot;
@@ -62,51 +107,214 @@ $ make test TEST=&quot;hotspot:hotspot_gc&quot; JTREG=&quot;JOBS=1;TIMEOUT_FACTO
$ make test TEST=&quot;jtreg:test/hotspot:hotspot_gc test/hotspot/jtreg/native_sanity/JniVersion.java&quot;
$ make test TEST=&quot;micro:java.lang.reflect&quot; MICRO=&quot;FORK=1;WARMUP_ITER=2&quot;
$ make exploded-test TEST=tier2</code></pre>
<p>"tier1" and "tier2" refer to tiered testing, see further down. "TEST"
is a test selection argument which the make test framework will use to
try to find the tests you want. It iterates over the available test
frameworks, and if the test isn't present in one, it tries the next one.
The main target <code>test</code> uses the jdk-image as the tested
product. There is also an alternate target <code>exploded-test</code>
that uses the exploded image instead. Not all tests will run
successfully on the exploded image, but using this target can greatly
improve rebuild times for certain workflows.</p>
<p>Previously, <code>make test</code> was used to invoke an old system
for running tests, and <code>make run-test</code> was used for the new
test framework. For backward compatibility with scripts and muscle
memory, <code>run-test</code> and variants like
<code>exploded-run-test</code> or <code>run-test-tier1</code> are kept
as aliases.</p>
<h3 id="configuration">Configuration</h3>
<p>To be able to run JTReg tests, <code>configure</code> needs to know where to find the JTReg test framework. If it is not picked up automatically by configure, use the <code>--with-jtreg=&lt;path to jtreg home&gt;</code> option to point to the JTReg framework. Note that this option should point to the JTReg home, i.e. the top directory, containing <code>lib/jtreg.jar</code> etc. (An alternative is to set the <code>JT_HOME</code> environment variable to point to the JTReg home before running <code>configure</code>.)</p>
<p>To be able to run microbenchmarks, <code>configure</code> needs to know where to find the JMH dependency. Use <code>--with-jmh=&lt;path to JMH jars&gt;</code> to point to a directory containing the core JMH and transitive dependencies. The recommended dependencies can be retrieved by running <code>sh make/devkit/createJMHBundle.sh</code>, after which <code>--with-jmh=build/jmh/jars</code> should work.</p>
<p>When tests fail or timeout, jtreg runs its failure handler to capture necessary data from the system where the test was run. This data can then be used to analyze the test failures. Collecting this data involves running various commands (which are listed in files residing in <code>test/failure_handler/src/share/conf</code>) and some of these commands use <code>sudo</code>. If the system's <code>sudoers</code> file isn't configured to allow running these commands, then it can result in password being prompted during the failure handler execution. Typically, when running locally, collecting this additional data isn't always necessary. To disable running the failure handler, use <code>--enable-jtreg-failure-handler=no</code> when running <code>configure</code>. If, however, you want to let the failure handler to run and don't want to be prompted for sudo password, then you can configure your <code>sudoers</code> file appropriately. Please read the necessary documentation of your operating system to see how to do that; here we only show one possible way of doing that - edit the <code>/etc/sudoers.d/sudoers</code> file to include the following line:</p>
<p>To be able to run JTReg tests, <code>configure</code> needs to know
where to find the JTReg test framework. If it is not picked up
automatically by configure, use the
<code>--with-jtreg=&lt;path to jtreg home&gt;</code> option to point to
the JTReg framework. Note that this option should point to the JTReg
home, i.e. the top directory, containing <code>lib/jtreg.jar</code> etc.
(An alternative is to set the <code>JT_HOME</code> environment variable
to point to the JTReg home before running <code>configure</code>.)</p>
<p>To be able to run microbenchmarks, <code>configure</code> needs to
know where to find the JMH dependency. Use
<code>--with-jmh=&lt;path to JMH jars&gt;</code> to point to a directory
containing the core JMH and transitive dependencies. The recommended
dependencies can be retrieved by running
<code>sh make/devkit/createJMHBundle.sh</code>, after which
<code>--with-jmh=build/jmh/jars</code> should work.</p>
<p>When tests fail or timeout, jtreg runs its failure handler to capture
necessary data from the system where the test was run. This data can
then be used to analyze the test failures. Collecting this data involves
running various commands (which are listed in files residing in
<code>test/failure_handler/src/share/conf</code>) and some of these
commands use <code>sudo</code>. If the system's <code>sudoers</code>
file isn't configured to allow running these commands, then it can
result in password being prompted during the failure handler execution.
Typically, when running locally, collecting this additional data isn't
always necessary. To disable running the failure handler, use
<code>--enable-jtreg-failure-handler=no</code> when running
<code>configure</code>. If, however, you want to let the failure handler
to run and don't want to be prompted for sudo password, then you can
configure your <code>sudoers</code> file appropriately. Please read the
necessary documentation of your operating system to see how to do that;
here we only show one possible way of doing that - edit the
<code>/etc/sudoers.d/sudoers</code> file to include the following
line:</p>
<pre><code>johndoe ALL=(ALL) NOPASSWD: /sbin/dmesg</code></pre>
<p>This line configures <code>sudo</code> to <em>not</em> prompt for password for the <code>/sbin/dmesg</code> command (this is one of the commands that is listed in the files at <code>test/failure_handler/src/share/conf</code>), for the user <code>johndoe</code>. Here <code>johndoe</code> is the user account under which the jtreg tests are run. Replace the username with a relevant user account of your system.</p>
<p>This line configures <code>sudo</code> to <em>not</em> prompt for
password for the <code>/sbin/dmesg</code> command (this is one of the
commands that is listed in the files at
<code>test/failure_handler/src/share/conf</code>), for the user
<code>johndoe</code>. Here <code>johndoe</code> is the user account
under which the jtreg tests are run. Replace the username with a
relevant user account of your system.</p>
<h2 id="test-selection">Test selection</h2>
<p>All functionality is available using the <code>test</code> make target. In this use case, the test or tests to be executed is controlled using the <code>TEST</code> variable. To speed up subsequent test runs with no source code changes, <code>test-only</code> can be used instead, which do not depend on the source and test image build.</p>
<p>For some common top-level tests, direct make targets have been generated. This includes all JTReg test groups, the hotspot gtest, and custom tests (if present). This means that <code>make test-tier1</code> is equivalent to <code>make test TEST=&quot;tier1&quot;</code>, but the latter is more tab-completion friendly. For more complex test runs, the <code>test TEST=&quot;x&quot;</code> solution needs to be used.</p>
<p>The test specifications given in <code>TEST</code> is parsed into fully qualified test descriptors, which clearly and unambigously show which tests will be run. As an example, <code>:tier1</code> will expand to <code>jtreg:$(TOPDIR)/test/hotspot/jtreg:tier1 jtreg:$(TOPDIR)/test/jdk:tier1 jtreg:$(TOPDIR)/test/langtools:tier1 jtreg:$(TOPDIR)/test/nashorn:tier1 jtreg:$(TOPDIR)/test/jaxp:tier1</code>. You can always submit a list of fully qualified test descriptors in the <code>TEST</code> variable if you want to shortcut the parser.</p>
<p>All functionality is available using the <code>test</code> make
target. In this use case, the test or tests to be executed is controlled
using the <code>TEST</code> variable. To speed up subsequent test runs
with no source code changes, <code>test-only</code> can be used instead,
which do not depend on the source and test image build.</p>
<p>For some common top-level tests, direct make targets have been
generated. This includes all JTReg test groups, the hotspot gtest, and
custom tests (if present). This means that <code>make test-tier1</code>
is equivalent to <code>make test TEST="tier1"</code>, but the latter is
more tab-completion friendly. For more complex test runs, the
<code>test TEST="x"</code> solution needs to be used.</p>
<p>The test specifications given in <code>TEST</code> is parsed into
fully qualified test descriptors, which clearly and unambigously show
which tests will be run. As an example, <code>:tier1</code> will expand
to
<code>jtreg:$(TOPDIR)/test/hotspot/jtreg:tier1 jtreg:$(TOPDIR)/test/jdk:tier1 jtreg:$(TOPDIR)/test/langtools:tier1 jtreg:$(TOPDIR)/test/nashorn:tier1 jtreg:$(TOPDIR)/test/jaxp:tier1</code>.
You can always submit a list of fully qualified test descriptors in the
<code>TEST</code> variable if you want to shortcut the parser.</p>
<h3 id="common-test-groups">Common Test Groups</h3>
<p>Ideally, all tests are run for every change but this may not be practical due to the limited testing resources, the scope of the change, etc.</p>
<p>The source tree currently defines a few common test groups in the relevant <code>TEST.groups</code> files. There are test groups that cover a specific component, for example <code>hotspot_gc</code>. It is a good idea to look into <code>TEST.groups</code> files to get a sense what tests are relevant to a particular JDK component.</p>
<p>Component-specific tests may miss some unintended consequences of a change, so other tests should also be run. Again, it might be impractical to run all tests, and therefore <em>tiered</em> test groups exist. Tiered test groups are not component-specific, but rather cover the significant parts of the entire JDK.</p>
<p>Multiple tiers allow balancing test coverage and testing costs. Lower test tiers are supposed to contain the simpler, quicker and more stable tests. Higher tiers are supposed to contain progressively more thorough, slower, and sometimes less stable tests, or the tests that require special configuration.</p>
<p>Contributors are expected to run the tests for the areas that are changed, and the first N tiers they can afford to run, but at least tier1.</p>
<p>Ideally, all tests are run for every change but this may not be
practical due to the limited testing resources, the scope of the change,
etc.</p>
<p>The source tree currently defines a few common test groups in the
relevant <code>TEST.groups</code> files. There are test groups that
cover a specific component, for example <code>hotspot_gc</code>. It is a
good idea to look into <code>TEST.groups</code> files to get a sense
what tests are relevant to a particular JDK component.</p>
<p>Component-specific tests may miss some unintended consequences of a
change, so other tests should also be run. Again, it might be
impractical to run all tests, and therefore <em>tiered</em> test groups
exist. Tiered test groups are not component-specific, but rather cover
the significant parts of the entire JDK.</p>
<p>Multiple tiers allow balancing test coverage and testing costs. Lower
test tiers are supposed to contain the simpler, quicker and more stable
tests. Higher tiers are supposed to contain progressively more thorough,
slower, and sometimes less stable tests, or the tests that require
special configuration.</p>
<p>Contributors are expected to run the tests for the areas that are
changed, and the first N tiers they can afford to run, but at least
tier1.</p>
<p>A brief description of the tiered test groups:</p>
<ul>
<li><p><code>tier1</code>: This is the lowest test tier. Multiple developers run these tests every day. Because of the widespread use, the tests in <code>tier1</code> are carefully selected and optimized to run fast, and to run in the most stable manner. The test failures in <code>tier1</code> are usually followed up on quickly, either with fixes, or adding relevant tests to problem list. GitHub Actions workflows, if enabled, run <code>tier1</code> tests.</p></li>
<li><p><code>tier2</code>: This test group covers even more ground. These contain, among other things, tests that either run for too long to be at <code>tier1</code>, or may require special configuration, or tests that are less stable, or cover the broader range of non-core JVM and JDK features/components (for example, XML).</p></li>
<li><p><code>tier3</code>: This test group includes more stressful tests, the tests for corner cases not covered by previous tiers, plus the tests that require GUIs. As such, this suite should either be run with low concurrency (<code>TEST_JOBS=1</code>), or without headful tests (<code>JTREG_KEYWORDS=\!headful</code>), or both.</p></li>
<li><p><code>tier4</code>: This test group includes every other test not covered by previous tiers. It includes, for example, <code>vmTestbase</code> suites for Hotspot, which run for many hours even on large machines. It also runs GUI tests, so the same <code>TEST_JOBS</code> and <code>JTREG_KEYWORDS</code> caveats apply.</p></li>
<li><p><code>tier1</code>: This is the lowest test tier. Multiple
developers run these tests every day. Because of the widespread use, the
tests in <code>tier1</code> are carefully selected and optimized to run
fast, and to run in the most stable manner. The test failures in
<code>tier1</code> are usually followed up on quickly, either with
fixes, or adding relevant tests to problem list. GitHub Actions
workflows, if enabled, run <code>tier1</code> tests.</p></li>
<li><p><code>tier2</code>: This test group covers even more ground.
These contain, among other things, tests that either run for too long to
be at <code>tier1</code>, or may require special configuration, or tests
that are less stable, or cover the broader range of non-core JVM and JDK
features/components(for example, XML).</p></li>
<li><p><code>tier3</code>: This test group includes more stressful
tests, the tests for corner cases not covered by previous tiers, plus
the tests that require GUIs. As such, this suite should either be run
with low concurrency (<code>TEST_JOBS=1</code>), or without headful
tests(<code>JTREG_KEYWORDS=\!headful</code>), or both.</p></li>
<li><p><code>tier4</code>: This test group includes every other test not
covered by previous tiers. It includes, for example,
<code>vmTestbase</code> suites for Hotspot, which run for many hours
even on large machines. It also runs GUI tests, so the same
<code>TEST_JOBS</code> and <code>JTREG_KEYWORDS</code> caveats
apply.</p></li>
</ul>
<h3 id="jtreg">JTReg</h3>
<p>JTReg tests can be selected either by picking a JTReg test group, or a selection of files or directories containing JTReg tests. Documentation can be found at <a href="https://openjdk.org/jtreg/">https://openjdk.org/jtreg/</a>, note especially the extensive <a href="https://openjdk.org/jtreg/faq.html">FAQ</a>.</p>
<p>JTReg test groups can be specified either without a test root, e.g. <code>:tier1</code> (or <code>tier1</code>, the initial colon is optional), or with, e.g. <code>hotspot:tier1</code>, <code>test/jdk:jdk_util</code> or <code>$(TOPDIR)/test/hotspot/jtreg:hotspot_all</code>. The test root can be specified either as an absolute path, or a path relative to the JDK top directory, or the <code>test</code> directory. For simplicity, the hotspot JTReg test root, which really is <code>hotspot/jtreg</code> can be abbreviated as just <code>hotspot</code>.</p>
<p>When specified without a test root, all matching groups from all test roots will be added. Otherwise, only the group from the specified test root will be added.</p>
<p>Individual JTReg tests or directories containing JTReg tests can also be specified, like <code>test/hotspot/jtreg/native_sanity/JniVersion.java</code> or <code>hotspot/jtreg/native_sanity</code>. Just like for test root selection, you can either specify an absolute path (which can even point to JTReg tests outside the source tree), or a path relative to either the JDK top directory or the <code>test</code> directory. <code>hotspot</code> can be used as an alias for <code>hotspot/jtreg</code> here as well.</p>
<p>As long as the test groups or test paths can be uniquely resolved, you do not need to enter the <code>jtreg:</code> prefix. If this is not possible, or if you want to use a fully qualified test descriptor, add <code>jtreg:</code>, e.g. <code>jtreg:test/hotspot/jtreg/native_sanity</code>.</p>
<p>JTReg tests can be selected either by picking a JTReg test group, or
a selection of files or directories containing JTReg tests.
Documentation can be found at <a
href="https://openjdk.org/jtreg/">https://openjdk.org/jtreg/</a>, note
especially the extensive <a
href="https://openjdk.org/jtreg/faq.html">FAQ</a>.</p>
<p>JTReg test groups can be specified either without a test root, e.g.
<code>:tier1</code> (or <code>tier1</code>, the initial colon is
optional), or with, e.g. <code>hotspot:tier1</code>,
<code>test/jdk:jdk_util</code> or
<code>$(TOPDIR)/test/hotspot/jtreg:hotspot_all</code>. The test root can
be specified either as an absolute path, or a path relative to the JDK
top directory, or the <code>test</code> directory. For simplicity, the
hotspot JTReg test root, which really is <code>hotspot/jtreg</code> can
be abbreviated as just <code>hotspot</code>.</p>
<p>When specified without a test root, all matching groups from all test
roots will be added. Otherwise, only the group from the specified test
root will be added.</p>
<p>Individual JTReg tests or directories containing JTReg tests can also
be specified, like
<code>test/hotspot/jtreg/native_sanity/JniVersion.java</code> or
<code>hotspot/jtreg/native_sanity</code>. Just like for test root
selection, you can either specify an absolute path (which can even point
to JTReg tests outside the source tree), or a path relative to either
the JDK top directory or the <code>test</code> directory.
<code>hotspot</code> can be used as an alias for
<code>hotspot/jtreg</code> here as well.</p>
<p>As long as the test groups or test paths can be uniquely resolved,
you do not need to enter the <code>jtreg:</code> prefix. If this is not
possible, or if you want to use a fully qualified test descriptor, add
<code>jtreg:</code>, e.g.
<code>jtreg:test/hotspot/jtreg/native_sanity</code>.</p>
<h3 id="gtest">Gtest</h3>
<p>Since the Hotspot Gtest suite is so quick, the default is to run all tests. This is specified by just <code>gtest</code>, or as a fully qualified test descriptor <code>gtest:all</code>.</p>
<p>If you want, you can single out an individual test or a group of tests, for instance <code>gtest:LogDecorations</code> or <code>gtest:LogDecorations.level_test_vm</code>. This can be particularly useful if you want to run a shaky test repeatedly.</p>
<p>For Gtest, there is a separate test suite for each JVM variant. The JVM variant is defined by adding <code>/&lt;variant&gt;</code> to the test descriptor, e.g. <code>gtest:Log/client</code>. If you specify no variant, gtest will run once for each JVM variant present (e.g. server, client). So if you only have the server JVM present, then <code>gtest:all</code> will be equivalent to <code>gtest:all/server</code>.</p>
<p><strong>Note:</strong> To be able to run the Gtest suite, you need to
configure your build to be able to find a proper version of the gtest
source. For details, see the section <a
href="building.html#running-tests">"Running Tests" in the build
documentation</a>.</p>
<p>Since the Hotspot Gtest suite is so quick, the default is to run all
tests. This is specified by just <code>gtest</code>, or as a fully
qualified test descriptor <code>gtest:all</code>.</p>
<p>If you want, you can single out an individual test or a group of
tests, for instance <code>gtest:LogDecorations</code> or
<code>gtest:LogDecorations.level_test_vm</code>. This can be
particularly useful if you want to run a shaky test repeatedly.</p>
<p>For Gtest, there is a separate test suite for each JVM variant. The
JVM variant is defined by adding <code>/&lt;variant&gt;</code> to the
test descriptor, e.g. <code>gtest:Log/client</code>. If you specify no
variant, gtest will run once for each JVM variant present (e.g. server,
client). So if you only have the server JVM present, then
<code>gtest:all</code> will be equivalent to
<code>gtest:all/server</code>.</p>
<h3 id="microbenchmarks">Microbenchmarks</h3>
<p>Which microbenchmarks to run is selected using a regular expression following the <code>micro:</code> test descriptor, e.g., <code>micro:java.lang.reflect</code>. This delegates the test selection to JMH, meaning package name, class name and even benchmark method names can be used to select tests.</p>
<p>Using special characters like <code>|</code> in the regular expression is possible, but needs to be escaped multiple times: <code>micro:ArrayCopy\\\\\|reflect</code>.</p>
<p>Which microbenchmarks to run is selected using a regular expression
following the <code>micro:</code> test descriptor, e.g.,
<code>micro:java.lang.reflect</code>. This delegates the test selection
to JMH, meaning package name, class name and even benchmark method names
can be used to select tests.</p>
<p>Using special characters like <code>|</code> in the regular
expression is possible, but needs to be escaped multiple times:
<code>micro:ArrayCopy\\\\\|reflect</code>.</p>
<h3 id="special-tests">Special tests</h3>
<p>A handful of odd tests that are not covered by any other testing framework are accessible using the <code>special:</code> test descriptor. Currently, this includes <code>failure-handler</code> and <code>make</code>.</p>
<p>A handful of odd tests that are not covered by any other testing
framework are accessible using the <code>special:</code> test
descriptor. Currently, this includes <code>failure-handler</code> and
<code>make</code>.</p>
<ul>
<li><p>Failure handler testing is run using <code>special:failure-handler</code> or just <code>failure-handler</code> as test descriptor.</p></li>
<li><p>Tests for the build system, including both makefiles and related functionality, is run using <code>special:make</code> or just <code>make</code> as test descriptor. This is equivalent to <code>special:make:all</code>.</p>
<p>A specific make test can be run by supplying it as argument, e.g. <code>special:make:idea</code>. As a special syntax, this can also be expressed as <code>make-idea</code>, which allows for command lines as <code>make test-make-idea</code>.</p></li>
<li><p>Failure handler testing is run using
<code>special:failure-handler</code> or just
<code>failure-handler</code> as test descriptor.</p></li>
<li><p>Tests for the build system, including both makefiles and related
functionality, is run using <code>special:make</code> or just
<code>make</code> as test descriptor. This is equivalent to
<code>special:make:all</code>.</p>
<p>A specific make test can be run by supplying it as argument, e.g.
<code>special:make:idea</code>. As a special syntax, this can also be
expressed as <code>make-idea</code>, which allows for command lines as
<code>make test-make-idea</code>.</p></li>
</ul>
<h2 id="test-results-and-summary">Test results and summary</h2>
<p>At the end of the test run, a summary of all tests run will be presented. This will have a consistent look, regardless of what test suites were used. This is a sample summary:</p>
<p>At the end of the test run, a summary of all tests run will be
presented. This will have a consistent look, regardless of what test
suites were used. This is a sample summary:</p>
<pre><code>==============================
Test summary
==============================
@@ -116,20 +324,61 @@ Test summary
jtreg:nashorn/test:tier1 133 133 0 0
==============================
TEST FAILURE</code></pre>
<p>Tests where the number of TOTAL tests does not equal the number of PASSed tests will be considered a test failure. These are marked with the <code>&gt;&gt; ... &lt;&lt;</code> marker for easy identification.</p>
<p>The classification of non-passed tests differs a bit between test suites. In the summary, ERROR is used as a catch-all for tests that neither passed nor are classified as failed by the framework. This might indicate test framework error, timeout or other problems.</p>
<p>In case of test failures, <code>make test</code> will exit with a non-zero exit value.</p>
<p>All tests have their result stored in <code>build/$BUILD/test-results/$TEST_ID</code>, where TEST_ID is a path-safe conversion from the fully qualified test descriptor, e.g. for <code>jtreg:jdk/test:tier1</code> the TEST_ID is <code>jtreg_jdk_test_tier1</code>. This path is also printed in the log at the end of the test run.</p>
<p>Additional work data is stored in <code>build/$BUILD/test-support/$TEST_ID</code>. For some frameworks, this directory might contain information that is useful in determining the cause of a failed test.</p>
<p>Tests where the number of TOTAL tests does not equal the number of
PASSed tests will be considered a test failure. These are marked with
the <code>&gt;&gt; ... &lt;&lt;</code> marker for easy
identification.</p>
<p>The classification of non-passed tests differs a bit between test
suites. In the summary, ERROR is used as a catch-all for tests that
neither passed nor are classified as failed by the framework. This might
indicate test framework error, timeout or other problems.</p>
<p>In case of test failures, <code>make test</code> will exit with a
non-zero exit value.</p>
<p>All tests have their result stored in
<code>build/$BUILD/test-results/$TEST_ID</code>, where TEST_ID is a
path-safe conversion from the fully qualified test descriptor, e.g. for
<code>jtreg:jdk/test:tier1</code> the TEST_ID is
<code>jtreg_jdk_test_tier1</code>. This path is also printed in the log
at the end of the test run.</p>
<p>Additional work data is stored in
<code>build/$BUILD/test-support/$TEST_ID</code>. For some frameworks,
this directory might contain information that is useful in determining
the cause of a failed test.</p>
<h2 id="test-suite-control">Test suite control</h2>
<p>It is possible to control various aspects of the test suites using make control variables.</p>
<p>These variables use a keyword=value approach to allow multiple values to be set. So, for instance, <code>JTREG=&quot;JOBS=1;TIMEOUT_FACTOR=8&quot;</code> will set the JTReg concurrency level to 1 and the timeout factor to 8. This is equivalent to setting <code>JTREG_JOBS=1 JTREG_TIMEOUT_FACTOR=8</code>, but using the keyword format means that the <code>JTREG</code> variable is parsed and verified for correctness, so <code>JTREG=&quot;TMIEOUT_FACTOR=8&quot;</code> would give an error, while <code>JTREG_TMIEOUT_FACTOR=8</code> would just pass unnoticed.</p>
<p>To separate multiple keyword=value pairs, use <code>;</code> (semicolon). Since the shell normally eats <code>;</code>, the recommended usage is to write the assignment inside qoutes, e.g. <code>JTREG=&quot;...;...&quot;</code>. This will also make sure spaces are preserved, as in <code>JTREG=&quot;JAVA_OPTIONS=-XshowSettings -Xlog:gc+ref=debug&quot;</code>.</p>
<p>(Other ways are possible, e.g. using backslash: <code>JTREG=JOBS=1\;TIMEOUT_FACTOR=8</code>. Also, as a special technique, the string <code>%20</code> will be replaced with space for certain options, e.g. <code>JTREG=JAVA_OPTIONS=-XshowSettings%20-Xlog:gc+ref=debug</code>. This can be useful if you have layers of scripts and have trouble getting proper quoting of command line arguments through.)</p>
<p>As far as possible, the names of the keywords have been standardized between test suites.</p>
<p>It is possible to control various aspects of the test suites using
make control variables.</p>
<p>These variables use a keyword=value approach to allow multiple values
to be set. So, for instance,
<code>JTREG="JOBS=1;TIMEOUT_FACTOR=8"</code> will set the JTReg
concurrency level to 1 and the timeout factor to 8. This is equivalent
to setting <code>JTREG_JOBS=1 JTREG_TIMEOUT_FACTOR=8</code>, but using
the keyword format means that the <code>JTREG</code> variable is parsed
and verified for correctness, so <code>JTREG="TMIEOUT_FACTOR=8"</code>
would give an error, while <code>JTREG_TMIEOUT_FACTOR=8</code> would
just pass unnoticed.</p>
<p>To separate multiple keyword=value pairs, use <code>;</code>
(semicolon). Since the shell normally eats <code>;</code>, the
recommended usage is to write the assignment inside qoutes, e.g.
<code>JTREG="...;..."</code>. This will also make sure spaces are
preserved, as in
<code>JTREG="JAVA_OPTIONS=-XshowSettings -Xlog:gc+ref=debug"</code>.</p>
<p>(Other ways are possible, e.g. using backslash:
<code>JTREG=JOBS=1\;TIMEOUT_FACTOR=8</code>. Also, as a special
technique, the string <code>%20</code> will be replaced with space for
certain options, e.g.
<code>JTREG=JAVA_OPTIONS=-XshowSettings%20-Xlog:gc+ref=debug</code>.
This can be useful if you have layers of scripts and have trouble
getting proper quoting of command line arguments through.)</p>
<p>As far as possible, the names of the keywords have been standardized
between test suites.</p>
<h3 id="general-keywords-test_opts">General keywords (TEST_OPTS)</h3>
<p>Some keywords are valid across different test suites. If you want to run tests from multiple test suites, or just don't want to care which test suite specific control variable to use, then you can use the general TEST_OPTS control variable.</p>
<p>There are also some keywords that applies globally to the test runner system, not to any specific test suites. These are also available as TEST_OPTS keywords.</p>
<p>Some keywords are valid across different test suites. If you want to
run tests from multiple test suites, or just don't want to care which
test suite specific control variable to use, then you can use the
general TEST_OPTS control variable.</p>
<p>There are also some keywords that applies globally to the test runner
system, not to any specific test suites. These are also available as
TEST_OPTS keywords.</p>
<h4 id="jobs">JOBS</h4>
<p>Currently only applies to JTReg.</p>
<h4 id="timeout_factor">TIMEOUT_FACTOR</h4>
@@ -141,28 +390,49 @@ TEST FAILURE</code></pre>
<h4 id="aot_modules">AOT_MODULES</h4>
<p>Applies to JTReg and GTest.</p>
<h4 id="jcov">JCOV</h4>
<p>This keywords applies globally to the test runner system. If set to <code>true</code>, it enables JCov coverage reporting for all tests run. To be useful, the JDK under test must be run with a JDK built with JCov instrumentation (<code>configure --with-jcov=&lt;path to directory containing lib/jcov.jar&gt;</code>, <code>make jcov-image</code>).</p>
<p>The simplest way to run tests with JCov coverage report is to use the special target <code>jcov-test</code> instead of <code>test</code>, e.g. <code>make jcov-test TEST=jdk_lang</code>. This will make sure the JCov image is built, and that JCov reporting is enabled.</p>
<p>The JCov report is stored in <code>build/$BUILD/test-results/jcov-output/report</code>.</p>
<p>Please note that running with JCov reporting can be very memory intensive.</p>
<p>This keywords applies globally to the test runner system. If set to
<code>true</code>, it enables JCov coverage reporting for all tests run.
To be useful, the JDK under test must be run with a JDK built with JCov
instrumentation
(<code>configure --with-jcov=&lt;path to directory containing lib/jcov.jar&gt;</code>,
<code>make jcov-image</code>).</p>
<p>The simplest way to run tests with JCov coverage report is to use the
special target <code>jcov-test</code> instead of <code>test</code>, e.g.
<code>make jcov-test TEST=jdk_lang</code>. This will make sure the JCov
image is built, and that JCov reporting is enabled.</p>
<p>The JCov report is stored in
<code>build/$BUILD/test-results/jcov-output/report</code>.</p>
<p>Please note that running with JCov reporting can be very memory
intensive.</p>
<h4 id="jcov_diff_changeset">JCOV_DIFF_CHANGESET</h4>
<p>While collecting code coverage with JCov, it is also possible to find coverage for only recently changed code. JCOV_DIFF_CHANGESET specifies a source revision. A textual report will be generated showing coverage of the diff between the specified revision and the repository tip.</p>
<p>The report is stored in <code>build/$BUILD/test-results/jcov-output/diff_coverage_report</code> file.</p>
<p>While collecting code coverage with JCov, it is also possible to find
coverage for only recently changed code. JCOV_DIFF_CHANGESET specifies a
source revision. A textual report will be generated showing coverage of
the diff between the specified revision and the repository tip.</p>
<p>The report is stored in
<code>build/$BUILD/test-results/jcov-output/diff_coverage_report</code>
file.</p>
<h3 id="jtreg-keywords">JTReg keywords</h3>
<h4 id="jobs-1">JOBS</h4>
<p>The test concurrency (<code>-concurrency</code>).</p>
<p>Defaults to TEST_JOBS (if set by <code>--with-test-jobs=</code>), otherwise it defaults to JOBS, except for Hotspot, where the default is <em>number of CPU cores/2</em>, but never more than <em>memory size in GB/2</em>.</p>
<p>Defaults to TEST_JOBS (if set by <code>--with-test-jobs=</code>),
otherwise it defaults to JOBS, except for Hotspot, where the default is
<em>number of CPU cores/2</em>, but never more than <em>memory size in
GB/2</em>.</p>
<h4 id="timeout_factor-1">TIMEOUT_FACTOR</h4>
<p>The timeout factor (<code>-timeoutFactor</code>).</p>
<p>Defaults to 4.</p>
<h4 id="failure_handler_timeout">FAILURE_HANDLER_TIMEOUT</h4>
<p>Sets the argument <code>-timeoutHandlerTimeout</code> for JTReg. The default value is 0. This is only valid if the failure handler is built.</p>
<p>Sets the argument <code>-timeoutHandlerTimeout</code> for JTReg. The
default value is 0. This is only valid if the failure handler is
built.</p>
<h4 id="test_mode">TEST_MODE</h4>
<p>The test mode (<code>agentvm</code> or <code>othervm</code>).</p>
<p>Defaults to <code>agentvm</code>.</p>
<h4 id="assert">ASSERT</h4>
<p>Enable asserts (<code>-ea -esa</code>, or none).</p>
<p>Set to <code>true</code> or <code>false</code>. If true, adds <code>-ea -esa</code>. Defaults to true, except for hotspot.</p>
<p>Set to <code>true</code> or <code>false</code>. If true, adds
<code>-ea -esa</code>. Defaults to true, except for hotspot.</p>
<h4 id="verbose">VERBOSE</h4>
<p>The verbosity level (<code>-verbose</code>).</p>
<p>Defaults to <code>fail,error,summary</code>.</p>
@@ -170,92 +440,200 @@ TEST FAILURE</code></pre>
<p>What test data to retain (<code>-retain</code>).</p>
<p>Defaults to <code>fail,error</code>.</p>
<h4 id="max_mem">MAX_MEM</h4>
<p>Limit memory consumption (<code>-Xmx</code> and <code>-vmoption:-Xmx</code>, or none).</p>
<p>Limit memory consumption for JTReg test framework and VM under test. Set to 0 to disable the limits.</p>
<p>Defaults to 512m, except for hotspot, where it defaults to 0 (no limit).</p>
<p>Limit memory consumption (<code>-Xmx</code> and
<code>-vmoption:-Xmx</code>, or none).</p>
<p>Limit memory consumption for JTReg test framework and VM under test.
Set to 0 to disable the limits.</p>
<p>Defaults to 512m, except for hotspot, where it defaults to 0 (no
limit).</p>
<h4 id="max_output">MAX_OUTPUT</h4>
<p>Set the property <code>javatest.maxOutputSize</code> for the launcher, to change the default JTReg log limit.</p>
<p>Set the property <code>javatest.maxOutputSize</code> for the
launcher, to change the default JTReg log limit.</p>
<h4 id="keywords">KEYWORDS</h4>
<p>JTReg keywords sent to JTReg using <code>-k</code>. Please be careful in making sure that spaces and special characters (like <code>!</code>) are properly quoted. To avoid some issues, the special value <code>%20</code> can be used instead of space.</p>
<p>JTReg keywords sent to JTReg using <code>-k</code>. Please be careful
in making sure that spaces and special characters (like <code>!</code>)
are properly quoted. To avoid some issues, the special value
<code>%20</code> can be used instead of space.</p>
<h4 id="extra_problem_lists">EXTRA_PROBLEM_LISTS</h4>
<p>Use additional problem lists file or files, in addition to the default ProblemList.txt located at the JTReg test roots.</p>
<p>If multiple file names are specified, they should be separated by space (or, to help avoid quoting issues, the special value <code>%20</code>).</p>
<p>The file names should be either absolute, or relative to the JTReg test root of the tests to be run.</p>
<p>Use additional problem lists file or files, in addition to the
default ProblemList.txt located at the JTReg test roots.</p>
<p>If multiple file names are specified, they should be separated by
space (or, to help avoid quoting issues, the special value
<code>%20</code>).</p>
<p>The file names should be either absolute, or relative to the JTReg
test root of the tests to be run.</p>
<h4 id="run_problem_lists">RUN_PROBLEM_LISTS</h4>
<p>Use the problem lists to select tests instead of excluding them.</p>
<p>Set to <code>true</code> or <code>false</code>. If <code>true</code>, JTReg will use <code>-match:</code> option, otherwise <code>-exclude:</code> will be used. Default is <code>false</code>.</p>
<p>Set to <code>true</code> or <code>false</code>. If <code>true</code>,
JTReg will use <code>-match:</code> option, otherwise
<code>-exclude:</code> will be used. Default is <code>false</code>.</p>
<h4 id="options">OPTIONS</h4>
<p>Additional options to the JTReg test framework.</p>
<p>Use <code>JTREG=&quot;OPTIONS=--help all&quot;</code> to see all available JTReg options.</p>
<p>Use <code>JTREG="OPTIONS=--help all"</code> to see all available
JTReg options.</p>
<h4 id="java_options-1">JAVA_OPTIONS</h4>
<p>Additional Java options for running test classes (sent to JTReg as <code>-javaoption</code>).</p>
<p>Additional Java options for running test classes (sent to JTReg as
<code>-javaoption</code>).</p>
<h4 id="vm_options-1">VM_OPTIONS</h4>
<p>Additional Java options to be used when compiling and running classes (sent to JTReg as <code>-vmoption</code>).</p>
<p>This option is only needed in special circumstances. To pass Java options to your test classes, use <code>JAVA_OPTIONS</code>.</p>
<p>Additional Java options to be used when compiling and running classes
(sent to JTReg as <code>-vmoption</code>).</p>
<p>This option is only needed in special circumstances. To pass Java
options to your test classes, use <code>JAVA_OPTIONS</code>.</p>
<h4 id="launcher_options">LAUNCHER_OPTIONS</h4>
<p>Additional Java options that are sent to the java launcher that starts the JTReg harness.</p>
<p>Additional Java options that are sent to the java launcher that
starts the JTReg harness.</p>
<h4 id="aot_modules-1">AOT_MODULES</h4>
<p>Generate AOT modules before testing for the specified module, or set of modules. If multiple modules are specified, they should be separated by space (or, to help avoid quoting issues, the special value <code>%20</code>).</p>
<p>Generate AOT modules before testing for the specified module, or set
of modules. If multiple modules are specified, they should be separated
by space (or, to help avoid quoting issues, the special value
<code>%20</code>).</p>
<h4 id="retry_count">RETRY_COUNT</h4>
<p>Retry failed tests up to a set number of times, until they pass. This allows to pass the tests with intermittent failures. Defaults to 0.</p>
<p>Retry failed tests up to a set number of times, until they pass. This
allows to pass the tests with intermittent failures. Defaults to 0.</p>
<h4 id="repeat_count">REPEAT_COUNT</h4>
<p>Repeat the tests up to a set number of times, stopping at first failure. This helps to reproduce intermittent test failures. Defaults to 0.</p>
<p>Repeat the tests up to a set number of times, stopping at first
failure. This helps to reproduce intermittent test failures. Defaults to
0.</p>
<h4 id="report">REPORT</h4>
<p>Use this report style when reporting test results (sent to JTReg as
<code>-report</code>). Defaults to <code>files</code>.</p>
<h3 id="gtest-keywords">Gtest keywords</h3>
<h4 id="repeat">REPEAT</h4>
<p>The number of times to repeat the tests (<code>--gtest_repeat</code>).</p>
<p>Default is 1. Set to -1 to repeat indefinitely. This can be especially useful combined with <code>OPTIONS=--gtest_break_on_failure</code> to reproduce an intermittent problem.</p>
<p>The number of times to repeat the tests
(<code>--gtest_repeat</code>).</p>
<p>Default is 1. Set to -1 to repeat indefinitely. This can be
especially useful combined with
<code>OPTIONS=--gtest_break_on_failure</code> to reproduce an
intermittent problem.</p>
<h4 id="options-1">OPTIONS</h4>
<p>Additional options to the Gtest test framework.</p>
<p>Use <code>GTEST=&quot;OPTIONS=--help&quot;</code> to see all available Gtest options.</p>
<p>Use <code>GTEST="OPTIONS=--help"</code> to see all available Gtest
options.</p>
<h4 id="aot_modules-2">AOT_MODULES</h4>
<p>Generate AOT modules before testing for the specified module, or set of modules. If multiple modules are specified, they should be separated by space (or, to help avoid quoting issues, the special value <code>%20</code>).</p>
<p>Generate AOT modules before testing for the specified module, or set
of modules. If multiple modules are specified, they should be separated
by space (or, to help avoid quoting issues, the special value
<code>%20</code>).</p>
<h3 id="microbenchmark-keywords">Microbenchmark keywords</h3>
<h4 id="fork">FORK</h4>
<p>Override the number of benchmark forks to spawn. Same as specifying <code>-f &lt;num&gt;</code>.</p>
<p>Override the number of benchmark forks to spawn. Same as specifying
<code>-f &lt;num&gt;</code>.</p>
<h4 id="iter">ITER</h4>
<p>Number of measurement iterations per fork. Same as specifying <code>-i &lt;num&gt;</code>.</p>
<p>Number of measurement iterations per fork. Same as specifying
<code>-i &lt;num&gt;</code>.</p>
<h4 id="time">TIME</h4>
<p>Amount of time to spend in each measurement iteration, in seconds. Same as specifying <code>-r &lt;num&gt;</code></p>
<p>Amount of time to spend in each measurement iteration, in seconds.
Same as specifying <code>-r &lt;num&gt;</code></p>
<h4 id="warmup_iter">WARMUP_ITER</h4>
<p>Number of warmup iterations to run before the measurement phase in each fork. Same as specifying <code>-wi &lt;num&gt;</code>.</p>
<p>Number of warmup iterations to run before the measurement phase in
each fork. Same as specifying <code>-wi &lt;num&gt;</code>.</p>
<h4 id="warmup_time">WARMUP_TIME</h4>
<p>Amount of time to spend in each warmup iteration. Same as specifying <code>-w &lt;num&gt;</code>.</p>
<p>Amount of time to spend in each warmup iteration. Same as specifying
<code>-w &lt;num&gt;</code>.</p>
<h4 id="results_format">RESULTS_FORMAT</h4>
<p>Specify to have the test run save a log of the values. Accepts the same values as <code>-rff</code>, i.e., <code>text</code>, <code>csv</code>, <code>scsv</code>, <code>json</code>, or <code>latex</code>.</p>
<p>Specify to have the test run save a log of the values. Accepts the
same values as <code>-rff</code>, i.e., <code>text</code>,
<code>csv</code>, <code>scsv</code>, <code>json</code>, or
<code>latex</code>.</p>
<h4 id="vm_options-2">VM_OPTIONS</h4>
<p>Additional VM arguments to provide to forked off VMs. Same as <code>-jvmArgs &lt;args&gt;</code></p>
<p>Additional VM arguments to provide to forked off VMs. Same as
<code>-jvmArgs &lt;args&gt;</code></p>
<h4 id="options-2">OPTIONS</h4>
<p>Additional arguments to send to JMH.</p>
<h2 id="notes-for-specific-tests">Notes for Specific Tests</h2>
<h3 id="docker-tests">Docker Tests</h3>
<p>Docker tests with default parameters may fail on systems with glibc versions not compatible with the one used in the default docker image (e.g., Oracle Linux 7.6 for x86). For example, they pass on Ubuntu 16.04 but fail on Ubuntu 18.04 if run like this on x86:</p>
<p>Docker tests with default parameters may fail on systems with glibc
versions not compatible with the one used in the default docker image
(e.g., Oracle Linux 7.6 for x86). For example, they pass on Ubuntu 16.04
but fail on Ubuntu 18.04 if run like this on x86:</p>
<pre><code>$ make test TEST=&quot;jtreg:test/hotspot/jtreg/containers/docker&quot;</code></pre>
<p>To run these tests correctly, additional parameters for the correct docker image are required on Ubuntu 18.04 by using <code>JAVA_OPTIONS</code>.</p>
<p>To run these tests correctly, additional parameters for the correct
docker image are required on Ubuntu 18.04 by using
<code>JAVA_OPTIONS</code>.</p>
<pre><code>$ make test TEST=&quot;jtreg:test/hotspot/jtreg/containers/docker&quot; \
JTREG=&quot;JAVA_OPTIONS=-Djdk.test.docker.image.name=ubuntu
-Djdk.test.docker.image.version=latest&quot;</code></pre>
<h3 id="non-us-locale">Non-US locale</h3>
<p>If your locale is non-US, some tests are likely to fail. To work around this you can set the locale to US. On Unix platforms simply setting <code>LANG=&quot;en_US&quot;</code> in the environment before running tests should work. On Windows or MacOS, setting <code>JTREG=&quot;VM_OPTIONS=-Duser.language=en -Duser.country=US&quot;</code> helps for most, but not all test cases.</p>
<p>If your locale is non-US, some tests are likely to fail. To work
around this you can set the locale to US. On Unix platforms simply
setting <code>LANG="en_US"</code> in the environment before running
tests should work. On Windows or MacOS, setting
<code>JTREG="VM_OPTIONS=-Duser.language=en -Duser.country=US"</code>
helps for most, but not all test cases.</p>
<p>For example:</p>
<pre><code>$ export LANG=&quot;en_US&quot; &amp;&amp; make test TEST=...
$ make test JTREG=&quot;VM_OPTIONS=-Duser.language=en -Duser.country=US&quot; TEST=...</code></pre>
<h3 id="pkcs11-tests">PKCS11 Tests</h3>
<p>It is highly recommended to use the latest NSS version when running PKCS11 tests. Improper NSS version may lead to unexpected failures which are hard to diagnose. For example, sun/security/pkcs11/Secmod/AddTrustedCert.java may fail on Ubuntu 18.04 with the default NSS version in the system. To run these tests correctly, the system property <code>test.nss.lib.paths</code> is required on Ubuntu 18.04 to specify the alternative NSS lib directories.</p>
<p>It is highly recommended to use the latest NSS version when running
PKCS11 tests. Improper NSS version may lead to unexpected failures which
are hard to diagnose. For example,
sun/security/pkcs11/Secmod/AddTrustedCert.java may fail on Ubuntu 18.04
with the default NSS version in the system. To run these tests
correctly, the system property <code>test.nss.lib.paths</code> is
required on Ubuntu 18.04 to specify the alternative NSS lib
directories.</p>
<p>For example:</p>
<pre><code>$ make test TEST=&quot;jtreg:sun/security/pkcs11/Secmod/AddTrustedCert.java&quot; \
JTREG=&quot;JAVA_OPTIONS=-Dtest.nss.lib.paths=/path/to/your/latest/NSS-libs&quot;</code></pre>
<p>For more notes about the PKCS11 tests, please refer to test/jdk/sun/security/pkcs11/README.</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>
<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>
<p>Choose Apple menu; System Preferences, click Keyboard, then click Shortcuts; select or deselect desired shortcut.</p>
<p>For example, test/jdk/javax/swing/TooltipManager/JMenuItemToolTipKeyBindingsTest/JMenuItemToolTipKeyBindingsTest.java fails on MacOS because it uses <code>CTRL + F1</code> key sequence to show or hide tooltip message but the key combination is reserved by the operating system. To run the test correctly the default global key shortcut should be disabled using the steps described above, and then deselect &quot;Turn keyboard access on or off&quot; option which is responsible for <code>CTRL + F1</code> combination.</p>
<h4 id="linux">Linux</h4>
<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>
<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 &quot;Turn off Windows key hotkeys&quot; and double click on it; enable or disable hotkeys.</p>
<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>
<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,
test/jdk/javax/swing/TooltipManager/JMenuItemToolTipKeyBindingsTest/JMenuItemToolTipKeyBindingsTest.java
fails on MacOS because it uses <code>CTRL + F1</code> key sequence to
show or hide tooltip message but the key combination is reserved by the
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>
<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>
<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 <code>make update-build-docs</code> to generate the same changes in <code>doc/testing.html</code>.</p>
<p>If you want to contribute changes to this document, edit
<code>doc/testing.md</code> and then run
<code>make update-build-docs</code> to generate the same changes in
<code>doc/testing.html</code>.</p>
</body>
</html>

View File

@@ -1,21 +1,26 @@
% Testing the JDK
## Using "make test" (the run-test framework)
## Overview
This new way of running tests is developer-centric. It assumes that you have
built a JDK locally and want to test it. Running common test targets is simple,
and more complex ad-hoc combination of tests is possible. The user interface is
forgiving, and clearly report errors it cannot resolve.
The bulk of JDK tests use [jtreg](https://openjdk.org/jtreg/), a regression
test framework and test runner built for the JDK's specific needs. Other test
frameworks are also used. The different test frameworks can be executed
directly, but there is also a set of make targets intended to simplify the
interface, and figure out how to run your tests for you.
The main target `test` uses the jdk-image as the tested product. There is
also an alternate target `exploded-test` that uses the exploded image
instead. Not all tests will run successfully on the exploded image, but using
this target can greatly improve rebuild times for certain workflows.
## Running tests locally with `make test`
Previously, `make test` was used to invoke an old system for running tests, and
`make run-test` was used for the new test framework. For backward compatibility
with scripts and muscle memory, `run-test` (and variants like
`exploded-run-test` or `run-test-tier1`) are kept as aliases.
This is the easiest way to get started. Assuming you've built the JDK locally,
execute:
$ make test
This will run a default set of tests against the JDK, and present you with the
results. `make test` is part of a family of test-related make targets which
simplify running tests, because they invoke the various test frameworks for
you. The "make test framework" is simple to start with, but more complex
ad-hoc combination of tests is also possible. You can always invoke the test
frameworks directly if you want even more control.
Some example command-lines:
@@ -28,6 +33,20 @@ Some example command-lines:
$ make test TEST="micro:java.lang.reflect" MICRO="FORK=1;WARMUP_ITER=2"
$ make exploded-test TEST=tier2
"tier1" and "tier2" refer to tiered testing, see further down. "TEST" is a
test selection argument which the make test framework will use to try to
find the tests you want. It iterates over the available test frameworks, and
if the test isn't present in one, it tries the next one. The main target
`test` uses the jdk-image as the tested product. There is also an alternate
target `exploded-test` that uses the exploded image instead. Not all tests
will run successfully on the exploded image, but using this target can
greatly improve rebuild times for certain workflows.
Previously, `make test` was used to invoke an old system for running tests,
and `make run-test` was used for the new test framework. For backward
compatibility with scripts and muscle memory, `run-test` and variants like
`exploded-run-test` or `run-test-tier1` are kept as aliases.
### Configuration
To be able to run JTReg tests, `configure` needs to know where to find the
@@ -91,54 +110,58 @@ if you want to shortcut the parser.
### Common Test Groups
Ideally, all tests are run for every change but this may not be practical due to the limited
testing resources, the scope of the change, etc.
Ideally, all tests are run for every change but this may not be practical due
to the limited testing resources, the scope of the change, etc.
The source tree currently defines a few common test groups in the relevant `TEST.groups`
files. There are test groups that cover a specific component, for example `hotspot_gc`.
It is a good idea to look into `TEST.groups` files to get a sense what tests are relevant
to a particular JDK component.
The source tree currently defines a few common test groups in the relevant
`TEST.groups` files. There are test groups that cover a specific component,
for example `hotspot_gc`. It is a good idea to look into `TEST.groups` files
to get a sense what tests are relevant to a particular JDK component.
Component-specific tests may miss some unintended consequences of a change, so other
tests should also be run. Again, it might be impractical to run all tests, and therefore
_tiered_ test groups exist. Tiered test groups are not component-specific, but rather cover
the significant parts of the entire JDK.
Component-specific tests may miss some unintended consequences of a change, so
other tests should also be run. Again, it might be impractical to run all
tests, and therefore
_tiered_ test groups exist. Tiered test groups are not component-specific, but
rather cover the significant parts of the entire JDK.
Multiple tiers allow balancing test coverage and testing costs. Lower test tiers are supposed to
contain the simpler, quicker and more stable tests. Higher tiers are supposed to contain
progressively more thorough, slower, and sometimes less stable tests, or the tests that require
special configuration.
Multiple tiers allow balancing test coverage and testing costs. Lower test
tiers are supposed to contain the simpler, quicker and more stable tests.
Higher tiers are supposed to contain progressively more thorough, slower, and
sometimes less stable tests, or the tests that require special
configuration.
Contributors are expected to run the tests for the areas that are changed, and the first N tiers
they can afford to run, but at least tier1.
Contributors are expected to run the tests for the areas that are changed, and
the first N tiers they can afford to run, but at least tier1.
A brief description of the tiered test groups:
- `tier1`: This is the lowest test tier. Multiple developers run these tests every day.
Because of the widespread use, the tests in `tier1` are carefully selected and optimized to run
fast, and to run in the most stable manner. The test failures in `tier1` are usually followed up
on quickly, either with fixes, or adding relevant tests to problem list. GitHub Actions workflows,
if enabled, run `tier1` tests.
- `tier1`: This is the lowest test tier. Multiple developers run these tests
every day. Because of the widespread use, the tests in `tier1` are
carefully selected and optimized to run fast, and to run in the most stable
manner. The test failures in `tier1` are usually followed up on quickly,
either with fixes, or adding relevant tests to problem list. GitHub Actions
workflows, if enabled, run `tier1` tests.
- `tier2`: This test group covers even more ground. These contain, among other things,
tests that either run for too long to be at `tier1`, or may require special configuration,
or tests that are less stable, or cover the broader range of non-core JVM and JDK features/components
(for example, XML).
- `tier2`: This test group covers even more ground. These contain, among other
things, tests that either run for too long to be at `tier1`, or may require
special configuration, or tests that are less stable, or cover the broader
range of non-core JVM and JDK features/components(for example, XML).
- `tier3`: This test group includes more stressful tests, the tests for corner cases
not covered by previous tiers, plus the tests that require GUIs. As such, this suite
should either be run with low concurrency (`TEST_JOBS=1`), or without headful tests
(`JTREG_KEYWORDS=\!headful`), or both.
- `tier3`: This test group includes more stressful tests, the tests for corner
cases not covered by previous tiers, plus the tests that require GUIs. As
such, this suite should either be run with low concurrency
(`TEST_JOBS=1`), or without headful tests(`JTREG_KEYWORDS=\!headful`), or
both.
- `tier4`: This test group includes every other test not covered by previous tiers. It includes,
for example, `vmTestbase` suites for Hotspot, which run for many hours even on large
machines. It also runs GUI tests, so the same `TEST_JOBS` and `JTREG_KEYWORDS` caveats
apply.
- `tier4`: This test group includes every other test not covered by previous
tiers. It includes, for example, `vmTestbase` suites for Hotspot, which run
for many hours even on large machines. It also runs GUI tests, so the same
`TEST_JOBS` and `JTREG_KEYWORDS` caveats apply.
### JTReg
JTReg tests can be selected either by picking a JTReg test group, or a selection
of files or directories containing JTReg tests. Documentation can be found at
of files or directories containing JTReg tests. Documentation can be found at
[https://openjdk.org/jtreg/](https://openjdk.org/jtreg/), note especially the
extensive [FAQ](https://openjdk.org/jtreg/faq.html).
@@ -169,6 +192,11 @@ use a fully qualified test descriptor, add `jtreg:`, e.g.
### Gtest
**Note:** To be able to run the Gtest suite, you need to configure your build to
be able to find a proper version of the gtest source. For details, see the
section ["Running Tests" in the build
documentation](building.html#running-tests).
Since the Hotspot Gtest suite is so quick, the default is to run all tests.
This is specified by just `gtest`, or as a fully qualified test descriptor
`gtest:all`.
@@ -456,6 +484,11 @@ Repeat the tests up to a set number of times, stopping at first failure.
This helps to reproduce intermittent test failures.
Defaults to 0.
#### REPORT
Use this report style when reporting test results (sent to JTReg as `-report`).
Defaults to `files`.
### Gtest keywords
#### REPEAT
@@ -573,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.
@@ -591,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
@@ -605,10 +640,37 @@ 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
then run `make update-build-docs` to generate the same changes in
If you want to contribute changes to this document, edit `doc/testing.md` and
then run `make update-build-docs` to generate the same changes in
`doc/testing.html`.
---

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

@@ -125,5 +125,20 @@ $(foreach m, $(INTERIM_LANGTOOLS_BASE_MODULES), \
)
################################################################################
# Setup the compilation of the javac server build tool. Technically, this is not
# really "interim" langtools, but just like it, it is needed henceforth for all
# java compilation using the interim compiler.
$(eval $(call SetupJavaCompilation, BUILD_JAVAC_SERVER, \
COMPILER := bootjdk, \
TARGET_RELEASE := $(TARGET_RELEASE_BOOTJDK), \
SRC := $(TOPDIR)/make/langtools/tools, \
INCLUDES := javacserver, \
BIN := $(BUILDTOOLS_OUTPUTDIR)/langtools_javacserver_classes, \
))
TARGETS += $(BUILD_JAVAC_SERVER)
################################################################################
all: $(TARGETS)

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, 2021, 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
@@ -80,6 +80,7 @@ JAVADOC_TAGS := \
-taglet build.tools.taglet.JSpec\$$JLS \
-taglet build.tools.taglet.JSpec\$$JVMS \
-taglet build.tools.taglet.ModuleGraph \
-taglet build.tools.taglet.SealedGraph \
-taglet build.tools.taglet.ToolGuide \
-tag since \
-tag serialData \
@@ -101,17 +102,25 @@ REFERENCE_TAGS := $(JAVADOC_TAGS)
JAVADOC_DISABLED_DOCLINT_WARNINGS := missing
JAVADOC_DISABLED_DOCLINT_PACKAGES := org.w3c.* javax.smartcardio
# Allow overriding on the command line
# (intentionally sharing name with the javac option)
JAVA_WARNINGS_ARE_ERRORS ?= -Werror
# The initial set of options for javadoc
JAVADOC_OPTIONS := -use -keywords -notimestamp \
-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)
@@ -187,25 +196,55 @@ JAVASE_LONG_NAME := Java<sup>&reg;</sup> Platform, Standard Edition
# Functions
# Helper function for creating a svg file from a dot file generated by the
# GenGraphs tool.
# GenGraphs tool for a module.
# param 1: SetupJavadocGeneration namespace ($1)
# param 2: module name
#
define setup_gengraph_dot_to_svg
$1_$2_DOT_SRC := $$($1_GENGRAPHS_DIR)/$2.dot
define setup_module_graph_dot_to_svg
$1_$2_DOT_SRC := $$($1_MODULE_GRAPHS_DIR)/$2.dot
$1_$2_SVG_TARGET := $$($1_TARGET_DIR)/$2/module-graph.svg
# For each module needing a graph, create a svg file from the dot file
# generated by the GenGraphs tool and store it in the target dir.
$$(eval $$(call SetupExecute, gengraphs_svg_$1_$2, \
$$(eval $$(call SetupExecute, module_graphs_svg_$1_$2, \
INFO := Running dot for module graphs for $2, \
DEPS := $$(gengraphs_$1_TARGET), \
DEPS := $$(module_graphs_dot_$1_TARGET), \
OUTPUT_FILE := $$($1_$2_SVG_TARGET), \
SUPPORT_DIR := $$($1_GENGRAPHS_DIR), \
SUPPORT_DIR := $$($1_MODULE_GRAPHS_DIR), \
COMMAND := $$(DOT) -Tsvg -o $$($1_$2_SVG_TARGET) $$($1_$2_DOT_SRC), \
))
$1_MODULEGRAPH_TARGETS += $$($1_$2_SVG_TARGET)
$1_GRAPHS_TARGETS += $$($1_$2_SVG_TARGET)
endef
# Helper function for creating a svg file for a class for which the SealedGraph
# taglet has generated a dot file. The dot file has a special name which
# encodes the module and class the graph belongs to.
#
# param 1: SetupJavadocGeneration namespace ($1)
# param 2: dot file name
#
define setup_sealed_graph_dot_to_svg
$1_$2_DOT_SRC := $$($1_SEALED_GRAPHS_DIR)/$2.dot
$1_$2_TARGET_CLASS := $$(word 2, $$(subst _, , $2))
$1_$2_SLASHED_NAME := $$(subst .,/, $$($1_$2_TARGET_CLASS))
$1_$2_TARGET_MODULE := $$(word 1, $$(subst _, , $2))
$1_$2_TARGET_PATH := $$($1_TARGET_DIR)/$$($1_$2_TARGET_MODULE)/$$(dir $$($1_$2_SLASHED_NAME))
$1_$2_TARGET_NAME := $$(notdir $$($1_$2_SLASHED_NAME))
$1_$2_SVG_TARGET := $$($1_$2_TARGET_PATH)/$$($1_$2_TARGET_NAME)-sealed-graph.svg
$$(call MakeDir, $$($1_$2_TARGET_PATH))
# For each class needing a graph, create a svg file from the dot file
# generated by the SealedGraph taglet and store it in the target dir.
$$(eval $$(call SetupExecute, sealed_graphs_svg_$1_$2, \
INFO := Running dot for sealed graphs for $$($1_$2_TARGET_MODULE)/$$($1_$2_TARGET_CLASS), \
DEPS := $$($1_$2_DOT_SRC), \
OUTPUT_FILE := $$($1_$2_SVG_TARGET), \
SUPPORT_DIR := $$($1_SEALED_GRAPHS_DIR), \
COMMAND := $$(DOT) -Tsvg -o $$($1_$2_SVG_TARGET) $$($1_$2_DOT_SRC), \
))
$1_GRAPHS_TARGETS += $$($1_$2_SVG_TARGET)
endef
# Helper function to create the overview.html file to use with the -overview
@@ -253,7 +292,7 @@ endef
#
# Parameter 1 is the name of the rule. This name is used as variable prefix.
# Targets generated are returned as $1_JAVADOC_TARGETS and
# $1_MODULEGRAPH_TARGETS. Note that the index.html file will work as a "touch
# $1_GRAPHS_TARGETS. Note that the index.html file will work as a "touch
# file" for all the magnitude of files that are generated by javadoc.
#
# Remaining parameters are named arguments. These include:
@@ -276,9 +315,12 @@ define SetupApiDocsGenerationBody
-Djspec.version=$$(VERSION_SPECIFICATION)
ifeq ($$(ENABLE_FULL_DOCS), true)
# Tell the ModuleGraph taglet to generate html links to soon-to-be-created
# svg files with module graphs.
$1_JAVA_ARGS += -DenableModuleGraph=true
$1_SEALED_GRAPHS_DIR := $$(SUPPORT_OUTPUTDIR)/docs/$1-sealed-graphs
# Tell the ModuleGraph and SealedGraph taglets to generate html links to
# soon-to-be-created svg files with module/sealed graphs.
$1_JAVA_ARGS += -DenableModuleGraph=true -DsealedDotOutputDir=$$($1_SEALED_GRAPHS_DIR)
$$(call MakeDir, $$($1_SEALED_GRAPHS_DIR))
endif
# Start with basic options and tags
@@ -299,6 +341,7 @@ define SetupApiDocsGenerationBody
# Ignore the doclint warnings in certain packages
$1_OPTIONS += -Xdoclint/package:$$(call CommaList, $$(addprefix -, \
$$(JAVADOC_DISABLED_DOCLINT_PACKAGES)))
$1_OPTIONS += $$(JAVA_WARNINGS_ARE_ERRORS)
$1_DOC_TITLE := $$($1_LONG_NAME)<br>Version $$(VERSION_SPECIFICATION) API \
Specification
@@ -384,30 +427,46 @@ define SetupApiDocsGenerationBody
# First we run the GenGraph tool. It will query the module structure of the
# running JVM and output .dot files for all existing modules.
GENGRAPHS_PROPS := \
MODULE_GRAPHS_PROPS := \
$$(TOPDIR)/make/jdk/src/classes/build/tools/jigsaw/javadoc-graphs.properties
$1_GENGRAPHS_DIR := $$(SUPPORT_OUTPUTDIR)/docs/$1-gengraphs
$1_MODULE_GRAPHS_DIR := $$(SUPPORT_OUTPUTDIR)/docs/$1-module-graphs
$$(eval $$(call SetupExecute, gengraphs_$1, \
INFO := Running gengraphs for $1 documentation, \
DEPS := $$(BUILD_JIGSAW_TOOLS) $$(GENGRAPHS_PROPS), \
OUTPUT_DIR := $$($1_GENGRAPHS_DIR), \
COMMAND := $$(TOOL_GENGRAPHS) --spec --output $$($1_GENGRAPHS_DIR) \
--dot-attributes $$(GENGRAPHS_PROPS), \
$$(eval $$(call SetupExecute, module_graphs_dot_$1, \
INFO := Generating module graphs for $1 documentation, \
DEPS := $$(BUILD_JIGSAW_TOOLS) $$(MODULE_GRAPHS_PROPS), \
OUTPUT_DIR := $$($1_MODULE_GRAPHS_DIR), \
COMMAND := $$(TOOL_GENGRAPHS) --spec --output $$($1_MODULE_GRAPHS_DIR) \
--dot-attributes $$(MODULE_GRAPHS_PROPS), \
))
# For each module needing a graph, create a svg file from the dot file
# generated by the GenGraphs tool and store it in the target dir.
# They will depend on gengraphs_$1_TARGET, and will be added to $1.
# They will depend on module_graphs_dot_$1_TARGET, and will be added to
# $1_GRAPHS_TARGETS.
$$(foreach m, $$($1_MODULES_NEEDING_GRAPH), \
$$(eval $$(call setup_gengraph_dot_to_svg,$1,$$m)) \
$$(eval $$(call setup_module_graph_dot_to_svg,$1,$$m)) \
)
# We have asked SealedGraph to generate dot files and links to svg files.
# Now we must produce the svg files from the dot files.
# Get a list of classes for which SealedGraph has generated dot files
$1_SEALED_CLASSES := $$(patsubst %.dot,%,$$(patsubst \
$$($1_SEALED_GRAPHS_DIR)/%,%, \
$$(wildcard $$($1_SEALED_GRAPHS_DIR)/*.dot)))
# For each class needing a graph, create a svg file from the dot file
# generated by the SealedGraph taglet and store it in the target dir.
# They will will be added to $1_GRAPHS_TARGETS.
$$(foreach c, $$($1_SEALED_CLASSES), \
$$(eval $$(call setup_sealed_graph_dot_to_svg,$1,$$c)) \
)
endif
endef
################################################################################
# Setup generation of the JDK API documentation (javadoc + modulegraph)
# Setup generation of the JDK API documentation (javadoc + graphs)
# Define the groups of the JDK API documentation
JavaSE_GROUP_NAME := Java SE
@@ -456,10 +515,10 @@ $(eval $(call SetupApiDocsGeneration, JDK_API, \
))
# Targets generated are returned in JDK_API_JAVADOC_TARGETS and
# JDK_API_MODULEGRAPH_TARGETS.
# JDK_API_GRAPHS_TARGETS.
################################################################################
# Setup generation of the Java SE API documentation (javadoc + modulegraph)
# Setup generation of the Java SE API documentation (javadoc + graphs)
# The Java SE module scope is just java.se and its transitive indirect
# exports.
@@ -473,10 +532,10 @@ $(eval $(call SetupApiDocsGeneration, JAVASE_API, \
))
# Targets generated are returned in JAVASE_API_JAVADOC_TARGETS and
# JAVASE_API_MODULEGRAPH_TARGETS.
# JAVASE_API_GRAPHS_TARGETS.
################################################################################
# Setup generation of the reference Java SE API documentation (javadoc + modulegraph)
# Setup generation of the reference Java SE API documentation (javadoc + graphs)
# The reference javadoc is just the same as javase, but using the BootJDK javadoc
# and a stable set of javadoc options. Typically it is used for generating
@@ -494,7 +553,7 @@ $(eval $(call SetupApiDocsGeneration, REFERENCE_API, \
))
# Targets generated are returned in REFERENCE_API_JAVADOC_TARGETS and
# REFERENCE_API_MODULEGRAPH_TARGETS.
# REFERENCE_API_GRAPHS_TARGETS.
################################################################################
@@ -564,7 +623,7 @@ $(foreach n, 0 1 2, \
$(eval specs_bottom_rel_path := $(specs_bottom_rel_path)../) \
)
SPECS_TOP := $(if $(filter true, $(IS_DRAFT)), <header class="draft-header">$(DRAFT_TEXT)</header>)
SPECS_TOP := $(if $(filter true, $(IS_DRAFT)), <header class="draft-header" role="banner">$(DRAFT_TEXT)</header>)
# For all html files in $module/share/specs directories, copy and add the
# copyright footer.
@@ -593,6 +652,9 @@ ifeq ($(ENABLE_PANDOC), true)
# html, if we have pandoc (otherwise we'll just skip this).
GLOBAL_SPECS_DEFAULT_CSS_FILE := $(DOCS_OUTPUTDIR)/resources/jdk-default.css
# Unset the following to suppress the link to the tool guides
NAV_LINK_GUIDES := --nav-link-guides
HEADER_RIGHT_SIDE_INFO := <strong>$(subst &amp;,&,$(JDK_SHORT_NAME))$(DRAFT_MARKER_STR)</strong>
$(foreach m, $(ALL_MODULES), \
$(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
@@ -609,7 +671,8 @@ ifeq ($(ENABLE_PANDOC), true)
REPLACEMENTS := \
@@VERSION_SPECIFICATION@@ => $(VERSION_SPECIFICATION) ; \
@@VERSION_STRING@@ => $(VERSION_STRING), \
POST_PROCESS := $(TOOL_FIXUPPANDOC), \
POST_PROCESS := $(TOOL_FIXUPPANDOC) --insert-nav --nav-right-info '$(HEADER_RIGHT_SIDE_INFO)' \
--nav-subdirs $($m_$f_NOF_SUBDIRS) $(NAV_LINK_GUIDES), \
)) \
$(eval JDK_SPECS_TARGETS += $($($m_$f_NAME))) \
) \
@@ -643,7 +706,8 @@ ifeq ($(ENABLE_PANDOC), true)
@@VERSION_SHORT@@ => $(VERSION_SHORT) ; \
@@VERSION_SPECIFICATION@@ => $(VERSION_SPECIFICATION), \
OPTIONS := --toc -V include-before='$(SPECS_TOP)' -V include-after='$(SPECS_BOTTOM_1)', \
POST_PROCESS := $(TOOL_FIXUPPANDOC), \
POST_PROCESS := $(TOOL_FIXUPPANDOC) --insert-nav --nav-right-info '$(HEADER_RIGHT_SIDE_INFO)' \
--nav-subdirs 1 --nav-link-guides, \
EXTRA_DEPS := $(PANDOC_HTML_MANPAGE_FILTER) \
$(PANDOC_HTML_MANPAGE_FILTER_SOURCE), \
)) \
@@ -658,13 +722,25 @@ endif
# Special treatment for generated documentation
SPEC_HEADER_BLOCK := \
<header id="title-block-header"> \
<div class="navbar"> \
<div>$(HEADER_RIGHT_SIDE_INFO)</div> \
<nav><ul><li><a href="PATH_TO_SPECS/../api/index.html">API</a> \
<li><a href="PATH_TO_SPECS/index.html">OTHER SPECIFICATIONS \
<li><a href="PATH_TO_SPECS/man/index.html">TOOL GUIDES</a></ul></nav> \
</div> \
</header>
JDWP_PROTOCOL := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
ifneq ($(call ApplySpecFilter, $(JDWP_PROTOCOL)), )
JDWP_HEADER_BLOCK := $(subst PATH_TO_SPECS,..,$(SPEC_HEADER_BLOCK))
$(eval $(call SetupTextFileProcessing, PROCESS_JDWP_PROTOCOL, \
SOURCE_FILES := $(JDWP_PROTOCOL), \
OUTPUT_DIR := $(DOCS_OUTPUTDIR)/specs/jdwp, \
REPLACEMENTS := \
<body> => <body>$(SPECS_TOP) ; \
<style> => <link rel="stylesheet" href="../../resources/jdk-default.css"/><style> ; \
<body> => <body>$(SPECS_TOP)$(JDWP_HEADER_BLOCK) ; \
</body> => $(SPECS_BOTTOM_1)</body>, \
))
JDK_SPECS_TARGETS += $(PROCESS_JDWP_PROTOCOL)
@@ -673,11 +749,13 @@ endif
# Get jvmti.html from the main jvm variant (all variants' jvmti.html are identical).
JVMTI_HTML ?= $(HOTSPOT_OUTPUTDIR)/variant-$(JVM_VARIANT_MAIN)/gensrc/jvmtifiles/jvmti.html
ifneq ($(call ApplySpecFilter, $(JVMTI_HTML)), )
JVMTI_HEADER_BLOCK := $(subst PATH_TO_SPECS,.,$(SPEC_HEADER_BLOCK))
$(eval $(call SetupTextFileProcessing, PROCESS_JVMTI_HTML, \
SOURCE_FILES := $(JVMTI_HTML), \
OUTPUT_DIR := $(DOCS_OUTPUTDIR)/specs/, \
REPLACEMENTS := \
<body> => <body>$(SPECS_TOP) ; \
<style> => <link rel="stylesheet" href="../resources/jdk-default.css"/><style> ; \
<body> => <body>$(SPECS_TOP)$(JVMTI_HEADER_BLOCK) ; \
</body> => $(SPECS_BOTTOM_0)</body>, \
))
JDK_SPECS_TARGETS += $(PROCESS_JVMTI_HTML)
@@ -692,7 +770,7 @@ JAVADOC_ZIP_FILE := $(OUTPUTDIR)/bundles/$(JAVADOC_ZIP_NAME)
$(eval $(call SetupZipArchive, BUILD_JAVADOC_ZIP, \
SRC := $(DOCS_OUTPUTDIR), \
ZIP := $(JAVADOC_ZIP_FILE), \
EXTRA_DEPS := $(JDK_API_JAVADOC_TARGETS) $(JDK_API_MODULEGRAPH_TARGETS) \
EXTRA_DEPS := $(JDK_API_JAVADOC_TARGETS) $(JDK_API_GRAPHS_TARGETS) \
$(JDK_SPECS_TARGETS), \
))
@@ -720,15 +798,15 @@ SPECS_ZIP_TARGETS += $(BUILD_SPECS_ZIP)
docs-jdk-api-javadoc: $(JDK_API_JAVADOC_TARGETS) $(JDK_API_CUSTOM_TARGETS)
docs-jdk-api-modulegraph: $(JDK_API_MODULEGRAPH_TARGETS)
docs-jdk-api-graphs: $(JDK_API_GRAPHS_TARGETS)
docs-javase-api-javadoc: $(JAVASE_API_JAVADOC_TARGETS) $(JAVASE_API_CUSTOM_TARGETS)
docs-javase-api-modulegraph: $(JAVASE_API_MODULEGRAPH_TARGETS)
docs-javase-api-graphs: $(JAVASE_API_GRAPHS_TARGETS)
docs-reference-api-javadoc: $(REFERENCE_API_JAVADOC_TARGETS) $(REFERENCE_API_CUSTOM_TARGETS)
docs-reference-api-modulegraph: $(REFERENCE_API_MODULEGRAPH_TARGETS)
docs-reference-api-graphs: $(REFERENCE_API_GRAPHS_TARGETS)
docs-jdk-specs: $(JDK_SPECS_TARGETS)
@@ -738,12 +816,12 @@ docs-zip: $(ZIP_TARGETS)
docs-specs-zip: $(SPECS_ZIP_TARGETS)
all: docs-jdk-api-javadoc docs-jdk-api-modulegraph docs-javase-api-javadoc \
docs-javase-api-modulegraph docs-reference-api-javadoc \
docs-reference-api-modulegraph docs-jdk-specs docs-jdk-index docs-zip \
all: docs-jdk-api-javadoc docs-jdk-api-graphs docs-javase-api-javadoc \
docs-javase-api-graphs docs-reference-api-javadoc \
docs-reference-api-graphs docs-jdk-specs docs-jdk-index docs-zip \
docs-specs-zip
.PHONY: default all docs-jdk-api-javadoc docs-jdk-api-modulegraph \
docs-javase-api-javadoc docs-javase-api-modulegraph \
docs-reference-api-javadoc docs-reference-api-modulegraph docs-jdk-specs \
.PHONY: default all docs-jdk-api-javadoc docs-jdk-api-graphs \
docs-javase-api-javadoc docs-javase-api-graphs \
docs-reference-api-javadoc docs-reference-api-graphs docs-jdk-specs \
docs-jdk-index docs-zip docs-specs-zip

View File

@@ -277,15 +277,20 @@ else # HAS_SPEC=true
$(ECHO) $(CONFIGURE_COMMAND_LINE)
reconfigure:
ifneq ($(CONFIGURE_COMMAND_LINE), )
ifneq ($(REAL_CONFIGURE_COMMAND_EXEC_FULL), )
$(ECHO) "Re-running configure using original command line '$(REAL_CONFIGURE_COMMAND_EXEC_SHORT) $(REAL_CONFIGURE_COMMAND_LINE)'"
$(eval RECONFIGURE_COMMAND := $(REAL_CONFIGURE_COMMAND_EXEC_FULL) $(REAL_CONFIGURE_COMMAND_LINE))
else ifneq ($(CONFIGURE_COMMAND_LINE), )
$(ECHO) "Re-running configure using arguments '$(CONFIGURE_COMMAND_LINE)'"
$(eval RECONFIGURE_COMMAND := $(BASH) $(TOPDIR)/configure $(CONFIGURE_COMMAND_LINE))
else
$(ECHO) "Re-running configure using default settings"
$(eval RECONFIGURE_COMMAND := $(BASH) $(TOPDIR)/configure)
endif
( cd $(CONFIGURE_START_DIR) && PATH="$(ORIGINAL_PATH)" AUTOCONF="$(AUTOCONF)" \
CUSTOM_ROOT="$(CUSTOM_ROOT)" \
CUSTOM_CONFIG_DIR="$(CUSTOM_CONFIG_DIR)" \
$(BASH) $(TOPDIR)/configure $(CONFIGURE_COMMAND_LINE) )
$(RECONFIGURE_COMMAND) )
##############################################################################
# The main target, for delegating into Main.gmk
@@ -319,7 +324,7 @@ else # HAS_SPEC=true
ifneq ($(PARALLEL_TARGETS), )
$(call PrepareFailureLogs)
$(call StartGlobalTimer)
$(call PrepareSmartJavac)
$(call PrepareJavacServer)
# JOBS will only be empty for a bootcycle-images recursive call
# or if specified via a make argument directly. In those cases
# treat it as NOT using jobs at all.
@@ -334,7 +339,7 @@ else # HAS_SPEC=true
cd $(TOPDIR) && $(MAKE) $(MAKE_ARGS) -j 1 -f make/Init.gmk \
HAS_SPEC=true on-failure ; \
exit $$exitcode ) )
$(call CleanupSmartJavac)
$(call CleanupJavacServer)
$(call StopGlobalTimer)
$(call ReportBuildTimes)
endif
@@ -346,7 +351,7 @@ else # HAS_SPEC=true
endif
on-failure:
$(call CleanupSmartJavac)
$(call CleanupJavacServer)
$(call StopGlobalTimer)
$(call ReportBuildTimes)
$(call PrintFailureReports)
@@ -359,11 +364,11 @@ else # HAS_SPEC=true
# Support targets for COMPARE_BUILD, used for makefile development
pre-compare-build:
$(call WaitForSmartJavacFinish)
$(call WaitForJavacServerFinish)
$(call PrepareCompareBuild)
post-compare-build:
$(call WaitForSmartJavacFinish)
$(call WaitForJavacServerFinish)
$(call CleanupCompareBuild)
$(call CompareBuildDoComparison)

View File

@@ -204,6 +204,15 @@ ifeq ($(HAS_SPEC),)
# Otherwise select those that contain the given CONF string
matching_confs := $$(strip $$(foreach var, $$(all_confs), \
$$(if $$(findstring $$(CONF), $$(var)), $$(var))))
ifneq ($$(filter $$(CONF), $$(matching_confs)), )
# If we found an exact match, use that
matching_confs := $$(CONF)
# Don't repeat this output on make restarts caused by including
# generated files.
ifeq ($$(MAKE_RESTARTS),)
$$(info Using exact match for CONF=$$(CONF) (other matches are possible))
endif
endif
endif
ifeq ($$(matching_confs),)
$$(info Error: No configurations found matching CONF=$$(CONF).)
@@ -426,10 +435,10 @@ else # $(HAS_SPEC)=true
# Compare first and second build. Ignore any error code from compare.sh.
$(ECHO) "Comparing between comparison rebuild (this/new) and baseline (other/old)"
$(if $(COMPARE_BUILD_COMP_DIR), \
+(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh $(COMPARE_BUILD_COMP_OPTS) \
+(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh -vv $(COMPARE_BUILD_COMP_OPTS) \
-2dirs $(COMPARE_BUILD_OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) \
$(OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) $(COMPARE_BUILD_IGNORE_RESULT)), \
+(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh $(COMPARE_BUILD_COMP_OPTS) \
+(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh -vv $(COMPARE_BUILD_COMP_OPTS) \
-o $(OUTPUTDIR) $(COMPARE_BUILD_IGNORE_RESULT)) \
)
endef
@@ -493,15 +502,15 @@ else # $(HAS_SPEC)=true
# Remove any javac server logs and port files. This
# prevents a new make run to reuse the previous servers.
define PrepareSmartJavac
define PrepareJavacServer
$(if $(JAVAC_SERVER_DIR), \
$(RM) -r $(JAVAC_SERVER_DIR) 2> /dev/null && \
$(MKDIR) -p $(JAVAC_SERVER_DIR) \
)
endef
define CleanupSmartJavac
[ -f $(JAVAC_SERVER_DIR)/server.port ] && $(ECHO) Stopping sjavac server && \
define CleanupJavacServer
[ -f $(JAVAC_SERVER_DIR)/server.port ] && $(ECHO) Stopping javac server && \
$(TOUCH) $(JAVAC_SERVER_DIR)/server.port.stop; true
endef
@@ -510,13 +519,13 @@ else # $(HAS_SPEC)=true
# move or remove the build output directory. Since we have no proper
# synchronization process, wait for a while and hope it helps. This is only
# used by build comparisons.
define WaitForSmartJavacFinish
define WaitForJavacServerFinish
$(if $(JAVAC_SERVER_DIR), \
sleep 5\
)
endef
else
define WaitForSmartJavacFinish
define WaitForJavacServerFinish
endef
endif

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)
@@ -466,15 +506,15 @@ ALL_TARGETS += bootcycle-images
# Docs targets
# If building full docs, to complete docs-*-api we need both the javadoc and
# modulegraph targets.
# graphs targets.
$(eval $(call SetupTarget, docs-jdk-api-javadoc, \
MAKEFILE := Docs, \
TARGET := docs-jdk-api-javadoc, \
))
$(eval $(call SetupTarget, docs-jdk-api-modulegraph, \
$(eval $(call SetupTarget, docs-jdk-api-graphs, \
MAKEFILE := Docs, \
TARGET := docs-jdk-api-modulegraph, \
TARGET := docs-jdk-api-graphs, \
DEPS := buildtools-modules runnable-buildjdk, \
))
@@ -483,9 +523,9 @@ $(eval $(call SetupTarget, docs-javase-api-javadoc, \
TARGET := docs-javase-api-javadoc, \
))
$(eval $(call SetupTarget, docs-javase-api-modulegraph, \
$(eval $(call SetupTarget, docs-javase-api-graphs, \
MAKEFILE := Docs, \
TARGET := docs-javase-api-modulegraph, \
TARGET := docs-javase-api-graphs, \
DEPS := buildtools-modules runnable-buildjdk, \
))
@@ -494,9 +534,9 @@ $(eval $(call SetupTarget, docs-reference-api-javadoc, \
TARGET := docs-reference-api-javadoc, \
))
$(eval $(call SetupTarget, docs-reference-api-modulegraph, \
$(eval $(call SetupTarget, docs-reference-api-graphs, \
MAKEFILE := Docs, \
TARGET := docs-reference-api-modulegraph, \
TARGET := docs-reference-api-graphs, \
DEPS := buildtools-modules runnable-buildjdk, \
))
@@ -1107,9 +1147,14 @@ docs-reference-api: docs-reference-api-javadoc
# If we're building full docs, we must also generate the module graphs to
# get non-broken api documentation.
ifeq ($(ENABLE_FULL_DOCS), true)
docs-jdk-api: docs-jdk-api-modulegraph
docs-javase-api: docs-javase-api-modulegraph
docs-reference-api: docs-reference-api-modulegraph
docs-jdk-api: docs-jdk-api-graphs
docs-javase-api: docs-javase-api-graphs
docs-reference-api: docs-reference-api-graphs
# We must generate javadoc first so we know what graphs are needed
docs-jdk-api-graphs: docs-jdk-api-javadoc
docs-javase-api-graphs: docs-javase-api-javadoc
docs-reference-api-graphs: docs-reference-api-javadoc
endif
docs-jdk: docs-jdk-api docs-jdk-specs docs-jdk-index
@@ -1349,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

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2022, 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
@@ -196,11 +196,12 @@ $(eval $(call SetTestOpt,JAVA_OPTIONS,JTREG))
$(eval $(call SetTestOpt,JOBS,JTREG))
$(eval $(call SetTestOpt,TIMEOUT_FACTOR,JTREG))
$(eval $(call SetTestOpt,FAILURE_HANDLER_TIMEOUT,JTREG))
$(eval $(call SetTestOpt,REPORT,JTREG))
$(eval $(call ParseKeywordVariable, JTREG, \
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR FAILURE_HANDLER_TIMEOUT \
TEST_MODE ASSERT VERBOSE RETAIN MAX_MEM RUN_PROBLEM_LISTS \
RETRY_COUNT REPEAT_COUNT MAX_OUTPUT $(CUSTOM_JTREG_SINGLE_KEYWORDS), \
RETRY_COUNT REPEAT_COUNT MAX_OUTPUT REPORT $(CUSTOM_JTREG_SINGLE_KEYWORDS), \
STRING_KEYWORDS := OPTIONS JAVA_OPTIONS VM_OPTIONS KEYWORDS \
EXTRA_PROBLEM_LISTS LAUNCHER_OPTIONS \
$(CUSTOM_JTREG_STRING_KEYWORDS), \
@@ -352,7 +353,7 @@ ExpandJtregPath = \
# with test id: dir/Test.java#selection -> Test.java#selection -> .java#selection -> #selection
# without: dir/Test.java -> Test.java -> .java -> <<empty string>>
TestID = \
$(subst .java,,$(suffix $(notdir $1)))
$(subst .sh,,$(subst .html,,$(subst .java,,$(suffix $(notdir $1)))))
# The test id starting with a hash (#testid) will be stripped by all
# evals in ParseJtregTestSelectionInner and will be reinserted by calling
@@ -591,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)
@@ -745,6 +755,7 @@ define SetupRunJtregTestBody
JTREG_RUN_PROBLEM_LISTS ?= false
JTREG_RETRY_COUNT ?= 0
JTREG_REPEAT_COUNT ?= 0
JTREG_REPORT ?= files
ifneq ($$(JTREG_RETRY_COUNT), 0)
ifneq ($$(JTREG_REPEAT_COUNT), 0)
@@ -770,10 +781,13 @@ define SetupRunJtregTestBody
# Make sure the tmp dir is normalized as some tests will react badly otherwise
$1_TEST_TMP_DIR := $$(abspath $$($1_TEST_SUPPORT_DIR)/tmp)
# test.boot.jdk is used by some test cases that want to execute a previous
# version of the JDK.
$1_JTREG_BASIC_OPTIONS += -$$($1_JTREG_TEST_MODE) \
-verbose:$$(JTREG_VERBOSE) -retain:$$(JTREG_RETAIN) \
-concurrency:$$($1_JTREG_JOBS) -timeoutFactor:$$(JTREG_TIMEOUT_FACTOR) \
-vmoption:-XX:MaxRAMPercentage=$$($1_JTREG_MAX_RAM_PERCENTAGE) \
-vmoption:-Dtest.boot.jdk="$$(BOOT_JDK)" \
-vmoption:-Djava.io.tmpdir="$$($1_TEST_TMP_DIR)"
$1_JTREG_BASIC_OPTIONS += -automatic -ignore:quiet
@@ -854,6 +868,7 @@ define SetupRunJtregTestBody
-dir:$$(JTREG_TOPDIR) \
-reportDir:$$($1_TEST_RESULTS_DIR) \
-workDir:$$($1_TEST_SUPPORT_DIR) \
-report:$${JTREG_REPORT} \
$$$${JTREG_STATUS} \
$$(JTREG_OPTIONS) \
$$(JTREG_FAILURE_HANDLER_OPTIONS) \

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -31,6 +31,7 @@ include JavaCompilation.gmk
include Modules.gmk
SRC_ZIP_WORK_DIR := $(SUPPORT_OUTPUTDIR)/src
$(if $(filter $(TOPDIR)/%, $(SUPPORT_OUTPUTDIR)), $(eval SRC_ZIP_BASE := $(TOPDIR)), $(eval SRC_ZIP_BASE := $(SUPPORT_OUTPUTDIR)))
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, ZipSource.gmk))
@@ -45,10 +46,10 @@ ALL_MODULES := $(FindAllModules)
# again to create src.zip.
$(foreach m, $(ALL_MODULES), \
$(foreach d, $(call FindModuleSrcDirs, $m), \
$(eval $d_TARGET := $(SRC_ZIP_WORK_DIR)/$(patsubst $(TOPDIR)/%,%,$d)/$m) \
$(eval $d_TARGET := $(SRC_ZIP_WORK_DIR)/$(patsubst $(TOPDIR)/%,%,$(patsubst $(SUPPORT_OUTPUTDIR)/%,%,$d))/$m) \
$(if $(SRC_GENERATED), , \
$(eval $$($d_TARGET): $d ; \
$$(if $(filter $(TOPDIR)/%, $d), $$(link-file-relative), $$(link-file-absolute)) \
$$(if $(filter $(SRC_ZIP_BASE)/%, $d), $$(link-file-relative), $$(link-file-absolute)) \
) \
) \
$(eval SRC_ZIP_SRCS += $$($d_TARGET)) \

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -31,6 +31,11 @@ AC_DEFUN_ONCE([BASIC_INIT],
[
# Save the original command line. This is passed to us by the wrapper configure script.
AC_SUBST(CONFIGURE_COMMAND_LINE)
# We might have the original command line if the wrapper was called by some
# other script.
AC_SUBST(REAL_CONFIGURE_COMMAND_EXEC_SHORT)
AC_SUBST(REAL_CONFIGURE_COMMAND_EXEC_FULL)
AC_SUBST(REAL_CONFIGURE_COMMAND_LINE)
# AUTOCONF might be set in the environment by the user. Preserve for "make reconfigure".
AC_SUBST(AUTOCONF)
# Save the path variable before it gets changed
@@ -96,6 +101,29 @@ AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
AUTOCONF_DIR=$TOPDIR/make/autoconf
])
###############################################################################
# Setup what kind of build environment type we have (CI or local developer)
AC_DEFUN_ONCE([BASIC_SETUP_BUILD_ENV],
[
if test "x$CI" = "xtrue"; then
DEFAULT_BUILD_ENV="ci"
AC_MSG_NOTICE([CI environment variable set to $CI])
else
DEFAULT_BUILD_ENV="dev"
fi
UTIL_ARG_WITH(NAME: build-env, TYPE: literal,
RESULT: BUILD_ENV,
VALID_VALUES: [auto dev ci], DEFAULT: auto,
CHECKING_MSG: [for build environment type],
DESC: [select build environment type (affects certain default values)],
IF_AUTO: [
RESULT=$DEFAULT_BUILD_ENV
]
)
AC_SUBST(BUILD_ENV)
])
###############################################################################
# Evaluates platform specific overrides for devkit variables.
# $1: Name of variable
@@ -139,6 +167,15 @@ AC_DEFUN([BASIC_SETUP_XCODE_SYSROOT],
if test $? -ne 0; then
AC_MSG_ERROR([The xcodebuild tool in the devkit reports an error: $XCODEBUILD_OUTPUT])
fi
elif test "x$TOOLCHAIN_PATH" != x; then
UTIL_LOOKUP_PROGS(XCODEBUILD, xcodebuild, $TOOLCHAIN_PATH)
if test "x$XCODEBUILD" != x; then
XCODEBUILD_OUTPUT=`"$XCODEBUILD" -version 2>&1`
if test $? -ne 0; then
AC_MSG_WARN([Ignoring the located xcodebuild tool $XCODEBUILD due to an error: $XCODEBUILD_OUTPUT])
XCODEBUILD=
fi
fi
else
UTIL_LOOKUP_PROGS(XCODEBUILD, xcodebuild)
if test "x$XCODEBUILD" != x; then
@@ -288,6 +325,22 @@ AC_DEFUN_ONCE([BASIC_SETUP_DEVKIT],
[UTIL_PREPEND_TO_PATH([TOOLCHAIN_PATH],$with_toolchain_path)]
)
AC_ARG_WITH([xcode-path], [AS_HELP_STRING([--with-xcode-path],
[set up toolchain on Mac OS using a path to an Xcode installation])])
if test "x$with_xcode_path" != x; then
if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
UTIL_PREPEND_TO_PATH([TOOLCHAIN_PATH],
$with_xcode_path/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:$with_xcode_path/Contents/Developer/usr/bin)
else
AC_MSG_WARN([Option --with-xcode-path is only valid on Mac OS, ignoring.])
fi
fi
AC_MSG_CHECKING([for toolchain path])
AC_MSG_RESULT([$TOOLCHAIN_PATH])
AC_SUBST(TOOLCHAIN_PATH)
AC_ARG_WITH([extra-path], [AS_HELP_STRING([--with-extra-path],
[prepend these directories to the default path])],
[UTIL_PREPEND_TO_PATH([EXTRA_PATH],$with_extra_path)]
@@ -306,10 +359,6 @@ AC_DEFUN_ONCE([BASIC_SETUP_DEVKIT],
AC_MSG_RESULT([$SYSROOT])
AC_SUBST(SYSROOT)
AC_MSG_CHECKING([for toolchain path])
AC_MSG_RESULT([$TOOLCHAIN_PATH])
AC_SUBST(TOOLCHAIN_PATH)
AC_MSG_CHECKING([for extra path])
AC_MSG_RESULT([$EXTRA_PATH])
])
@@ -428,7 +477,11 @@ AC_DEFUN([BASIC_CHECK_DIR_ON_LOCAL_DISK],
# df on AIX does not understand -l. On modern AIXes it understands "-T local" which
# is the same. On older AIXes we just continue to live with a "not local build" warning.
if test "x$OPENJDK_TARGET_OS" = xaix; then
DF_LOCAL_ONLY_OPTION='-T local'
if "$DF -T local > /dev/null 2>&1"; then
DF_LOCAL_ONLY_OPTION='-T local'
else # AIX may use GNU-utils instead
DF_LOCAL_ONLY_OPTION='-l'
fi
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl1"; then
# In WSL1, we can only build on a drvfs file system (that is, a mounted real Windows drive)
DF_LOCAL_ONLY_OPTION='-t drvfs'

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -23,6 +23,11 @@
# questions.
#
###############################################################################
# It is recommended to use exactly this version of pandoc, especially for
# re-generating checked in html files
RECOMMENDED_PANDOC_VERSION=2.19.2
###############################################################################
# Setup the most fundamental tools that relies on not much else to set up,
# but is used by much of the early bootstrap code.
@@ -83,6 +88,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS],
UTIL_LOOKUP_PROGS(GIT, git)
UTIL_LOOKUP_PROGS(NICE, nice)
UTIL_LOOKUP_PROGS(READLINK, greadlink readlink)
UTIL_LOOKUP_PROGS(WHOAMI, whoami)
# These are only needed on some platforms
UTIL_LOOKUP_PROGS(PATHTOOL, cygpath wslpath)
@@ -280,7 +286,7 @@ AC_DEFUN([BASIC_CHECK_TAR],
if test "x$TAR_TYPE" = "xgnu"; then
TAR_INCLUDE_PARAM="T"
TAR_SUPPORTS_TRANSFORM="true"
elif test "x$TAR_TYPE" = "aix"; then
elif test "x$TAR_TYPE" = "xaix"; then
# -L InputList of aix tar: name of file listing the files and directories
# that need to be archived or extracted
TAR_INCLUDE_PARAM="L"
@@ -426,22 +432,29 @@ AC_DEFUN_ONCE([BASIC_SETUP_PANDOC],
[
UTIL_LOOKUP_PROGS(PANDOC, pandoc)
PANDOC_MARKDOWN_FLAG="markdown"
if test -n "$PANDOC"; then
AC_MSG_CHECKING(if the pandoc smart extension needs to be disabled for markdown)
if $PANDOC --list-extensions | $GREP -q '\+smart'; then
if test "x$PANDOC" != x; then
AC_MSG_CHECKING([for pandoc version])
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
AC_MSG_WARN([pandoc is version $PANDOC_VERSION, not the recommended version $RECOMMENDED_PANDOC_VERSION])
fi
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
AC_MSG_RESULT([yes])
PANDOC_MARKDOWN_FLAG="markdown-smart"
else
AC_MSG_RESULT([no])
fi
fi
if test -n "$PANDOC"; then
ENABLE_PANDOC="true"
else
ENABLE_PANDOC="false"
fi
AC_SUBST(ENABLE_PANDOC)
AC_SUBST(PANDOC_MARKDOWN_FLAG)
])

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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2021, Azul Systems, Inc. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
@@ -29,16 +29,27 @@
# and fix the broken property, if needed.
DIR=`dirname $0`
OUT=`. $DIR/autoconf-config.guess`
OUT=`. $DIR/autoconf-config.guess 2> /dev/null`
# Detect C library.
# Use '-gnu' suffix on systems that use glibc.
# Use '-musl' suffix on systems that use the musl libc.
echo $OUT | grep -- -linux- > /dev/null 2> /dev/null
if test $? = 0; then
libc_vendor=`ldd --version 2>&1 | sed -n '1s/.*\(musl\).*/\1/p'`
if [ x"${libc_vendor}" = x"musl" ]; then
OUT=`echo $OUT | sed 's/-gnu/-musl/'`
# Handle some cases that autoconf-config.guess is not capable of
if [ "x$OUT" = x ]; then
if [ `uname -s` = Linux ]; then
# Test and fix little endian MIPS.
if [ `uname -m` = mipsel ]; then
OUT=mipsel-unknown-linux-gnu
fi
# Test and fix cygwin machine arch .x86_64
elif [[ `uname -s` = CYGWIN* ]]; then
if [ `uname -m` = ".x86_64" ]; then
OUT=x86_64-unknown-cygwin
fi
fi
if [ "x$OUT" = x ]; then
# Run autoconf-config.guess again to get the error message.
. $DIR/autoconf-config.guess > /dev/null
else
printf "guessed by custom config.guess... " >&2
fi
fi
@@ -57,11 +68,11 @@ if test $? = 0; then
fi
# Test and fix wsl
echo $OUT | grep unknown-linux-gnu > /dev/null 2> /dev/null
echo $OUT | grep '\(unknown\|pc\)-linux-gnu' > /dev/null 2> /dev/null
if test $? = 0; then
uname -r | grep -i microsoft > /dev/null 2> /dev/null
if test $? = 0; then
OUT=`echo $OUT | sed -e 's/unknown-linux-gnu/pc-wsl/'`
OUT=`echo $OUT | sed -e 's/\(unknown\|pc\)-linux-gnu/pc-wsl/'`
fi
fi
@@ -81,57 +92,6 @@ if test $? = 0; then
OUT=powerpc$KERNEL_BITMODE`echo $OUT | sed -e 's/[^-]*//'`
fi
# Test and fix little endian PowerPC64.
# TODO: should be handled by autoconf-config.guess.
if [ "x$OUT" = x ]; then
if [ `uname -m` = ppc64le ]; then
if [ `uname -s` = Linux ]; then
OUT=powerpc64le-unknown-linux-gnu
fi
fi
fi
# Test and fix little endian MIPS.
if [ "x$OUT" = x ]; then
if [ `uname -s` = Linux ]; then
if [ `uname -m` = mipsel ]; then
OUT=mipsel-unknown-linux-gnu
elif [ `uname -m` = mips64el ]; then
OUT=mips64el-unknown-linux-gnu
fi
fi
fi
# Test and fix LoongArch64.
if [ "x$OUT" = x ]; then
if [ `uname -s` = Linux ]; then
if [ `uname -m` = loongarch64 ]; then
OUT=loongarch64-unknown-linux-gnu
fi
fi
fi
# Test and fix RISC-V.
if [ "x$OUT" = x ]; then
if [ `uname -s` = Linux ]; then
if [ `uname -m` = riscv64 ]; then
OUT=riscv64-unknown-linux-gnu
fi
fi
fi
# Test and fix cpu on macos-aarch64, uname -p reports arm, buildsys expects aarch64
echo $OUT | grep arm-apple-darwin > /dev/null 2> /dev/null
if test $? != 0; then
# The GNU version of uname may be on the PATH which reports arm64 instead
echo $OUT | grep arm64-apple-darwin > /dev/null 2> /dev/null
fi
if test $? = 0; then
if [ `uname -m` = arm64 ]; then
OUT=aarch64`echo $OUT | sed -e 's/[^-]*//'`
fi
fi
# Test and fix cpu on Macosx when C preprocessor is not on the path
echo $OUT | grep i386-apple-darwin > /dev/null 2> /dev/null
if test $? = 0; then

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -29,46 +29,16 @@
DIR=`dirname $0`
if echo $* | grep linux-musl >/dev/null ; then
echo $*
exit
fi
# Allow wsl
if echo $* | grep pc-wsl >/dev/null ; then
echo $*
exit
fi
# Allow msys2
if echo $* | grep pc-msys >/dev/null ; then
echo $*
exit
fi
# Canonicalize for riscv which autoconf-config.sub doesn't handle
if echo $* | grep '^riscv\(32\|64\)-linux' >/dev/null ; then
result=`echo $@ | sed 's/linux/unknown-linux/'`
echo $result
exit
fi
# Filter out everything that doesn't begin with "aarch64-"
if ! echo $* | grep '^aarch64-' >/dev/null ; then
. $DIR/autoconf-config.sub "$@"
# autoconf-config.sub exits, so we never reach here, but just in
# case we do:
exit
fi
while test $# -gt 0 ; do
case $1 in
-- ) # Stop option processing
shift; break ;;
aarch64-* )
config=`echo $1 | sed 's/^aarch64-/arm-/'`
sub_args="$sub_args $config"
shift; ;;
- ) # Use stdin as input.
sub_args="$sub_args $1"
shift; break ;;
@@ -81,7 +51,5 @@ done
result=`. $DIR/autoconf-config.sub $sub_args "$@"`
exitcode=$?
result=`echo $result | sed "s/^arm-/aarch64-/"`
echo $result
exit $exitcode

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
@@ -26,39 +26,29 @@
AC_DEFUN([BPERF_CHECK_CORES],
[
AC_MSG_CHECKING([for number of cores])
NUM_CORES=1
FOUND_CORES=no
if test -f /proc/cpuinfo; then
# Looks like a Linux (or cygwin) system
NUM_CORES=`cat /proc/cpuinfo | grep -c processor`
NUM_CORES=`cat /proc/cpuinfo | grep -cw processor`
if test "$NUM_CORES" -eq "0"; then
NUM_CORES=`cat /proc/cpuinfo | grep -c ^CPU`
fi
if test "$NUM_CORES" -ne "0"; then
FOUND_CORES=yes
fi
elif test -x /usr/sbin/sysctl; then
# Looks like a MacOSX system
NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu`
FOUND_CORES=yes
elif test "x$OPENJDK_BUILD_OS" = xaix ; then
NUM_LCPU=`lparstat -m 2> /dev/null | $GREP -o "lcpu=[[0-9]]*" | $CUT -d "=" -f 2`
if test -n "$NUM_LCPU"; then
NUM_CORES=$NUM_LCPU
FOUND_CORES=yes
fi
NUM_CORES=`lparstat -m 2> /dev/null | $GREP -o "lcpu=[[0-9]]*" | $CUT -d "=" -f 2`
elif test -n "$NUMBER_OF_PROCESSORS"; then
# On windows, look in the env
NUM_CORES=$NUMBER_OF_PROCESSORS
FOUND_CORES=yes
fi
if test "x$FOUND_CORES" = xyes; then
AC_MSG_RESULT([$NUM_CORES])
else
if test "$NUM_CORES" -eq "0"; then
NUM_CORES=1
AC_MSG_RESULT([could not detect number of cores, defaulting to 1])
AC_MSG_WARN([This will disable all parallelism from build!])
else
AC_MSG_RESULT([$NUM_CORES])
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
@@ -86,6 +86,7 @@ PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET
# Continue setting up basic stuff. Most remaining code require fundamental tools.
BASIC_SETUP_PATHS
BASIC_SETUP_BUILD_ENV
# Check if it's a pure open build or if custom sources are to be used.
JDKOPT_SETUP_OPEN_OR_CUSTOM
@@ -215,6 +216,12 @@ JDKOPT_SETUP_CODE_COVERAGE
# AddressSanitizer
JDKOPT_SETUP_ADDRESS_SANITIZER
# UndefinedBehaviorSanitizer
JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER
# LeakSanitizer
JDKOPT_SETUP_LEAK_SANITIZER
###############################################################################
#
# Check dependencies for external and internal libraries.

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
@@ -128,7 +128,12 @@ AC_DEFUN([FLAGS_SETUP_DEBUG_SYMBOLS],
)
fi
CFLAGS_DEBUG_SYMBOLS="-g"
# -gdwarf-4 and -gdwarf-aranges were introduced in clang 5.0
GDWARF_FLAGS="-gdwarf-4 -gdwarf-aranges"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [${GDWARF_FLAGS}],
IF_FALSE: [GDWARF_FLAGS=""])
CFLAGS_DEBUG_SYMBOLS="-g ${GDWARF_FLAGS}"
ASFLAGS_DEBUG_SYMBOLS="-g"
elif test "x$TOOLCHAIN_TYPE" = xxlc; then
CFLAGS_DEBUG_SYMBOLS="-g1"
@@ -184,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)
@@ -471,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
###############################################################################
@@ -527,7 +535,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
# Suggested additions: -qsrcmsg to get improved error reporting
# set -qtbtable=full for a better traceback table/better stacks in hs_err when xlc16 is used
TOOLCHAIN_CFLAGS_JDK="-qtbtable=full -qchars=signed -qfullpath -qsaveopt -qstackprotect" # add on both CFLAGS
TOOLCHAIN_CFLAGS_JVM="-qtbtable=full -qtune=balanced \
TOOLCHAIN_CFLAGS_JVM="-qtbtable=full -qtune=balanced -fno-exceptions \
-qalias=noansi -qstrict -qtls=default -qnortti -qnoeh -qignerrno -qstackprotect"
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
TOOLCHAIN_CFLAGS_JVM="-nologo -MD -Zc:preprocessor -Zc:strictStrings -MP"
@@ -629,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

@@ -46,15 +46,31 @@ AC_DEFUN([FLAGS_SETUP_ARFLAGS],
AC_DEFUN([FLAGS_SETUP_STRIPFLAGS],
[
## Setup strip.
# FIXME: should this really be per platform, or should it be per toolchain type?
# strip is not provided by clang; so guessing platform makes most sense.
# FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD.
if test "x$OPENJDK_TARGET_OS" = xlinux; then
STRIPFLAGS="-g"
elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
STRIPFLAGS="-S"
elif test "x$OPENJDK_TARGET_OS" = xaix; then
STRIPFLAGS="-X32_64"
if test "x$STRIP" != x; then
AC_MSG_CHECKING([how to run strip])
# Easy cheat: Check strip variant by passing --version as an argument.
# Different types of strip have varying command line syntaxes for querying their
# version string, and all noisily fail if the provided version option is not
# recognised.
#
# The actual version string or failure to execute strip are hidden by redirection
# to config.log with 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD
if $STRIP "--version" 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD; then
# strip that comes from the GNU family uses --version
# This variant of strip is usually found accompanying gcc and clang
STRIPFLAGS="--strip-debug"
elif $STRIP "-V" 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD; then
# IBM strip that works with AIX binaries only supports -V
STRIPFLAGS="-X32_64"
else
# The only strip variant left is MacOS/Xcode strip, which does not have any
# way whatsoever to be identified (lacking even basic help or version options),
# so we leave it as the last fallback when all other tests have failed.
STRIPFLAGS="-S"
fi
AC_MSG_RESULT($STRIPFLAGS)
fi
AC_SUBST(STRIPFLAGS)
@@ -117,4 +133,3 @@ AC_DEFUN([FLAGS_SETUP_ASFLAGS_CPU_DEP],
AC_SUBST($2JVM_ASFLAGS)
])

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