Compare commits

...

2660 Commits

Author SHA1 Message Date
Alexey Ushakov
94c7f61826 DSSync in progress 2023-11-01 09:58:51 +01:00
Maxim Kartashev
2530aad97a JBR-6220 javax/swing/GraphicsConfigNotifier/StalePreferredSize.java became failing by time out on Linux 2023-10-31 15:01:59 +04:00
Vitaly Provodin
f4ada3a1ee JBR-6246 add default CDS archives into jbrsdk distributions 2023-10-31 11:23:46 +07:00
Maxim Kartashev
554ac286f9 JBR-6247 Update JBR-specific tests after JDK-8314823 2023-10-31 01:26:07 +01:00
Maxim Kartashev
e685fd27fa JBR-4020 Test ObsoleteFlagErrorMessage fails after +IgnoreUnrecognizedVMOptions has become the default
(cherry picked from commit ae5963a094)
2023-10-31 01:26:07 +01:00
Maxim Kartashev
7ee82924d1 JBR-5761 Make error printing more robust during early stages of VM initialization 2023-10-31 01:26:07 +01:00
Maxim Kartashev
cbfc35caf3 JBR-5722 vmTestbase/vm/gc/compact/Compact_TwoFields_InternedStrings: SIGSEGV at Symbol::as_klass_external_name(char*, int)
Do not use print_native_stack() when recording OOME stacks as it is
designed to be used only in the context of a fatal error reporting where
induced crashes are tolerated.
2023-10-31 01:26:07 +01:00
Alexey Ushakov
caca396529 JBR-5741 broken build in main because of hotspot changes (JDK-8309613)
Added missing parameter
2023-10-31 01:26:07 +01:00
Maxim Kartashev
49f46937bc JBR-5480 Include more information in OOME crash reports 2023-10-31 01:26:07 +01:00
Maxim Kartashev
017cea831c JBR-5466 jb/hotspot/JNIRefsInCrashLog.java: 'hs_err_42.txt' missing from stdout/stderr 2023-10-31 01:26:07 +01:00
Maxim Kartashev
44f9717d16 JBR-5431 Include memory used by JNI references into crash reports 2023-10-31 01:26:07 +01:00
Vitaly Provodin
7b47c0f360 Update README.md 2023-10-31 01:26:07 +01:00
bourgesl
d6d2a9e8bd JBR-5638: improved renderer performance for simple rectangular area (see BBoxAATileGenerator), added new statistics in Renderer 2023-10-31 01:26:07 +01:00
Nikita Tsarev
9767b80099 JBR-6215: Override XToolkit's default nonintuitive behavior when translating F13-F24 keys 2023-10-31 01:26:07 +01:00
Konstantin Bulenkov
65b8c55ac9 JBR-6214 [fwp jbr21] IDEA-299292 Use Inter semibold instead of Inter bold
Replaced Inter bold with semi-bold fonts
2023-10-31 01:26:07 +01:00
Maxim Kartashev
b418519e29 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-10-31 01:26:07 +01:00
Nikita Gubarkov
d50430b58f JBR-6208 Extended glyph cache for Metal 2023-10-31 01:26:06 +01:00
Vitaly Provodin
ed986ae4ed JBR-6181 add Linux executables with bundled FreeType 2023-10-31 01:26:06 +01:00
Vitaly Provodin
821f2315f3 Update README.md 2023-10-31 01:26:06 +01:00
Alexey Ushakov
29da2a23b9 JBR-4983 MacOS Ventura - External monitor lagging
Restored REDRAW_INC to 2. Enabled the fix by default only for M2 and spans displays property enabled (Displays have separate spaces OFF)
2023-10-31 01:26:06 +01:00
Dmitrii Morskii
6ccd2fc774 JBR-6135 removed dependence on process reading TTF in fixed size chunks 2023-10-31 01:26:06 +01:00
Maxim Kartashev
404cd0a6a1 JBR-6142 Impossible to move/resize IDE window after restart if several projects were initially opened on secondary monitor
Announce to Mutter that we are "client-decorated" when a Frame is
undecorated by setting _GTK_FRAME_EXTENTS to all zeroes.
This prevents Mutter from applying certain harmful heuristics.
2023-10-31 01:26:06 +01:00
bourgesl
627403b0fd JBR-6119: RenderPerf enhancements:
new executor modes (buffer & volatile), robot calibration & more statistics and CLI arguments
added version + help information, added time unit
2023-10-31 01:26:06 +01:00
Alexey Ushakov
53731d1199 JBR-6132 Crash in [MTLLayer blitTexture] when MTL_DEBUG_LAYER enabled
Blit operation should not be performed on textures with MTLTextureUsageRenderTarget only, so changing framebufferOnly to NO
2023-10-31 01:26:06 +01:00
Nikita Provotorov
3e458d95b6 JBR-6125: macOS14 java/awt/Window/Grab/GrabTest.java Frame can't be focused.
Fixes a data race in the test.
2023-10-31 01:26:06 +01:00
Vitaly Provodin
d4f7ef0105 Update README.md 2023-10-31 01:26:06 +01:00
Nikita Provotorov
07307df2a9 JBR-5984: IM's candidate window is placed under popup windows.
- Implements the optional method [NSTextInputClient windowLevel] to tell the macOS IM subsystem correct level of the window;
- Adds a regression test ImWindowIsPlacedUnderPopup5984.java.

(cherry picked from commit 5a91aae9c2)
2023-10-31 01:26:06 +01:00
Vitaly Provodin
7046ce138b JBR-6130 add VK_TAB release action 2023-10-31 01:26:06 +01:00
Alexey Ushakov
3f9cea3b71 JBR-4983 MacOS Ventura - External monitor lagging
Added extra redraw request
2023-10-31 01:26:06 +01:00
ghostflyby
ab49e5091d JBR-6124 Fix macOS services writing text back to textfield 2023-10-31 01:26:06 +01:00
Sergey Shelomentsev
8e5d0bb8b3 exclude FocusTraversalOrderTest 2023-10-31 01:26:05 +01:00
Sergey Shelomentsev
844d8cc35d JBR-6060 add focus traversal order test 2023-10-31 01:26:05 +01:00
Dmitrii Morskii
38b3d7fc54 JBR-6044 handle absence of fontConfig library in setupRenderingFontHints 2023-10-31 01:26:05 +01:00
Dmitrii Morskii
3ea6f35595 JBR-6041 started using correct type inside FcPatternGetValueFuncType 2023-10-31 01:26:05 +01:00
Maxim Kartashev
4a39bae555 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-10-31 01:26:05 +01:00
Nikita Tsarev
2547aeaa46 JBR-6028: Check before attempting to switch to a layout that might not exist in KeyCodesTest 2023-10-31 01:26:05 +01:00
Nikita Gubarkov
2c2a28b8e9 JBR-6016 doPrivileged for JBR API internal services. 2023-10-31 01:26:05 +01:00
Dmitrii Morskii
7d12020899 JBR-6018 removed incorrect test testFeaturesZeroFrac 2023-10-31 01:26:05 +01:00
Maxim Kartashev
07bed66f60 JBR-6002 Linux: maximized window goes fullscreen after being moved between monitors 2023-10-31 01:26:05 +01:00
Vitaly Provodin
dc056cacbd JBR-6008 Update JetBrains Mono fonts to v2.304 2023-10-31 01:26:05 +01:00
Dmitrii
4fa6406432 JBR-5502: optimize stringWidth & charsWidth methods of FontDesignMetrics 2023-10-31 01:26:05 +01:00
Vitaly Provodin
562bc30859 Update README.md 2023-10-31 01:26:05 +01:00
Dmitry Batrak
1a8ed07463 JBR-3353 Sibling popup window is shown below dialog on macOS
(cherry picked from commit 4c6f3e4510)
2023-10-31 01:26:05 +01:00
Maxim Kartashev
1f9f4c13c0 JBR-5971 Wayland: support WindowMove JBR API
Updated the XToolkit implementation to match API changes required for
WLToolkit
2023-10-31 01:26:05 +01:00
Nikita Tsarev
8dfbb98ebd InputMethodTest: fix certain IMEs not being added properly 2023-10-31 01:26:04 +01:00
Dmitry Batrak
de8615bcb5 JBR-5953 If hieroglyph typing isn't finalised, focusing another component inserts the composed text there 2023-10-31 01:26:04 +01:00
Dmitry Batrak
830116523b JBR-5946 Allow to disable painting of composed text in Swing text components using TextLayout.draw 2023-10-31 01:26:04 +01:00
Dmitry Batrak
32cae2c622 JBR-5823 IDEA crashes when '-Dmain.thread.as.edt=true' vmoption is set and VoiceOver is enabled
done as part of JBR-4993 Support using 'main' thread as EDT on macOS

(cherry picked from commit 55598693c3)
2023-10-31 01:26:04 +01:00
ngubarkov
b1689de46d JBR-5605 ignore empty client area when syncing bounds in XDecoratedPeer. 2023-10-31 01:26:04 +01:00
ngubarkov
17871bc645 JBR-5438 Fix window bounds in XWM#setShellResizable 2023-10-31 01:26:04 +01:00
ngubarkov
d8e08f072d JBR-5240 Fix XToolkit#getScreenInsets in Xinerama mode. 2023-10-31 01:26:04 +01:00
ngubarkov
798754dd6f JBR-5265 Workaround incorrect position of content window in queryXLocation. 2023-10-31 01:26:04 +01:00
ngubarkov
24982fed93 JBR-5316 Fix fractional scaling HIDPI. 2023-10-31 01:26:04 +01:00
ngubarkov
f1c7e5713e JBR-5417 Fix flickering in multi-monitor setups on Linux. 2023-10-31 01:26:04 +01:00
Nikita Gubarkov
625d6ac4c4 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-10-31 01:26:04 +01:00
Nikita Gubarkov
68f8221685 IDEA-141456 Multimonitor HIDPI support for Linux 2023-10-31 01:26:04 +01:00
Dmitrii Morskii
736972b471 JBR-5724: fixed serialization and backward compatibility of Font 2023-10-31 01:26:04 +01:00
Dmitrii Morskii
9dda5c14df JBR-5844: fixed other part of issue. Added missing implementation of native methods in fontconfigmanager 2023-10-31 01:26:04 +01:00
Dmitrii Morskii
4226c62786 JBR-5259: fixed Canvas mispositioning after dragging JFrame to a monitor with different scale 2023-10-31 01:26:03 +01:00
Alexey Ushakov
84835b8c37 8311917: MAP_FAILED definition seems to be obsolete in src/java.desktop/unix/native/common/awt/fontpath.c
Reviewed-by: prr
2023-10-31 01:26:03 +01:00
Dmitrii Morskii
6943fb0e9c JBR-5844: fix case with non-scalable face 2023-10-31 01:26:03 +01:00
Dmitrii Morskii
2b1d67f55f JBR-5804: refactoring of freetypeScaler and moving fontconfig's logic in separate file 2023-10-31 01:26:03 +01:00
Vitaly Provodin
d3f80c01b1 Update README.md 2023-10-31 01:26:03 +01:00
Maxim Kartashev
82d32c45eb JBR-5815 javax/swing/AbstractButton/6711682/bug6711682.java: Row #2 checkbox is not selected
Fixed the test to use proper cell coordinates when clicking.
2023-10-31 01:26:03 +01:00
Nikita Gubarkov
e2ad341f81 Emoji PR sync (experimental)
- Removed font fallback hacks.
- Changed composite font glyph code encoding scheme, refactored to use Font2D instead of PhysicalFont.
- New Emoji logical font type with 2 underlying physical fonts.
- Removed getGlyphVectorOutline - it's unused and broken.
- Got rid of charsToGlyphs[NS] boilerplate.
- Moved emoji tests to separate directory.
2023-10-31 01:26:03 +01:00
Alexey Ushakov
2b14246081 JBR-5807 java/awt/Frame/FrameVisible/FrameContentAppearanceTest.java: Failed: OpenGL 26 image rendering failure(s)
Added synchronisation for rendering and appearance
2023-10-31 01:26:03 +01:00
bourgesl
fdc5ee4eed JBR-5625: disable color-matching (colorspace = nil) in MTLLayer by default (see new system property 'sun.java2d.metal.colorMatching=true/false') + added new MetalLayerColorTest
Use CGColorSpaceCopyName() available since macOS 10.6 in MTLLayer

Use sun.java2d.metal.colorMatching=true by default (current metal behaviour)
2023-10-31 01:26:03 +01:00
Maxim Kartashev
6a1113b43b JBR-5777 isWindowMoveSupported() doesn't work with non-default GraphicsEnvironment
Co-authored-by: Nikita Gubarkov <nikita.gubarkov@jetbrains.com>
2023-10-31 01:26:03 +01:00
Nikita Provotorov
f31011d3fd JBR-5762 Sometimes naturally generated MOUSE_DRAGGED events don't contain the pressed button's modifier.
Enforce keeping the pressed button in the modifiers for MOUSE_DRAGGED events. This is under a (default enabled) system property "awt.mac.enforceMouseModifiersForMouseDragged".

(cherry picked from commit fb12990a98)
2023-10-31 01:26:03 +01:00
Dmitrii Morskii
f2d281ed2a JBR-5548 fix BadSerializationTest 2023-10-31 01:26:03 +01:00
Vitaly Provodin
3fc41136b4 Update README.md 2023-10-31 01:26:03 +01:00
Sergey Shelomentsev
205012185d JBR-5746 wait for menu visibility of fail the test
add mouse events logging
2023-10-31 01:26:03 +01:00
Dmitry Batrak
81c80d8f84 JBR-5720 Wrong modifiers are reported for mouse middle and right buttons' release/clicked events 2023-10-31 01:26:03 +01:00
Dmitry Batrak
924cbe3d9a JBR-5684 Focus state is broken after closing of modal dialog in an inactive application 2023-10-31 01:26:02 +01:00
Nikita Tsarev
f2394fe6c5 JBR-5379: Ignore input events only on permament focus loss 2023-10-31 01:26:02 +01:00
Vitaly Provodin
0b6281de21 update exclude list 2023-10-31 01:26:02 +01:00
Vitaly Provodin
44c3ac4b45 Update README.md 2023-10-31 01:26:02 +01:00
Alexey Ushakov
1547825491 JBR-5151 Test failures caused by -Dsun.java2d.metal.displaySync=false
Removed display sync from window layer, provide layer content updates only when necessary
2023-10-31 01:26:02 +01:00
Nikita Gubarkov
cea201133e Added Clion project setup 2023-10-31 01:26:02 +01:00
Nikita Gubarkov
d988a8f26b Updated IDEA project setup 2023-10-31 01:26:02 +01:00
Dmitrii Morskii
6efc4cd8f5 JBR-1775: improved logic for choosing newer font between system and bundled ones 2023-10-31 01:26:02 +01:00
Sergey Shelomentsev
88ea793d18 JBR-2870 add resression test for JPopupMenu
- verify that the popup menu is usable if overlaps WM's dock panel of the bottom of screen
2023-10-31 01:26:02 +01:00
Vitaly Provodin
cd1a7a1479 Update README.md 2023-10-31 01:26:02 +01:00
Alexey Ushakov
38efda2cd3 JBR-5693 Debug build failure in main branch
Corrected printf format and muted unused-function option for keycode_cache.c
2023-10-31 01:26:02 +01:00
Alexey Ushakov
5675a61f51 JBR-5704 displaySyncOFF: javax/swing/JDialog/Transparency/TransparencyTest.java: JDialog transparency lost upon iconify/deiconify sequence
Corrected startRedraw method to call setNeedsDisplay in displaySync=false mode
2023-10-31 01:26:02 +01:00
Nikita Tsarev
a0be9ab6a0 JBR-5630: vmoption to change dead key reporting behavior on macOS 2023-10-31 01:26:02 +01:00
Nikita Tsarev
b8a97627d9 JBR-5469: Fix NextAppWinKey behavior with certain keys 2023-10-31 01:26:02 +01:00
Nikita Tsarev
235280456d JBR-5558: macOS keyboard rewrite 2 2023-10-31 01:26:01 +01:00
Sergey Shelomentsev
09bf22510d JBR-5670 restore initial display mode after test execution
restore original display mode
2023-10-31 01:26:01 +01:00
Sergey Shelomentsev
e57be4ceb2 JBR-4880 Fix DeadKeySystemAssertionDialog to avoid receiving key event out of the window 2023-10-31 01:26:01 +01:00
Vladislav Rassokhin
cd085f94be JBR-5600 Reduce noise in signing scripts output 2023-10-31 01:26:01 +01:00
Vladislav Rassokhin
1d3d28ab72 JBR-5600 Sign frameworks as whole, verify framework signature before full app sign 2023-10-31 01:26:01 +01:00
Nikita Provotorov
0c720896ce JBR-5668: The implementation of a11y announcing for macOS crashes with -Xcheck:jni.
- Create a global reference of the passed to EDT accessible object (the local reference) to use it in the AppKit thread ;
- Enable -Xcheck:jni in the tests ;
- Make the tests handle the problematic case .

(cherry picked from commit cba981df4b)
2023-10-31 01:26:01 +01:00
Vladislav Rassokhin
c2d707bded tools/mac/scripts: minor improvements
* don't move into itself
* use `PKG_NAME` variable instead of `${APP_NAME}.pkg`
* cleanup sign.sh
* add `SCRIPT_VERBOSE` env variable to control `set -x`
2023-10-31 01:26:01 +01:00
Vladislav Rassokhin
4e61b9403d JBR-5600 Staple .pkg with signature 2023-10-31 01:26:01 +01:00
Vladislav Rassokhin
dd07797f69 JBR-5600 Notarize macOS binaries using notarytool 2023-10-31 01:26:01 +01:00
Vladislav Rassokhin
045cd03c5a JBR-5600 Sign macOS binaries using jet-sign 2023-10-31 01:26:01 +01:00
Sergey Shelomentsev
ea9c3200cf JBR-5579 Update mouse location checks, set window always on top for ActionListenerTest 2023-10-31 01:26:01 +01:00
Sergey Shelomentsev
fc0774d8cc JBR-5551 update hit tests on custom title bar
- set windows always on top
- verify mouse location before clicking
2023-10-31 01:26:01 +01:00
Sergey Shelomentsev
5679053150 JBR-5577 fix MouseEventsOnClientArea test
- add Swing/AWT specific Task runners
- split MouseEventsOnClientArea to separate AWT/Swing tests
- use CountDownLatch for tracking mouse events
2023-10-31 01:26:01 +01:00
Sergey Shelomentsev
8422b4218d remove jb/java/awt/Window/ZOrderOnModalDialogActivation.java 2023-10-31 01:26:01 +01:00
Sergey Shelomentsev
1dac5bf928 JBR-4494 pass ui scale options for child process 2023-10-31 01:26:01 +01:00
Maxim Kartashev
a35927c7a5 JBR-5656 Builds of JDK 21 are reproducible by default
(cherry picked from commit 0d663a139acf3d5cdb19b33494ab9f6273c4ebfa)
2023-10-31 01:26:00 +01:00
bourgesl
2c524002b8 JBR-5651: Improved MTLVertexCache to merge consecutive full-tiles ie use 1 larger quad instead of many quads per row, full-tile is only using 1x1 pixel (full), applied to color, gradient & texture paints + fixed clang warnings 2023-10-31 01:26:00 +01:00
Maxim Kartashev
d4687ef0e0 JBR-5637 Linux: implement window position change with WM help
Introduced JBR.isWindowMoveSupported() and
JBR.getWindowMove().startMovingTogetherWithMouse()
2023-10-31 01:26:00 +01:00
Alexey Ushakov
22642f6a60 JBR-5649 Flickering in multi-monitor configuration
Provided corrected initial value for currentDisplayID
2023-10-31 01:26:00 +01:00
Vitaly Provodin
1cea521917 JBR-5627 add regression test AsyncProfilerRunnerTest 2023-10-31 01:26:00 +01:00
Maxim Kartashev
bb463f4aba JBR-5631 Refactor Dockerfile for x64 builds 2023-10-31 01:26:00 +01:00
Vitaly Provodin
d0a11a302e JBR-5603 build aarch64 Linux from arm64v8/centos:7 and check glibc to be not higher 2.17 2023-10-31 01:26:00 +01:00
Alexey Ushakov
78d50f5fa5 JBR-5580 J2DBench: ~15% drop performance  because of non optimal synchronization in metal (MBP 16'' x64)
Replaced NSMutableArray with NSMutableSet, removed unnecessary __block modifier.
2023-10-31 01:26:00 +01:00
Sergey Shelomentsev
ae8963ce83 update a11y exclude list 2023-10-31 01:26:00 +01:00
Alexey Ushakov
320ec75eee JBR-5580 J2DBench: ~15% drop performance because of non optimal synchronization in metal (MBP 16'' x64)
Removed NSLock and moved all operations to the AppKit thread
2023-10-31 01:26:00 +01:00
bourgesl
02144be0aa JBR-5170: improved color maskFill performance: using a new MaskColorBuffer and a specific shader (vert_txt_col)
fix crash in J2DDemo with advanced paints + artefacts with texture background
2023-10-31 01:26:00 +01:00
Alexey Ushakov
fd9f19b5ea JBR-5559 SwingMark performance drop after removing additional command queue
Added command queue and provided synchronization between the command queues
2023-10-31 01:26:00 +01:00
Nikita Provotorov
d4fe24dc64 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-10-31 01:26:00 +01:00
Alexey Ushakov
f2e1cbd4ad JBR-4883 macOS: SIGSEGV at MTLVertexCache_FlushGlyphVertexCache
Use separate glyph cache for each MTLContext instance. Refactored MTLGlyphCache
2023-10-31 01:26:00 +01:00
Alexey Ushakov
30494829ab JBR-5193 Do not use extra commandQueue in metal pipeline
Removed extra command queue
2023-10-31 01:26:00 +01:00
Alexey Ushakov
3c33f91e74 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-10-31 01:25:59 +01:00
Vitaly Provodin
6b8dddbce8 Update README.md 2023-10-31 01:25:59 +01:00
Maxim Kartashev
35540cc42b jb/branchdiff.py is a lot faster 2023-10-31 01:25:59 +01:00
Sergey Shelomentsev
745983a20e JBR-5505 update exclude list for a11y testing on Windows 2023-10-31 01:25:59 +01:00
Sergey Shelomentsev
148a832db2 JBR-5397 update exclude list for a11y testing on MacOS 2023-10-31 01:25:59 +01:00
Dmitrii
16fe2c028a JBR-5246 add OpenType's features support 2023-10-31 01:25:59 +01:00
Maxim Kartashev
1c4c6b5986 JBR-5483 MacOSXWatchService assumes that the default file system is the UnixFileSystem, which might not be the case 2023-10-31 01:25:59 +01:00
Sergey Shelomentsev
c8d5d51153 JBR-5441 fix wait for idle 2023-10-31 01:25:59 +01:00
Maxim Kartashev
65c4742af8 jb/branchdiff.py to warn if it can't differentiate between commits 2023-10-31 01:25:59 +01:00
Sergey Shelomentsev
35f710b5bf JBR-5440 fix calculations for double click location 2023-10-31 01:25:59 +01:00
Artem Bochkarev
2ca59812c3 JBR-5426 write JCEF version info inside release file 2023-10-31 01:25:59 +01:00
Maxim Kartashev
59bfb6083d JBR-5445 JBRApiTest test fails on development builds 2023-10-31 01:25:59 +01:00
Maxim Kartashev
a243a0a119 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-10-31 01:25:59 +01:00
Sergey Shelomentsev
6793279e57 JBR-5433 add typing latency text for JTextArea 2023-10-31 01:25:59 +01:00
Vitaly Provodin
62a3b8c5d4 JBR-5432 increase setAutoDelay for Robot 2023-10-31 01:25:59 +01:00
Maxim Kartashev
08c6c0cafd JBR-5230 Wanted: an ability to use Unix Domain sockets with overridden default NIO file system 2023-10-31 01:25:58 +01:00
Sergey Shelomentsev
67668c94bc fixup! JBR-4875 set proper OS to run ComboBoxTransparentTittleBarTest 2023-10-31 01:25:58 +01:00
Sergey Shelomentsev
67f4836274 fix controls width calculation 2023-10-31 01:25:58 +01:00
Sergey Shelomentsev
764b2806c8 split ActionListenerTest 2023-10-31 01:25:58 +01:00
Sergey Shelomentsev
d2faef49be JBR-5345 native controls detection and scale fixes 2023-10-31 01:25:58 +01:00
Maxim Kartashev
918d904873 README.md: spelled out JBR distinctive features 2023-10-31 01:25:58 +01:00
Vitaly Provodin
d5f72f5b6b update exclude list on results of 21_b28.1 test runs 2023-10-31 01:25:58 +01:00
Alexey Ushakov
5b01d27a36 JBR-5330 Blank Welcome screen after moving to another display
Initialize currentDisplayID on AWTWindow creation
2023-10-31 01:25:58 +01:00
Nikita Tsarev
8b44870563 JBR-5369: Update failing tests list in response to macOS keyboard support rewrite 2023-10-31 01:25:58 +01:00
Nikita Tsarev
2493ecf9f7 JBR-5295: Fix wrong keycodes for non-letter keys that lack a corresponding VK_ constant on macOS 2023-10-31 01:25:58 +01:00
Vitaly Provodin
6a5fa43b55 Update README.md 2023-10-31 01:25:58 +01:00
Vitaly Provodin
087f7dcff8 update exclude list on results of 21_b24.2 test runs 2023-10-31 01:25:58 +01:00
Sergey Shelomentsev
b2394dc655 Don't trigger workflow on push 2023-10-31 01:25:58 +01:00
Vitaly Provodin
fff0203b35 Update README.md 2023-10-31 01:25:58 +01:00
Sergey Shelomentsev
274ebbd5ad JBR-5350 Separate test for Mac OS 2023-10-31 01:25:58 +01:00
Sergey Shelomentsev
7790eac728 JBR-5318 add Github workflow usage for pull requests pre-commit testing 2023-10-31 01:25:57 +01:00
Sergey Shelomentsev
fb38ae6045 JBR-5346 run MaximizedCustomDecorationsTest on windows/mac only 2023-10-31 01:25:57 +01:00
Sergey Shelomentsev
9387eaf234 JBR-5350 fix FrameNativeControlTest checks on MacOS 2023-10-31 01:25:57 +01:00
Sergey Shelomentsev
aae9735bb7 JBR-5344 fix incorrectly specified VM options 2023-10-31 01:25:57 +01:00
Vitaly Provodin
3b2127d046 Update README.md 2023-10-31 01:25:57 +01:00
Vitaly Provodin
463babb7eb update exclude list on results of 17.0.6_b855.1 test runs 2023-10-31 01:25:57 +01:00
Sergey Shelomentsev
9e9d6dcce2 JBR-5313 fix broken custom decoration tests on Windows 2023-10-31 01:25:57 +01:00
Sergey Shelomentsev
0554ae1db3 JBR-5253 Use new JBR API for custom decorations 2023-10-31 01:25:57 +01:00
Vitaly Provodin
e6995e366d JBR-5300 move jbr-api.jar into test artefact 2023-10-31 01:25:57 +01:00
Vitaly Provodin
0f8478cc99 update exclude list on results of 17.0.6_b837.3 test runs 2023-10-31 01:25:57 +01:00
Maxim Kartashev
9068599839 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-10-31 01:25:57 +01:00
Dmitry Batrak
b13e476a2f 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-10-31 01:25:57 +01:00
Maxim Kartashev
1147c211a4 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-10-31 01:25:57 +01:00
Sergey Shelomentsev
a38ad8bc73 set version for building jbr-api 2023-10-31 01:25:57 +01:00
Sergey Shelomentsev
ab54052700 get rid of build-jbr-api scripts 2023-10-31 01:25:57 +01:00
Vitaly Provodin
3b59be855a clean up exclude lists 2023-10-31 01:25:56 +01:00
Sergey Shelomentsev
4a0cb34ef6 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-10-31 01:25:56 +01:00
Sergey Shelomentsev
8a1cccf22a build jbr-api as a part of bundle build 2023-10-31 01:25:56 +01:00
Vitaly Provodin
f0ec1a4d5b Update README.md 2023-10-31 01:25:56 +01:00
Vitaly Provodin
44c9eb98c1 Update README.md 2023-10-31 01:25:56 +01:00
Artem Semenov
53f9f53c25 JBR-5289 If the label has the role of a hyperlink, VO still pronounces it as plain text (#215) 2023-10-31 01:25:56 +01:00
Alexey Ushakov
a7a81abf79 JBR-5279 restore saving jbr native symbols bin/server/jvm.pdb 2023-10-31 01:25:56 +01:00
Sergey Shelomentsev
99e68c7402 JBR-4875 update test to use new JBR API window custom decorations 2023-10-31 01:25:56 +01:00
Vitaly Provodin
e238251636 Update README.md 2023-10-31 01:25:56 +01:00
Nikita Tsarev
17d7b59cdc 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-10-31 01:25:56 +01:00
Nikita Tsarev
979a3aa508 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-10-31 01:25:56 +01:00
Artem Semenov
a94ae5a67c JBR-5269 Announcement priorities not set correctly (#214) 2023-10-31 01:25:56 +01:00
Nikita Tsarev
5a9f2cd85f JBR-5233 Setup/teardown necessary keyboard layouts in macOS keyboard tests 2023-10-31 01:25:56 +01:00
Vitaly Provodin
4505657a0c Update README.md 2023-10-31 01:25:56 +01:00
Artem Semenov
e0babe32f4 JBR-5248 exception in accessible announcing 2023-10-31 01:25:56 +01:00
Vitaly Provodin
3ce16ee1b0 update exclude list on results of 21_b9 test runs 2023-10-31 01:25:55 +01:00
Vitaly Provodin
3affc10657 JBR-5217 enable NVDA support in Windows builds 2023-10-31 01:25:55 +01:00
Nikita Gubarkov
4611a0134d 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-10-31 01:25:55 +01:00
Nikita Tsarev
9932e55e3d JBR-5173 macOS keyboard support rewrite
with fix for JBR-5300 Change source code and test files to use GPL license
2023-10-31 01:25:55 +01:00
Nikita Tsarev
2e313dc4d7 Revert "macOS national keyboard support"
This reverts commit 21bffd06bc.
2023-10-31 01:25:55 +01:00
Vitaly Provodin
7aeeb6541c Update README.md 2023-10-31 01:25:55 +01:00
AMPivovarov
ac031c181c JBR-5213 JBR API v0.0.9 - add GraphicsUtils (#208)
* relax type constraints in BltBufferStrategy.getDrawGraphics
2023-10-31 01:25:55 +01:00
Artem Semenov
77b4f54f3f JBR-5221 Add announcing to JBRAPI 2023-10-31 01:25:55 +01:00
Vitaly Provodin
7be19ab53f update exclude list on results of 21_b8 test runs 2023-10-31 01:25:55 +01:00
Artem Semenov
da05ff6f27 JBR-4170 Implement API for announcing 2023-10-31 01:25:55 +01:00
Vitaly Provodin
6c64d05cc8 update exclude list on results of 21_b7 test runs 2023-10-31 01:25:55 +01:00
Vitaly Provodin
f0f11c4d02 update exclude list on results of stability checking runs due to 8253184 2023-10-31 01:25:55 +01:00
Artem Bochkarev
88e84d6084 JBR-3575 use flag processEvents in LWCToolkit.invokeAndWait 2023-10-31 01:25:55 +01:00
Vitaly Provodin
c6e24aa33f exclude several tests from runs on machines with enabled VoiceOver 2023-10-31 01:25:55 +01:00
Anton Tarasov
5ee15d388c JBR-4355 javax/swing/GraphicsConfigNotifier/StalePreferredSize.java: # C [libobjc.A.dylib+0x90ff] objc_release+0x1f
(cherry picked from commit c0b2b59d4a)
2023-10-31 01:25:55 +01:00
Anton Tarasov
51035218a0 JBR-4362 [mac] system menu opens with duplicated items
(cherry picked from commit e32defe49d)
2023-10-31 01:25:54 +01:00
Anton Tarasov
3ff577e896 JBR-4328 remove LWCToolkit.unsafeNonblockingExecute
(cherry picked from commit 9a3f31a6c4)
2023-10-31 01:25:54 +01:00
Anton Tarasov
b06725a86b 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-10-31 01:25:54 +01:00
Anton Tarasov
1c25773bd7 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-10-31 01:25:54 +01:00
Anton Tarasov
32cb714d80 JBR-4119 UI freezes at sun.lwawt.macosx.CAccessibility.getChildrenAndRoles
(cherry picked from commit 6ba79774d8)
2023-10-31 01:25:54 +01:00
Anton Tarasov
8d245094c1 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-10-31 01:25:54 +01:00
Anton Tarasov
49003285e0 JBR-4208 LWCToolkit.invokeAndWait should not stuck on invocation loss
including JBR-4543 (NPE: IdeEventQueue.lambda$getNextEvent$0)
2023-10-31 01:25:54 +01:00
Anton Tarasov
cd6574476d 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-10-31 01:25:54 +01:00
Vitaly Provodin
b6d1dfc971 update exclude list on results of 21_b1447 test runs 2023-10-31 01:25:54 +01:00
Vitaly Provodin
bd23ceb4c7 Update README.md 2023-10-31 01:25:54 +01:00
Vitaly Provodin
069eb999a1 update exclude list on results of main.1441 test runs 2023-10-31 01:25:54 +01:00
Alexey Ushakov
1d711a792a JBR-5112 Large bold square whitespaces after waking up the laptop / connecting display
Clear primary surface data of VolatileSurfaceManager on display change event
2023-10-31 01:25:54 +01:00
Artem Semenov
05f70efc61 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-10-31 01:25:54 +01:00
Artem Semenov
48903a635b JBR-4235 Context menu not readable after opening on Mac OS 2023-10-31 01:25:54 +01:00
Artem Semenov
0cc6134cc9 JBR-4012 On Idea Vo often speeks selected element of tables, lists, and trees. 2023-10-31 01:25:54 +01:00
Artem Semenov
b3fd866790 JBR-3868 Combobox list is not voiced of VoiceOver 2023-10-31 01:25:53 +01:00
Alexey Ushakov
6a3a6e01e9 JBR-5041 macOS: SIGSEGV at [libawt_lwawt] getRenderEncoder:(dstOps == NULL)
Protected code from using NULL dstOps
2023-10-31 01:25:53 +01:00
Alexey Ushakov
b3dc6dfbcd 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-10-31 01:25:53 +01:00
Nikita Provotorov
5c89ebd6c2 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-10-31 01:25:53 +01:00
Dmitry Batrak
5f0557d49b JBR-5109 New frame doesn't get focused sometimes if it's shown right after popup is closed
(cherry picked from commit 693d317c0c)
2023-10-31 01:25:53 +01:00
Vitaly Provodin
ebd282dec8 Update README.md 2023-10-31 01:25:53 +01:00
Alexey Ushakov
5456ad8deb 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-10-31 01:25:53 +01:00
Nikita Provotorov
0608ec87af 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-10-31 01:25:53 +01:00
Dmitry Batrak
3b02724d80 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-10-31 01:25:53 +01:00
Victor Kropp
2badf084e7 Update README.md
Mention Toolbox App in the list of applications built on JetBrains Runtime.

(cherry picked from commit cfa9789515)
2023-10-31 01:25:53 +01:00
Nikita Provotorov
87e36c2ddb Update README.md
Replaced jbr-dev to main and other minor fixes.
2023-10-31 01:25:53 +01:00
Vitaly Provodin
62ea2ca696 update exclude list on results of 17.0.5_b721.3 test runs 2023-10-31 01:25:53 +01:00
Alexey Ushakov
4208137b10 JBR-5073 [Double-Monitor] java/awt/Window/LocationAtScreenCorner/LocationAtScreenCorner.java: Wrong location
Added check for nil displayID of the window
2023-10-31 01:25:53 +01:00
Nikita Tsarev
36bf698bed JBR-4990: Undo changes to ExtendedKeyCodes 2023-10-31 01:25:53 +01:00
Vitaly Provodin
b9a12dfc68 update exclude list on results of 17.0.5_b712.2 test runs 2023-10-31 01:25:53 +01:00
Vitaly Provodin
61441309a1 JBR-4956 reduce width of screenshot by one pixel to exclude caret 2023-10-31 01:25:52 +01:00
ngubarkov
255815851b JBR-4840 cache screen resolution in XToolkit 2023-10-31 01:25:52 +01:00
Vitaly Provodin
2fcc971903 JBR-5058 set default locale as UK for RenderPerf 2023-10-31 01:25:52 +01:00
Alexey Ushakov
3685419172 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-10-31 01:25:52 +01:00
Dmitry Batrak
678d71ef0f JBR-5045 Invisible component can break focus cycle
(cherry picked from commit 0f57a27879)
2023-10-31 01:25:52 +01:00
Nikita Tsarev
6dff775f6d JBR-3860: Fix shortcut behavior when Shift is the only modifier 2023-10-31 01:25:52 +01:00
Vitaly Provodin
ef136c4b6d Update README.md 2023-10-31 01:25:52 +01:00
Vitaly Provodin
783433cca1 Update README.md 2023-10-31 01:25:52 +01:00
Vitaly Provodin
3d088e9d21 update exclude list on results of 17.0.5_b691.6 test runs 2023-10-31 01:25:52 +01:00
Vitaly Provodin
25f9d382d9 Update README.md 2023-10-31 01:25:52 +01:00
Nikita Tsarev
e77c222a12 JBR-4990: Fix regression tests for national keyboard layouts on macOS 2023-10-31 01:25:52 +01:00
Alexey Ushakov
26e57653ce 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-10-31 01:25:52 +01:00
Dmitry Batrak
0b1e685102 JBR-4988 Transient Z-order violations on macOS
(cherry picked from commit bcba97511c)
2023-10-31 01:25:52 +01:00
Vitaly Provodin
df5d2e409d JBR-4947 update alpine x64 image up to 3.14 2023-10-31 01:25:52 +01:00
Vitaly Provodin
a1d63df3fe update exclude list on results of 17.0.5_b469.67 test runs 2023-10-31 01:25:52 +01:00
Vitaly Provodin
10cac1ad2a Update README.md 2023-10-31 01:25:51 +01:00
Alexey Ushakov
667fc21211 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-10-31 01:25:51 +01:00
Vitaly Provodin
deab557db6 update Commit and Full testing exclude list on results of jbr17.668 test runs 2023-10-31 01:25:51 +01:00
Maxim Kartashev
9ba47e3454 JBR-4951 In function 'convert_to_java_array': error: comparison of integer expressions of different signedness 2023-10-31 01:25:51 +01:00
Alexey Ushakov
bf28d554b7 JBR-4859 jbr17: compiler warnings with Xcode 14.0.1 (14A400)
Disabled warnings for liblcms and liblwawt
2023-10-31 01:25:51 +01:00
Vitaly Provodin
487a96b85c JBR-4089 add modules sun.awt sun.awt.image sun.java2d 2023-10-31 01:25:51 +01:00
Vitaly Provodin
a3f51a00ae update exclude list for Commit testing 2023-10-31 01:25:51 +01:00
Vitaly Provodin
7dec39a165 exclude tests failing because of JBR-4933, JBR-4934 2023-10-31 01:25:51 +01:00
Alexey Ushakov
e690ccbf03 JBR-4731 SIGILL caused by NPE Cannot invoke "java.awt.GraphicsConfiguration.getDevice()" because "config" is null
Handled null device in platform window
2023-10-31 01:25:51 +01:00
Maxim Kartashev
63d0622c9e Move JBR README.md to .github/ 2023-10-31 01:25:51 +01:00
Svyatoslav Vlasov
da4a8817c9 Add ProjectorUtils to jbr-api (#181)
* Add ProjectorUtils to jbr-api

Co-authored-by: Sviatoslav Vlasov <Sviatoslav.Vlasov@jetbrains.com>
2023-10-31 01:25:51 +01:00
Nikita Tsarev
7cdfa2d1d8 JBR-3941 Make apple.awt.captureNextAppWinKey default to false 2023-10-31 01:25:51 +01:00
Vitaly Provodin
c57e717dda JBR-4912 jb/java/api/frontend/CustomTitleBarDoubleClick.java intermittently throws java.awt.AWTError 2023-10-31 01:25:51 +01:00
Maxim Kartashev
a0f2958345 exclude java/awt/dnd/AcceptDropMultipleTimes/AcceptDropMultipleTimes.java due to JBR-4880 on windows 2023-10-31 01:25:51 +01:00
Alexey Ushakov
fae395a1ab JBR-4710 macOS: SIGSEGV at sun.java2d.metal.MTLLayer.blitTexture
Added check for disposed texture in the MTLLayer
2023-10-31 01:25:51 +01:00
Nikita Gubarkov
49f1411c8c JBR-4890 Fix variation selectors font fallback on macOS
If font for a given variation selector not found, try without variation selector
2023-10-31 01:25:50 +01:00
Artem Bochkarev
0ed52aaf44 JBR-4907 remove custom view for osx system menu items
Just revert "JBR-3131: support custom view for system menu items"
2023-10-31 01:25:50 +01:00
Vitaly Provodin
f60d4f65be exclude java/awt/FullScreen/AltTabCrashTest/AltTabCrashTest.java due to JBR-4905 on windows&linux 2023-10-31 01:25:50 +01:00
Alexey Ushakov
87ec9b0dd1 JBR-4897 Reconnecting multiscreen monitor displays blank IDE
Handled NSWindowDidChangeScreenNotification, resolved race condition in window peer displayChanged listener
2023-10-31 01:25:50 +01:00
Vitaly Provodin
c754191f3d exclude jb/java/jcef/HandleJSQueryTest3314.sh due to JBR-4866 on linux 2023-10-31 01:25:50 +01:00
Vitaly Provodin
3ba8cd924d exclude some tests due to JBR-4880 on windows 2023-10-31 01:25:50 +01:00
Vitaly Provodin
096d039308 exclude javax/swing/JInternalFrame/8020708/bug8020708.java due to JBR-4879 on windows 2023-10-31 01:25:50 +01:00
Vitaly Provodin
4a4d767877 exclude java/awt tests which do not close child processes/windows 2023-10-31 01:25:50 +01:00
Vitaly Provodin
44501e8b91 exclude java/awt/FullScreen/NoResizeEventOnDMChangeTest/NoResizeEventOnDMChangeTest.java and java/awt/FullScreen/UninitializedDisplayModeChangeTest/UninitializedDisplayModeChangeTest.java due to 7188711 on linux-all
j
2023-10-31 01:25:50 +01:00
Maxim Kartashev
acd9b38fe4 JBR-4877 WARNING: JNI local refs: 33, exceeds capacity: 32 2023-10-31 01:25:50 +01:00
Artem Bochkarev
a5ca1effc3 JBR-4876 remove test duplicates
Since next jcef tests were moved into junit suite (inside jcef repository):
 HandleJSQueryTest
 JCEFStartupTest
 LoadPageWithoutUI
 MouseEventAfterHideAndShowBrowserTest
 MouseEventScenario
 MouseEventTest
2023-10-31 01:25:50 +01:00
Vitaly Provodin
8a38002888 JBR-4875 jb/javax/swing/JComboBox/ComboBoxTransparentTittleBarTest.java checks dragging JFrame with Combobox 2023-10-31 01:25:50 +01:00
Dmitry Batrak
4e5e029c73 JBR-4871 Closed project leaked via KeyboardFocusManager#newFocusOwner
(cherry picked from commit 50c0ce58d3)
2023-10-31 01:25:50 +01:00
Maxim Kartashev
f50dd9c3b3 JBR-4839 Report if wrong shared library is detected at run time 2023-10-31 01:25:50 +01:00
Maxim Kartashev
e1203058be JBR-4848 Cannot invoke "javax.swing.JTextField.getCaret()" because the return value of "java.lang.ref.WeakReference.get()" is null 2023-10-31 01:25:49 +01:00
Alexey Ushakov
161e4a3b71 JBR-4590 macOS: SIGSEGV at [libawt_lwawt] MTLTR_DrawGlyphList
Invalidate glyph cache cell info after switching MTLContext
2023-10-31 01:25:49 +01:00
Nikita Gubarkov
edf5a98799 JBR-4815 force hinting for non-antialiased text 2023-10-31 01:25:49 +01:00
Maxim Kartashev
923ef677a8 jb/branchdiff.py script to help with release branches 2023-10-31 01:25:49 +01:00
Nikita Gubarkov
4a3000f279 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-10-31 01:25:49 +01:00
Alexander Lobas
e3c8cd5ffb JBR-4787 Rounded corners for native windows
with fix for JBR-5300 Change source code and test files to use GPL license
2023-10-31 01:25:49 +01:00
Vitaly Provodin
47aa97cba1 updated JTreg exclude list 2023-10-31 01:25:49 +01:00
Maxim Kartashev
b94cf4a97d 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-10-31 01:25:49 +01:00
Alexey Ushakov
7f0860e1dc JBR-4696 macOS: NPE in -[AWTView viewDidChangeBackingProperties]
Added null pointer checks
2023-10-31 01:25:49 +01:00
MonoBot
b94a478c31 JBR-4809 Update the bundled JetBrains Mono font version
Fonts release 2.242

(cherry picked from commit 641424a3e3)
2023-10-31 01:25:49 +01:00
Alexey Ushakov
8cfde8d8a8 JBR-4680 idea window flickers while changing the screen brightness
Update insets in separate notification
2023-10-31 01:25:49 +01:00
Maxim Kartashev
e2493d5ae9 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-10-31 01:25:49 +01:00
Alexey Ushakov
5e5755e5ad JBR-4807 RenderPerf: Provide tests for VolatileImage rendering
Added VolImage and VolImageAA test cases
2023-10-31 01:25:49 +01:00
Maxim Kartashev
df9f692a3b 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-10-31 01:25:49 +01:00
Nikita Gubarkov
4d459c3634 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-10-31 01:25:48 +01:00
Denis Fokin
574a8b284e 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-10-31 01:25:48 +01:00
Alexey Ushakov
786db0f357 JBR-4784 Extra allocations of MTLRenderPipelineDescriptor affects performance in metal pipeline
Remove extra allocations
2023-10-31 01:25:48 +01:00
Alexey Ushakov
a45ea21a78 JBR-4774 macOS: SIGILL at [libsystem_kernel] __kill in NPE / VolatileSurfaceManager.displayChanged / __displaycb_handle_block_invoke
Guarded against multiple displayChanged() notifications
2023-10-31 01:25:48 +01:00
Dmitry Batrak
4bf857fa58 JBR-4782 Synergy keyboard/mouse input: window disabled after bringing IntelliJ into focus
(cherry picked from commit f863a14b19)
2023-10-31 01:25:48 +01:00
Alexey Ushakov
a0801aba2c JBR-4363 Changes in fonts rendering between JBR11 and JBR17
Do not use hinting for generating outlines
2023-10-31 01:25:48 +01:00
Alexey Ushakov
d4934ad40d JBR-3100 Exception in NSApplicationAWT: java.lang.NullPointerException at java.desktop/sun.lwawt.LWComponentPeer.windowToLocal
Added null check
2023-10-31 01:25:48 +01:00
Alexey Ushakov
7f7f6c0f71 JBR-4774 macOS: SIGILL at [libsystem_kernel] __kill in NPE / VolatileSurfaceManager.displayChanged / __displaycb_handle_block_invoke
Added null check
2023-10-31 01:25:48 +01:00
Alexey Ushakov
002be4b68a JBR-3102 Exception in NSApplicationAWT: Invalid parameter not satisfying: !isnan(newOrigin.y)
Handled NAN values with some defaults
2023-10-31 01:25:48 +01:00
Vladislav Rassokhin
2c6185837a JBR-4263 Improve check_jbr_size.sh
* Fix shellcheck inspections
* Don't silently fail if TOKEN is incorrect
2023-10-31 01:25:48 +01:00
Alexey Ushakov
fe3b6b7883 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-10-31 01:25:48 +01:00
Maxim Kartashev
bcf6850198 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-10-31 01:25:48 +01:00
Maxim Kartashev
b9dcc920ac 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-10-31 01:25:48 +01:00
Dmitry Batrak
9faed1fc29 JBR-4720 Focus state is broken after certain operations when VoiceOver is enabled
(cherry picked from commit dc1b49b5a6)
2023-10-31 01:25:48 +01:00
Dmitry Batrak
44e66ce8eb JBR-4673 Focus moves to another application on file dialog closing
(cherry picked from commit 7468974488)
2023-10-31 01:25:48 +01:00
Dmitry Batrak
df596915d5 JBR-4665 Focus 'jitter' on window showing in WSLg
(cherry picked from commit 9b32c2a577)
2023-10-31 01:25:47 +01:00
Nikita Gubarkov
ee08165e87 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-10-31 01:25:47 +01:00
Alexey Ushakov
eba8a2b32d 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-10-31 01:25:47 +01:00
Dmitry Batrak
2b78b4f310 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-10-31 01:25:47 +01:00
artem.bochkarev
071b368b8c 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-10-31 01:25:47 +01:00
Vitaly Provodin
226028686f exclude sun/java2d/DirectX/RenderingToCachedGraphicsTest/RenderingToCachedGraphicsTest.java on linux-all due to 8252812 2023-10-31 01:25:47 +01:00
Vitaly Provodin
19dc01d9c8 exclude sanity/client/SwingSet/src/ColorChooserDemoTest.java on windows-all due to 8278582 2023-10-31 01:25:47 +01:00
Alexey Ushakov
46d40f3cbc JBR-4636 Some JWindow tests failed due to wrong scaling
Take into account custom scale via sun.java2d.uiScale
2023-10-31 01:25:47 +01:00
Nikita Gubarkov
9dd762551f 8289189: Fix ./configure on WSL1 2023-10-31 01:25:47 +01:00
Alexey Ushakov
fcc4b82557 JBR-4619 Window content scale wrong after disconnecting external display / waking OS from sleep
Use viewDidChangeBackingProperties notification to adjust a window layer scale
2023-10-31 01:25:47 +01:00
Vitaly Provodin
47fce92446 exclude vmTestbase/vm/jit/LongTransitions due to 8271615 on macOS 2023-10-31 01:25:47 +01:00
Maxim Kartashev
181c32392a JBR-4602 Unexpected NoSuchFileException running Rider test
This reverts commits for JBR-3680, JBR-4118, and JBR-4485.
2023-10-31 01:25:47 +01:00
Nikita Gubarkov
bda0eb4750 JBR-4373 Add mapping for .NewYork-* and .SFArabic-* system fonts 2023-10-31 01:25:47 +01:00
Alexander Lobas
d416ad5034 JBR-4563 Rounded corners for native Window on Mac OS (#156)
* JBR-4563 Rounded corners for native Window on Mac OS
2023-10-31 01:25:47 +01:00
Alexander Lobas
60928eb78f JBR-4563 Rounded corners for native Window on Mac OS 2023-10-31 01:25:47 +01:00
Alexander Lobas
dbd3895efe 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-10-31 01:25:46 +01:00
Alexey Ushakov
4c828ad5b2 JBR-4591 macOS: SIGILL at [libsystem_kernel] __kill in -[__NSMallocBlock__ removeFromSuperview]: unrecognized selector sent to instance
Verified if windowDragView is present
2023-10-31 01:25:46 +01:00
Artem Bochkarev
cae6f7f203 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-10-31 01:25:46 +01:00
Artem Bochkarev
63ecdbe2f8 JBR-4456: fixed HandleJSQueryTest
first invocation of dispatch(WindowEvent.WINDOW_CLOSING) calls System.exit() internally (because of setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE))
2023-10-31 01:25:46 +01:00
Vitaly Provodin
c166859854 exclude javax/swing/JToolBar/4529206/bug4529206.java due to 8288707 on linux 2023-10-31 01:25:46 +01:00
Vitaly Provodin
bbaed1b038 enabling dtrace-tests: added dtrace keyword
(cherry picked from commit 0b5119ca89)
2023-10-31 01:25:46 +01:00
Maxim Kartashev
7dad7fea55 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-10-31 01:25:46 +01:00
Maxim Kartashev
24da21c6a7 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-10-31 01:25:46 +01:00
Vitaly Provodin
e26e655762 JBR-4570 improve synchronization and increase waiting time 2023-10-31 01:25:46 +01:00
Dmitry Batrak
bbc0ac4973 JBR-4552 Windows revert back after initial move/resize in Cygwin/X
(cherry picked from commit 6dc194e089)
2023-10-31 01:25:46 +01:00
Manuel Unterhofer
0530b89c6c 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-10-31 01:25:46 +01:00
Nikita Provotorov
fbead43c3d 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-10-31 01:25:46 +01:00
Nikita Provotorov
ff3fff1334 JBR-4394, IDEA-246833: fixup of JBR-2444.
(cherry picked from commit ef262dc8bb)
2023-10-31 01:25:46 +01:00
Dmitry Batrak
6fcc22e4a2 JBR-4537 Popup windows shown for a background window cause app icon to blink in taskbar on KDE 2023-10-31 01:25:46 +01:00
Dmitry Batrak
b9a93e8f53 JBR-4535 Popup windows disappear on mouse hover when 'Focus strictly under mouse' policy is used in KDE 2023-10-31 01:25:46 +01:00
Alexey Ushakov
8a14c0584b 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-10-31 01:25:45 +01:00
Vitaly Provodin
8b2bb83388 exclude jb/java/awt/Window/ZOrderOnModalDialogActivation.java from S2 runs on Windows and Linux 2023-10-31 01:25:45 +01:00
Vitaly Provodin
e14b236076 exclude javax/swing/plaf/nimbus/TestNimbusOverride.java on windows due to 8253184 2023-10-31 01:25:45 +01:00
Vitaly Provodin
391c047c52 exclude java/awt/Graphics2D/DrawString/DrawRotatedStringUsingRotatedFont.java on linux-aarch64 only due to 8266283 2023-10-31 01:25:45 +01:00
Artem Bochkarev
2d6c9f90fa JBR-4473: fixed native part of SystemHotkeyReader 2023-10-31 01:25:45 +01:00
Dmitry Batrak
b6b7a11f07 JBR-1740 Menu remains open when application loses focus
(cherry picked from commit f987d22cd2)
2023-10-31 01:25:45 +01:00
Vitaly Provodin
18c822af1b exclude Frame/RestoreToOppositeScreen/RestoreToOppositeScreen.java from S2 runs due to 8286840 2023-10-31 01:25:45 +01:00
Vitaly Provodin
06144f20ea exclude java/awt/Mouse/GetMousePositionTest/GetMousePositionWithPopup.java due to 8282232 2023-10-31 01:25:45 +01:00
Maxim Kartashev
c5d4d78b40 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-10-31 01:25:45 +01:00
Manuel Unterhofer
35528f37c8 Merge fullscreen handlers for transparent title bar into existing ones 2023-10-31 01:25:45 +01:00
Manuel Unterhofer
e562633ea3 FL-11420 Fix view hierarchy restoration for full-screen mode on macOS 2023-10-31 01:25:45 +01:00
Nikita Gubarkov
9a5bb6d011 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-10-31 01:25:45 +01:00
Dmitry Batrak
4d9caeba3a 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-10-31 01:25:45 +01:00
Maxim Kartashev
24fa117e97 JBR-4464 Error building latest jbr-dev after JDK-8285730 2023-10-31 01:25:45 +01:00
Maxim Kartashev
8d3ba04d09 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-10-31 01:25:45 +01:00
Maxim Kartashev
a400651ca8 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-10-31 01:25:44 +01:00
Renaud Paquay
7304641634 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-10-31 01:25:44 +01:00
Maxim Kartashev
85370b321c 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-10-31 01:25:44 +01:00
Dmitry Batrak
72d92605c2 JBR-1518 JBR 11 does not support chain of popups on Linux
(cherry picked from commit 849356ee01)
2023-10-31 01:25:44 +01:00
Dmitry Batrak
2a5c91996a JBR-4306 Robot doesn't work as expected in some cases on macOS
(cherry picked from commits 7d69734465, 0f33031484, 3b5ded0d02)
2023-10-31 01:25:44 +01:00
Ryan Osial
5bf9361cc4 Cache results of font-config pattern search for reuse
(cherry picked from commit 432f637904)
(cherry picked from commit 17bc232f6f)
2023-10-31 01:25:44 +01:00
Maxim Kartashev
99815252fc 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-10-31 01:25:44 +01:00
Anton Tarasov
f06da10cde JBR-4389 [update_1] IDEA UI font becomes too large after disconnecting the external monitor / sleep 2023-10-31 01:25:44 +01:00
Anton Tarasov
7731346378 JBR-4389 IDEA UI font becomes too large after disconnecting the external monitor / sleep 2023-10-31 01:25:44 +01:00
Dmitry Batrak
19f662e3ae remove duplicate bundled JetBrains Mono bold italic font
following JBR-4402

(cherry picked from commit b7e5d3cfcf)
2023-10-31 01:25:44 +01:00
Dmitry Batrak
da86fb2a75 JBR-4402 The wrong text is rendered in editor 2023-10-31 01:25:44 +01:00
Vitaly Provodin
824595ee65 JBR-4297 add a regression test
(cherry picked from commit 8e94fff6aa)
2023-10-31 01:25:44 +01:00
Konstantin Bulenkov
f68311d606 Update JetBrains Mono font to 2.225 2023-10-31 01:25:44 +01:00
Alexey Ushakov
c2fd15fffa JBR-4363 Changes in fonts rendering between JBR11 and JBR17
Resolved merge artifact after applying IDEA-57233 fix
2023-10-31 01:25:44 +01:00
Alexey Ushakov
2d534d940b JBR-3843 IDE text is misaligned vertically when using Consolas font
Use usWinAscent/usWinDescent for metrics on Windows
2023-10-31 01:25:43 +01:00
Alexey Ushakov
2f543286cb 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-10-31 01:25:43 +01:00
Alexey Ushakov
7dd066c820 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-10-31 01:25:43 +01:00
Dmitry Batrak
4411ebce2c JBR-4346 [Xfce] Windows are moved unexpectedly between workspaces when modal dialog is shown
(cherry picked from commits ad299f1e74, 800220af16)
2023-10-31 01:25:43 +01:00
Alexey Ushakov
b82a08be21 JBR-3827 SIGILL at [libsystem_kernel] __kill in Java Exception at -[CDragSource convertData:]
Added check for drag source
2023-10-31 01:25:43 +01:00
Alexey Ushakov
61aee83ac1 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-10-31 01:25:43 +01:00
Alexey Ushakov
18f6d8c1f7 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-10-31 01:25:43 +01:00
Dmitry Batrak
869bbadf39 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-10-31 01:25:43 +01:00
Vitaly Provodin
55900d4e9c JBR-4294 split desktop tests to more groups for Commit testing 2023-10-31 01:25:43 +01:00
Dmitry Batrak
57f83fce6d 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-10-31 01:25:43 +01:00
greg
b0f1c67b0c 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-10-31 01:25:43 +01:00
Denis Fokin
8c60d1efc4 JBR-4038 [JBR17] Force Touch events are not supported on macOS
Added missing files and handlers from JBR11
2023-10-31 01:25:43 +01:00
Alexey Ushakov
cf10548e63 JBR-3901 jbr-dev compile problem
Added transient keyword
2023-10-31 01:25:43 +01:00
Alexander Lobas
b924796f43 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-10-31 01:25:43 +01:00
Dmitry Batrak
3b7dd8e7f3 JBR-3676 WINDOW_ACTIVATED/DEACTIVATED events sent to a frame when child window closes on macOS
(cherry-picked from commit 824f9ebec3)
2023-10-31 01:25:43 +01:00
Dmitry Batrak
cc774cf333 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-10-31 01:25:42 +01:00
Dmitry Batrak
476d5fcb45 refactor nativeCreateNSWindow call wrapping
as part of JBR-3017

(cherry picked from commit eeef67a335)
2023-10-31 01:25:42 +01:00
Dmitry Batrak
37b6165ac5 remove excessive wrapping with AccessController (AWTThreading does it internally now)
as part of JBR-3017

(cherry picked from commit f1dd523ba8)
2023-10-31 01:25:42 +01:00
Dmitry Batrak
1cc8866310 JBR-2971 Log more information about window creation and property changes
(cherry picked from commit 9d86b4d235)
2023-10-31 01:25:42 +01:00
Dmitry Batrak
5798eb3b89 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-10-31 01:25:42 +01:00
Nikita Provotorov
27f9143cb2 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-10-31 01:25:42 +01:00
Nikita Gubarkov
ac26d8fb7b 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-10-31 01:25:42 +01:00
Alexey Ushakov
37f6b093b7 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-10-31 01:25:42 +01:00
Vitaly Provodin
915bf888b4 exclude javax/swing/border/TestTitledBorderLeak.java on windows due to 8213531 2023-10-31 01:25:42 +01:00
Ivan Lopatin
34143a7158 Scale2: exclude java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java due to 8279190 on macosx-all 2023-10-31 01:25:42 +01:00
Nikita Provotorov
906604a9c4 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-10-31 01:25:42 +01:00
Vitaly Provodin
6fa95c79f9 exclude java/awt/Frame/FrameSetSizeStressTest/FrameSetSizeStressTest.java on Wayland
sun/security/pkcs11/Signature/TestDSAKeyLength.java                                 8279941 linux-all
2023-10-31 01:25:42 +01:00
Alexey Ushakov
3f697ec352 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-10-31 01:25:42 +01:00
Nikita Provotorov
02c3b2690c 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-10-31 01:25:42 +01:00
Nikita Provotorov
6436da749c JBR-4207, IDEA-287559: IDEA incorrectly handles AltGr key modifier.
Renames the test AltGrMustGenerateAltGrModifierTest3838.java to AltGrMustGenerateAltGrModifierTest4207.java.

(cherry picked from commit ed60a9c2bd)
2023-10-31 01:25:42 +01:00
Maxim Kartashev
b51669d4df 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-10-31 01:25:41 +01:00
Vitaly Provodin
112f041414 exclude sun/security/pkcs11/Signature/TestDSAKeyLength.java on Ubuntu 21.04 due to 8279941 2023-10-31 01:25:41 +01:00
Anton Tarasov
9cd1fdc723 JBR-4204 provide an option to disable a11y support on macOS
(cherry picked from commit ee3c56abdc)
2023-10-31 01:25:41 +01:00
Vitaly Provodin
ebd54066ee exclude two swing tests on Windows due to JBR-4197 2023-10-31 01:25:41 +01:00
Alexey Ushakov
b8474a1e67 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-10-31 01:25:41 +01:00
Alexey Ushakov
be042932aa JBR-4187 java/awt/GraphicsDevice/DisplayModes/UnknownRefrshRateTest.java.UnknownRefrshRateTest fails on mac
Constrained display modes count used by the test
2023-10-31 01:25:41 +01:00
Alexey Ushakov
59be8d33b4 JBR-4177 libc++abi: terminating with uncaught exception of type NSException
Added check for AppContext
2023-10-31 01:25:41 +01:00
Alexey Ushakov
80df37fc7c 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-10-31 01:25:41 +01:00
Artem Semenov
141863382f JBR-4167 [JCK] AccassibleJTree tests fail on Ubuntu 2023-10-31 01:25:41 +01:00
Alexey Ushakov
f3908d5e0d JBR-4164 IDEs cannot be launched via launch configuration
Moved execution of displayChanged() to EDT
2023-10-31 01:25:41 +01:00
Vitaly Provodin
e67fa71c70 JBR-4169 add jdk.javadoc into JBR 2023-10-31 01:25:41 +01:00
Alexey Ushakov
7e3c89bf96 JBR-4150 IDE regularly locks up at sun.lwawt.macosx.LWCToolkit.getScreenInsets
Restored caching screen insets. Added handling of dock resize.
2023-10-31 01:25:41 +01:00
Vitaly Provodin
5a4e879bf2 exclude java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java on Wayland configs due to 8279256 2023-10-31 01:25:41 +01:00
Vitaly Provodin
9ffbafdddd exclude java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java on Scale2 configs due to 8279190 2023-10-31 01:25:41 +01:00
Vitaly Provodin
4e120afdd4 exclude java/awt/FullScreen/UninitializedDisplayModeChangeTest/UninitializedDisplayModeChangeTest.java due to 827361 2023-10-31 01:25:41 +01:00
Vitaly Provodin
b94a11ef95 add exclude list for Wayland failures 2023-10-31 01:25:40 +01:00
Vitaly Provodin
e333bb905b exclude javax/swing/plaf/basic/BasicComboPopup/JComboBoxPopupLocation /JComboBoxPopupLocation.java on macOS due to 8194945 2023-10-31 01:25:40 +01:00
Vitaly Provodin
2341d5a542 exclude sun/java2d/SunGraphics2D/EmptyClipRenderingTest.java on windows due to 8144029 2023-10-31 01:25:40 +01:00
Maxim Kartashev
557ae56c8d 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-10-31 01:25:40 +01:00
Vitaly Provodin
20f095d39f add exclude list for Scale2 test runs 2023-10-31 01:25:40 +01:00
Vitaly Provodin
a89b5ce5fd exclude java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java due to 8134231 2023-10-31 01:25:40 +01:00
Alexey Ushakov
d28ac0c123 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-10-31 01:25:40 +01:00
Artem Semenov
6f32077210 JBR-3775 Optimize the algorithm for obtaining tree elements 2023-10-31 01:25:40 +01:00
Nikita Gubarkov
caa6705e20 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-10-31 01:25:40 +01:00
Vitaly Provodin
21fc527c28 JBR-3931 add the module jdk.unsupported.desktop into jbr
(cherry picked from commit 32def2fd42)
2023-10-31 01:25:40 +01:00
Alexey Ushakov
11875b66ef JBR-4111 [JBR17] Make possible to select files and directories independently
Implemented apple.awt.fileDialogForFiles property
2023-10-31 01:25:40 +01:00
Vitaly Provodin
0d22239754 enable fixed tests to regular runs 2023-10-31 01:25:40 +01:00
Vitaly Provodin
c3423cee75 exclude javax/swing tests on mac-aarch64 due to 8277816 2023-10-31 01:25:40 +01:00
Aleksandr Veselov
99ab749b1b JBR-4107 A11y: macOS - wrong frame position if window is not on primary screen 2023-10-31 01:25:40 +01:00
Alexey Ushakov
bb4f1aae5c JBR-4060 [JBR17+Metal] Flickering on button's shadow
Removed unnecessary global flag. Optimized mask cache texture clearing code.
2023-10-31 01:25:39 +01:00
Alexey Ushakov
34750ec310 JBR-3954 Transparent text color rendering (needed for experimental UI)
Performed conversion from ARGB_PRE to ARGB in the grayscale text shader
2023-10-31 01:25:39 +01:00
Alexey Ushakov
9b35a2dc9b 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-10-31 01:25:39 +01:00
Alexey Ushakov
32c5a690be 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-10-31 01:25:39 +01:00
Alexey Ushakov
3aadd7fc68 JBR-4104 jbr-dev compilation failure
Corrected suppress warnings
2023-10-31 01:25:39 +01:00
Dmitry Batrak
d2f696b31f JBR-4084 Default font '. AppleSystemUIFont' does not have bold weight on Chinese characters
(cherry picked from commit 4fde082d53)
2023-10-31 01:25:39 +01:00
Maxim Kartashev
461287f420 JBR-3899 SIGSEGV at [libjvm] _ZN23JfrNetworkInterfaceName11on_rotationEv
Prevent JfrNetworkInterfaceName::on_rotation() to dereference a
potentially NULL pointer.

(cherry picked from commit b2a9372d70)
2023-10-31 01:25:39 +01:00
Dmitry Batrak
ae6b99563a 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-10-31 01:25:39 +01:00
Maxim Kartashev
cc60556841 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-10-31 01:25:39 +01:00
Vitaly Provodin
95e817da94 exclude tests spontaneously creating windows during test execution 2023-10-31 01:25:39 +01:00
Maxim Kartashev
5aa9f2e785 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-10-31 01:25:39 +01:00
Alexey Ushakov
0c7a67705a JBR-3924 CMD+Tilda does not switch app windows
Introduced vm property to disable capturing of next app window shortcut
2023-10-31 01:25:39 +01:00
Nikita Gubarkov
6b6d5286d2 JBR-2917 Added emoji support for Windows
JBR-3951 Pass real glyph type from native code instead of guessing it by rowBytes & width
2023-10-31 01:25:39 +01:00
Pavel
465a853eaf 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-10-31 01:25:39 +01:00
Maxim Kartashev
cf6433cd19 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-10-31 01:25:38 +01:00
Dmitry Batrak
6a48a239d5 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-10-31 01:25:38 +01:00
Alexey Ushakov
4985688e0c 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-10-31 01:25:38 +01:00
Alexey Ushakov
21ff4cbf5b JRE-193 UI freeze and 12/second thread dumps
Moved CStrikeDisposer dispose code to AppKit

(cherry picked from commit 28774d6878)
2023-10-31 01:25:38 +01:00
Alexander Lobas
2e8e38d628 JBR-3660 PhpStorm 2021.2 crashes on selecting iCloud Drive directory in Open dialog
(cherry picked from commit f5434bcaaf)
2023-10-31 01:25:38 +01:00
Alexander Lobas
953c65274a JBR-3629 SIGILL at [libsystem_kernel] __kill NPE at com.intellij.openapi.options.SchemeImportUtil$1.isFileSelectable / -[CFileDialog askFilenameFilter:]
(cherry picked from commit 86c13ecaed)
2023-10-31 01:25:38 +01:00
Alexander Lobas
3c37df5721 JBR-3443 Native file dialog on OSX enable filename filter by VM option
(cherry-picked from commit f10e324538)
2023-10-31 01:25:38 +01:00
Alexander Lobas
67ff5d3c7d JBR-3442 Native file dialog on OSX (for open file) doesn't allow pasting path
(cherry-picked from commit 7d8cc524ca)
2023-10-31 01:25:38 +01:00
Maxim Kartashev
d857fea931 Revert "JBR-2755 IDE UI became slow via remote X Server connection from Windows"
This reverts commit cd9138844da770ae60806fd7dbc1e85c773882a8.
2023-10-31 01:25:38 +01:00
Konstantin Aleev
aec298cf34 fix memory leaks in AccessibleJTree
(cherry picked from commit 561a7b8def)
2023-10-31 01:25:38 +01:00
Maxim Kartashev
e351893fd6 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-10-31 01:25:38 +01:00
Maxim Kartashev
98d3d05652 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-10-31 01:25:38 +01:00
Nikita Provotorov
f21eface08 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-10-31 01:25:38 +01:00
Maxim Kartashev
a1a34d0a08 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-10-31 01:25:38 +01:00
Alexey Ushakov
8396599731 JBR-3820 Gamma correction for grayscale text in Metal rendering pipeline
Added regression test to compare OGL and Metal text rendering
2023-10-31 01:25:38 +01:00
Artem Bochkarev
ff80ebd1d7 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-10-31 01:25:37 +01:00
Dmitry Batrak
f234a73f4a JBR-2759 Typeahead issue on Linux
(cherry picked from commits 76bdaf1131, b20c56ff3e, c9609330f2, a170b4e4ae)
2023-10-31 01:25:37 +01:00
Artem Bochkarev
1f0566e543 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-10-31 01:25:37 +01:00
Renaud Paquay
e5d9f865f5 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-10-31 01:25:37 +01:00
Ivan Migalev
5304ef959b 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-10-31 01:25:37 +01:00
Dmitry Batrak
3def181294 JBR-3779 Unexpected Alt+Tab behaviour for Java frames on Cinnamon DE
(cherry picked from commit 0bf13985d5)
2023-10-31 01:25:37 +01:00
Maxim Kartashev
ff9933e368 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-10-31 01:25:37 +01:00
Dmitry Batrak
a788493cd3 JBR-3504 a11y focus is set on the wrong element when opening popups
(cherry-picked from commit a69e12e0d2)
2023-10-31 01:25:37 +01:00
Maxim Kartashev
a595354b2c 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-10-31 01:25:37 +01:00
Maxim Kartashev
e83fb18932 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-10-31 01:25:37 +01:00
Alexey Ushakov
91bdb8309a Added support for otf into the build scripts. Updated prebuild maps.
Applied code from jbr-dev
2023-10-31 01:25:37 +01:00
Konstantin Bulenkov
f4e1d818c9 bundle Inter font 2023-10-31 01:25:37 +01:00
Maxim Kartashev
05c883cbf5 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-10-31 01:25:37 +01:00
Dmitry Batrak
fa5ad6dc47 JBR-3726 Modal windows 'disappear' on minimize in KDE
(cherry picked from commits d9baf2d9db, 9c2841028f, 5c4fd9ceaf, f0ed32fca4)
2023-10-31 01:25:37 +01:00
Maxim Kartashev
7b1d54a228 JBR-3542 Fix -Xcheck:jni warnings
Fixes warnings coming from JBR-specific code in addition to those fixed
by 8269223.
2023-10-31 01:25:36 +01:00
Dmitry Batrak
27ff76af8e JBR-3706 Toggling full screen mode for two frames doesn't work on macOS if invoked without delay
(cherry picked from commit 28cfc4815f)
2023-10-31 01:25:36 +01:00
Dmitry Batrak
b96daa3ad5 JBR-3686 Background window steals focus when converted to full screen on macOS
(cherry-picked from commit 07a5b9672e)
2023-10-31 01:25:36 +01:00
Dmitry Batrak
5a5a8953f9 JBR-3662, JBR-3672 Focus jumps to another project tab after closing modal dialog
(cherry picked from commit bfd01081c3, 2a71dc5981)
2023-10-31 01:25:36 +01:00
Nikita Gubarkov
33c58f946e JBR-3648 Replace CacheCellInfo usages with MTLCacheCellInfo in metal rendering code 2023-10-31 01:25:36 +01:00
Dmitry Batrak
584c3ca439 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-10-31 01:25:36 +01:00
Anton Tarasov
10011de238 JBR-1834 [linux] runtime hidpi switch is broken
(cherry picked from commit eaa04303a7)
2023-10-31 01:25:36 +01:00
Anton Tarasov
75f794b191 JBR-1429 Scale is huge due to GDK_SCALE
(cherry-picked from commit 1c3477df2e)
2023-10-31 01:25:36 +01:00
Anton Tarasov
569d6188ac JBR-1365 force IDE-managed HiDPI on Linux for fractional scales
(cherry picked from commit f092ff3962)
2023-10-31 01:25:36 +01:00
Anton Tarasov
441928118b Allow HiDPI mode on Linux 2023-10-31 01:25:36 +01:00
Anton Tarasov
389c606f45 JRE-489 -Dswing.bufferPerWindow is fractional scale unfriendly 2023-10-31 01:25:36 +01:00
Anton Tarasov
07fb6f5993 JRE-310 check for Windows8.1 when enabling ui scale
Was "don't fallback on fractional scale" in JBSDK9.
2023-10-31 01:25:36 +01:00
Vitaly.Provodin
25aa493807 add 32-sizes for native data types
(cherry picked from commit 3a79870da8)
2023-10-31 01:25:36 +01:00
Nikita Gubarkov
14a19cc57d Added JBR-specific .idea project files 2023-10-31 01:25:36 +01:00
Alexey Ushakov
7d2bbdc7f5 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-10-31 01:25:36 +01:00
Anton Tarasov
82ec1ee74f 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-10-31 01:25:35 +01:00
Anton Tarasov
4c4a14f4da JBR-3545 Window.setMinimumSize does not respect DPI scaling
(cherry picked from commit 9b4f72ad18)
2023-10-31 01:25:35 +01:00
Denis Fokin
7588e3376b JRE-408 JBR-3515 fix NullPointerException in MetalRootPaneUI.installWindowListeners
(cherry picked from commit 584d554af529cff445b0f09bc2d57be55e138b7a)
(cherry picked from commit 6a42bb54bd)
2023-10-31 01:25:35 +01:00
Elena Sayapina
d3f2c97f42 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-10-31 01:25:35 +01:00
Denis Konoplev
e63dab0602 EA-252361: Check window for null
(cherry picked from commit 23a7dbd486)
2023-10-31 01:25:35 +01:00
Artem Bochkarev
745b89ec4b JBR-3131: support custom view for system menu items
(cherry picked from commit 78d509ac0f)
2023-10-31 01:25:35 +01:00
Artem Bochkarev
6c4b58e8ae 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-10-31 01:25:35 +01:00
Nikita Gubarkov
fbf3dc6778 JBR-3376 Added check for -1 glyph info pointer in OGLTextRenderer.c 2023-10-31 01:25:35 +01:00
Dmitry Batrak
dfea0a85c5 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-10-31 01:25:35 +01:00
Vitaly Provodin
c07f762130 JBR-3314 add regression test
(cherry picked from commit c81adfed61)
2023-10-31 01:25:35 +01:00
Ivan Migalev
d4d0ab7db3 JBR-3227 Reload type of required native file dialogs each time a file dialog is requested
(cherry picked from commit 26dd87ab7c)
2023-10-31 01:25:35 +01:00
Ivan Migalev
8b5ca0cfa8 JBR-3068 Update path selector behavior when sun.awt.windows.useCommonItemDialog is enabled
(cherry picked from commit 442bb7eecc)
2023-10-31 01:25:35 +01:00
Alexey Ushakov
ecc692ff76 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-10-31 01:25:35 +01:00
Alexey Ushakov
e07ee7db1b 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-10-31 01:25:35 +01:00
Dmitry Batrak
320e9a9e49 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-10-31 01:25:35 +01:00
Dmitry Batrak
0b26691f83 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-10-31 01:25:34 +01:00
Dmitry Batrak
9be44539b7 fix occasional freezes of JBR-3017 reproducer after the fix
(cherry picked from commit 7e6db54f77)
2023-10-31 01:25:34 +01:00
Dmitry Batrak
4610cbc0bb JBR-2819 Create API to determine typographic family/subfamily for available fonts
(cherry picked from commit 89e519a4ef)
2023-10-31 01:25:34 +01:00
Nikita Gubarkov
b83171d9bf JBR-2924 Do not try to create native italic font when we're going to make it fake italic 2023-10-31 01:25:34 +01:00
Nikita Gubarkov
04c4879c68 JBR-3982 Fixed non-antialiased text rendering on macOS
JBR-3269 Disabled subpixel antialiasing for macOS Mojave and newer
2023-10-31 01:25:34 +01:00
Dmitry Batrak
ac2df1b05b JBR-3017 Focus issue in presence of third-party accessibility tool
(cherry picked from commit 88ead5d9e3)
2023-10-31 01:25:34 +01:00
Vitaly Provodin
34f5f246a7 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-10-31 01:25:34 +01:00
Elena Sayapina
3cac6ef071 JBR-2890 [TESTUPDATE] Enable jcef tests on macOS aarch64 platform
(cherry picked from commit 1714d7b627)
2023-10-31 01:25:34 +01:00
Nikita Gubarkov
b07705a1f1 Added JBR API
with fix for JBR-5300 Change source code and test files to use GPL license
2023-10-31 01:25:34 +01:00
Artem Bochkarev
b48a477f7e 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-10-31 01:25:34 +01:00
Mikhail Grishchenko
6b57b5b95b JBR-2890 Disable jcef tests on 32-bit and aarch64 platforms
(cherry picked from commit d34d6528fe)
2023-10-31 01:25:34 +01:00
Alexey Ushakov
0ae7f14fdc 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-10-31 01:25:34 +01:00
Nikita Gubarkov
b9be1fed9e 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-10-31 01:25:34 +01:00
Alexey Ushakov
cc052224ea 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-10-31 01:25:34 +01:00
Alexey Ushakov
8a17c3cfc2 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-10-31 01:25:34 +01:00
Alexey Ushakov
c9fa359dce 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-10-31 01:25:33 +01:00
Alexey Ushakov
39e61679b5 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-10-31 01:25:33 +01:00
Vitaly Provodin
0e36b0b0f0 exclude bug7154030 on macosx-aarch64 due to 8268284 2023-10-31 01:25:33 +01:00
Vitaly Provodin
77971e7477 exclude SharedMemoryPixmapsTest on macosx-all due to 8221451 2023-10-31 01:25:33 +01:00
Vyacheslav Moklev
5a6333047b JBR-2442 fix memory leak of fileBuffer
fix was suggested by Nikita Gubarkov
2023-10-31 01:25:33 +01:00
Andrey Starovoyt
fb4b83aca4 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-10-31 01:25:33 +01:00
Sergey Malenkov
96d75e7a1b EA-235126 - CME: HighlightableComponent.getPreferredSize
(cherry picked from commit 523d80cafd)
2023-10-31 01:25:33 +01:00
Kirill Kirichenko
f67e90d67b JBR-2667 Post review: rename win.darkTheme.on to win.lightTheme.on and reversed the logic
(cherry picked from commit eeab5252e6)
2023-10-31 01:25:33 +01:00
Kirill Kirichenko
72f0b3b32d JBR-2667 Add new AWT desktop property for light/dark theme detection on Windows 10
(cherry picked from commit 0e4ad056dd)
2023-10-31 01:25:33 +01:00
Alexey Ushakov
318b656fa9 JBR-2593 Wide ligatures not rendered in Grayscale mode
Added missing flush of cached vertices

(cherry picked from commit ad409b4370)
2023-10-31 01:25:33 +01:00
Nikita Gubarkov
c81d2c14d8 JBR-2910 Implemented extended glyph cache for Linux 2023-10-31 01:25:33 +01:00
Nikita Gubarkov
2059f07765 JBR-2910 Implemented extended glyph cache for Windows 2023-10-31 01:25:33 +01:00
Nikita Gubarkov
d046704dfe JBR-2614 Fixed LCD glyph width to include both left & right padding, so that rowBytes = width * 3 2023-10-31 01:25:33 +01:00
Alexey Ushakov
302eda8b22 JBR-2463 Font rendering problem on macOS Mojave
Use adjusted advances for glyphs

(cherry picked from commit 1af5dd4aae)
2023-10-31 01:25:33 +01:00
Denis Konoplev
7808b55d13 JBR-3544: Generate popup invoked instead of New in this directory.
- A fix
- A regression test (cherry picked from commit 7995574c09)
2023-10-31 01:25:33 +01:00
Vitaly Provodin
23081215bd JBR-2545 Clean up the list of ignored Render tests
(cherry picked from commit f7b4c42e1d)
2023-10-31 01:25:32 +01:00
Jayathirth D V
a3afbd2a41 8241490: Add large text performance tests in RenderPerfTest
(cherry picked from commit 803ee2f2b5)
2023-10-31 01:25:32 +01:00
Alexey Ushakov
36ee0a8725 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-10-31 01:25:32 +01:00
Konstantin Bulenkov
28db8d7427 Update FiraCode to 5.2
(cherry picked from commit 71e2a8d8ad)
2023-10-31 01:25:32 +01:00
Alexey Ushakov
db45ee9ba2 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-10-31 01:25:32 +01:00
Alexey Ushakov
d1f02f1339 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-10-31 01:25:32 +01:00
Alexey Ushakov
941d905d8d JBR-2463 Font rendering problem on macOS Mojave
Use adjusted advances for glyphs

(cherry picked from commit 1af5dd4aae)
2023-10-31 01:25:32 +01:00
Anton Tarasov
5d9e871d82 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-10-31 01:25:32 +01:00
Anton Tarasov
63ee8dab7f JBR-2872 improve: JBR-2866 JCEF: Markdown editor steals focus from a different frame
(cherry picked from commit bad748e3d0)
2023-10-31 01:25:32 +01:00
Anton Tarasov
76b74088bf 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-10-31 01:25:32 +01:00
Anton Tarasov
ba1b5f7b5d JBR-2645 enable CefBrowser.close(true) in jcef reg tests
(cherry picked from commit 492c217125)
2023-10-31 01:25:32 +01:00
Anton Tarasov
c5a7a95f94 JBR-2259 WebSite isn't loaded with .loadUrl method if browser isn't shown in UI
(cherry picked from commit 57bbddf071)
2023-10-31 01:25:32 +01:00
Anton Tarasov
d2adaf55fc JBR-2557 use com.jetbrains.cef.JCefAppConfig in JCEF tests
(cherry picked from commit e30a309f92)
2023-10-31 01:25:32 +01:00
Anton Tarasov
065fc027ca JBR-2489 Git branch operations (switch to another branch, rebase) sometimes crash WebStorm 202.5428.27
(cherry picked from commit 81d2156fb1)
2023-10-31 01:25:32 +01:00
Anton Tarasov
df3847a96f JBR-2282 [jcef] update to JCEF/80.0.4+g74f7b0c+chromium-80.0.3987.122
(cherry picked from commit a5adc725df)
2023-10-31 01:25:32 +01:00
Anton Tarasov
e59a6f9af7 JBR-2305 jcef: jb/java/jcef/JCEFStartupTest.java throws java.lang.ExceptionInInitializerError
(cherry picked from commit f0385f01ec)
2023-10-31 01:25:31 +01:00
Anton Tarasov
91e6eb87f1 JBR-2306 jcef: jb/java/jcef/JCEFStartupTest.java unexpectedly exits with the exit code: 0
(cherry picked from commit ff7d7bd43c)
2023-10-31 01:25:31 +01:00
Anton Tarasov
230a049d9b JBR-2299 [mac] jcef requests for "chromium safe storage" keychain access
(cherry picked from commit dd1334a352)
2023-10-31 01:25:31 +01:00
Anton Tarasov
581b2b3ea3 JBR-2222 Crash during closing IDE
(cherry picked from commit d0c367b31f)
2023-10-31 01:25:31 +01:00
Anton Tarasov
f35bc55908 JBR-2287 [jcef] add CefBrowser wrapper to jtreg tests
(cherry picked from commit fa961d1769)
2023-10-31 01:25:31 +01:00
Anton Tarasov
e23d59511f JBR-2169 AWTThreading: remove tracked invocation event from completion listener
(cherry picked from commit a855f3b835)
2023-10-31 01:25:31 +01:00
Anton Tarasov
fef5e194b1 JBR-2159 Native crash in thread AWT-EventQueue-0 when trying to push commit
(cherry picked from commit bba297b4a4)
2023-10-31 01:25:31 +01:00
Anton Tarasov
c334703dd6 JBR-2148 JCEF: JBR bundle has invalid app structure
(cherry picked from commit f45f84d7ed)
2023-10-31 01:25:31 +01:00
Anton Tarasov
5fc70472a9 JBR-2146 improve InvokeOnToolkitHelper to cover more generic case 2023-10-31 01:25:31 +01:00
Anton Tarasov
8a1e7885b7 JBR-2139 Idea freeze on dynamic plugin unloading
(cherry picked from commit e57bae4f66)
2023-10-31 01:25:31 +01:00
Anton Tarasov
7863ab38d8 JBR-2099 jb/java/jcef/JCEFStartupTest.java fails on Windows, Linux
(cherry picked from commit 3dfb0aa16a)
2023-10-31 01:25:31 +01:00
Anton Tarasov
4dac2d907b JBR-2093 create reg test for JCEF startup
(cherry picked from commit e8c2761f5b)
2023-10-31 01:25:31 +01:00
Anton Tarasov
e56d4d53fe JBR-2082 Revealing taskbar does not work when "Automatically hide the taskbar"
(cherry picked from commit b31a41fb2f)
2023-10-31 01:25:31 +01:00
Mikhail Grishchenko
f671e66039 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-10-31 01:25:31 +01:00
Mikhail Grishchenko
4175b5e0a4 JBR-2639 [win] jcef does not recognize vertical mouse wheel events
added regression test

(cherry picked from commit e8e4741bb0)
2023-10-31 01:25:31 +01:00
Mikhail Grishchenko
bcbb04e102 JBR-2412 [windows] mouse listener does not work for jcef
added regression test

(cherry picked from commit d1479872f2)
2023-10-31 01:25:30 +01:00
Elena Sayapina
c42d2f0eae 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-10-31 01:25:30 +01:00
Mikhail Grishchenko
aa7a2e9680 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-10-31 01:25:30 +01:00
Vitaly Provodin
494a611aae exclude the new printer test 8262731 2023-10-31 01:25:30 +01:00
Alexey Ushakov
1181ff7806 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-10-31 01:25:30 +01:00
Alexey Ushakov
fb27cae726 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-10-31 01:25:30 +01:00
Artem Bochkarev
c02e8c2a7c 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-10-31 01:25:30 +01:00
Kirill Kirichenko
ad52d63eec JBR-1874 Cursor not changing from 'default' to 'text'. Additional fix after reopening.
(cherry picked from commit 5a29d4ade9)
2023-10-31 01:25:30 +01:00
Elena Sayapina
de9352ad83 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-10-31 01:25:30 +01:00
Denis Konoplev
ac0632ff59 fixup! macOS national keyboard support
Remove unused import that broke compilation
2023-10-31 01:25:30 +01:00
Elena Sayapina
f867a114b2 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-10-31 01:25:30 +01:00
Elena Sayapina
e099f8691f 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-10-31 01:25:30 +01:00
Mikhail Grishchenko
9d848b2c2c JBR-2259 WebSite isn't loaded with .loadUrl method if browser isn't shown in UI
Added reproducer

(cherry picked from commit e875bf72c9)
2023-10-31 01:25:30 +01:00
Denis Konoplev
c9e0efd903 JBR-2490 Add option to work with Surface Pen
(cherry picked from commit 5acc7680a1)
2023-10-31 01:25:30 +01:00
Denis Konoplev
55aac085e2 JBR-2669: set unicode for both keyCode and extendedKeyCode
(cherry picked from commit ba3f14c83a)
2023-10-31 01:25:30 +01:00
Denis Konoplev
e1915c5a8a JBR-2554: Proper unicode values in KeyEvent.keyCode
(cherry picked from commit 703d77a927)
2023-10-31 01:25:29 +01:00
Denis Konoplev
3bfa4a021c JBR-215: Remove SystemInfo
(cherry picked from commit 9adf77a512)
2023-10-31 01:25:29 +01:00
Denis Konoplev
c4f33bf010 JBR-215: Separate LatinNonAlphaNumKeycodes option
(cherry picked from commit caf366f6f3)
2023-10-31 01:25:29 +01:00
Denis Konoplev
c6502dde7d JBR-215: Windows non-alphanumeric shortcuts
(cherry picked from commit 4f60efebe2)
2023-10-31 01:25:29 +01:00
Denis Konoplev
573a5ef3d5 JBR-2280: Fix regression. Mode compatible with old option.
(cherry picked from commit a3e3c23cb1)
2023-10-31 01:25:29 +01:00
Denis Fokin
037dcc618d macOS national keyboard support 2023-10-31 01:25:29 +01:00
Sergey Malenkov
fbd8a51a32 JBR-1929 FractionalMetricsSupport
(cherry picked from commit bbdc159762)
2023-10-31 01:25:29 +01:00
Mikhail Grishchenko
acf8fd9ab7 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-10-31 01:25:29 +01:00
Mikhail Grishchenko
5957e51a4b 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-10-31 01:25:29 +01:00
Mikhail Grishchenko
8fe05400d2 JBR-1414 [Test] downscale frames to run on low-dpi screens
(cherry picked from commit b46e74fe6f)
2023-10-31 01:25:29 +01:00
Elena Sayapina
321aeb6c4f 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-10-31 01:25:29 +01:00
Alexey Ushakov
158d3bbea0 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-10-31 01:25:29 +01:00
Alexey Ushakov
1ac23ece44 JBR-2137 JetBrainsMono fonts update to v1.0.3
(cherry picked from commit a6e441828a)
2023-10-31 01:25:29 +01:00
Mikhail Grishchenko
203ee3a8ad 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-10-31 01:25:29 +01:00
Elena Sayapina
c897101606 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-10-31 01:25:29 +01:00
Konstantin Bulenkov
f6e08f3061 Update JetBrains Mono to 1.0.2
(cherry picked from commit 6f4a13e46f)
2023-10-31 01:25:28 +01:00
Ivan Migalev
d0807fc08e Extract the DWM colorization parameters from registry (JBR-2070)
(cherry picked from commit 0330cab60b)
2023-10-31 01:25:28 +01:00
Ivan Migalev
e859c5d3eb Refresh desktop properties on WM_DWMCOLORIZATIONCOLORCHANGED (JBR-2070)
(cherry picked from commit 06086f4a7e)
2023-10-31 01:25:28 +01:00
Ivan Migalev
b4fe010338 Fix a possible resource leak in ColorizationColorAffectsBorders
(cherry picked from commit 0c911b6ffe)
2023-10-31 01:25:28 +01:00
Elena Sayapina
bbc6b7552f JBR-2086 JetBrainsMono fonts update to v1.0.1
(cherry picked from commit a4b373e631)
2023-10-31 01:25:28 +01:00
Konstantin Bulenkov
6b36d26c72 JetBrains Mono 1.0
(cherry picked from commit d514f7a982)
2023-10-31 01:25:28 +01:00
Denis Konoplev
8f46583f46 JBR-3444: Return NullSurfaceData when gc == null
(cherry picked from commit 01ad15e61c)
2023-10-31 01:25:28 +01:00
Denis Konoplev
67da3ffa83 JBR-1995: Last character issue with korean
Fix for JTextComponent

(cherry picked from commit a7c8b0b535)
2023-10-31 01:25:28 +01:00
Denis Konoplev
6ff5780f8e JBR-2891: Post PhaseEvents in the begin and end of Magnify and Rotate
(cherry picked from commit c811c295c2)
2023-10-31 01:25:28 +01:00
Denis Konoplev
fcab770237 JBR-2444: Turn on IM workaround by default
(cherry picked from commit 15c4ce1d3e)
2023-10-31 01:25:28 +01:00
Denis Konoplev
6b9dc72fad Fix build: add import & fix jwhen 2023-10-31 01:25:28 +01:00
Denis Konoplev
fe8298e424 JBR-2795: Add explicit conversion
(cherry picked from commit bf3e1c0c31)
2023-10-31 01:25:28 +01:00
Denis Konoplev
1f6a2aca2d IDEA-237231: Correct signarute mask
(cherry picked from commit 6974131eec)
2023-10-31 01:25:28 +01:00
Denis Konoplev
cf07e47f20 IDEA-237231: Possible fix for pen interraction
(cherry picked from commit 33a8c95d39)
2023-10-31 01:25:28 +01:00
Denis Konoplev
13d947421c JBR-2041: Project view tap fix, recovery? constants & logging
(cherry picked from commit 1e904db3b0)
2023-10-31 01:25:28 +01:00
Denis Konoplev
7dec9d89ba IDEA-229135: Fling animation stop on tap
(cherry picked from commit 7ce0f79561)
2023-10-31 01:25:27 +01:00
Denis Konoplev
015899004c Windows touch screen support
(cherry picked from commit cab3f28907)
2023-10-31 01:25:27 +01:00
Denis Konoplev
c76995aca2 Turn off multitouch
(cherry picked from commit a2576ffa9a)
2023-10-31 01:25:27 +01:00
Denis Konoplev
7d47f50425 Check XInput extension && touch inertia
(cherry picked from commit cca7fb97f4)
2023-10-31 01:25:27 +01:00
Denis Konoplev
7ef163831a Touch scroll handling
(cherry picked from commit 6dcec3dc31)
2023-10-31 01:25:27 +01:00
Denis Konoplev
f6844921e7 XI2 Constants
(cherry picked from commit 588cd6ee73)
2023-10-31 01:25:27 +01:00
Denis Konoplev
b3f2a5c4b0 XLibWrapper XI2 functions
(cherry picked from commit d6bd1bfa2b)
2023-10-31 01:25:27 +01:00
Denis Konoplev
460ff7da18 X11 native get put double
(cherry picked from commit f101bc1108)
2023-10-31 01:25:27 +01:00
Denis Konoplev
0ce7bd8a45 Native data types
(cherry picked from commit 9504574dbb)
2023-10-31 01:25:27 +01:00
Denis Konoplev
560a11766c XI2 headers in xlib wrapper generator
(cherry picked from commit ef108067a1)
2023-10-31 01:25:27 +01:00
Denis Konoplev
f4629d454b Revert "Turn off multitouch"
This reverts commit 90ea3bf57e4c687e9d9bf0a37f2f64c82a81f4eb.
2023-10-31 01:25:27 +01:00
Denis Konoplev
836b6f1fc9 Turn off multitouch
(cherry picked from commit a2576ffa9a)
2023-10-31 01:25:27 +01:00
Alexey Ushakov
d9d30d35ed JBR-1962 Allow to change font config
Replaced several privileged blocks with just one

(cherry picked from commit faa8d3d258)
2023-10-31 01:25:27 +01:00
Vitaly Provodin
d9dfbfe34a 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-10-31 01:25:27 +01:00
Dennis Ushakov
ecd4f5dc7a JBR-1863, JBR-1868 correct advances on Catalina 2023-10-31 01:25:27 +01:00
Dennis Ushakov
5634ba8bca JBR-1850: on macOS fonts should be sorted by weight to ensure proper population of the families 2023-10-31 01:25:26 +01:00
Dennis Ushakov
e21e3a6b4b 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-10-31 01:25:26 +01:00
Dennis Ushakov
9537243cc8 JBR-1756 use CoreText for all font rendering on Catalina 2023-10-31 01:25:26 +01:00
Nikita Gubarkov
a47d26c35d JBR-410 Added emoji support for Linux 2023-10-31 01:25:26 +01:00
Alexey Ushakov
69d0d2631b JBR-1997 JetBrainsMono fonts update to v0.22
(cherry picked from commit 41f4fddd34)
(cherry picked from commit f5302a02f4)
(cherry picked from commit 5d7fd2e1e5)
2023-10-31 01:25:26 +01:00
Anton Tarasov
dfe67800e1 JRE-729 [windows] unreasonable IME activity consumes CPU 2023-10-31 01:25:26 +01:00
Dmitry Batrak
7fda245915 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-10-31 01:25:26 +01:00
Dmitry Batrak
5058d9ec80 JBR-3038 Unexpected windows z-order change on workspace switch
(cherry picked from commit ddda860f42)
2023-10-31 01:25:26 +01:00
Dmitry Batrak
f9fa1d6bb9 JBR-3035 The Confirm Exit pop-up window remains hidden behind a window of another application
(cherry picked from commit 470c3bd1b5)
2023-10-31 01:25:26 +01:00
Dmitry Batrak
395acb27b4 JBR-2934 Serious usability issue with GoLand 2020.3 caused by JBR
(cherry picked from commit 95be4351d4)
2023-10-31 01:25:26 +01:00
Dmitry Batrak
593de13cfb 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-10-31 01:25:26 +01:00
Dmitry Batrak
ff14b5b75b JBR-2698 setAutoRequestFocus(false) breaks focus logic under i3 window manager on Linux
(cherry picked from commit ebcdeb7d80)
2023-10-31 01:25:26 +01:00
Dmitry Batrak
4e0fa86f35 JBR-2696 Log focus API invocations with stack traces
(cherry picked from commits 0f038754e5, a507cab6d3)
2023-10-31 01:25:26 +01:00
Dmitry Batrak
4f8b5c7d1f 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-10-31 01:25:26 +01:00
Alexey Ushakov
530c35c1d1 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-10-31 01:25:26 +01:00
Artem Bochkarev
26a7936bc5 JBR-1851: check NSArray length
and make more exception-safe
and minor optimization for logging (cache jobjects)

(cherry picked from commit 5839539379)
2023-10-31 01:25:25 +01:00
Artem Bochkarev
b09ff4c52b JBR-1841: allow deferred disabling of InputMethods-support
(cherry picked from commit 969255904b)
2023-10-31 01:25:25 +01:00
Artem Bochkarev
bca27e128b JBR-1668: add hardcoded default values for preferences node NSServicesStatus
(cherry picked from commit 8445f53d85)
2023-10-31 01:25:25 +01:00
Artem Bochkarev
9e60048a48 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-10-31 01:25:25 +01:00
Artem Bochkarev
5325c31d11 JBR-1668: add hardcoded descriptions of system actions
and minor fixes

fix memory management

(cherry picked from commit 15f7368309)
2023-10-31 01:25:25 +01:00
Elena Sayapina
348efd687c 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-10-31 01:25:25 +01:00
Alexey Ushakov
dca0481745 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-10-31 01:25:25 +01:00
Dmitry Batrak
5e289af259 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-10-31 01:25:25 +01:00
Dmitry Batrak
f929ddca6e 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-10-31 01:25:25 +01:00
Dmitry Batrak
dd559e944d 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-10-31 01:25:25 +01:00
Artem Bochkarev
4619b1de2e JBR-1771: fixed compilation errors (macosx-x86_64-normal-server-fastdebug)
(cherry picked from commit 1acada7cac)
2023-10-31 01:25:25 +01:00
Artem Bochkarev
4c6f2f0bd8 JBR-1668: minor fixes
fixed review comments

(cherry picked from commit 9dbcf194c9)
2023-10-31 01:25:25 +01:00
Vitaly Provodin
af1b7cc702 JBR-1618: fixed misprint, added saving screenshots in case of failure
(cherry picked from commit e4a3889cf0)
2023-10-31 01:25:25 +01:00
Alexey Ushakov
3d264d2ab1 JBR-1624 Fonts rendering is broken in the 2019.2 EAP (Fira Code)
Corrected lookup for bold fonts

(cherry picked from commit 114b8af38f)
2023-10-31 01:25:25 +01:00
Alexey Ushakov
c88fb1cf46 JBR-1399 Improve font discovery and loading by introducing font cache
Added unit test

(cherry picked from commit b4f5bf8bd3)
2023-10-31 01:25:25 +01:00
Elena Sayapina
26b9beedb5 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-10-31 01:25:24 +01:00
Artem Bochkarev
8efa8405c7 JBR-1668: read system keyboard shortcuts
initial support for OS X

(cherry picked from commit 6bbe7102e2)
2023-10-31 01:25:24 +01:00
Artem Bochkarev
815ee42ce8 JBR-1573: restore current input context after cleanup
(cherry picked from commit b7acd7f6f6)
2023-10-31 01:25:24 +01:00
Alexey Ushakov
bf741e58f6 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-10-31 01:25:24 +01:00
Alexey Ushakov
88961fa0f1 JBR-1874 Cursor not changing from 'default' to 'text'
Prevent OS from changing cursor

(cherry picked from commit 94a4eb7002)
2023-10-31 01:25:24 +01:00
Alexey Ushakov
09004121d2 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-10-31 01:25:24 +01:00
Alexey Ushakov
279948ef3c 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-10-31 01:25:24 +01:00
Alexey Ushakov
0b9a3c3e0b 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-10-31 01:25:24 +01:00
Alexey Ushakov
6ea89625e8 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-10-31 01:25:24 +01:00
Alexey Ushakov
8554bbcbe1 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-10-31 01:25:24 +01:00
Alexey Ushakov
b990955f9f 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-10-31 01:25:24 +01:00
Alexey Ushakov
b40313410f 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-10-31 01:25:24 +01:00
Alexey Ushakov
88e4bfef56 JBR-1645 javax/swing/JTextArea/TestTabSize.java: Tab width calculation wrong
Corrected idea font filter

(cherry picked from commit 62f9d1f46a)
2023-10-31 01:25:24 +01:00
Artem Bochkarev
27db3f06df 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-10-31 01:25:24 +01:00
Alexey Ushakov
036873ab10 JBR-1399 Improve font discovery and loading by introducing font cache
Bundle IDEA fonts to improve startup performance

(cherry picked from commit 350a3fdef3)
2023-10-31 01:25:23 +01:00
Artem Bochkarev
ce1d2e681b JBR-1541: activate menu in completion handler of modal dialog
(cherry picked from commit e57384c1d6)
2023-10-31 01:25:23 +01:00
Alexey Ushakov
c51312a51e 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-10-31 01:25:23 +01:00
Alexey Ushakov
495402d802 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-10-31 01:25:23 +01:00
Alexey Ushakov
3cce844b4b JBR-1394 JBR11 does not support LCD text on Mac
Enable LCD rendering for transparent destinations

(cherry picked from commit 207c6b92ff)
2023-10-31 01:25:23 +01:00
Elena Sayapina
adcfb5c7a9 JBR-1372: [TESTBUG] JDialog1054.java, MoveFocusShortcutTest.java regression tests need update
(cherry picked from commit a5948894bf)
2023-10-31 01:25:23 +01:00
Maxim Kartashev
da93e813d6 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-10-31 01:25:23 +01:00
Vyacheslav Moklev
57bb12cb65 Fix const pointer after JDK-8225032 fix 2023-10-31 01:25:23 +01:00
Vyacheslav Moklev
1e52049b60 Fix compilation on windows platform: awt_ole.h must be included before awt.h 2023-10-31 01:25:23 +01:00
Vyacheslav Moklev
41ff3000cb 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-10-31 01:25:23 +01:00
Vyacheslav Moklev
c978d879ef JBR-1271 Wrong parent of native windows dialogs
Set a proper parent to a dialog window
2023-10-31 01:25:23 +01:00
Vyacheslav Moklev
aca75e34a3 JBR-1273 Common Item Dialog does not open when wrong path to directory is passed
Handle set directory / set file properly
2023-10-31 01:25:23 +01:00
Vyacheslav Moklev
95470d98e1 JBR-1274 Common Item Dialog sometimes crash the process
Prevent from freeing memory with CoTaskMemFree twice
2023-10-31 01:25:23 +01:00
Vyacheslav Moklev
6a28f73964 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-10-31 01:25:23 +01:00
Vyacheslav Moklev
42088b7e2d JBR-1258 CommonItemDialog ignores directory to open
Fix parsing of directory path / file path
2023-10-31 01:25:23 +01:00
Vyacheslav Moklev
7ca920596a 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-10-31 01:25:22 +01:00
Alexey Ushakov
0ea71be148 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-10-31 01:25:22 +01:00
Alexey Ushakov
74ce500b11 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-10-31 01:25:22 +01:00
Elena Sayapina
5f6ac6bdd3 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-10-31 01:25:22 +01:00
Elena Sayapina
f5388173aa 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-10-31 01:25:22 +01:00
Elena Sayapina
137860569d 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-10-31 01:25:22 +01:00
Elena Sayapina
d35fcd358d 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-10-31 01:25:22 +01:00
Vitaly Provodin
3fbd243859 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-10-31 01:25:22 +01:00
Vitaly Provodin
eef8ea723b JRE-1117 J2DBench: introduced result reader for TC's charts
(cherry picked from commit 422fa59643)
2023-10-31 01:25:22 +01:00
Alexey Ushakov
893b507cc6 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-10-31 01:25:22 +01:00
Alexey Ushakov
9ca161b892 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-10-31 01:25:22 +01:00
Alexey Ushakov
cfb3de7ef7 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-10-31 01:25:22 +01:00
Alexey Ushakov
530ef18033 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-10-31 01:25:22 +01:00
Konstantin Bulenkov
561a842b66 update icons
(cherry picked from commit dfe387ff5037deda29d8d522cba6cc5370796ff4)
(cherry picked from commit de1e4a9d71)
2023-10-31 01:25:22 +01:00
Vitaly Provodin
e57f13d552 Update README.md 2023-10-31 01:25:22 +01:00
Vitaly Provodin
ca8a1539f8 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-10-31 01:25:22 +01:00
Vitaly Provodin
0df3b1c904 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-10-31 01:25:21 +01:00
Vitaly Provodin
abf8de302b 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-10-31 01:25:21 +01:00
Sergey Malenkov
26bf314b4e JRE-100 Scroll with inertia (Mac os) should only work in the initial component
(cherry picked from commit e79502c708)
2023-10-31 01:25:21 +01:00
Sergey Malenkov
66481533d0 IDEA-161965 ignore dragged event that does not change mouse location Sierra is more sensit
(cherry picked from commit ef490fa465)
2023-10-31 01:25:21 +01:00
Stanislav Dombrovsky
a20c2ed27d Fix rendering of HTML list dots + better vertical align for them.
(cherry picked from commit fa4a404533ba1ef638fe523adc74391aee8a3ebf)

(cherry picked from commit 9f079c66e9)
2023-10-31 01:25:21 +01:00
Dmitry Batrak
6235048e39 JBR-3339 Window requests focus on horizontal scroll (on Linux)
(cherry picked from commit 8d74e8e30b)
2023-10-31 01:25:21 +01:00
Anton Tarasov
91340c4234 JRE-166 [macOS] deadlock with JFXPanel
(cherry picked from commit a9dbb6990fac0c659297487a261ba9170e5fb3ad)

(cherry picked from commit 8a44e1bb37)
2023-10-31 01:25:21 +01:00
Alexey Ushakov
6e43f90fef 8265445: Introduce the new client property for mac: apple.awt.windowAppearance
Implemented apple.awt.windowAppearance client property
2023-10-31 01:25:21 +01:00
Anton Tarasov
dc498080aa JBR-3306 jbr-dev warnings: incompatible pointer to integer conversion returning 'void *' from a function with result type 'jlong' 2023-10-31 01:25:21 +01:00
Dmitry Batrak
159f825889 JBR-2498 Fix unexpected window raising under Mutter WM
re-implement the fix, so that ChildAlwaysOnTopTest isn't failing
2023-10-31 01:25:21 +01:00
Alexey Ushakov
916ce3dc7e JBR-3327 [jbr-dev] Adjust mac window appearance according to AppleInterfaceStyle property
Set window appearance according to AppleInterfaceStyle default
2023-10-31 01:25:21 +01:00
Alexey Ushakov
5a6f06a671 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-10-31 01:25:21 +01:00
Alexey Ushakov
1ae43a2668 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-10-31 01:25:21 +01:00
Dmitry Batrak
d258233bef 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-10-31 01:25:21 +01:00
Alexey Ushakov
bdb5ac2c5c 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-10-31 01:25:21 +01:00
Alexey Ushakov
4058b92799 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-10-31 01:25:20 +01:00
Alexey Ushakov
9f705c961d 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-10-31 01:25:20 +01:00
Alexey Ushakov
deb8a60187 JBR-3304 jbr-dev warnings: 'getPhysFontName' defined but not used [-Werror=unused-function]
Removed unused code
2023-10-31 01:25:20 +01:00
Vitaly Provodin
78b9de7474 exclude javax/swing/JTabbedPane/4624207/bug4624207.java failing on windows due to 8197552 2023-10-31 01:25:20 +01:00
Alexey Ushakov
b23531bc2d 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-10-31 01:25:20 +01:00
Alexey Ushakov
dbacd723e1 JRE-353 Fedora 25 + XMonad rendering issues
Added support for Xmonad WM

(cherry picked from commit c690c3c7fdf1390e6b1a8d388ff752a09391ae3c)
(cherry picked from commit 6851dc3441)
2023-10-31 01:25:20 +01:00
Denis Konoplev
594ae117ee 8264143: Change uint8_t to unsigned char 2023-10-31 01:25:20 +01:00
Dmitry Batrak
2d980e71e0 JBR-3255 Applying 'incline' transform might change character's advance
(cherry picked from commit b37f7cfdb1)
2023-10-31 01:25:20 +01:00
Dmitry Batrak
2436c7ddbc JBR-3215 'deriveFont(float)' can return a different font (not just change the size)
(cherry picked from commit 8eafcaab24)
2023-10-31 01:25:20 +01:00
Dmitry Batrak
7a7e12e9be 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-10-31 01:25:20 +01:00
Dmitry Batrak
e5c7550931 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-10-31 01:25:20 +01:00
Dmitry Batrak
6a4dd8dfac 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-10-31 01:25:20 +01:00
Dmitry Batrak
530937270b 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-10-31 01:25:20 +01:00
Dmitry Batrak
e8f9b58813 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-10-31 01:25:20 +01:00
Dmitry Batrak
4ebd3f472b 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-10-31 01:25:19 +01:00
Dmitry Batrak
90590e489a 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-10-31 01:25:19 +01:00
Denis Konoplev
54167983ba 8264143: Lanai: RenderPerfTest.BgrSwBlitImage has artefacts on apple M1
Add stdint include to fix x64 build
2023-10-31 01:25:19 +01:00
Dmitry Batrak
257de5b1e9 JBR-2498 Fix unexpected window raising under Mutter WM
(cherry picked from commit 73b45fb899)
2023-10-31 01:25:19 +01:00
Dmitry Batrak
5d5de4c802 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-10-31 01:25:19 +01:00
Dmitry Batrak
5baf39b710 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-10-31 01:25:19 +01:00
Dmitry Batrak
1fd5de7386 JBR-2050 Issue with keycap emojis
port from JBR 11 to JBR 15 (cherry picked from commit ae91e1d7f1)

cherry picked from commit d3018a1837
2023-10-31 01:25:19 +01:00
Dmitry Batrak
4b8367c2f7 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-10-31 01:25:19 +01:00
Dmitry Batrak
fb2d49d3c2 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-10-31 01:25:19 +01:00
Dmitry Batrak
846e31d739 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-10-31 01:25:19 +01:00
Dmitry Batrak
9137db0a2c 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-10-31 01:25:19 +01:00
Dmitry Batrak
0065051b9d 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-10-31 01:25:19 +01:00
Dmitry Batrak
a54a5109c8 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-10-31 01:25:19 +01:00
Dmitry Batrak
7ec8d0102b 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-10-31 01:25:19 +01:00
Dmitry Batrak
51d201797e 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-10-31 01:25:19 +01:00
Dmitry Batrak
075c600694 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-10-31 01:25:18 +01:00
Dmitry Batrak
7eb7b37ec5 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-10-31 01:25:18 +01:00
Alexey Ushakov
fe1adba93c 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-10-31 01:25:18 +01:00
Alexey Ushakov
de59d36393 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-10-31 01:25:18 +01:00
Dmitry Batrak
35827ae3da 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-10-31 01:25:18 +01:00
Dmitry Batrak
fea6440c4f 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-10-31 01:25:18 +01:00
Dmitry Batrak
10c2af400b 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-10-31 01:25:18 +01:00
Vitaly Provodin
7b55ed2890 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-10-31 01:25:18 +01:00
Vitaly Provodin
a7f455223e 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-10-31 01:25:18 +01:00
Alexey Ushakov
8f468ee99d 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-10-31 01:25:18 +01:00
Vitaly Provodin
375f381228 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-10-31 01:25:18 +01:00
Vitaly Provodin
2c3fcb1b20 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-10-31 01:25:18 +01:00
Vitaly Provodin
041f04b65a 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-10-31 01:25:18 +01:00
Vitaly Provodin
1a3997b315 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-10-31 01:25:18 +01:00
Vitaly Provodin
b0b823203c 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-10-31 01:25:18 +01:00
Vitaly Provodin
c87f5d8b12 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-10-31 01:25:17 +01:00
Vitaly Provodin
9788cb770e JRE-458 added new regression test (Insufficient and inconsistent permissions on some files in Linux build)
(cherry picked from commit 82adbe9c25)
2023-10-31 01:25:17 +01:00
Vitaly Provodin
35210a245e 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-10-31 01:25:17 +01:00
Vitaly Provodin
aa62474674 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-10-31 01:25:17 +01:00
Vitaly Provodin
857918c433 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-10-31 01:25:17 +01:00
Vitaly Provodin
ee5ea3ecab 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-10-31 01:25:17 +01:00
Vitaly Provodin
9da18b6385 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-10-31 01:25:17 +01:00
Vitaly Provodin
fbc3cb8c77 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-10-31 01:25:17 +01:00
Alexey Ushakov
f767f1b26f IDEA-166173 IntelliJ freezes when returning from sleep
Fixed deadlock by removing unnecessary getScreenResolution call

(cherry picked from commit cec93cf1fd)
2023-10-31 01:25:17 +01:00
Alexey Ushakov
341b515b98 Added missing fontconfig defines
(cherry picked from commit 2ac273a456)
2023-10-31 01:25:17 +01:00
Alexey Ushakov
8fcea80614 JRE-43 Font.getFamily() does not work in headless mode
Removed unused code

(cherry picked from commit 5b523f049e)
2023-10-31 01:25:17 +01:00
Alexey Ushakov
a375705a93 JRE-43 Font.getFamily() does not work in headless mode
Bundled Droid fonts to fallback in headless mode

(cherry picked from commit 5b523f049e)
2023-10-31 01:25:17 +01:00
Alexey Ushakov
4594d184d7 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-10-31 01:25:17 +01:00
Alexey Ushakov
9d748bac26 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-10-31 01:25:17 +01:00
Alexey Ushakov
8919278afa 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-10-31 01:25:17 +01:00
Alexey Ushakov
4aac565886 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-10-31 01:25:16 +01:00
Alexey Ushakov
383ee8bf1f JRE-29 fontconfig lib crashes CLion on OSX
Disabled fontconfig usage on OSX

(cherry picked from commit 431e14429c)
2023-10-31 01:25:16 +01:00
Vitaly Provodin
6736a0a243 exclude tests spontaneously creating windows during test execution 2023-10-31 01:25:16 +01:00
Alexey Ushakov
ee565e5f04 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-10-31 01:25:16 +01:00
Alexey Ushakov
8e0279f68c Added logging for freetypeScaler via env variable OPENJDK_LOG_FFS=yes
and for screen resolution in freetypeScaler

(cherry picked from commit 091d74a791)
2023-10-31 01:25:16 +01:00
Alexey Ushakov
45bfc6949d JRE-34 IDE Crashes During Startup
Added validation of dpi settings coming from xserver

(cherry picked from commit b1c49c3b27)
2023-10-31 01:25:16 +01:00
Anton Tarasov
f5fd24d4d3 JBR-2031 [mac] jcef deadlocks with a11y on start
(cherry picked from commit 4f44b37f08)
2023-10-31 01:25:16 +01:00
Alexey Ushakov
518432c07c 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-10-31 01:25:16 +01:00
Anton Tarasov
207a3f1afa JBR-2019 provide getWindowHandle method for jcef
(cherry picked from commit 7ae706b629)
2023-10-31 01:25:16 +01:00
Anton Tarasov
97151b537b Comment assertion (originally JRE-965)
The assert line crashes debug hotspot.

(cherry picked from commit a00074a86c)
2023-10-31 01:25:16 +01:00
Anton Tarasov
b4cd544d6e JBR-1976 [jcef] need mouse-transparent window on Windows
(cherry picked from commit b60fac96b4)
2023-10-31 01:25:16 +01:00
Anton Tarasov
7c3bbdd3a4 JBR-1824 export NSWindow::setIgnoresMouseEvents to java internal API
(cherry picked from commit 4399dc382c)
2023-10-31 01:25:16 +01:00
Anton Tarasov
79fca6e8d8 JBR-1802 com/sun/java/accessibility/util/8051626/Bug8051626.java: access denied ("java.lang.RuntimePermission" "getClassLoader")
(cherry picked from commit eae772aca9)
2023-10-31 01:25:16 +01:00
Anton Tarasov
7e28139e6a JBR-1795 Project opened from Welcome screen goes to backgound after loading
(cherry picked from commit 322526458a)
2023-10-31 01:25:16 +01:00
Anton Tarasov
7e3a2b066b JBR-1609 Jupyter Notebook eventually causes IDEA to become unresponsive on Mac OSX
(cherry picked from commit 8ae0be8eb6)
2023-10-31 01:25:16 +01:00
Anton Tarasov
42e3f272a9 JBR-1786 Weird white border for IDE window
(cherry picked from commit 4b09614a0e)
2023-10-31 01:25:15 +01:00
Vyacheslav Moklev
a902c8b886 JBR-1552 Invalid screen bounds in full screen mode
Check is window is not in undecorated state

(cherry picked from commit 5547701e2c)
2023-10-31 01:25:15 +01:00
Vyacheslav Moklev
d40841027b JBR-1509 Client area size is wrong in Borderless mode
Fix client area size

(cherry picked from commit 00d32e58dc)
2023-10-31 01:25:15 +01:00
Anton Tarasov
3aeafbc834 JBR-1770 [windows] frame does not open as maximized
(cherry picked from commit d9dfc3c6c5)
2023-10-31 01:25:15 +01:00
Anton Tarasov
e3092fa2f0 JBR-1693 difficult to input Japanese text with "Fast" Key Repeat
(cherry picked from commit 12de3e287e)
2023-10-31 01:25:15 +01:00
Anton Tarasov
158e689185 JBR-1669 IDE-managed HiDPI mode is broken
(cherry picked from commit 461b0b5cd4)
2023-10-31 01:25:15 +01:00
Anton Tarasov
f6f8ec4182 JBR-1650 propagate custom decoration title bar height to native
(cherry picked from commit f6fc65d014)
2023-10-31 01:25:15 +01:00
Anton Tarasov
00bf9577b1 JBR-1629 Maximized window cut at the right and bottom
(cherry picked from commit 9e768377db)
2023-10-31 01:25:15 +01:00
Anton Tarasov
246f6de83d JBR-1492 Not able to start Intellij Idea 2017.2.5 with modified vmoptions
(cherry picked from commit e7ca6db66b)
2023-10-31 01:25:15 +01:00
Anton Tarasov
ef3c8066ee JBR-1427 pycharm jupyter preview stuck and no response when click on preview.
(cherry picked from commit 1746b04686)
2023-10-31 01:25:15 +01:00
Anton Tarasov
818f5fdefc IDEA-210154 Borderless UI: Top frame of IDEA window is blue
(cherry picked from commit 2dd4163bc4)
2023-10-31 01:25:15 +01:00
Anton Tarasov
a4f4061d53 JBR-1351 Borderless UI: Bold frame around IDEA window appears on non-HiDPI display
(cherry picked from commit 06d35de069)
2023-10-31 01:25:15 +01:00
Anton Tarasov
10337196ac JBR-1313 wrong insets for non-resizable custom-decorated frame
(cherry picked from commit 9179718cb6)
2023-10-31 01:25:15 +01:00
Anton Tarasov
e664b88c1d JBR-1293 do not modify client bounds when custom-decorated frame is set undecorated
(cherry picked from commit cb188edaab)
2023-10-31 01:25:15 +01:00
Anton Tarasov
67af627a2f JBR-1278 allow native border and shadow for custom decoration mode
(cherry picked from commit a879ad5739)
2023-10-31 01:25:15 +01:00
Anton Tarasov
d9314dec53 JRE-1232 forwardport: JRE-1228 support custom frame decoration
(cherry picked from commit d2820524a1)
2023-10-31 01:25:14 +01:00
Anton Tarasov
2876bc5fef JRE-1162 [jdk11] support on-the-fly DPI change on linux
(cherry picked from commit c06c4c69d3)
2023-10-31 01:25:14 +01:00
Anton Tarasov
1fc8e82d86 JRE-1142 [jdk11] hidpi is not detected since Ubuntu 18.04
(cherry picked from commit be4f8c0d9d)
2023-10-31 01:25:14 +01:00
Anton Tarasov
6eaa5757aa JRE-1111 [JDK11] java/beans/Beans/TypoInBeanDescription.java crashes at libawt_xawt.so+0x4a30d
(cherry picked from commit b89e6aed0b)
2023-10-31 01:25:14 +01:00
Anton Tarasov
9d89e2b181 fix JNI_OnUnload definition
(cherry picked from the commit  3571e39071)

(cherry picked from commit 1019d8f0f2)
2023-10-31 01:25:14 +01:00
Anton Tarasov
e97a9f2add JRE-981 IM workaround does not work anymore
forward port of 2d7c29b in JetBrains/jdk8u_jdk

(cherry picked from commit f3ccc53e02)
2023-10-31 01:25:14 +01:00
Anton Tarasov
fe8f987100 JRE-938 [windows] Frame.setMaximizedBounds not hidpi-aware
(cherry picked from commit cc97899923320e1fa17f5e44975c4a0f0ba51014)
(cherry picked from commit ccfe65be7f)
2023-10-31 01:25:14 +01:00
Anton Tarasov
a9a308f436 JRE-907 macOS: add ability to check for scaled display mode
(cherry picked from commit e496262aa1)
2023-10-31 01:25:14 +01:00
Anton Tarasov
4641ebab1b JRE-934 Diff viewer errors are not visible on HiDPI Linux
(cherry picked from commit 641a09dd52)
2023-10-31 01:25:14 +01:00
Anton Tarasov
3ab87dab2b [jdk9] HiDPI scale is not detected on some linux desktops
(cherry picked from commit 9279d80110)
2023-10-31 01:25:14 +01:00
Anton Tarasov
4342ce113b JRE-681 [windows] direct drawing into frame graphics may have wrong translate
(cherry picked from commit 6ea1d45fd1)
2023-10-31 01:25:14 +01:00
Anton Tarasov
8a22e36001 Read org.gnome.desktop.interface/scaling-factor
(cherry picked from commit 277357ae73)
2023-10-31 01:25:14 +01:00
Anton Tarasov
459eef1cc0 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-10-31 01:25:14 +01:00
Anton Tarasov
7422bbb3f5 Do not scale base font in HiDPI mode on Linux
(cherry picked from commit 6fb2c36529)
2023-10-31 01:25:14 +01:00
Anton Tarasov
5914738a44 JRE-772 swing returns incorrect FRC when AA is off
(cherry picked from commit a161897d908aa10da6306c06452c5d6317fed2f0)
(cherry picked from commit 2bf5a7ca5c)
2023-10-31 01:25:14 +01:00
Anton Tarasov
188e318305 JRE-681 [windows] direct drawing into frame graphics may have wrong translate
(cherry picked from commit ab6dee4c1fc453ad3cb5adb69fc243e550d184ae)

(cherry picked from commit 6ea1d45fd1)
2023-10-31 01:25:13 +01:00
Anton Tarasov
af4ce714f9 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-10-31 01:25:13 +01:00
Anton Tarasov
cf7bb57d57 JRE-616 [linux] notify when dpi correction factor is applied to fonts
(cherry picked from commit f57d41f3118bfd773c99ce32d58cfae16931be6a)
(cherry picked from commit 6246abc72f)
2023-10-31 01:25:13 +01:00
Anton Tarasov
7788b16738 JRE-612 [windows] icon in frame title is not dpi-aware
(cherry picked from commit dec04385177a2abb677add909d3b94f94c62a14e)

(cherry picked from commit 38466cbab0)
2023-10-31 01:25:13 +01:00
Anton Tarasov
f20556a984 JRE-604 [fps] frame's client area is one pixel beneath frame's borders
Adopted.

(cherry picked from commit ef2870ee38)
2023-10-31 01:25:13 +01:00
Anton Tarasov
e2721b81fa JRE-596 [windows] popup positioning is broken with JRE-573
Adopted: moved to AwtWindow::Reshape

(cherry picked from commit c5cc28d85d)
2023-10-31 01:25:13 +01:00
Anton Tarasov
6eea73658f 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-10-31 01:25:13 +01:00
Anton Tarasov
1b242e868d JRE-573 [windows] window client area bounds mismatch
Apply only WmEraseBkgnd

(cherry picked from commit afa68f7ad6440303c6417be3f675b1c4644b6014)

(cherry picked from commit 0651b45e13)
2023-10-31 01:25:13 +01:00
Anton Tarasov
f96c2b84e9 JRE-382 Three AWT-tests become hanging starting since master-875
(cherry picked from commit 7d492101db8fcbb3d285fd8e9669f74b0e0fce8f)
(cherry picked from commit b965f85c1b)
2023-10-31 01:25:13 +01:00
Anton Tarasov
e63c3db532 JRE-373 [macos] nativeCreateNSWindow deadlocks with a11y
(cherry picked from commit 72c77a992bbf1b95b82ffc08cb2f4f3bc36b3657)

(cherry picked from commit aa09fa2c85)
2023-10-31 01:25:13 +01:00
Anton Tarasov
2d7d0fb97b IDEA-172422 Popup at the wrong place on the second monitor (new hidpi)
Adopted: moved to AwtWindow::Reshape

(cherry picked from commit 11a0911d65)
2023-10-31 01:25:13 +01:00
Anton Tarasov
fc7c3bcab6 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-10-31 01:25:13 +01:00
Anton Tarasov
3141f7f7e1 JRE-269 JLabel doesn't scale <code>text</code> HTML fragments.
(cherry picked from commit 9ef72b6c3a477e4225f9b98e30fa9190613520e4)
(cherry picked from commit c17bc728ee)
2023-10-31 01:25:13 +01:00
Anton Tarasov
c5112549e4 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-10-31 01:25:13 +01:00
Anton Tarasov
ad9e7c9cbe 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-10-31 01:25:12 +01:00
Anton Tarasov
06ca81522f 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-10-31 01:25:12 +01:00
Anton Tarasov
8ed54d0b53 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-10-31 01:25:12 +01:00
Anton Tarasov
96fcd3f95f 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-10-31 01:25:12 +01:00
Anton Tarasov
d1cc723a49 JRE-119 [ask if ui scale is enabled natively]
(cherry picked from commit 801f45875fd8699edcbda5896210cec191062261)
(cherry picked from commit 20edebdefa)
2023-10-31 01:25:12 +01:00
Anton Tarasov
860b0ebf60 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-10-31 01:25:12 +01:00
Anton Tarasov
af897c8d18 IDEA-148854: AppCode crashes randomly every 15 mins or so
(cherry picked from commit 02f9a5fbb4924ff67c8a04c15e490acfcc750003)
(cherry picked from commit b8f4b4a9ed)
2023-10-31 01:25:12 +01:00
Vitaly Provodin
dc77663ce5 updated JTreg exclude list 2023-10-31 01:25:12 +01:00
Alexey Ushakov
6367d2b698 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-10-31 01:25:12 +01:00
Vitaly Provodin
845154c351 JBR-3398 remove the Experimental AOT and JIT Compiler (JEP 410) 2023-10-31 01:25:12 +01:00
Alexey Ushakov
3a59ea43e3 JBR-2807: JDK15: update modules.list to resolve jbr build failure
removed nashorn modules
2023-10-31 01:25:12 +01:00
Vitaly Provodin
2552b8b017 JBR-2130 remove module jdk.pack 2023-10-31 01:25:12 +01:00
Vitaly Provodin
347f003086 JBR-4810 add VERSION_PATCH into version number string 2023-10-31 01:25:12 +01:00
Vitaly Provodin
65ce16eb15 JBR-4754 make root directory with the same name as archive name 2023-10-31 01:25:12 +01:00
Nikita Provotorov
60e50c8dee JBR-2074 Windows 10 AArch64 support: make the build scripts use custom build-jdk. 2023-10-31 01:25:12 +01:00
Nikita Provotorov
0b2ffb1010 JBR-2074 Windows 10 AArch64 support: build fixes. 2023-10-31 01:25:12 +01:00
Vitaly Provodin
8669a4b7a1 JBR-4567 replace comma with point in RenderPerf scores 2023-10-31 01:25:11 +01:00
Vitaly Provodin
ee4e414925 JBR-4520 set file permissions after signing 2023-10-31 01:25:11 +01:00
Vitaly Provodin
0eba7900a8 JBR-4512 windows: include pdb-files into jbrsdk 2023-10-31 01:25:11 +01:00
Vitaly Provodin
2ed7a02d09 JBR-4087 add version info into the name of root directory in JBR tar.gz-distributions 2023-10-31 01:25:11 +01:00
Vitaly Provodin
3cad875538 JBR-4511 remove --disable options from configure mac-aarch64 builds & unify configure for x64 and aarch64 2023-10-31 01:25:11 +01:00
Maxim Kartashev
be7b3987c7 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-10-31 01:25:11 +01:00
Vladislav Rassokhin
11eddbbd5e JBR-4451 Make bash scripts safer 2023-10-31 01:25:11 +01:00
Vitaly Provodin
29fab5ffe7 JBR-4487 enable Linux 32 builds 2023-10-31 01:25:11 +01:00
Vitaly Provodin
3382014563 JBR-4458 enable JBR17 windows 32 bit builds 2023-10-31 01:25:11 +01:00
Vitaly Provodin
a43fea0dd1 JBR-4272 generate and save debug symbols for JBR on macos/linux 2023-10-31 01:25:11 +01:00
Vitaly Provodin
fe38133278 JBR-4053 integrate DCEVM patches as usual commits 2023-10-31 01:25:11 +01:00
Vitaly Provodin
a72890f304 JBR-4370 create a test checking all JBR artifacts exist - add exit code 2023-10-31 01:25:11 +01:00
Nikita Provotorov
a994d1e3de JBR-2074 Windows 10 AArch64 support: add build and pack scripts. 2023-10-31 01:25:11 +01:00
Vladimir Kempik
8c4488b8f5 JBR-4452: Update crash report message with JBR youtrack link
instead of bugreport.java.com
2023-10-31 01:25:11 +01:00
Vitaly Provodin
3112e9711c JBR-4437 add sources to JBRSDK distributions for Windows and Linux 2023-10-31 01:25:11 +01:00
Vitaly Provodin
d2ced7d806 JBR-4437 add sources to JBRSDK distributions 2023-10-31 01:25:10 +01:00
Anton Tarasov
23cefee97d JBR-3906 JBR for Linux aarch64 with JCEF is missing, is there any support plan? 2023-10-31 01:25:10 +01:00
Vitaly Provodin
83e3b89123 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-10-31 01:25:10 +01:00
Vladimir Kempik
c761a2efae JBR-4283: Provide native JBR builds for alpine Linux-aarch64 2023-10-31 01:25:10 +01:00
Vladimir Kempik
37ca8bad39 JBR-4242:Provide native JBR builds for alpine Linux 2023-10-31 01:25:10 +01:00
Maxim Kartashev
0fea870666 JBR-3917 Problem using windows certificate store (trustStoreType=Windows-ROOT not recognized) 2023-10-31 01:25:10 +01:00
Maxim Kartashev
258c398e62 JBR-4145 Make builds independent from build directory
Supplied the --disable-absolute-path-in-output option to the configure script
when building JBR.
2023-10-31 01:25:10 +01:00
Vitaly Provodin
0185cf592e JBR-4154 extract version info from sources & JBR-4099 make test-image on jbrsdk_jcef step 2023-10-31 01:25:10 +01:00
Vitaly Provodin
fe1a6dee59 JBR-4067 fix misprint with applying obsolete exclude_jcef_module.patch 2023-10-31 01:25:10 +01:00
Vitaly Provodin
4a9a78e246 JBR-3756 remove JNF from mac-aarch64 binaries 2023-10-31 01:25:10 +01:00
Vitaly Provodin
fdbdf1fa02 JBR-4082 create JBR & JBRSDK installer packages 2023-10-31 01:25:10 +01:00
Maxim Kartashev
1d5384d92d JBR-4061 Specify build user for the build 2023-10-31 01:25:10 +01:00
Maxim Kartashev
7b56de374b 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-10-31 01:25:10 +01:00
Maxim Kartashev
b1bd71042f 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-10-31 01:25:10 +01:00
Maxim Kartashev
5b904a54ac JBR-4059 Create Dockerfile for building on AArch64 Linux 2023-10-31 01:25:10 +01:00
Vitaly Provodin
4bd1a52119 JBR-3905 add incremental JBR building 2023-10-31 01:25:09 +01:00
Vitaly Provodin
1d4ef0c4a7 JBR-3904 fix the image directory name of macos builds 2023-10-31 01:25:09 +01:00
Vitaly Provodin
d3472d9c88 configure BOOT_JDK to use JDK 17 2023-10-31 01:25:09 +01:00
Anton Tarasov
df5b2c442b JBR-3655 jbr-dev build fails to find jcef modules on Windows 2023-10-31 01:25:09 +01:00
Maxim Kartashev
da6ec3f2af JBR-3645 Tool to support keeping JBR in sync with OpenJDK 2023-10-31 01:25:09 +01:00
Vitaly Provodin
f059eb1fcf JBR-3639 add jbrsdk tarballs for dcevm, jcef builds 2023-10-31 01:25:09 +01:00
Anton Tarasov
dbd46ba098 JBR-3627 include jmods in jbrsdk bundle for jbr-dev 2023-10-31 01:25:09 +01:00
Vitaly.Provodin
b7914bca77 add dockerfile for x86
(cherry picked from commit 8fb2341ea8)
2023-10-31 01:25:09 +01:00
Vitaly Provodin
76e8e6091b JBR-1505 add jdk.jcmd module into JBR
(cherry picked from commit c40b9c8b9e)
2023-10-31 01:25:09 +01:00
Vitaly Provodin
d09d73364b JBR-2957 notarize JBR and JBRSDK as APPL
(cherry picked from commit 0e7f9ce4ca)
2023-10-31 01:25:09 +01:00
Vitaly Provodin
28fa96a0eb JBR-667 add shenandoahgc feature
(cherry picked from commit e15dad04)
2023-10-31 01:25:09 +01:00
Vitaly Provodin
cb0c7ff286 configure BOOT_JDK to use JDK 16 2023-10-31 01:25:09 +01:00
Anton Tarasov
2a455916e5 Add build.gradle 2023-10-31 01:25:09 +01:00
Vitaly Provodin
0d56f11f34 JBR-3401 enable macos-aarhc64 builds 2023-10-31 01:25:09 +01:00
Vitaly Provodin
e8bc978d81 JBR-3305 remove the option --disable-warnings-as-errors from configure 2023-10-31 01:25:09 +01:00
Vitaly Provodin
98e3ab0df1 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-10-31 01:25:08 +01:00
Vitaly Provodin
a0c7de1c0a JBR-2912 add JBR 15 builds with DCEVM 2023-10-31 01:25:08 +01:00
Vitaly Provodin
bea486114c JBR-2864 initial commit of DCEVM patches reworked for 15 2023-10-31 01:25:08 +01:00
Vitaly Provodin
0f97a72e11 JBR-2812 remove --with-import-modules from configure for aarch64 2023-10-31 01:25:08 +01:00
Anton Tarasov
b79ee5c4de JBR-2812 bundle jcef in jmod format instead of modular-sdk
Build test-image with non-jcef build target
2023-10-31 01:25:08 +01:00
Vitaly Provodin
0da3f7cf26 JBR-2787 fix copying jcef files into jbr/jbrsdk binaries 2023-10-31 01:25:08 +01:00
Vitaly Provodin
4fd87cb2fb 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-10-31 01:25:08 +01:00
Anton Tarasov
20d2f69c58 JBR-2016 add jcef module and export packages to it
(cherry picked from commit cf997f71c6)
2023-10-31 01:25:08 +01:00
Vitaly Provodin
cfe324a8d5 JBR-2473 modify building scripts to add dcevm clauses, add git config to docker image
(cherry picked from commit 2620c62848)
2023-10-31 01:25:08 +01:00
Vitaly Provodin
414e3c1bdc JBR-2395 eliminate JavaFX from JBR 2023-10-31 01:25:08 +01:00
Vitaly Provodin
44623c78a7 JBR-2409 fix prameters for configure 2023-10-31 01:25:08 +01:00
Vitaly Provodin
cd1b2af40a JDK14: exclude dependencies on jcef in x86, fastdebug builds 2023-10-31 01:25:08 +01:00
Vitaly Provodin
3555dac54b JBR-2396 fix CONF names 2023-10-31 01:25:08 +01:00
Vitaly Provodin
573402687f JBR-2394 replace --disable-debug-symbols with --with-native-debug-symbols=none 2023-10-31 01:25:08 +01:00
Vitaly Provodin
1ac72f039d add exec permitions to configure 2023-10-31 01:25:08 +01:00
Vitaly Provodin
12f5293d59 split checkout before building JBR+JFX or JBR+JCEF on two separate commands 2023-10-31 01:25:08 +01:00
Vitaly Provodin
96d311c872 change BOOT_JDK, fix target names 2023-10-31 01:25:07 +01:00
Vitaly Provodin
cd0a7324fa JBR-2291 add vendor info into bundles 2023-10-31 01:25:07 +01:00
Vitaly Provodin
d8e5da1579 JBR-2324 address new layout in mac jcef 80.0.4+g74f7b0c+chromium-80.0.3987.122 2023-10-31 01:25:07 +01:00
Vitaly Provodin
f986f4423c JBR-2320 add jdk.attach module into JBR 2023-10-31 01:25:07 +01:00
Vitaly Provodin
50a487139a JBR-2217 provide JCEF-only (no JavaFX) bundle for master/202 branches 2023-10-31 01:25:07 +01:00
Vitaly Provodin
10906281f9 JBR-2212 add scripts for linux_x86, linux_aarch64, linux_x64_fastdebug, osx_fastdebug, windows_x86 2023-10-31 01:25:07 +01:00
Vitaly Provodin
e2a46c67a2 JBR-1643 fix intermittent fialures of Windows builds at make/Init.gmk:304
combine images and test-image into one make invocation
2023-10-31 01:25:07 +01:00
Vitaly Provodin
3462fb6ce9 JBR-2181 create two separate JBR bundles with JFX and JFX+JCEF 2023-10-31 01:25:07 +01:00
Vitaly Provodin
ba4d84f9a6 JBR-2148 modify signapp&build scripts to match to the new layout 2023-10-31 01:25:07 +01:00
Vitaly Provodin
1a9ae971fa JBR-2084 modify scripts to sign Contents/MacOS/libjli.dylib as a a normal file 2023-10-31 01:25:07 +01:00
Vitaly Provodin
69c747501f JBR-1821 notarize JBR bundles as a standalone app 2023-10-31 01:25:07 +01:00
Vitaly Provodin
7ae3d9f095 JBR-2162 move building scripts from TC to JBR repo 2023-10-31 01:25:07 +01:00
Anton Tarasov
5f4bc6afde JBR-2016 add jcef module and export some sun.* packages to it 2023-10-31 01:25:07 +01:00
Vitaly Provodin
c0cf789675 JBR-2014 add jdk.hotspot.agent module to jbr 2023-10-31 01:25:07 +01:00
Vitaly Provodin
d000e5cf8c JBR-1286 add jdk.compiler into JBR 2023-10-31 01:25:07 +01:00
Vitaly Provodin
2acb9ff396 JBR-1199 add JBR modules list for jlink 2023-10-31 01:25:06 +01:00
Vitaly Provodin
7dfc5b6578 Update docker script to create jdk15 build env 2023-10-31 01:25:06 +01:00
Vitaly Provodin
2a37d5e524 JBR-3045 add pressing ESC to close the dialog after test completion
(cherry picked from commit 44d8b28b0b)
2023-10-31 01:25:06 +01:00
Vitaly Provodin
da79b1a9b0 JBR-3040 press the button END at the beggining in order to avoid text selection
(cherry picked from commit 1c2bf33db2)
2023-10-31 01:25:06 +01:00
Vitaly.Provodin
16f5f542f6 updated JTreg exclude list 2023-10-31 01:25:06 +01:00
Kimura Yukihiro
d051f22284 8318410: jdk/java/lang/instrument/BootClassPath/BootClassPathTest.sh fails on Japanese Windows
Reviewed-by: sspitsyn, kevinw
2023-10-30 23:26:16 +00:00
Alexander Matveev
1ca2cfafdd 8310933: Copying from runtime image to application image should not follow symlinks
Reviewed-by: asemenyuk
2023-10-30 21:09:17 +00:00
Brian Burkhalter
d3534b08b5 8318677: (ch) Add implNote about minBufferCap to main variant of Channels.newWriter
Reviewed-by: alanb, rriggs
2023-10-30 18:28:01 +00:00
Brian Burkhalter
864a876ebf 8313621: test/jdk/jdk/internal/math/FloatingDecimal/TestFloatingDecimal should use RandomFactory
Reviewed-by: rgiulietti
2023-10-30 18:27:50 +00:00
Erik Österlund
4679e9aa00 8310239: Add missing cross modifying fence in nmethod entry barriers
Reviewed-by: aboldtch, dlong, aph
2023-10-30 13:59:08 +00:00
Matthias Baesken
b9983c7229 8318961: increase javacserver connection timeout values and max retry attempts
Reviewed-by: clanger, erikj
2023-10-30 12:56:15 +00:00
Roberto Castañeda Lozano
a5818972c1 8317507: C2 compilation fails with "Exceeded _node_regs array"
Co-authored-by: Tobias Hartmann <thartmann@openjdk.org>
Reviewed-by: thartmann, shade, dlong
2023-10-30 12:54:03 +00:00
Markus Grönlund
c4c66aba93 8316271: JfrJvmtiAgent::retransformClasses failed: JVMTI_ERROR_FAILS_VERIFICATION
Reviewed-by: egahlin
2023-10-30 11:51:31 +00:00
Matthias Baesken
88b9cdae8f 8318981: compiler/compilercontrol/TestConflictInlineCommands.java fails intermittent with 'disallowed by CompileCommand' missing from stdout/stderr
Reviewed-by: mdoerr, thartmann
2023-10-30 11:14:12 +00:00
Aggelos Biboudis
c9d23c3940 8315532: Compiler Implementation for Unnamed Variables & Patterns
8317221: Implementation for javax.lang.model for Unnamed Variables & Patterns

Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Co-authored-by: Gavin Bierman <gbierman@openjdk.org>
Co-authored-by: Brian Goetz <briangoetz@openjdk.org>
Co-authored-by: Joe Darcy <darcy@openjdk.org>
Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Reviewed-by: jlahoda, mcimadamore
2023-10-30 10:28:48 +00:00
Daniel Jeliński
3934127b08 8318709: Improve System.nanoTime performance on Windows
Reviewed-by: ccleary, dholmes
2023-10-30 07:54:55 +00:00
Emanuel Peter
83eb20651f 8318889: C2: add bailout after assert Bad graph detected in build_loop_late
Reviewed-by: shade, thartmann
2023-10-30 07:17:30 +00:00
Tim Prinzing
1183b221c2 8310978: JFR events SocketReadEvent/SocketWriteEvent for Socket adaptor ops
Reviewed-by: dfuchs, alanb
2023-10-30 06:04:17 +00:00
Gui Cao
988e1dfe6e 8318953: RISC-V: Small refactoring for MacroAssembler::test_bit
Reviewed-by: fyang, fjiang, luhenry
2023-10-30 00:31:08 +00:00
Daniel D. Daugherty
ce0ca47641 8319067: ProblemList serviceability/AsyncGetCallTrace/MyPackage/ASGCTBaseTest.java on linux-aarch64 in Xcomp mode
Reviewed-by: jpai
2023-10-29 14:16:26 +00:00
Feilong Jiang
db3402577a 8318827: RISC-V: Improve readability of fclass result testing
Reviewed-by: vkempik, luhenry, fyang
2023-10-29 10:15:41 +00:00
Hamlin Li
1ec0d02717 8318225: RISC-V: C2 UModI
8318226: RISC-V: C2 UModL

Reviewed-by: luhenry, rehn, fyang
2023-10-28 09:12:51 +00:00
Joe Wang
96bec3584c 8316996: Catalog API Enhancement: add a factory method
Reviewed-by: naoto, lancea
2023-10-28 03:38:30 +00:00
Sergey Bylokhov
d2260146c9 8318850: Duplicate code in the LCMSImageLayout
Reviewed-by: prr
2023-10-27 18:21:18 +00:00
Daniel Jeliński
c593f8bf59 8318091: Remove empty initIDs functions
Reviewed-by: prr, aivanov
2023-10-27 16:09:27 +00:00
Claes Redestad
4f9f1955ab 8318753: hsdis binutils may place libs in lib64
Reviewed-by: rehn, djelinski, ihse
2023-10-27 14:40:30 +00:00
Maurizio Cimadamore
2915d74a10 8318837: javac generates wrong ldc instruction for dynamic constant loads
Reviewed-by: vromero, jlahoda
2023-10-27 13:47:24 +00:00
Damon Fenacci
ddd071617e 8317661: [REDO] store/load order not preserved when handling memory pool due to weakly ordered memory architecture of aarch64
Reviewed-by: dholmes, aph
2023-10-27 12:56:03 +00:00
Volker Simonis
141dae8b76 8318811: Compiler directives parser swallows a character after line comments
Reviewed-by: shade, phh
2023-10-27 12:10:55 +00:00
Doug Lea
667cca9d7a 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted"
Reviewed-by: alanb
2023-10-27 10:08:59 +00:00
Leo Korinth
b9dcd4b741 8318964: Fix build failures caused by 8315097
Reviewed-by: aboldtch, rcastanedalo
2023-10-27 09:51:22 +00:00
Leo Korinth
d52a995f35 8315097: Rename createJavaProcessBuilder
Reviewed-by: lmesnik, dholmes, rriggs, stefank
2023-10-27 08:47:26 +00:00
Christian Stein
957703b1f9 8307168: Inconsistent validation and handling of --system flag arguments
Reviewed-by: jjg
2023-10-27 08:37:19 +00:00
William Kemper
5b5fd3694a 8316632: Shenandoah: Raise OOME when gc threshold is exceeded
Reviewed-by: kdnilsen, ysr, shade
2023-10-27 08:18:38 +00:00
Thomas Stuefe
abad0408e8 8313781: Add regression tests for large page logging and user-facing error messages
Reviewed-by: sjohanss, dholmes
2023-10-27 06:55:25 +00:00
Weijun Wang
9123961aaa 8318096: Introduce AsymmetricKey interface with a getParams method
Reviewed-by: darcy, mullan, ascarpino
2023-10-26 22:43:06 +00:00
Brian Burkhalter
4a142c3b08 8274122: java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11
Reviewed-by: lancea, djelinski, rriggs
2023-10-26 21:06:01 +00:00
Aleksei Efimov
77fe0fd9e6 8272215: Add InetAddress methods for parsing IP address literals
Reviewed-by: dfuchs, michaelm
2023-10-26 18:24:42 +00:00
Weijun Wang
a9b31b587c 8318689: jtreg is confused when folder name is the same as the test name
Reviewed-by: mullan
2023-10-26 16:40:33 +00:00
Andrew Haley
e1a458ee64 8318834: s390x: Debug builds are missing debug helpers
Reviewed-by: shade, lucy
2023-10-26 16:28:28 +00:00
Hamlin Li
40a3c35aa5 8318723: RISC-V: C2 UDivL
8318224: RISC-V: C2 UDivI

Reviewed-by: fyang, luhenry, aph
2023-10-26 16:10:16 +00:00
Jorn Vernee
3885dc5b9a 8318737: Fallback linker passes bad JNI handle
Reviewed-by: alanb
2023-10-26 15:54:02 +00:00
Johan Sjölen
9864951dce 8318447: Move NMT source code to own subdirectory
Reviewed-by: stefank, dholmes, stuefe
2023-10-26 14:03:49 +00:00
Aleksey Shipilev
744e089310 8318700: MacOS Zero cannot run gtests due to wrong JVM path
Reviewed-by: dholmes
2023-10-26 12:34:45 +00:00
Albert Mingkun Yang
ec1bf23d01 8318801: Parallel: Remove unused verify_all_young_refs_precise
Reviewed-by: tschatzl
2023-10-26 10:52:50 +00:00
Hamlin Li
3cea892bd4 8318805: RISC-V: Wrong comments instructions cost in riscv.ad
Reviewed-by: luhenry, fyang
2023-10-26 09:46:42 +00:00
Markus Grönlund
bc1ba24ca5 8316437: JFR: assert(!tl->has_java_buffer()) failed: invariant
Reviewed-by: egahlin
2023-10-26 09:44:53 +00:00
Daniel Jeliński
970cd20204 8318788: java/net/Socks/SocksSocketProxySelectorTest.java fails on machines with no IPv6 link-local addresses
Reviewed-by: jpai, dfuchs, mbaesken
2023-10-26 08:49:50 +00:00
Goetz Lindenmaier
37c40a11a7 8318705: [macos] ProblemList java/rmi/registry/multipleRegistries/MultipleRegistries.java
Reviewed-by: lucy
2023-10-26 07:58:05 +00:00
Daniel Jeliński
723db2dc86 8305321: Remove unused exports in java.desktop
Reviewed-by: aivanov, prr
2023-10-26 06:13:02 +00:00
Zhengyu Gu
811b436e5d 8318720: G1: Memory leak in G1CodeRootSet after JDK-8315503
Reviewed-by: tschatzl
2023-10-25 23:47:46 +00:00
Daniel D. Daugherty
a542f7398d 8318843: ProblemList java/lang/management/MemoryMXBean/CollectionUsageThreshold.java in Xcomp
Reviewed-by: lmesnik
2023-10-25 21:14:14 +00:00
Frederic Thevenet
d96f38b80c 8317510: Change Windows debug symbol files naming to avoid losing info when an executable and a library share the same name
Reviewed-by: ihse, erikj
2023-10-25 17:30:21 +00:00
Justin Lu
10427c023a 8318613: ChoiceFormat patterns are not well tested
Reviewed-by: naoto
2023-10-25 17:12:55 +00:00
Justin Lu
ca3bdfc0c7 8318186: ChoiceFormat inconsistency between applyPattern() and setChoices()
Reviewed-by: naoto
2023-10-25 17:12:37 +00:00
Naoto Sato
a5208870e1 8318487: Specification of the ListFormat.equals() method can be improved
Reviewed-by: joehw, rriggs, lancea, iris
2023-10-25 16:50:31 +00:00
Markus Grönlund
cf4ede0e54 8317360: Missing null checks in JfrCheckpointManager and JfrStringPool initialization routines
Reviewed-by: shade, egahlin
2023-10-25 16:38:13 +00:00
Hamlin Li
9e98ee6726 8318735: RISC-V: Enable related hotspot tests run on riscv
Reviewed-by: fyang, luhenry
2023-10-25 15:37:42 +00:00
Elif Aslan
29d462a072 8318727: Enable parallelism in vmTestbase/vm/gc/concurrent tests
Reviewed-by: shade, lmesnik
2023-10-25 15:23:13 +00:00
Elif Aslan
43f31d7385 8318607: Enable parallelism in vmTestbase/nsk/stress/jni tests
Reviewed-by: lmesnik, shade
2023-10-25 15:01:11 +00:00
Elif Aslan
cee44a6255 8318608: Enable parallelism in vmTestbase/nsk/stress/threads tests
Reviewed-by: lmesnik, shade
2023-10-25 15:00:44 +00:00
Roland Westrelin
b026d0b480 8312980: C2: "malformed control flow" created during incremental inlining
Co-authored-by: Emanuel Peter <epeter@openjdk.org>
Reviewed-by: thartmann, epeter
2023-10-25 13:32:56 +00:00
Alexey Ivanov
3abd772672 8316017: Refactor timeout handler in PassFailJFrame
Reviewed-by: prr
2023-10-25 13:25:34 +00:00
Frederic Thevenet
202c0137b8 8318669: Target OS detection in 'test-prebuilt' makefile target is incorrect when running on MSYS2
Reviewed-by: ihse, erikj
2023-10-25 12:58:01 +00:00
Alexey Ivanov
c587211bf8 8316003: Update FileChooserSymLinkTest.java to HTML instructions
Reviewed-by: prr
2023-10-25 11:33:47 +00:00
Alexey Ivanov
42b9ac8a07 8294156: Allow PassFailJFrame.Builder to create test UI
Reviewed-by: azvegint, prr
2023-10-25 11:31:44 +00:00
Alexey Ivanov
14090ef603 8294158: HTML formatting for PassFailJFrame instructions
Reviewed-by: azvegint, prr
2023-10-25 11:17:00 +00:00
Albert Mingkun Yang
d2d1592dd9 8318713: G1: Use more accurate age in predict_eden_copy_time_ms
Reviewed-by: tschatzl, iwalulya
2023-10-25 08:43:54 +00:00
Zixian Cai
c3cdfe2a32 8318692: Add instructions for creating Ubuntu-based sysroot for cross compilation
Reviewed-by: erikj, shade
2023-10-25 08:33:10 +00:00
Aleksey Shipilev
ba7d08b819 8316961: Fallback implementations for 64-bit Atomic::{add,xchg} on 32-bit platforms
Reviewed-by: eosterlund, dholmes, kbarrett, simonis
2023-10-25 08:29:58 +00:00
Prasanta Sadhukhan
d7205e690f 8318102: macos10.14 check in CSystemColors can be removed.
Reviewed-by: prr, aivanov
2023-10-25 07:22:04 +00:00
Jayathirth D V
5ce718eb17 8318100: Remove redundant check for Metal support
Reviewed-by: prr, dnguyen
2023-10-25 04:01:59 +00:00
Alexander Matveev
f1dfdc1a79 8311877: [macos] Add CLI options to provide signing identity directly to codesign and productbuild
Reviewed-by: asemenyuk
2023-10-24 21:41:20 +00:00
Eamonn McManus
9c819fd3b7 8318051: Duration.between uses exceptions for control flow
Reviewed-by: rriggs
2023-10-24 18:32:33 +00:00
Weijun Wang
1ddf826aea 8316964: Security tools should not call System.exit
Reviewed-by: valeriep
2023-10-24 18:32:01 +00:00
vamsi-parasa
1f2a80b78a 8318306: java/util/Arrays/Sorting.java fails with "Array is not sorted at 8228-th position: 8251.0 and 8153.0"
Reviewed-by: thartmann, jbhateja
2023-10-24 18:31:33 +00:00
Naoto Sato
116503754c 8318569: Add getter methods for Locale and Patterns in ListFormat
Reviewed-by: joehw, rriggs, iris, mli
2023-10-24 16:54:57 +00:00
Thomas Schatzl
6f352740cb 8318702: G1: Fix nonstandard indentation in g1HeapTransition.cpp
Reviewed-by: iwalulya
2023-10-24 14:49:06 +00:00
Vicente Romero
e2720987b9 8318160: javac does not reject private method reference with type-variable receiver
Reviewed-by: mcimadamore
2023-10-24 14:45:10 +00:00
Zixian Cai
54c613acd7 8318693: Fix rendering for code blocks nested under list items in building.md
Reviewed-by: erikj, ccleary
2023-10-24 14:36:52 +00:00
Claes Redestad
e67550cfec 8318509: x86 count_positives intrinsic broken for -XX:AVX3Threshold=0
Reviewed-by: thartmann, jbhateja, epeter
2023-10-24 13:32:41 +00:00
Doug Simon
8879c78d62 8317689: [JVMCI] include error message when CreateJavaVM in libgraal fails
Reviewed-by: phofer, thartmann, never
2023-10-24 13:32:26 +00:00
Hamlin Li
f9795d0d09 8318222: RISC-V: C2 CmpU3
8318223: RISC-V: C2 CmpUL3

Reviewed-by: rehn, fyang
2023-10-24 13:17:28 +00:00
Jorn Vernee
d1077d6f14 8316046: x64 platforms unecessarily save xmm16-31 when UseAVX >= 3
Reviewed-by: mcimadamore, djelinski
2023-10-24 12:33:59 +00:00
Leo Korinth
21d8a4725f 8318701: Fix copyright year
Reviewed-by: egahlin
2023-10-24 12:31:59 +00:00
Varada M
d4b761242d 8318240: [AIX] Cleaners.java test failure
Reviewed-by: mbaesken, asteiner
2023-10-24 12:24:04 +00:00
Jan Lahoda
bf1a14e367 8316470: Incorrect error location for "invalid permits clause" depending on file order
Reviewed-by: vromero
2023-10-24 12:18:33 +00:00
Viktor Klang
5224e979a1 8293713: java/net/httpclient/BufferingSubscriberTest.java fails in timeout, blocked in submission publisher
Co-authored-by: Jaikiran Pai <jpai@openjdk.org>
Reviewed-by: alanb
2023-10-24 10:38:58 +00:00
Raffaello Giulietti
9bfa082970 8318646: Integer#parseInt("") throws empty NumberFormatException message
Reviewed-by: redestad, alanb, bpb, darcy, uschindler
2023-10-24 10:20:26 +00:00
Aleksey Shipilev
3f446c5156 8318528: Rename TestUnstructuredLocking test
Reviewed-by: phh, dholmes
2023-10-24 10:12:44 +00:00
Johan Sjölen
0baa9ecd76 8318474: Fix memory reporter for thread_count
Reviewed-by: mbaesken, azafari
2023-10-24 10:08:21 +00:00
Evgeny Nikitin
4a16d111b1 8318455: Fix the compiler/sharedstubs/SharedTrampolineTest.java and SharedStubToInterpTest.java
Reviewed-by: thartmann, shade, eastigeevich
2023-10-24 09:16:10 +00:00
Martin Doerr
a644670cc6 8318609: Upcall stubs should be smaller
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Reviewed-by: rrich, jvernee
2023-10-24 09:09:33 +00:00
Gergö Barany
e6f23a90d4 8315024: Vector API FP reduction tests should not test for exact equality
Reviewed-by: epeter, thartmann
2023-10-24 08:58:15 +00:00
Pavel Rappo
fd332da1c8 8317289: javadoc fails with -sourcepath if module-info.java contains import statements
Reviewed-by: jlahoda
2023-10-24 08:46:10 +00:00
Matthias Baesken
6d3cb459dc 8318591: avoid leaks in loadlib_aix.cpp reload_table()
Reviewed-by: mdoerr, lucy
2023-10-24 07:34:05 +00:00
Matthias Baesken
cb383c05b2 8318587: refresh libraries cache on AIX in print_vm_info
Reviewed-by: mdoerr, lucy, stuefe
2023-10-24 07:09:44 +00:00
Richard Reingruber
4bfe226870 8310031: Parallel: Implement better work distribution for large object arrays in old gen
Co-authored-by: Albert Mingkun Yang <ayang@openjdk.org>
Reviewed-by: tschatzl, ayang
2023-10-24 07:05:56 +00:00
Ioi Lam
08f79148c6 8305753: Allow JIT compilation for -Xshare:dump
Reviewed-by: dholmes, matsaave, ccheung
2023-10-24 06:34:50 +00:00
Daniel Jeliński
728b858c78 8318130: SocksSocketImpl needlessly encodes hostname for IPv6 addresses
Reviewed-by: dfuchs, jpai, aefimov, michaelm
2023-10-24 05:36:43 +00:00
Jie Fu
eb5916729d 8318691: runtime/CompressedOops/CompressedClassPointersEncodingScheme.java fails with release VMs
Reviewed-by: ccheung
2023-10-24 02:57:47 +00:00
Joe Darcy
1b150117fd 8318476: Add resource consumption note to BigInteger and BigDecimal
Reviewed-by: alanb, bpb
2023-10-23 22:08:12 +00:00
Thomas Stuefe
5ba9705d60 8318485: Narrow klass shift should be zero if encoding range extends to 0x1_0000_0000
Reviewed-by: ccheung, iklam
2023-10-23 21:10:52 +00:00
Sean Coffey
8d9a4b43f4 8317678: Fix up hashCode() for ZipFile.Source.Key
Reviewed-by: lancea, alanb, jpai
2023-10-23 17:12:41 +00:00
Erik Gahlin
69c0ae23a3 8318124: JFR: Rewrite instrumentation to use Class-File API
Reviewed-by: mgronlun
2023-10-23 16:00:14 +00:00
Thomas Stuefe
c1aeac79ba 8318445: More broken bailout chains in C2
Reviewed-by: kvn, epeter
2023-10-23 15:54:04 +00:00
Ramkumar Sunderbabu
d888b26783 8318071: IgnoreUnrecognizedVMOptions flag still causes failure in ArchiveHeapTestClass
Reviewed-by: dholmes, shade
2023-10-23 15:10:22 +00:00
Michal Sobierski
bea2d48696 8312475: org.jline.util.PumpReader signed byte problem
Reviewed-by: shade, jlahoda
2023-10-23 14:31:12 +00:00
Thomas Schatzl
9f767aa44b 8318109: Writing JFR records while a CHT has taken its lock asserts in rank checking
Reviewed-by: iwalulya, mli
2023-10-23 14:00:07 +00:00
Doug Simon
bd22d2381f 8318027: Support alternative name to jdk.internal.vm.compiler
Reviewed-by: erikj, ihse, kvn, alanb, mli
2023-10-23 13:15:31 +00:00
Robbin Ehn
c2efd77412 8295795: hsdis does not build with binutils 2.39+
Reviewed-by: ihse, djelinski
2023-10-23 13:12:52 +00:00
Magnus Ihse Bursie
99de9bb83f 8317807: JAVA_FLAGS removed from jtreg running in JDK-8317039
Reviewed-by: erikj
2023-10-23 11:26:39 +00:00
Matthew Donovan
704c6ea16c 8303525: Refactor/cleanup open/test/jdk/javax/rmi/ssl/SSLSocketParametersTest.java
Reviewed-by: smarks, msheppar
2023-10-23 11:15:32 +00:00
Albert Mingkun Yang
7c0a8288b2 8318649: G1: Remove unimplemented HeapRegionRemSet::add_code_root_locked
Reviewed-by: tschatzl
2023-10-23 11:04:29 +00:00
Thomas Stuefe
ff5c5b6541 8318643: +UseTransparentHugePages must enable +UseLargePages
Reviewed-by: sjohanss
2023-10-23 09:59:43 +00:00
Pavel Rappo
fc29a2e152 8318082: ConcurrentModificationException from IndexWriter
Reviewed-by: jjg
2023-10-23 09:24:51 +00:00
Thomas Schatzl
729f4c5d14 8318507: G1: Improve remset clearing for humongous candidates
Reviewed-by: iwalulya, ayang, mli
2023-10-23 08:19:50 +00:00
Thomas Schatzl
4eab39d941 8318585: Rename CodeCache::UnloadingScope to UnlinkingScope
Reviewed-by: ayang, iwalulya, mli
2023-10-23 07:35:11 +00:00
Per Minborg
ffadd63575 8317868: Add @sealedGraph to MethodHandleDesc and descendants
Reviewed-by: jvernee, mli
2023-10-23 06:16:27 +00:00
Ioi Lam
ecd25e7d6f 8318484: Initial version of cdsConfig.hpp
Reviewed-by: dholmes, ccheung, sspitsyn
2023-10-21 15:43:36 +00:00
Laurent Bourgès
a876beb63d 8316741: BasicStroke.createStrokedShape miter-limits failing on small shapes
Reviewed-by: prr, dnguyen
2023-10-21 09:12:08 +00:00
Leonid Mesnik
4cf195f00c 8318573: The nsk.share.jpda.SocketConnection should fail if socket was closed.
Reviewed-by: sspitsyn, cjplummer
2023-10-21 03:35:52 +00:00
Daniel D. Daugherty
af2f4bfa83 8318622: ProblemList gc/cslocker/TestCSLocker.java on linux-x64 in Xcomp mode
Reviewed-by: naoto
2023-10-20 21:33:26 +00:00
Brian Burkhalter
a1a62d9964 8306308: (ch) Writer created by Channels::newWriter may lose data
Reviewed-by: djelinski, alanb
2023-10-20 21:12:28 +00:00
Mikhailo Seledtsov
77b2394c46 8318482: problemlist compiler/codecache/CheckLargePages.java on Linux-x64 until JDK-8317831 is fixed
Reviewed-by: lmesnik
2023-10-20 19:25:43 +00:00
Rajan Halade
d3ebb4a155 8317373: Add Telia Root CA v2
Reviewed-by: mullan
2023-10-20 18:25:09 +00:00
Justin Lu
66d90d5d9f 8318107: Un-ProblemList LocaleProvidersRun and CalendarDataRegression
Reviewed-by: naoto
2023-10-20 17:38:10 +00:00
Justin Lu
4dfa3799a6 7061097: [Doc] Inconsistenency between the spec and the implementation for DateFormat.Field
Reviewed-by: naoto
2023-10-20 17:37:51 +00:00
Harshitha Onkar
158293d251 8316030: Update Libpng to 1.6.40
Reviewed-by: prr, dnguyen
2023-10-20 17:35:21 +00:00
Kevin Walls
a045258ae2 8209595: MonitorVmStartTerminate.java timed out
Reviewed-by: sspitsyn, cjplummer, lmesnik
2023-10-20 16:38:39 +00:00
Viktor Klang
21215753c0 8318421: AbstractPipeline.sourceStageSpliterator() chases pointers needlessly
Reviewed-by: psandoz
2023-10-20 16:32:11 +00:00
Viktor Klang
200b5a27d4 8318420: AbstractPipeline invokes overridden method in constructor
Reviewed-by: psandoz
2023-10-20 16:31:46 +00:00
sunyaqi
52814994ef 8316563: test tools/jpackage/linux/LinuxResourceTest.java fails on CentOS Linux release 8.5.2111 and Fedora 27
Reviewed-by: asemenyuk, almatvee
2023-10-20 16:27:58 +00:00
Jorn Vernee
8065233e8b 8318598: FFM stylistic cleanups
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: mcimadamore
2023-10-20 15:40:39 +00:00
Thomas Stuefe
b1228de623 8314588: gc/metaspace/TestMetaspaceInitialization.java failed "assert(capacity_until_gc >= committed_bytes) failed: capacity_until_gc: 3145728 < committed_bytes: 3211264"
Reviewed-by: dholmes, coleenp
2023-10-20 15:21:57 +00:00
Ilya Gavrilin
5a97411f85 8317971: RISC-V: implement copySignF/D and signumF/D intrinsics
Reviewed-by: fyang, vkempik
2023-10-20 14:31:41 +00:00
Maurizio Cimadamore
91442878b7 8318601: Remove javadoc text about restricted methods
Reviewed-by: alanb
2023-10-20 14:29:17 +00:00
Mahendra Chhipa
40106422bd 8077371: Binary files in JAXP test should be removed
Reviewed-by: joehw
2023-10-20 12:07:39 +00:00
Claes Redestad
fe52917054 8318457: Use prefix-less prepend methods directly to reduce branches in String concat expressions
Reviewed-by: jlaskey, liach
2023-10-20 11:37:07 +00:00
Alexey Ivanov
71c99a0e59 8318448: Link PopupMenu/PopupMenuLocation.java failure to JDK-8259913
Reviewed-by: prr
2023-10-20 11:04:24 +00:00
Alexey Ivanov
2c23391de7 8318101: Additional test cases for CSSAttributeEqualityBug
Reviewed-by: prr
2023-10-20 11:02:58 +00:00
Justin King
deadb9c8d7 8304684: Memory leak in DirectivesParser::set_option_flag
Reviewed-by: kvn, dlong
2023-10-20 11:02:38 +00:00
Jasmine Karthikeyan
a03767cf88 8318049: C2: assert(!failure) failed: Missed optimization opportunity in PhaseIterGVN
Reviewed-by: epeter, thartmann
2023-10-20 10:44:58 +00:00
Maurizio Cimadamore
848ecc1621 8318538: Add a way to obtain a strided var handle from a layout
Reviewed-by: jvernee, pminborg
2023-10-20 10:35:09 +00:00
Maurizio Cimadamore
b07da3ae15 8317819: Scope should reflect lifetime of underying resource (mainline)
Reviewed-by: jvernee
2023-10-20 10:23:45 +00:00
Albert Mingkun Yang
6f1d8962df 8318510: Serial: Remove TenuredGeneration::block_size
Reviewed-by: tschatzl, iwalulya
2023-10-20 10:23:00 +00:00
Johannes Bechberger
8f4ebd8921 8317920: JDWP-agent sends broken exception event with onthrow option
Reviewed-by: clanger, cjplummer
2023-10-20 08:52:46 +00:00
Albert Mingkun Yang
cd25d1a2bf 8318296: Move Space::initialize to ContiguousSpace
Reviewed-by: tschatzl, iwalulya
2023-10-20 08:40:51 +00:00
Aleksey Shipilev
744f206fef 8318525: Atomic gtest should run as TEST_VM to access VM capabilities
Reviewed-by: stefank, stuefe
2023-10-20 08:38:23 +00:00
Albert Mingkun Yang
8099261050 8318489: Remove unused alignment_unit and alignment_offset
Reviewed-by: thartmann
2023-10-20 08:38:05 +00:00
Afshin Zafari
138437f2cf 8314438: NMT: Performance benchmarks are needed to have a baseline for comparison of improvements
Reviewed-by: gziemski, ihse
2023-10-20 08:33:40 +00:00
Chen Liang
4812cabaa4 8316587: Use ArraysSupport.vectorizedHashCode in Utf8EntryImpl
Reviewed-by: asotona, redestad
2023-10-20 07:36:27 +00:00
Aleksey Shipilev
bd02cfd96f 8318540: make test cannot run .jasm tests directly
Reviewed-by: lmesnik, erikj
2023-10-20 07:32:16 +00:00
Thomas Schatzl
bd3bc2c618 8317350: Move code cache purging out of CodeCache::UnloadingScope
Reviewed-by: ayang, iwalulya
2023-10-20 07:30:11 +00:00
Stefan Karlsson
292aad2c49 8316436: ContinuationWrapper uses unhandled nullptr oop
Reviewed-by: pchilanomate, eosterlund
2023-10-20 07:07:42 +00:00
Stefan Karlsson
387504c9e4 8317575: AArch64: C2_MacroAssembler::fast_lock uses rscratch1 for cmpxchg result
Reviewed-by: thartmann, kvn, aph
2023-10-20 07:05:30 +00:00
Daniel Jeliński
d9ce525a1c 8318150: StaticProxySelector.select should not throw NullPointerExceptions
Reviewed-by: jpai, dfuchs
2023-10-20 06:18:18 +00:00
Alan Bateman
c46a54e018 8312777: notifyJvmtiMount before notifyJvmtiUnmount
Reviewed-by: mli, sspitsyn
2023-10-20 05:56:26 +00:00
Hannes Greule
8f5f44070a 8317692: jcmd GC.heap_dump performance regression after JDK-8292818
Reviewed-by: amenkov, fparain
2023-10-19 23:24:28 +00:00
Justin Lu
684b91efbb 8315064: j.text.ChoiceFormat provides no specification on quoting behavior
Reviewed-by: naoto
2023-10-19 22:53:07 +00:00
Smita Kamath
1740950036 8314901: AES-GCM interleaved implementation using AVX2 instructions
Reviewed-by: sviswanathan, djelinski
2023-10-19 18:27:51 +00:00
Justin Lu
cc8f8da293 8318322: Update IANA Language Subtag Registry to Version 2023-10-16
Reviewed-by: naoto, iris, lancea, srl
2023-10-19 18:25:43 +00:00
Alex Menkov
599560a832 8317635: Improve GetClassFields test to verify correctness of field order
Reviewed-by: cjplummer, sspitsyn
2023-10-19 18:12:16 +00:00
Zhengyu Gu
9cf334fb64 8318383: Remove duplicated checks in os::get_native_stack() in posix implementation
Reviewed-by: dholmes, stuefe
2023-10-19 13:56:16 +00:00
Per Minborg
defc7e0f8d 8318454: TestLayoutPaths broken on Big Endian platforms after JDK-8317837
Reviewed-by: mdoerr, mcimadamore
2023-10-19 10:47:53 +00:00
Daniel Jeliński
3c70f2c1e9 8318418: hsdis build fails with system binutils on Ubuntu
Reviewed-by: erikj, ihse
2023-10-19 10:36:35 +00:00
Maurizio Cimadamore
15acf4b8d7 8318324: Drop redundant default methods from FFM API
Reviewed-by: jvernee
2023-10-19 09:51:02 +00:00
Leo Korinth
1a098356dd 8317358: G1: Make TestMaxNewSize use createTestJvm
Reviewed-by: tschatzl, sjohanss
2023-10-19 09:26:15 +00:00
Matthias Baesken
47bb1a1cef 8318415: Adjust describing comment of os_getChildren after 8315026
Reviewed-by: rriggs
2023-10-19 07:22:34 +00:00
Andrey Turbanov
80bd22d093 8316144: Remove unused field jdk.internal.util.xml.impl.XMLStreamWriterImpl.Element._Depth
Reviewed-by: lancea, joehw
2023-10-19 06:42:11 +00:00
Thomas Stuefe
c0e154c876 8318089: Class space not marked as such with NMT when CDS is off
Reviewed-by: mli, dholmes
2023-10-19 06:25:53 +00:00
Abhishek Kumar
24bc5bd104 8318104: macOS 10.13 check in TabButtonAccessibility.m can be removed
Reviewed-by: aivanov, prr
2023-10-19 04:21:45 +00:00
Daniel D. Daugherty
e25a49a993 8318471: ProblemList compiler/sharedstubs/SharedTrampolineTest.java
Reviewed-by: lmesnik
2023-10-18 20:20:39 +00:00
Naoto Sato
ce8ebebc77 8317979: Use TZ database style abbreviations in the CLDR locale provider
Reviewed-by: rriggs, joehw, lancea, erikj, iris, ihse
2023-10-18 18:26:49 +00:00
Mikhailo Seledtsov
ab135683a6 8318029: Minor improvement to logging output in container at-requires
Reviewed-by: iklam
2023-10-18 18:05:00 +00:00
Maurizio Cimadamore
278de7acd2 8318458: Update javac and java manpages with restricted method options
Reviewed-by: iris
2023-10-18 17:02:51 +00:00
Aleksey Shipilev
6fc3514231 8318363: Foreign benchmarks fail to build on some platforms
Reviewed-by: jvernee, mcimadamore
2023-10-18 10:30:45 +00:00
Thomas Stuefe
31ef400f31 8318183: C2: VM may crash after hitting node limit
Reviewed-by: kvn, thartmann
2023-10-18 08:39:00 +00:00
Andrey Turbanov
4e77b3c378 8315974: Make fields final in 'com.sun.crypto.provider' package
Reviewed-by: valeriep
2023-10-18 08:28:23 +00:00
Per Minborg
8dd809642e 8317886: Add @sealedGraph to ByteBuffer
Reviewed-by: rriggs, iris
2023-10-18 06:18:05 +00:00
David Holmes
9843c97695 8318365: Test runtime/cds/appcds/sharedStrings/InternSharedString.java fails after JDK-8311538
Reviewed-by: cjplummer, lmesnik
2023-10-17 23:30:03 +00:00
Sean Mullan
7c80cb26df 8309966: Enhanced TLS connections
Reviewed-by: mschoene, hchao, rhalade, jnimeh
2023-10-17 22:45:06 +00:00
Bradford Wetmore
adca97b659 8286503: Enhance security classes
Reviewed-by: rhalade, mullan, skoivu, weijun
2023-10-17 22:45:06 +00:00
Naoto Sato
195c9b2c48 8297856: Improve handling of Bidi characters
Reviewed-by: rhalade, mschoene, rriggs
2023-10-17 22:45:06 +00:00
Daniel Jeliński
072d64c6a9 8296581: Better system proxy support
Reviewed-by: rhalade, dfuchs, michaelm, alanb
2023-10-17 22:45:05 +00:00
Calvin Cheung
83b6a1278f 8316967: Correct the scope of vmtimer in UnregisteredClasses::load_class
Reviewed-by: iklam, jiangli
2023-10-17 22:12:28 +00:00
David Holmes
cceb0d8a23 8318126: Refresh manpages
Reviewed-by: alanb, mli, iris
2023-10-17 21:17:41 +00:00
Jonathan Gibbons
2f4d601a56 8314975: JavadocTester should set source path if not specified
Reviewed-by: hannesw
2023-10-17 21:00:29 +00:00
Hannes Wallnöfer
0ba48ef4ab 8316972: Add javadoc support for restricted methods
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: jjg
2023-10-17 20:32:41 +00:00
Weijun Wang
5145e5a40a 8318328: DHKEM should check XDH name in case-insensitive mode
Reviewed-by: ascarpino, hchao
2023-10-17 19:36:17 +00:00
Thomas Schatzl
c566dfccf8 8317600: VtableStubs::stub_containing() table load not ordered wrt to stores
Reviewed-by: dlong, kvn
2023-10-17 19:01:03 +00:00
Thomas Schatzl
c9985720b9 8316959: Improve InlineCacheBuffer pending queue management
Reviewed-by: dlong, kvn
2023-10-17 19:00:51 +00:00
Leonid Mesnik
d6679031e0 8316462: sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.java ignores VM flags
Reviewed-by: kevinw, sspitsyn
2023-10-17 18:02:11 +00:00
Matias Saavedra Silva
61cc4a011e 8311538: CDS InternSharedString test fails on huge pages host - cannot find shared string
Reviewed-by: iklam, mseledtsov
2023-10-17 17:40:56 +00:00
Maurizio Cimadamore
39e2b7a6d3 8318295: Update launcher help for enable-native-access
Reviewed-by: jvernee
2023-10-17 16:38:22 +00:00
Martin Doerr
d0ea2a5111 8318015: Lock inflation not needed for OSR or Deopt for new locking modes
Reviewed-by: pchilanomate, dlong
2023-10-17 13:52:41 +00:00
Erik Gahlin
6aa837eee6 8316927: JFR: Move shouldCommit check earlier for socket events
Reviewed-by: alanb, dfuchs, mgronlun
2023-10-17 13:11:52 +00:00
Aggelos Biboudis
5ca1beb30e 8317300: javac erroneously allows "final" in front of a record pattern
Reviewed-by: jlahoda
2023-10-17 12:57:25 +00:00
Aggelos Biboudis
2bf1863e24 8315588: JShell does not accept underscore from JEP 443 even with --enable-preview
Reviewed-by: jlahoda
2023-10-17 12:55:31 +00:00
Aggelos Biboudis
15588e08ed 8314578: Non-verifiable code is emitted when two guards declare pattern variables in colon-switch
Reviewed-by: vromero
2023-10-17 12:51:57 +00:00
Leo Korinth
e649c56324 8316410: GC: Make TestCompressedClassFlags use createTestJvm
Reviewed-by: ayang, mli
2023-10-17 12:02:24 +00:00
Leo Korinth
5f4be8cea9 8316973: GC: Make TestDisableDefaultGC use createTestJvm
Reviewed-by: ayang, mli, lmesnik
2023-10-17 12:02:08 +00:00
Leo Korinth
a949824e98 8317188: G1: Make TestG1ConcRefinementThreads use createTestJvm
Reviewed-by: mli, tschatzl
2023-10-17 12:00:27 +00:00
Leo Korinth
7e39e664cf 8317042: G1: Make TestG1ConcMarkStepDurationMillis use createTestJvm
Reviewed-by: mli, tschatzl
2023-10-17 11:59:54 +00:00
Leo Korinth
75b37e6d7e 8317218: G1: Make TestG1HeapRegionSize use createTestJvm
Reviewed-by: mli, tschatzl
2023-10-17 11:58:57 +00:00
Agnibho Hom Chowdhury
34653c1e73 8249832: java/util/zip/DataDescriptorSignatureMissing.java uses @ignore w/o bug-id
Reviewed-by: msheppar
2023-10-17 11:58:17 +00:00
Leo Korinth
d8cd60588a 8317316: G1: Make TestG1PercentageOptions use createTestJvm
Reviewed-by: mli, tschatzl
2023-10-17 11:55:24 +00:00
Albert Mingkun Yang
8f79d88960 8318155: Remove unnecessary virtual specifier in Space
Reviewed-by: tschatzl, mli
2023-10-17 11:54:51 +00:00
Maurizio Cimadamore
b2b8db6533 8318180: Memory model reference from foreign package-info is broken
Reviewed-by: jvernee
2023-10-17 11:09:03 +00:00
Leo Korinth
5bd10521eb 8317317: G1: Make TestG1RemSetFlags use createTestJvm
Reviewed-by: mli, tschatzl
2023-10-17 09:40:01 +00:00
Leo Korinth
c64bd3d671 8317343: GC: Make TestHeapFreeRatio use createTestJvm
Reviewed-by: tschatzl, iwalulya
2023-10-17 09:33:22 +00:00
Leo Korinth
6ee6171e81 8317347: Parallel: Make TestInitialTenuringThreshold use createTestJvm
Reviewed-by: tschatzl, iwalulya
2023-10-17 09:32:48 +00:00
Leo Korinth
7ca0ae9415 8317228: GC: Make TestXXXHeapSizeFlags use createTestJvm
Reviewed-by: sjohanss, ayang
2023-10-17 09:22:03 +00:00
Doug Simon
5521560abd 8310673: [JVMCI] batch compilation for libgraal should work the same way as for C2
Reviewed-by: thartmann, never
2023-10-17 08:52:08 +00:00
Jan Kratochvil
e4329a823b 8317696: Fix compilation with clang-16
Reviewed-by: djelinski, aivanov
2023-10-17 08:15:46 +00:00
Emanuel Peter
504b0bdaaa 8318078: ADLC: pass ASSERT and PRODUCT flags
Reviewed-by: ihse, erikj, kvn
2023-10-17 07:14:11 +00:00
Feilong Jiang
7b3917265d 8318086: [jvmci] RISC-V: Reuse target config from TargetDescription
Reviewed-by: fyang, mli
2023-10-17 00:55:37 +00:00
Alex Menkov
aed1e810e6 8317285: Misspellings in hprof test lib
Reviewed-by: sspitsyn, cjplummer
2023-10-16 20:03:45 +00:00
Qing Xiao
741ae06c55 8313613: Use JUnit in langtools/lib tests
Reviewed-by: cstein, asotona
2023-10-16 17:14:34 +00:00
Rajan Halade
8c1bb2b280 8268916: Tests for AffirmTrust roots
Reviewed-by: mullan
2023-10-16 16:26:02 +00:00
Patricio Chilano Mateo
2d38495b61 8316309: AArch64: VMError::print_native_stack() crashes on Java native method frame
Reviewed-by: lmesnik, aph
2023-10-16 16:22:58 +00:00
Brian Burkhalter
0d091681c2 8312527: (ch) Re-examine use of sun.nio.ch.Invoker.myGroupAndInvokeCount
Reviewed-by: alanb, jpai
2023-10-16 14:52:44 +00:00
Brian Burkhalter
1a7fd5d419 8317687: (fs) FileStore.supportsFileAttributeView("posix") incorrectly returns 'true' for FAT32 volume on macOS
Reviewed-by: alanb
2023-10-16 14:49:18 +00:00
Hannes Wallnöfer
eb7d972d8a 8308659: Use CSS scroll-margin instead of flexbox layout in API documentation
Reviewed-by: jjg
2023-10-16 12:56:41 +00:00
Doug Simon
7028fb9d58 8317975: [JVMCI] assert(pointee != nullptr) failed: invariant
Reviewed-by: never, thartmann
2023-10-16 12:53:54 +00:00
Jasmine Karthikeyan
36993aea9a 8316918: Optimize conversions duplicated across phi nodes
Reviewed-by: thartmann, kvn
2023-10-16 12:52:01 +00:00
Renjith Kannath Pariyangad
668d4b077f 8318154: Improve stability of WheelModifier.java test
Reviewed-by: aivanov
2023-10-16 10:58:30 +00:00
Renjith Kannath Pariyangad
a36eaf03af 8317112: Add screenshot for Frame/DefaultSizeTest.java
Reviewed-by: prr, dnguyen, aivanov
2023-10-16 10:13:30 +00:00
Albert Mingkun Yang
a27fc7efd4 8317994: Serial: Use SerialHeap in generation
Reviewed-by: tschatzl, sangheki, mli
2023-10-16 09:54:22 +00:00
Prasanta Sadhukhan
37eb98604f 8154846: SwingNode does not resize when content size constraints are changed
Reviewed-by: prr, angorya, arapte
2023-10-16 09:01:57 +00:00
Evgeny Ignatenko
37aed6f46d 8315362: NMT: summary diff reports threads count incorrectly
Reviewed-by: jsjolen, gziemski, stuefe, mli
2023-10-16 08:19:21 +00:00
Aleksey Shipilev
1e930db3c7 8316585: [REDO] runtime/InvocationTests spend a lot of time on dependency verification
Reviewed-by: vlivanov, stuefe, mli
2023-10-16 08:00:48 +00:00
Severin Gehwolf
0275efac88 8316304: (fs) Add support for BasicFileAttributes.creationTime() for Linux
Reviewed-by: stuefe, alanb, bpb, mli
2023-10-16 07:40:29 +00:00
Matthias Baesken
77d40ce166 8318085: ProblemList jdk/jfr/api/consumer/recordingstream/TestOnEvent.java on linux-aarch64
Reviewed-by: clanger
2023-10-16 07:13:07 +00:00
David Holmes
4ea1b99c1a 8317262: LockStack::contains(oop) fails "assert(t->is_Java_thread()) failed: incorrect cast to JavaThread"
Co-authored-by: Patricio Chilano Mateo <pchilanomate@openjdk.org>
Reviewed-by: stuefe, pchilanomate, rkennke, mli
2023-10-15 23:34:16 +00:00
Vicente Romero
01ea1eff66 8305971: NPE in JavacProcessingEnvironment for missing enum constructor body
Reviewed-by: darcy
2023-10-14 21:28:39 +00:00
Jorn Vernee
1d54e73f6a 8318072: DowncallLinker does not acquire/release segments in interpreter
Reviewed-by: mcimadamore
2023-10-14 20:23:41 +00:00
Thomas Stuefe
56aa1e8dc8 8317683: Add JIT memory statistics
Reviewed-by: kvn, adinn
2023-10-14 05:56:52 +00:00
Alexander Zuev
f7d6d7a04f 8266242: java/awt/GraphicsDevice/CheckDisplayModes.java failing on macOS 11 ARM
Reviewed-by: prr, azvegint, aivanov
2023-10-13 22:53:21 +00:00
William Kemper
e942f368c3 8317535: Shenandoah: Remove unused code
Reviewed-by: rkennke, ysr
2023-10-13 21:55:27 +00:00
Maurizio Cimadamore
7cb2e6d65b 8317514: Ensure MemorySegment is initialized before touching NativeMemorySegmentImpl
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Reviewed-by: jvernee
2023-10-13 20:51:52 +00:00
Justin Lu
9622de2aa8 8317372: Refactor some NumberFormat tests to use JUnit
Reviewed-by: naoto
2023-10-13 20:49:11 +00:00
Mikael Vidstedt
72c4dcbfee 8317970: Bump target macosx-x64 version to 11.00.00
Reviewed-by: erikj, prr, ihse
2023-10-13 20:24:44 +00:00
Jorn Vernee
32a60cf11d 8317824: Beef up javadoc for base offset in var handles derived from layouts (mainline)
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: mcimadamore
2023-10-13 19:06:07 +00:00
Jorn Vernee
b12c471a99 8317837: Leftover FFM implementation-only changes
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Reviewed-by: mcimadamore
2023-10-13 19:05:47 +00:00
Mikael Vidstedt
605c976729 8318039: GHA: Bump macOS and Xcode versions
Reviewed-by: erikj, prr, ihse, clanger
2023-10-13 17:25:00 +00:00
Daniel Fuchs
6273ab97dc 8317808: HTTP/2 stream cancelImpl may leave subscriber registered
Reviewed-by: michaelm, djelinski
2023-10-13 14:35:50 +00:00
Alexey Ivanov
7d31146f4d 8318028: Remove unused class="centered" from FocusCycle.svg
Reviewed-by: serb
2023-10-13 13:40:49 +00:00
Johan Sjölen
45b7aedabf 8317433: Async UL: Only grab lock once when write():ing
Reviewed-by: dholmes, xliu
2023-10-13 13:21:34 +00:00
Aleksei Voitylov
266636deab 8315940: ARM32: Move field resolution information out of the cpCache
Reviewed-by: dsamersoff
2023-10-13 11:33:34 +00:00
Johan Sjölen
e490cf9c65 8317432: Async UL: Use memcpy instead of strcpy in Message ctr
Reviewed-by: xliu, dholmes
2023-10-13 11:28:17 +00:00
Matthias Baesken
126f2ace5d 8318006: remove unused net related coding
Reviewed-by: alanb, lucy
2023-10-13 08:53:43 +00:00
Joachim Kern
4d9042043e 8315026: ProcessHandle implementation listing processes on AIX should use getprocs64
Reviewed-by: rriggs, stuefe, mbaesken
2023-10-13 08:29:48 +00:00
Thomas Schatzl
1082c0e767 8317677: Specialize Vtablestubs::entry_for() for VtableBlob
Reviewed-by: thartmann, kvn
2023-10-13 07:40:00 +00:00
Matthias Baesken
ec310fe809 8317919: pthread_attr_init handle return value and destroy pthread_attr_t object
Reviewed-by: mdoerr, lucy
2023-10-13 07:01:50 +00:00
Matthias Baesken
ff0b397e13 8317959: Check return values of malloc in native java.base coding
Reviewed-by: alanb, bpb
2023-10-13 06:50:08 +00:00
Thomas Stuefe
c88b387881 8317987: C2 recompilations cause high memory footprint
Reviewed-by: adinn, kvn
2023-10-13 06:43:42 +00:00
Leonid Mesnik
993951b85e 8316464: 3 sun/tools tests ignore VM flags
Reviewed-by: sspitsyn, cjplummer
2023-10-12 23:32:37 +00:00
Archie Cobbs
17535c34bc 8317818: Combinatorial explosion during 'this' escape analysis
Reviewed-by: vromero
2023-10-12 22:39:03 +00:00
Damon Nguyen
61ce739ac8 8315484: java/awt/dnd/RejectDragDropActionTest.java timed out
Reviewed-by: honkar, aivanov
2023-10-12 22:02:16 +00:00
ANUPAM DEV
77fa44fd4f 8317847: Typo in API documentation of class JPopupMenu
Reviewed-by: aivanov
2023-10-12 20:07:07 +00:00
Daniel D. Daugherty
0983b54866 8318038: ProblemList runtime/CompressedOops/CompressedClassPointers.java on two platforms
8318040: ProblemList vmTestbase/nsk/monitoring/ThreadMXBean/findMonitorDeadlockedThreads/find006/TestDescription.java on macosx-aarch64
8318042: ProblemList java/nio/channels/vthread/BlockingChannelOps.java#direct-register with GenZGC

Reviewed-by: rriggs, azvegint
2023-10-12 20:02:10 +00:00
Evgeny Astigeevich
64ee3c9990 8317266: Move nmethod::check_all_dependencies to codeCache.cpp and mark it NOT_PRODUCT
Reviewed-by: kvn, dlong
2023-10-12 19:56:18 +00:00
Jorn Vernee
32ac72c3d3 8312522: Implementation of Foreign Function & Memory API
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Reviewed-by: dholmes, psandoz, mcimadamore, alanb
2023-10-12 19:50:08 +00:00
Rajan Halade
9728e21db1 8317967: Enhance test/jdk/javax/net/ssl/TLSCommon/SSLEngineTestCase.java to handle default cases
Reviewed-by: mullan
2023-10-12 17:02:32 +00:00
Archie Cobbs
a8473b7079 8317336: Assertion error thrown during 'this' escape analysis
Reviewed-by: vromero
2023-10-12 16:51:53 +00:00
Mikhailo Seledtsov
16fd43c5eb 8316693: Simplify at-requires checkDockerSupport()
Reviewed-by: iklam, lmesnik
2023-10-12 16:29:14 +00:00
Roger Riggs
c1f698d38b 8317956: Make jdk.internal.util.Architecture current architecture final
Reviewed-by: pminborg, redestad, bpb
2023-10-12 14:14:43 +00:00
wenshao
935543146b 8316426: Optimization for HexFormat.formatHex
Reviewed-by: liach, rriggs
2023-10-12 13:54:09 +00:00
Thomas Stuefe
32ccf018eb 8317772: NMT: Make peak values available in release builds
Reviewed-by: jsjolen, zgu
2023-10-12 13:48:59 +00:00
Ivan Walulya
4c79e7d59c 8170817: G1: Returning MinTLABSize from unsafe_max_tlab_alloc causes TLAB flapping
Reviewed-by: tschatzl, ayang
2023-10-12 10:28:52 +00:00
Tobias Hartmann
7633a76607 8317998: Temporarily disable malformed control flow assert to reduce noise in testing
Reviewed-by: epeter
2023-10-12 09:50:18 +00:00
Ravi Gupta
00ef9f9c32 8316947: Write a test to check textArea triggers MouseEntered/MouseExited events properly
Reviewed-by: tr, honkar, aivanov
2023-10-12 09:40:02 +00:00
Albert Mingkun Yang
77dc89115e 8317963: Serial: Remove unused GenerationIsInReservedClosure
Reviewed-by: kbarrett, tschatzl
2023-10-12 08:54:32 +00:00
Per Minborg
d95b548c78 8315850: Improve AbstractMap anonymous Iterator classes
Reviewed-by: liach, smarks
2023-10-12 07:51:21 +00:00
Matthias Baesken
424de295a6 8317866: replace NET_SocketAvailable
Reviewed-by: dfuchs, alanb
2023-10-12 07:22:49 +00:00
Matthias Baesken
6d6c9008d5 8038244: (fs) Check return value of malloc in Java_sun_nio_fs_AixNativeDispatcher_getmntctl()
Reviewed-by: bpb, vtewari, rriggs
2023-10-12 07:16:48 +00:00
Per Minborg
eca6ea43d0 8317873: Add @sealedGraph to IllegalFormatException
Reviewed-by: naoto, iris
2023-10-12 07:14:52 +00:00
vamsi-parasa
2edf9c3f1e 8317763: Follow-up to AVX512 intrinsics for Arrays.sort() PR
Reviewed-by: jbhateja, kvn, ihse, sviswanathan
2023-10-12 04:45:19 +00:00
Amit Kumar
839cb19ec2 8317581: [s390x] Multiple test failure with LockingMode=2
Reviewed-by: stuefe, lucy
2023-10-12 03:33:30 +00:00
Alexander Zvegintsev
387896fb34 8309621: [XWayland][Screencast] screen capture failure with sun.java2d.uiScale other than 1
Reviewed-by: prr, honkar
2023-10-11 22:14:23 +00:00
Matthew Donovan
8d2ad2b1ae 8317977: update problemlist to include MacOS for sun/security/tools/keytool/NssTest.java
Reviewed-by: dcubed
2023-10-11 21:27:19 +00:00
Daniel D. Daugherty
b92de54a81 8317964: java/awt/Mouse/MouseModifiersUnitTest/MouseModifiersUnitTest_Standard.java fails on macosx-all after JDK-8317751
Reviewed-by: azvegint
2023-10-11 17:03:02 +00:00
Matthew Donovan
2a80160960 8314283: Support for NSS tests on aarch64 platforms
Reviewed-by: rhalade
2023-10-11 16:44:22 +00:00
Stuart Marks
3f6d01687c 8314896: additional clarifications to reversed() default methods' implementation requirements
Reviewed-by: bchristi
2023-10-11 16:42:28 +00:00
Per Minborg
2d46b29728 8317874: Add @sealedGraph to StringTemplate.Processor.Linkage
Reviewed-by: rriggs
2023-10-11 16:17:01 +00:00
Hamlin Li
8f8c45b54a 8315716: RISC-V: implement ChaCha20 intrinsic
Reviewed-by: luhenry, fyang
2023-10-11 14:48:28 +00:00
Albert Mingkun Yang
8a9c4d5266 8317675: Serial: Move gc/shared/generation to serial folder
Reviewed-by: mli, tschatzl
2023-10-11 14:31:41 +00:00
Roman Kennke
bcafec54a5 8316958: Add test for unstructured locking
Reviewed-by: dholmes, shade
2023-10-11 13:44:39 +00:00
Albert Mingkun Yang
731fb4eea2 8317797: G1: Remove unimplemented predict_will_fit
Reviewed-by: tschatzl
2023-10-11 09:22:27 +00:00
Amit Kumar
79761519f6 8313438: [s390x] build broken after JDK-8301996
Reviewed-by: mdoerr, lucy
2023-10-11 08:49:54 +00:00
Christoph Langer
ca96fd3b07 8317839: Exclude java/nio/channels/Channels/SocketChannelStreams.java on AIX
Reviewed-by: alanb
2023-10-11 06:54:20 +00:00
Matthias Baesken
a9b41da9df 8317603: Improve exception messages thrown by sun.nio.ch.Net native methods (win)
Reviewed-by: vtewari, alanb, djelinski
2023-10-11 06:43:45 +00:00
Tobias Hartmann
0fd807118c 8317738: CodeCacheFullCountTest failed with "VirtualMachineError: Out of space in CodeCache for method handle intrinsic"
Reviewed-by: kvn
2023-10-11 06:18:34 +00:00
Christoph Langer
1161e3da14 8317803: Exclude java/net/Socket/asyncClose/Race.java on AIX
Reviewed-by: mbaesken
2023-10-11 05:57:28 +00:00
Christoph Langer
e55c482ce1 8317790: Fix Bug entry for exclusion of runtime/jni/terminatedThread/TestTerminatedThread.java on AIX
Reviewed-by: mbaesken
2023-10-11 05:55:52 +00:00
Ioi Lam
84b7cc15c2 8317761: Combine two versions of print_statistics() in java.cpp
Reviewed-by: kvn, vlivanov
2023-10-11 05:11:41 +00:00
Jayathirth D V
3aa4cba175 8316975: Memory leak in MTLSurfaceData
Reviewed-by: prr
2023-10-11 03:36:17 +00:00
Jaikiran Pai
54861df3d9 8317802: jmh tests fail with Unable to find the resource: /META-INF/BenchmarkList after JDK-8306819
Reviewed-by: erikj, ihse
2023-10-11 00:54:54 +00:00
lawrence.andrews
f40ea5109e 8317751: ProblemList ConsumeForModalDialogTest.java, MenuItemActivatedTest.java & MouseModifiersUnitTest_Standard.java for windows
Reviewed-by: prr
2023-10-10 22:52:22 +00:00
Leonid Mesnik
fec1d49783 8316452: java/lang/instrument/modules/AppendToClassPathModuleTest.java ignores VM flags
Reviewed-by: sspitsyn
2023-10-10 20:14:56 +00:00
Alex Menkov
2b8276aa52 8316691: Heap dump: separate stack traces for mounted virtual threads
Reviewed-by: lmesnik, sspitsyn
2023-10-10 20:13:09 +00:00
Claes Redestad
33591a30d2 8317795: Add an ImmutableBitSetPredicate variant for bitsets <= 128 elements
Reviewed-by: pminborg, rriggs
2023-10-10 17:01:57 +00:00
Albert Mingkun Yang
fb4098ff1a 8317730: Change byte_size to return size_t
Reviewed-by: coleenp, kbarrett
2023-10-10 11:55:07 +00:00
Thomas Stuefe
c2abf120bc 8261894: Remove support for UseSHM
Reviewed-by: dholmes, ayang
2023-10-10 11:10:17 +00:00
Thomas Stuefe
ad7a8e86e0 8315505: CompileTask timestamp printed can overflow
Reviewed-by: thartmann
2023-10-10 07:28:51 +00:00
Christoph Langer
fcff222f92 8317706: Exclude java/awt/Graphics2D/DrawString/RotTransText.java on linux
Reviewed-by: aivanov
2023-10-10 07:06:32 +00:00
Christoph Langer
ef41aa02b8 8317711: Exclude gtest/GTestWrapper.java on AIX
Reviewed-by: mbaesken
2023-10-10 07:05:53 +00:00
Christoph Langer
ad6dce376d 8317705: ProblemList sun/tools/jstat/jstatLineCountsX.sh on linux-ppc64le and aix due to JDK-8248691
Reviewed-by: sspitsyn
2023-10-10 07:05:31 +00:00
Kevin Driver
e882718a60 8314199: Initial size PBEKeyFactory#validTypes is not up-to-date
Reviewed-by: jnimeh
2023-10-10 05:43:12 +00:00
Serguei Spitsyn
d313915974 8316233: VirtualThreadStart events should not be thread-filtered
Reviewed-by: lmesnik, amenkov, cjplummer
2023-10-10 03:06:16 +00:00
Leonid Mesnik
053f45695f 8316447: 8 sun/management/jmxremote tests ignore VM flags
Reviewed-by: kevinw, sspitsyn
2023-10-09 23:10:29 +00:00
Leonid Mesnik
5b311f20df 8316446: 4 sun/management/jdp tests ignore VM flags
Reviewed-by: cjplummer, kevinw
2023-10-09 23:09:39 +00:00
Justin Lu
8e0686b065 8317633: Modernize text.testlib.HexDumpReader
Reviewed-by: lancea, naoto, mli
2023-10-09 22:57:09 +00:00
Justin Lu
5e8d893c48 8317631: Refactor ChoiceFormat tests to use JUnit
Reviewed-by: naoto
2023-10-09 22:37:41 +00:00
Soumadipta Roy
f61499c73f 8316608: Enable parallelism in vmTestbase/gc/vector tests
Reviewed-by: shade, lmesnik
2023-10-09 18:55:35 +00:00
Jonathan Gibbons
3ff5a781db 8317693: Unused parameter to Tokens.Token.comment method
Reviewed-by: iris, jlahoda
2023-10-09 17:53:57 +00:00
Daniel Fuchs
508fa71753 8317736: Stream::handleReset locks twice
Reviewed-by: ccleary, djelinski, jpai, vtewari
2023-10-09 16:31:34 +00:00
Naoto Sato
1f06325142 8317471: ListFormat::parseObject() spec can be improved on parsePosition valid values
Reviewed-by: iris, lancea, joehw, mli
2023-10-09 16:29:40 +00:00
Doug Simon
a07a4a3a59 8317422: [JVMCI] concurrency issue in MethodData creation
Reviewed-by: never, thartmann
2023-10-09 12:52:28 +00:00
Daniel Lundén
7ff19383fd 8310727: C2: *_of() methods in PhaseIterGVN should use uint for the node index
Reviewed-by: thartmann
2023-10-09 11:20:26 +00:00
Albert Mingkun Yang
a57ae7e7d4 8317594: G1: Refactor find_empty_from_idx_reverse
Reviewed-by: tschatzl, iwalulya
2023-10-09 10:39:34 +00:00
Varada M
6ddbfaae49 8317136: [AIX] Problem List runtime/jni/terminatedThread/TestTerminatedThread.java
Reviewed-by: dholmes, amitkumar
2023-10-09 09:24:42 +00:00
Thomas Schatzl
0cf1a558ba 8317440: Lock rank checking fails when code root set is modified with the Servicelock held after JDK-8315503
Reviewed-by: coleenp, ayang
2023-10-09 08:27:56 +00:00
Andrew Leonard
bcc986b9d1 8317601: Windows build on WSL broken after JDK-8317340
Reviewed-by: djelinski, erikj
2023-10-09 07:41:31 +00:00
Vyom Tewari
460ebcd9cb 8314978: Multiple server call from connection failing with expect100 in getOutputStream
Reviewed-by: dfuchs
2023-10-08 05:13:00 +00:00
Joe Darcy
dc4bc4f084 8306819: Consider disabling the compiler's default active annotation processing
Reviewed-by: vromero
2023-10-06 21:45:58 +00:00
vamsi-parasa
a4e9168bab 8309130: x86_64 AVX512 intrinsics for Arrays.sort methods (int, long, float and double arrays)
Reviewed-by: jbhateja, sviswanathan, psandoz, kvn
2023-10-06 20:15:30 +00:00
Brian Burkhalter
6c6beba256 8317128: java/nio/file/Files/CopyAndMove.java failed with AccessDeniedException
Reviewed-by: alanb, lancea
2023-10-06 17:46:03 +00:00
Raffaello Giulietti
b62e774e6a 8317515: Unify the code of the parse*() families of methods in j.l.Integer and j.l.Long
Reviewed-by: redestad
2023-10-06 16:20:21 +00:00
Mikael Vidstedt
a64794b1ed 8317560: Change to Xcode 14.3.1 for building on macOS at Oracle
Reviewed-by: erikj
2023-10-06 16:11:58 +00:00
Albert Mingkun Yang
b3cc0c8431 8317318: Serial: Change GenCollectedHeap to SerialHeap in whitebox
Reviewed-by: tschatzl, iwalulya
2023-10-06 12:17:38 +00:00
Albert Mingkun Yang
691db5df73 8317592: Serial: Remove Space::toContiguousSpace
Reviewed-by: tschatzl, iwalulya
2023-10-06 12:17:16 +00:00
Tobias Hartmann
ec9ba5dae9 8317660: [BACKOUT] 8269393: store/load order not preserved when handling memory pool due to weakly ordered memory architecture of aarch64
Reviewed-by: ayang
2023-10-06 10:56:00 +00:00
Damon Fenacci
7162624d70 8269393: store/load order not preserved when handling memory pool due to weakly ordered memory architecture of aarch64
Reviewed-by: thartmann, aph
2023-10-06 09:14:03 +00:00
Damon Fenacci
f0d66d1fd3 8317502: Add asserts to check for non-null in ciInstance::java_lang_Class_klass
Reviewed-by: kvn, thartmann
2023-10-06 08:57:08 +00:00
Ben Perez
991ce84e09 4964430: (spec) missing IllegalStateException exception requirement for javax.crypto.Cipher.doFinal
Reviewed-by: mullan, valeriep
2023-10-06 03:07:23 +00:00
Naoto Sato
8a30c2a9b2 8317443: StackOverflowError on calling ListFormat::getInstance() for Norwegian locales
Reviewed-by: joehw
2023-10-05 23:06:20 +00:00
Alexey Ivanov
a1c9587c27 8313348: Fix typo in JFormattedTextField: 'it self'
Reviewed-by: honkar, dnguyen, psadhukhan
2023-10-05 14:40:15 +00:00
Zhengyu Gu
a8eacb31ab 8317240: Promptly free OopMapEntry after fail to insert the entry to OopMapCache
Reviewed-by: coleenp, fparain
2023-10-05 13:41:11 +00:00
Daniel Fuchs
4c5b66dcea 8317522: Test logic for BODY_CF in AbstractThrowingSubscribers.java is wrong
Reviewed-by: djelinski
2023-10-05 10:44:05 +00:00
Fredrik Bredberg
42be23877c 8316523: Relativize esp in interpreter frames (PowerPC only)
Reviewed-by: mdoerr, eosterlund
2023-10-05 10:14:08 +00:00
Ludvig Janiuk
a250ae4d1b 8317039: Enable specifying the JDK used to run jtreg
Reviewed-by: erikj
2023-10-05 07:54:34 +00:00
Emanuel Peter
1ed9c76ec8 8309204: Obsolete DoReserveCopyInSuperWord
Reviewed-by: kvn, thartmann
2023-10-05 07:01:18 +00:00
Emanuel Peter
3630af26e6 8316594: C2 SuperWord: wrong result with hand unrolled loops
Reviewed-by: kvn, thartmann
2023-10-05 06:46:44 +00:00
Thomas Stuefe
c6c69b579c 8314654: Metaspace: move locking out of MetaspaceArena
Reviewed-by: adinn, jsjolen
2023-10-05 06:02:02 +00:00
Alisen Chung
3105538de5 8316146: Open some swing tests 4
Reviewed-by: honkar, aivanov, prr
2023-10-04 19:38:26 +00:00
Mandy Chung
36314a90c1 8267509: Improve IllegalAccessException message to include the cause of the exception
Reviewed-by: liach, naoto
2023-10-04 18:39:25 +00:00
Calvin Cheung
ddacf92713 8305765: CompressedClassPointers.java is unreliable due to ASLR
Reviewed-by: iklam
2023-10-04 17:27:33 +00:00
Albert Mingkun Yang
4195246fba 8317354: Serial: Move DirtyCardToOopClosure to gc/serial folder
Reviewed-by: tschatzl, iwalulya
2023-10-04 14:15:10 +00:00
Roland Westrelin
0a3a925ad8 8316414: C2: large byte array clone triggers "failed: malformed control flow" assertion failure on linux-x86
Co-authored-by: Roberto Castañeda Lozano <rcastanedalo@openjdk.org>
Reviewed-by: thartmann
2023-10-04 12:06:52 +00:00
Roland Westrelin
b0d6c8472f 8316396: Endless loop in C2 compilation triggered by AddNode::IdealIL
Reviewed-by: thartmann, kvn
2023-10-04 12:06:31 +00:00
Daniel Skantz
a8549b6367 8280120: [IR Framework] Add attribute to @IR to enable/disable IR matching based on the architecture
Reviewed-by: rcastanedalo, epeter, thartmann
2023-10-04 11:58:16 +00:00
Yudi Zheng
9718f490fb 8317452: [JVMCI] Export symbols used by lightweight locking to JVMCI compilers.
Reviewed-by: dnsimon
2023-10-04 10:18:39 +00:00
Maurizio Cimadamore
0d4de8a71f 8316971: Add Lint warning for restricted method calls
Reviewed-by: ihse, vromero
2023-10-04 09:36:53 +00:00
Aleksey Shipilev
d4c904d819 8317294: Classloading throws exceptions over already pending exceptions
Reviewed-by: dholmes, coleenp
2023-10-04 07:58:41 +00:00
Emanuel Peter
48f1a925e5 8316679: C2 SuperWord: wrong result, load should not be moved before store if not comparable
Reviewed-by: kvn, thartmann
2023-10-04 07:54:30 +00:00
Varada M
0b0f8b55a6 8219652: [aix] Tests failing with JNI attach problems.
Reviewed-by: dholmes, cjplummer, sspitsyn
2023-10-04 06:07:14 +00:00
Mark Powers
8c0d026d0f 8315042: NPE in PKCS7.parseOldSignedData
Reviewed-by: valeriep, weijun
2023-10-04 00:23:42 +00:00
Alex Menkov
f7deaf4bef 8316778: test hprof lib: invalid array element type from JavaValueArray.elementSize
Reviewed-by: cjplummer, lmesnik, sspitsyn
2023-10-03 19:35:51 +00:00
Daniel D. Daugherty
8ff10a0d35 8317446: ProblemList gc/arguments/TestNewSizeFlags.java on macosx-aarch64 in Xcomp
8317448: ProblemList compiler/interpreter/TestVerifyStackAfterDeopt.java on macosx-aarch64 in Xcomp
8317449: ProblemList serviceability/jvmti/stress/StackTrace/NotSuspended/GetStackTraceNotSuspendedStressTest.java on several platforms

Reviewed-by: thartmann
2023-10-03 19:18:27 +00:00
Naoto Sato
1809b8cdd6 8317265: ListFormat::format specification could be made clearer regarding handling IllegalArgumentException.
Reviewed-by: joehw
2023-10-03 18:32:57 +00:00
Vladimir Kozlov
cfabcbf858 8317121: vector_masked_load instruction is moved too early after JDK-8286941
Co-authored-by: Vladimir Ivanov <vlivanov@openjdk.org>
Co-authored-by: Tobias Hartmann <thartmann@openjdk.org>
Co-authored-by: Dean Long <dlong@openjdk.org>
Reviewed-by: thartmann, vlivanov, epeter
2023-10-03 18:18:26 +00:00
Justin Lu
b859da9c54 8316696: Remove the testing base classes: IntlTest and CollatorTest
Reviewed-by: naoto
2023-10-03 16:38:17 +00:00
Swati Sharma
b438cffdb9 8314085: Fixing scope from benchmark to thread for JMH tests having shared state
Co-authored-by: Vladimir Ivanov <vaivanov@openjdk.org>
Reviewed-by: sviswanathan, ecaspole
2023-10-03 16:01:36 +00:00
Jiangli Zhou
ae796a4e10 8316923: Add DEF_STATIC_JNI_OnLoad for librmi
Reviewed-by: alanb
2023-10-03 15:33:48 +00:00
Leonid Mesnik
89987dbf87 8303773: Replace "main.wrapper" with "test.thread.factory" property in test code
Reviewed-by: cjplummer, amenkov
2023-10-03 15:03:47 +00:00
Leonid Mesnik
0e501f66df 8308429: jvmti/StopThread/stopthrd007 failed with "NoClassDefFoundError: Could not initialize class jdk.internal.misc.VirtualThreads"
Reviewed-by: dholmes, sspitsyn
2023-10-03 15:03:21 +00:00
Thomas Schatzl
c47a0ce3f0 8317235: Remove Access API use in nmethod class
Reviewed-by: kbarrett, thartmann
2023-10-03 14:31:12 +00:00
Andrew Leonard
353d139682 8317340: Windows builds are not reproducible if MS VS compiler install path differs
Reviewed-by: erikj
2023-10-03 14:00:00 +00:00
Glavo
3bcfac18c3 8317246: Cleanup java.net.URLEncoder and URLDecoder use of file.encoding property
Reviewed-by: rriggs, naoto
2023-10-03 10:34:12 +00:00
Nick Gasson
b6a97c0780 8316880: AArch64: "stop: Header is not fast-locked" with -XX:-UseLSE since JDK-8315880
Reviewed-by: rkennke, aph
2023-10-03 08:17:51 +00:00
Daniel Jeliński
287b243221 8316893: Compile without -fno-delete-null-pointer-checks
Reviewed-by: kbarrett, erikj
2023-10-03 05:54:33 +00:00
David Holmes
26c21f50a3 8314294: Unsafe::allocateMemory and Unsafe::freeMemory are slower than malloc/free
Reviewed-by: shade, dlong
2023-10-03 04:38:36 +00:00
Mark Powers
6e1aacdfba 8296631: NSS tests failing on OL9 linux-aarch64 hosts
Reviewed-by: valeriep
2023-10-02 22:43:48 +00:00
Weijun Wang
d2e2c4cef1 8309667: TLS handshake fails because of ConcurrentModificationException in PKCS12KeyStore.engineGetEntry
Reviewed-by: djelinski, mullan
2023-10-02 21:53:12 +00:00
Zhengyu Gu
e25121d1d9 8316929: Shenandoah: Shenandoah degenerated GC and full GC need to cleanup old OopMapCache entries
Reviewed-by: shade
2023-10-02 20:21:58 +00:00
Archie Cobbs
5c8366eea4 8268622: Performance issues in javac Name class
Reviewed-by: vromero
2023-10-02 20:15:43 +00:00
Mourad Abbay
ad81abd2db 8317034: Remove redundant type cast in the java.util.stream package
Reviewed-by: psandoz
2023-10-02 20:13:46 +00:00
Weijun Wang
d7d1d42b67 8316771: Krb5.java has not defined messages for all error codes
Reviewed-by: mullan
2023-10-02 19:55:22 +00:00
Weijun Wang
f985006142 8309356: Read files in includedir in alphanumeric order
Reviewed-by: mullan
2023-10-02 18:12:06 +00:00
Soumadipta Roy
a564d436c7 8315692: Parallelize gc/stress/TestStressRSetCoarsening.java test
Reviewed-by: shade, mli, lmesnik, tschatzl
2023-10-02 15:17:02 +00:00
Doug Simon
878d27dba1 8317273: compiler/codecache/OverflowCodeCacheTest.java fails transiently on Graal
Reviewed-by: never, thartmann
2023-10-02 14:18:27 +00:00
Albert Mingkun Yang
2637e8ddc4 8317314: Remove unimplemented ObjArrayKlass::oop_oop_iterate_elements_bounded
Reviewed-by: dcubed
2023-10-02 13:16:49 +00:00
Daniel Fuchs
8093563bce 8317295: ResponseSubscribers.SubscriberAdapter should call the finisher function asynchronously
Reviewed-by: djelinski
2023-10-02 13:06:43 +00:00
Daniel Jeliński
516cfb135f 8316907: Fix nonnull-compare warnings
Reviewed-by: kbarrett, jsjolen
2023-10-02 10:01:44 +00:00
Michal Sobierski
59847926b6 8316415: Parallelize sun/security/rsa/SignedObjectChain.java subtests
Reviewed-by: shade, rhalade, valeriep
2023-10-02 09:56:14 +00:00
Emanuel Peter
eeb63cd0fa 8316361: C2: assert(!failure) failed: Missed optimization opportunity in PhaseIterGVN with -XX:VerifyIterativeGVN=10
Reviewed-by: kvn, chagedorn
2023-10-02 08:03:10 +00:00
Ludvig Janiuk
69489427e9 8317327: Remove JT_JAVA dead code in jib-profiles.js
Reviewed-by: erikj, jwaters
2023-10-02 07:40:11 +00:00
Thomas Schatzl
795e5dcc85 8315503: G1: Code root scan causes long GC pauses due to imbalanced iteration
Co-authored-by: Ivan Walulya <iwalulya@openjdk.org>
Reviewed-by: iwalulya, ayang
2023-10-02 07:35:02 +00:00
Roberto Castañeda Lozano
207819a05e 8315604: IGV: dump and visualize node bottom and phase types
Co-authored-by: Tobias Holenstein <tholenstein@openjdk.org>
Reviewed-by: thartmann, chagedorn, tholenstein
2023-10-02 07:03:40 +00:00
Justin Lu
8fcf70e931 5066247: Refine the spec of equals() and hashCode() for j.text.Format classes
Reviewed-by: naoto, darcy
2023-10-02 05:06:45 +00:00
Kim Barrett
93f662f4fc 8317335: Build on windows fails after 8316645
Reviewed-by: lmesnik
2023-10-01 20:01:09 +00:00
Robbin Ehn
b8fa6c23f5 8316186: RISC-V: Remove PlatformCmpxchg<4>
Reviewed-by: fyang, mli
2023-10-01 16:33:54 +00:00
Robbin Ehn
fb055e7e53 8316645: RISC-V: Remove dependency on libatomic by adding cmpxchg 1b
Reviewed-by: ihse, fyang, luhenry, mli
2023-10-01 16:32:05 +00:00
Jaikiran Pai
009f5e1fa1 8317141: Remove unused validIndex method from URLClassPath$JarLoader
Reviewed-by: alanb, lancea, dfuchs
2023-09-30 01:06:16 +00:00
Kevin Driver
47569a256c 8295919: java.security.MessageDigest.isEqual does not adhere to @implNote
Reviewed-by: mullan
2023-09-29 18:47:47 +00:00
Alexey Semenyuk
5a6aa569aa 8303959: tools/jpackage/share/RuntimePackageTest.java fails with java.lang.AssertionError missing files
Reviewed-by: almatvee
2023-09-29 17:17:54 +00:00
Naoto Sato
014c95a54d 8317126: Redundant entries in Windows tzmappings file
Reviewed-by: lancea, iris, joehw
2023-09-29 16:36:29 +00:00
Mourad Abbay
fa0697a637 8316998: Remove redundant type arguments in the java.util.stream package
Reviewed-by: psandoz
2023-09-29 15:36:16 +00:00
Brian Burkhalter
49376e4452 8316000: File.setExecutable silently fails if file does not exist
Reviewed-by: alanb
2023-09-29 15:03:10 +00:00
Doug Simon
a185be0346 8317139: [JVMCI] oop handles clearing message pollutes event log
Reviewed-by: never, thartmann
2023-09-29 14:59:33 +00:00
Alexey Semenyuk
179792beb4 8317283: jpackage tests run osx-specific checks on windows and linux
Reviewed-by: almatvee
2023-09-29 14:53:42 +00:00
Roman Kennke
bd918f49d2 8316401: sun/tools/jhsdb/JStackStressTest.java failed with "InternalError: We should have found a thread that owns the anonymous lock"
Reviewed-by: cjplummer, dholmes
2023-09-29 11:14:13 +00:00
Afshin Zafari
c45308afac 8301327: convert assert to guarantee in Handle_IDiv_Exception
Reviewed-by: dnsimon, dholmes
2023-09-29 07:05:24 +00:00
Vladimir Kempik
bd7bb67d8f 8317257: RISC-V: llvm build broken
Reviewed-by: fyang
2023-09-29 05:15:23 +00:00
Jaikiran Pai
0259da9283 8301686: TLS 1.3 handshake fails if server_name doesn't match resuming session
Reviewed-by: djelinski, wetmore
2023-09-29 05:00:02 +00:00
Justin Lu
355811a996 8316559: Refactor some util/Calendar tests to JUnit
Reviewed-by: naoto, lancea
2023-09-28 23:51:12 +00:00
Eamonn McManus
ecb5e8a03f 8317264: Pattern.Bound has static fields that should be static final.
Reviewed-by: psandoz
2023-09-28 23:01:18 +00:00
Mourad Abbay
f2c221def1 8317119: Remove unused imports in the java.util.stream package
Reviewed-by: naoto, iris, psandoz
2023-09-28 22:07:12 +00:00
Alexey Ivanov
09dad0e96b 8313810: BoxLayout uses <blockquote> instead of list for layout options
8313811: Improve description of how BoxLayout lays out components

Reviewed-by: prr
2023-09-28 19:46:07 +00:00
Alexey Ivanov
73a47f0c4a 4622866: javax.swing.text.Document.remove(int, int) has a misleading picture
Reviewed-by: prr
2023-09-28 19:28:37 +00:00
Aleksei Voitylov
cfcbfc6cae 8316879: RegionMatches1Tests fails if CompactStrings are disabled after JDK-8302163
Reviewed-by: simonis, rgiulietti, rriggs
2023-09-28 18:11:40 +00:00
Leonid Mesnik
ca5eee2fe3 8316445: Mark com/sun/management/HotSpotDiagnosticMXBean/CheckOrigin.java as vm.flagless
Reviewed-by: cjplummer, sspitsyn
2023-09-28 17:15:40 +00:00
Albert Mingkun Yang
060db1b2a2 8315031: YoungPLABSize and OldPLABSize not aligned by ObjectAlignmentInBytes
Reviewed-by: tschatzl, iwalulya
2023-09-28 17:13:10 +00:00
Naoto Sato
3481a48571 8316974: ListFormat creation is unsuccessful for some of the supported Locales
Reviewed-by: joehw, rriggs
2023-09-28 16:04:46 +00:00
Matthias Baesken
29348b3cf6 8316894: make test TEST="jtreg:test/jdk/..." fails on AIX
Reviewed-by: ihse, erikj
2023-09-28 15:53:03 +00:00
Ian Myers
3f19df685c 8315936: Parallelize gc/stress/TestStressG1Humongous.java test
Reviewed-by: shade, tschatzl
2023-09-28 15:52:36 +00:00
Daniel Fuchs
fc98998627 8316580: HttpClient with StructuredTaskScope does not close when a task fails
Reviewed-by: djelinski
2023-09-28 13:32:38 +00:00
Ashutosh Mehra
065203d44a 8313631: SA: stack trace printed using "where" command does not show class name
Reviewed-by: cjplummer, dholmes
2023-09-28 13:32:15 +00:00
Coleen Phillimore
0c55887bfb 8309599: WeakHandle and OopHandle release should clear obj pointer
Reviewed-by: dholmes, kbarrett
2023-09-28 12:00:20 +00:00
Lutz Schmidt
1230aed61d 8316885: jcmd: Compiler.CodeHeap_Analytics cmd does not inform about missing aggregate
Reviewed-by: kvn, mdoerr
2023-09-28 11:50:51 +00:00
Albert Mingkun Yang
d0c1444d92 8316957: Serial: Change GenCollectedHeap to SerialHeap inside gc/serial folder
Reviewed-by: iwalulya, tschatzl
2023-09-28 11:49:03 +00:00
Matthias Baesken
bc5a39bb54 8317144: Exclude sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java on Linux ppc64le
Reviewed-by: mdoerr
2023-09-28 11:42:59 +00:00
Alexey Ivanov
3481ecb255 8316159: Update BoxLayout sample image for crisper edges
Move all rectangles half a pixel to make edges crisp

Reviewed-by: prr
2023-09-28 11:31:46 +00:00
Maurizio Cimadamore
798125152b 8316970: Add internal annotation to mark restricted methods
Reviewed-by: jvernee, iris, alanb
2023-09-28 09:49:57 +00:00
Ludvig Janiuk
77fac0f4c6 8316906: Clarify TLABWasteTargetPercent flag
Reviewed-by: ayang, iwalulya, tschatzl
2023-09-28 08:02:10 +00:00
Robbin Ehn
2d154fcd0d 8316566: RISC-V: Zero extended narrow oop passed to Atomic::cmpxchg
Reviewed-by: luhenry, fyang
2023-09-28 05:47:33 +00:00
Jaikiran Pai
42924ed4e5 8316946: jtreg failure handler pages are mislabelling the jcmd/thread/dump_to_file results.
Reviewed-by: dholmes
2023-09-28 05:42:26 +00:00
Daniel Jeliński
384d2ea6d1 8316125: Windows call_stub unnecessarily saves xmm16-31 when UseAVX>=3
Reviewed-by: jvernee, kvn, sviswanathan
2023-09-28 04:16:54 +00:00
Jean-Philippe Bempel
84390dd063 8316658: serviceability/jvmti/RedefineClasses/RedefineLeakThrowable.java fails intermittently
Reviewed-by: coleenp, dholmes
2023-09-28 02:43:41 +00:00
Ioi Lam
52073b27a3 8316994: Avoid modifying ClassLoader and Module objects during -Xshare:dump
Reviewed-by: matsaave, ccheung
2023-09-28 01:47:54 +00:00
Mikael Vidstedt
83c0e45160 8306630: Bump minimum boot jdk to JDK 21
Reviewed-by: darcy, erikj, iris, shade
2023-09-28 00:17:31 +00:00
Alisen Chung
d3a79b5861 8316371: Open some swing tests 6
Reviewed-by: dnguyen, prr
2023-09-27 23:20:29 +00:00
Ilya Gavrilin
750da00129 8316743: RISC-V: Change UseVectorizedMismatchIntrinsic option result to warning
Reviewed-by: fyang, luhenry
2023-09-27 17:07:10 +00:00
Thomas Schatzl
b8cec480f8 8315848: G1: Rename rs_ prefix to card_rs in analytics
Reviewed-by: ayang, lkorinth
2023-09-27 17:05:58 +00:00
Kevin Walls
5350fd6173 8299560: Assertion failed: currentQueryIndex >= 0 && currentQueryIndex < numberOfJavaProcessesAtInitialization
Reviewed-by: lmesnik, cjplummer
2023-09-27 15:55:12 +00:00
Thomas Schatzl
edcc559f09 8316661: CompilerThread leaks CodeBlob memory when dynamically stopping compiler thread in non-product
Reviewed-by: kvn, thartmann
2023-09-27 15:14:57 +00:00
Roger Riggs
1be355734d 8315721: CloseRace.java#id0 fails transiently on libgraal
Reviewed-by: lancea, jpai
2023-09-27 13:30:35 +00:00
Fredrik Bredberg
347bd15e49 8315966: Relativize initial_sp in interpreter frames
Reviewed-by: fyang, mdoerr, pchilanomate
2023-09-27 13:15:07 +00:00
Alan Bateman
b24ad7cf57 8316924: java/lang/Thread/virtual/stress/ParkALot.java times out
Reviewed-by: jpai
2023-09-27 12:54:29 +00:00
Christoph Langer
ad6df41a9e 8316710: Exclude java/awt/font/Rotate/RotatedTextTest.java
Reviewed-by: mbaesken, aivanov
2023-09-27 12:37:39 +00:00
Afshin Zafari
45a145e5bc 8299915: Remove ArrayAllocatorMallocLimit and associated code
Reviewed-by: dholmes, coleenp
2023-09-27 08:27:02 +00:00
Axel Boldt-Christmas
50a7a04e9a 8316417: ObjectMonitorIterator does not return the most recent monitor and is incorrect if no monitors exists
Reviewed-by: cjplummer, dholmes
2023-09-27 08:16:34 +00:00
Daniel Jeliński
fee9d3362c 8293176: SSLEngine handshaker does not send an alert after a bad parameters
Reviewed-by: mdonovan, jnimeh
2023-09-27 07:33:52 +00:00
Daniel Jeliński
fd52be2a3c 8316895: SeenThread::print_action_queue called on a null pointer
Reviewed-by: coleenp, dholmes
2023-09-27 07:31:44 +00:00
Gui Cao
e39197ec62 8316933: RISC-V: compiler/vectorapi/VectorCastShape128Test.java fails when using RVV
Reviewed-by: fyang, dzhang
2023-09-27 07:18:42 +00:00
Matthias Baesken
b659e0343a 8316897: tools/jpackage/junit tests fail on AIX after JDK-8316547
Reviewed-by: cstein, asemenyuk, almatvee
2023-09-27 06:43:50 +00:00
Prasanta Sadhukhan
83806abe44 6450193: After the first Serialization, JTableHeader does not uninstall its UI
Reviewed-by: aivanov
2023-09-27 04:28:10 +00:00
Alexander Zvegintsev
2f311d59dc 8316211: Open source several manual applet tests
Reviewed-by: honkar, aivanov
2023-09-26 21:24:07 +00:00
Alexander Zvegintsev
65227a3c64 8316389: Open source few AWT applet tests
Reviewed-by: dnguyen, abhiscxk, aivanov
2023-09-26 21:23:34 +00:00
Alisen Chung
788e6e1548 8316218: Open some swing tests 5
Reviewed-by: prr, dnguyen
2023-09-26 20:52:04 +00:00
Leonid Mesnik
ee9776fa23 8304839: Move TestScaffold.main() to the separate class DebugeeWrapper
Reviewed-by: amenkov, cjplummer
2023-09-26 18:35:13 +00:00
Brian Burkhalter
36ac83904c 8073061: (fs) Files.copy(foo, bar, REPLACE_EXISTING) deletes bar even if foo is not readable
Reviewed-by: alanb
2023-09-26 15:27:44 +00:00
Amit Kumar
efb7e85ecf 8316935: [s390x] Use consistent naming for lightweight locking in MacroAssembler
Reviewed-by: mdoerr, lucy
2023-09-26 15:02:49 +00:00
Roland Westrelin
4e1e579e8b 8315920: C2: "control input must dominate current control" assert failure
Reviewed-by: thartmann, chagedorn
2023-09-26 14:32:54 +00:00
Matthias Baesken
1f7dfda705 8316671: sun/security/ssl/SSLSocketImpl/SSLSocketCloseHang.java test fails intermittent with Read timed out
Reviewed-by: lucy
2023-09-26 14:01:45 +00:00
Martin Doerr
20ff603108 8316735: Print LockStack in hs_err files
Reviewed-by: dholmes, mbaesken
2023-09-26 13:33:33 +00:00
Albert Mingkun Yang
e510dee162 8316098: Revise signature of numa_get_leaf_groups
Reviewed-by: tschatzl, coleenp
2023-09-26 12:56:59 +00:00
Albert Mingkun Yang
1513e7910f 8316940: Serial: Remove unused declarations in genCollectedHeap
Reviewed-by: stefank, tschatzl
2023-09-26 12:56:24 +00:00
Roland Westrelin
52983ed529 8303737: C2: Load can bypass subtype check that enforces it's from the right object type
Reviewed-by: chagedorn, thartmann
2023-09-26 06:55:01 +00:00
Per Minborg
9e6cb62048 8316851: Add @sealedGraph to Executable
Reviewed-by: darcy
2023-09-26 06:00:58 +00:00
Amit Kumar
3fe6e0faca 8308479: [s390x] Implement alternative fast-locking scheme
Reviewed-by: lucy, mdoerr
2023-09-26 03:40:11 +00:00
David Holmes
e2e8e8e210 8312136: Modify runtime/ErrorHandling/TestDwarf.java to split dwarf and decoder testing
Reviewed-by: chagedorn, pchilanomate
2023-09-25 23:42:17 +00:00
Sergey Bylokhov
0dce4c1758 8313220: Remove Windows specific workaround in LCMS.c for _snprintf
Reviewed-by: prr
2023-09-25 23:01:19 +00:00
Sergey Bylokhov
e5f05b5a96 8312191: ColorConvertOp.filter for the default destination is too slow
Reviewed-by: prr
2023-09-25 20:54:00 +00:00
Alexander Zuev
be9cc73fca 8315871: Opensource five more Swing regression tests
Reviewed-by: dnguyen, prr
2023-09-25 18:30:49 +00:00
Alexey Ivanov
b65f4f7220 8313403: Remove unused 'mask' field from JFormattedTextField
Reviewed-by: prr, honkar
2023-09-25 18:06:53 +00:00
Naoto Sato
e3201d1d13 8310631: test/jdk/sun/nio/cs/TestCharsetMapping.java is spuriously passing
Reviewed-by: jlu, alanb
2023-09-25 18:03:52 +00:00
Liam Miller-Cushon
9291b46bcf 8313804: JDWP support for -Djava.net.preferIPv6Addresses=system
Reviewed-by: cjplummer, amenkov
2023-09-25 16:43:20 +00:00
Mourad Abbay
afa48333ab 8271268: Fix Javadoc links for Stream.mapMulti
Reviewed-by: liach, psandoz
2023-09-25 16:38:31 +00:00
Elif Aslan
9688ec2d0d 8311823: JFR: Uninitialized EventEmitter::_thread_id field
Reviewed-by: shade, egahlin
2023-09-25 15:01:17 +00:00
Ian Myers
0f77d250b6 8315684: Parallelize sun/security/util/math/TestIntegerModuloP.java
Reviewed-by: shade, weijun
2023-09-25 13:12:41 +00:00
Ludovic Henry
311c7461c8 8316859: RISC-V: Disable detection of V through HWCAP
Reviewed-by: rehn, fyang
2023-09-25 12:21:47 +00:00
Andrew Leonard
0f0c5b2d71 8316648: jrt-fs.jar classes not reproducible between standard and bootcycle builds
Reviewed-by: erikj
2023-09-25 08:35:53 +00:00
Thomas Schatzl
3d6e775d71 8316669: ImmutableOopMapSet destructor not called
Reviewed-by: thartmann, jvernee, kvn
2023-09-25 06:38:11 +00:00
Thomas Schatzl
837783c2d3 8316670: Remove effectively unused nmethodBucket::_count
Reviewed-by: kvn, dlong
2023-09-25 06:36:14 +00:00
Andrey Turbanov
89e068bc19 8316556: Fix typos in java.desktop
Reviewed-by: prr, aivanov
2023-09-25 06:32:40 +00:00
Hao Sun
481cfc7985 8287325: AArch64: fix virtual threads with -XX:UseBranchProtection=pac-ret
Co-authored-by: Nick Gasson <ngasson@openjdk.org>
Reviewed-by: aph, dlong
2023-09-25 05:38:51 +00:00
Tejesh R
f0ff001dd7 8315742: Open source several Swing Scroll related tests
Reviewed-by: dnguyen, psadhukhan
2023-09-25 05:35:35 +00:00
Alisen Chung
a2391a92cd 8316053: Open some swing tests 3
Reviewed-by: dnguyen, prr
2023-09-23 05:42:07 +00:00
Alisen Chung
d2d7d9a8b7 8315882: Open some swing tests 2
Reviewed-by: honkar, prr
2023-09-23 04:45:16 +00:00
Coleen Phillimore
68a9c81040 8316711: SEGV in LoaderConstraintTable::find_loader_constraint after JDK-8310874
Reviewed-by: dcubed, iklam
2023-09-22 21:58:01 +00:00
Alisen Chung
e015e6ce28 8315825: Open some swing tests
Reviewed-by: abhiscxk, prr
2023-09-22 20:51:14 +00:00
Chris Plummer
9aaac2eee3 8301639: JDI and JDWP specs should clarify potential deadlock issues with method invocation
Reviewed-by: dholmes, alanb
2023-09-22 20:29:00 +00:00
Hannes Wallnöfer
6b8261b8d6 8315464: Uncouple AllClassesIndexWriter from IndexBuilder
Reviewed-by: jjg
2023-09-22 19:17:40 +00:00
Mandy Chung
9b65b7ddbe 8316305: Initial buffer size of StackWalker is too small caused by JDK-8285447
Reviewed-by: bchristi
2023-09-22 18:38:06 +00:00
Ben Perez
53516aed38 8304956: Update KeyStore.getDefaultType​() specification to return pkcs12 as fallback
Reviewed-by: hchao, mullan
2023-09-22 17:31:57 +00:00
Brian Burkhalter
373cdf257d 8315960: test/jdk/java/io/File/TempDirDoesNotExist.java leaves test files behind
Reviewed-by: lancea, djelinski, rriggs
2023-09-22 17:24:05 +00:00
Naoto Sato
f7578e8048 8316540: StoreReproducibilityTest fails on some locales
Reviewed-by: joehw, jlu, jpai, alanb
2023-09-22 16:53:56 +00:00
Joe Darcy
b66ded9a5b 8316688: Widen allowable error bound of Math.hypot
Reviewed-by: bpb, rgiulietti
2023-09-22 16:35:55 +00:00
Aleksey Shipilev
6c61bc1950 8316514: Better diagnostic header for VtableStub
Reviewed-by: thartmann, kvn
2023-09-22 16:24:06 +00:00
Martin Doerr
c90d63105c 8315750: Update subtype check profile collection on PPC following 8308869
Reviewed-by: rrich, lucy
2023-09-22 13:21:10 +00:00
Alexey Ivanov
00f585bd22 8316206: Test StretchedFontTest.java fails for Baekmuk font
Ignore broken fonts, i.e. the fonts for which
GlyphVector(TEXT).getVisualBounds().isEmpty() returns true

Reviewed-by: azvegint, prr, goetz
2023-09-22 12:47:01 +00:00
Claes Redestad
c24c66db97 8316681: Rewrite URLEncoder.encode to use small reusable buffers
Reviewed-by: dfuchs, rriggs
2023-09-22 09:41:01 +00:00
Xin Liu
bd2439f3fc 8316702: Only evaluate buffer when IGVPrintLevelOption >= 5
Reviewed-by: chagedorn, thartmann
2023-09-22 08:35:35 +00:00
Tobias Hartmann
4b65483921 8316130: Incorrect control in LibraryCallKit::inline_native_notify_jvmti_funcs
Reviewed-by: roland, chagedorn
2023-09-22 08:30:49 +00:00
Severin Gehwolf
7352bb9105 8316418: containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC
Reviewed-by: shade
2023-09-22 08:12:51 +00:00
Yi-Fan Tsai
343cc0ce2b 8315576: compiler/codecache/CodeCacheFullCountTest.java fails after JDK-8314837
Reviewed-by: kvn, thartmann
2023-09-22 07:57:05 +00:00
Stefan Karlsson
fe862639e7 8316319: Generational ZGC: The SoftMaxHeapSize might be wrong when CDS decreases the MaxHeapSize
Reviewed-by: aboldtch, serb
2023-09-22 06:38:45 +00:00
Jie Fu
775e22a8a6 8316699: TestDynamicConstant.java fails with release VMs
Reviewed-by: dholmes
2023-09-22 02:14:52 +00:00
Mandy Chung
a1e03463ac 8316698: build failure caused by JDK-8316456
Reviewed-by: dcubed, dholmes
2023-09-22 00:10:06 +00:00
Mandy Chung
c72f00463f 8316456: StackWalker may skip Continuation::yield0 frame mistakenly
Reviewed-by: rpressler, pchilanomate
2023-09-21 23:10:49 +00:00
Alex Menkov
041510dc21 8315486: vmTestbase/nsk/jdwp/ThreadReference/ForceEarlyReturn/forceEarlyReturn002/forceEarlyReturn002.java timed out
Reviewed-by: cjplummer, lmesnik
2023-09-21 22:24:24 +00:00
Justin Lu
ef49e6c0d7 8316629: j.text.DateFormatSymbols setZoneStrings() exception is unhelpful
Reviewed-by: naoto
2023-09-21 21:31:37 +00:00
Justin Lu
496264c1f9 8316435: sun.util.calendar.CalendarSystem subclassing should be restricted
Reviewed-by: naoto
2023-09-21 21:31:07 +00:00
Daniel D. Daugherty
1100dbc6b2 8316695: ProblemList serviceability/jvmti/RedefineClasses/RedefineLeakThrowable.java
Reviewed-by: ccheung, kbarrett
2023-09-21 20:59:30 +00:00
Damon Nguyen
d3e8218386 8316306: Open source and convert manual Swing test
Reviewed-by: honkar, azvegint
2023-09-21 19:37:47 +00:00
Joe Wang
4e5717754a 8316383: NullPointerException in AbstractSAXParser after JDK-8306632
Reviewed-by: lancea, naoto
2023-09-21 19:17:24 +00:00
Alexander Zvegintsev
3b397c8552 8315965: Open source various AWT applet tests
Reviewed-by: honkar, psadhukhan
2023-09-21 18:28:19 +00:00
Sean Mullan
c698b45a7b 8313229: DHEKeySizing.java should be modified to use TLS versions TLSv1, TLSv1.1, TLSv1.2
Reviewed-by: jnimeh
2023-09-21 17:31:46 +00:00
Sacha Coppey
015f6f5d94 8315771: [JVMCI] Resolution of bootstrap methods with int[] static arguments
Reviewed-by: dnsimon, psandoz
2023-09-21 17:00:46 +00:00
Damon Nguyen
83b01cf3c2 8311922: [macOS] right-Option key fails to generate release event
Reviewed-by: honkar, prr
2023-09-21 16:42:14 +00:00
Doug Simon
542b3000f0 8315954: getArgumentValues002.java fails on Graal
Reviewed-by: never, fparain
2023-09-21 16:28:44 +00:00
Daniel Jeliński
063790012d 8316433: net.dll should delay load winhttp.dll
Reviewed-by: erikj, ihse
2023-09-21 15:43:05 +00:00
Thomas Schatzl
90bcdbd15f 8316581: Improve performance of Symbol::print_value_on()
Reviewed-by: shade, coleenp, dholmes
2023-09-21 14:47:06 +00:00
Doug Simon
8350268c05 8316453: [JVMCI] Using Xcomp on jargraal must eagerly initialize JVMCI
Reviewed-by: never, thartmann
2023-09-21 14:29:06 +00:00
Alexander Zvegintsev
3809d69ac4 8316240: Open source several add/remove MenuBar manual tests
Reviewed-by: honkar, psadhukhan
2023-09-21 13:57:28 +00:00
Jorn Vernee
38bf1192b6 8310228: Improve error reporting for uncaught native exceptions on Windows
Reviewed-by: dholmes, djelinski
2023-09-21 13:54:35 +00:00
Daniel Jeliński
349723cb8d 8315739: Missing null check in os::vm_min_address
Reviewed-by: dholmes, jvernee
2023-09-21 12:43:53 +00:00
Daniel Jeliński
8cbe42b94a 8316421: libjava should load shell32.dll eagerly
Reviewed-by: erikj, jwaters, jvernee
2023-09-21 12:39:03 +00:00
Matthias Baesken
378bcd5985 8316595: Alpine build fails after JDK-8314021
Reviewed-by: dholmes, yyang
2023-09-21 12:24:51 +00:00
Coleen Phillimore
b3d75fe12e 8310874: Runthese30m crashes with klass should be in the placeholders during verification
Reviewed-by: dholmes, iklam
2023-09-21 12:17:34 +00:00
Martin Doerr
6a4b665550 8316659: assert(LockingMode != LM_LIGHTWEIGHT || flag == CCR0) failed: bad condition register
Reviewed-by: goetz, mbaesken
2023-09-21 12:06:27 +00:00
Claes Redestad
913e43fea9 8316582: Minor startup regression in 22-b15 due JDK-8310929
Reviewed-by: liach, rriggs
2023-09-21 09:36:28 +00:00
Sergei Tachenov
23ed890f3f 6415065: Submenu is shown on wrong screen in multiple monitor environment
Reviewed-by: prr
2023-09-21 09:00:26 +00:00
Christian Hagedorn
ca47f5f06d 8316105: C2: Back to back Parse Predicates from different loops but with same deopt reason are wrongly grouped together
Reviewed-by: roland, thartmann, kvn
2023-09-21 08:56:31 +00:00
Chen Liang
1749ba265b 8311084: Add typeSymbol() API for applicable constant pool entries
Reviewed-by: briangoetz, asotona
2023-09-21 08:05:01 +00:00
Abhishek Kumar
9f5d2b947f 8316285: Opensource JButton manual tests
Reviewed-by: psadhukhan, tr
2023-09-21 06:35:34 +00:00
Qing Xiao
a35e96a3fa 8313612: Use JUnit in lib-test/jdk tests
Reviewed-by: cstein, asotona
2023-09-21 06:24:49 +00:00
Deepa Kumari
bee7524251 8315786: [AIX] Build Disk Local Detection Issue with GNU-utils df on AIX
Reviewed-by: tsteele, erikj, amitkumar
2023-09-21 06:01:49 +00:00
Roberto Castañeda Lozano
ceff47b462 8315082: [REDO] Generational ZGC: Tests crash with assert(index == 0 || is_power_of_2(index))
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Erik Österlund <eosterlund@openjdk.org>
Reviewed-by: ayang, thartmann, kvn
2023-09-21 05:49:09 +00:00
Jean-Philippe Bempel
df4a25b41c 8308762: Metaspace leak with Instrumentation.retransform
Reviewed-by: dholmes, coleenp
2023-09-21 05:16:07 +00:00
David Holmes
84124794c2 8316229: Enhance class initialization logging
Reviewed-by: shade, coleenp
2023-09-21 00:50:33 +00:00
Damon Nguyen
c04c9ea361 8316627: JViewport Test headless failure
Reviewed-by: dcubed, prr
2023-09-20 22:11:27 +00:00
Brian Burkhalter
5cacf212f0 8316156: ByteArrayInputStream.transferTo causes MaxDirectMemorySize overflow
Reviewed-by: alanb
2023-09-20 20:42:31 +00:00
Erik Joelsson
3461c7b165 8316532: Native library copying in BuildMicrobenchmark.gmk cause dups on macOS
Reviewed-by: ihse, redestad
2023-09-20 20:36:16 +00:00
Coleen Phillimore
3301fb1e8a 8315869: UseHeavyMonitors not used
Reviewed-by: dcubed, alanb
2023-09-20 19:09:02 +00:00
Leonid Mesnik
54028e779b 8316562: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java times out after JDK-8314829
Reviewed-by: dholmes, kevinw, dcubed
2023-09-20 18:13:45 +00:00
Naoto Sato
7c991cc567 8296246: Update Unicode Data Files to Version 15.1.0
Reviewed-by: erikj, joehw, srl, rriggs
2023-09-20 17:39:57 +00:00
Damon Nguyen
a021dbcb9e 8316149: Open source several Swing JTree JViewport KeyboardManager tests
Reviewed-by: psadhukhan, tr
2023-09-20 16:19:37 +00:00
Daniel D. Daugherty
455cfae1e1 8315880: change LockingMode default from LM_LEGACY to LM_LIGHTWEIGHT
Reviewed-by: dholmes, rkennke, stefank
2023-09-20 15:27:27 +00:00
Coleen Phillimore
9e00949a26 8316427: Duplicated code for {obj,type}ArrayKlass::array_klass
Reviewed-by: dholmes, adinn
2023-09-20 14:38:04 +00:00
Alexander Zuev
c43ebd34af 8315981: Opensource five more random Swing tests
Reviewed-by: tr, azvegint
2023-09-20 14:31:42 +00:00
Leo Korinth
e30e356442 8316461: Fix: make test outputs TEST SUCCESS after unsuccessful exit
Reviewed-by: ihse, erikj
2023-09-20 13:04:45 +00:00
Erik Joelsson
242eeaea47 8286757: adlc tries to build with /pathmap but without /experimental:deterministic
Reviewed-by: jwaters, ihse
2023-09-20 12:48:19 +00:00
Tim Prinzing
b275bdd9b5 8308995: Update Network IO JFR events to be static mirror events
Reviewed-by: egahlin, alanb
2023-09-20 12:34:08 +00:00
Matthias Baesken
e1870d360e 8316411: compiler/compilercontrol/TestConflictInlineCommands.java fails intermittent with force inline by CompileCommand missing
Reviewed-by: mdoerr, chagedorn
2023-09-20 09:08:52 +00:00
Aleksey Shipilev
ec74194cb7 8316546: Backout JDK-8315932: runtime/InvocationTests spend a lot of time on dependency verification
Reviewed-by: dholmes
2023-09-20 05:33:36 +00:00
Alexey Semenyuk
2568188630 8316547: Use JUnit.dir jtreg property with jpackage JUnit tests
Reviewed-by: almatvee
2023-09-19 21:43:35 +00:00
Harshitha Onkar
833a82872c 8315876: Open source several Swing CSS related tests
Reviewed-by: azvegint, dnguyen, aivanov
2023-09-19 20:41:57 +00:00
Man Cao
7ce5bd1590 8316468: os::write incorrectly handles partial write
Reviewed-by: dholmes, shade
2023-09-19 20:06:40 +00:00
Harshitha Onkar
d19e017d3f 8315951: Open source several Swing HTMLEditorKit related tests
Reviewed-by: dnguyen, aivanov
2023-09-19 18:42:56 +00:00
Damon Nguyen
62c0a1b9ac 8315883: Open source several Swing JToolbar tests
Reviewed-by: honkar, aivanov
2023-09-19 18:28:37 +00:00
Harshitha Onkar
0c972468e7 8311113: Remove invalid pointer cast and clean up setLabel() in awt_MenuItem.cpp
Reviewed-by: aivanov, serb
2023-09-19 17:37:49 +00:00
Damon Nguyen
d2b2f6759f 8315952: Open source several Swing JToolbar JTooltip JTree tests
Reviewed-by: aivanov, honkar
2023-09-19 17:34:03 +00:00
Damon Nguyen
5f6cee86ef 8316056: Open source several Swing JTree tests
Reviewed-by: honkar, aivanov
2023-09-19 16:56:12 +00:00
Mikhailo Seledtsov
b685ee00b2 8314830: runtime/ErrorHandling/ tests ignore external VM flags
Reviewed-by: dholmes, lmesnik
2023-09-19 16:42:23 +00:00
Leonid Mesnik
e0f8d16833 8314829: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java ignores vm flags
Reviewed-by: cjplummer
2023-09-19 16:35:50 +00:00
Leonid Mesnik
7b1e2bfe0f 8315415: OutputAnalyzer.shouldMatchByLine() fails in some cases
Reviewed-by: dholmes
2023-09-19 16:33:31 +00:00
Rajan Halade
da57d2a1eb 8308592: Framework for CA interoperability testing
Reviewed-by: mullan
2023-09-19 16:11:23 +00:00
Albert Mingkun Yang
a6d120d4df 8316513: Serial: Remove unused invalidate_remembered_set
Reviewed-by: tschatzl
2023-09-19 15:20:51 +00:00
Adam Farley
607bd4ed84 8316294: AIX: Build fopen system call fails on file _BUILD_LIBJDWP_objectfilenames.txt
Reviewed-by: clanger, erikj
2023-09-19 14:13:40 +00:00
Glavo
f25c920fd3 8314774: Optimize URLEncoder
Reviewed-by: redestad, dfuchs
2023-09-19 13:49:58 +00:00
Tejesh R
7c5f2a2db9 8315669: Open source several Swing PopupMenu related tests
Reviewed-by: dnguyen, psadhukhan
2023-09-19 13:36:16 +00:00
Per Minborg
cf74b8c2a3 8316337: (bf) Concurrency issue in DirectByteBuffer.Deallocator
Reviewed-by: alanb, liach
2023-09-19 13:10:51 +00:00
Alan Bateman
4461eeb31d 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked
Reviewed-by: sspitsyn, rpressler
2023-09-19 10:58:12 +00:00
Andrew Haley
670b4567cf 8315038: Capstone disassembler stops when it sees a bad instruction
Reviewed-by: jvernee, shade
2023-09-19 09:16:57 +00:00
Thomas Schatzl
fab372d3a2 8316428: G1: Nmethod count statistics only count last code root set iterated
Reviewed-by: iwalulya, ayang
2023-09-19 08:30:17 +00:00
Andrey Turbanov
283c360392 8314877: Make fields final in 'java.net' package
Reviewed-by: jpai
2023-09-19 08:26:25 +00:00
Albert Mingkun Yang
86115c2a2e 8316420: Serial: Remove unused GenCollectedHeap::oop_iterate
Reviewed-by: stefank, tschatzl
2023-09-19 08:25:52 +00:00
Thomas Schatzl
d038571213 8030815: Code roots are not accounted for in region prediction
Reviewed-by: iwalulya, ayang
2023-09-19 08:23:57 +00:00
Tejesh R
138542de78 8316061: Open source several Swing RootPane and Slider related tests
Reviewed-by: kizune, abhiscxk
2023-09-19 05:15:33 +00:00
Tejesh R
f52e500f80 8316104: Open source several Swing SplitPane and RadioButton related tests
Reviewed-by: kizune, abhiscxk
2023-09-19 05:15:01 +00:00
Yi Yang
3760a0448d 8314021: HeapDump: Optimize segmented heap file merging phase
Reviewed-by: amenkov, kevinw
2023-09-19 02:03:15 +00:00
Calvin Cheung
f226ceb435 8316440: LambdasInTwoArchives.java failed to find WhiteBox.class
Reviewed-by: iklam
2023-09-19 00:12:36 +00:00
Damon Nguyen
24c3d86f32 8315804: Open source several Swing JTabbedPane JTextArea JTextField tests
Reviewed-by: honkar, aivanov
2023-09-18 23:08:26 +00:00
Justin Lu
373e37bf13 8313813: Field sun.util.calendar.CalendarDate#forceStandardTime is never set
Reviewed-by: aturbanov, naoto
2023-09-18 22:08:17 +00:00
Joe Darcy
5308bbbcf8 8246280: Refine API to model sealed classes and interfaces in javax.lang.model
Reviewed-by: vromero, jjg
2023-09-18 20:40:01 +00:00
Alexey Semenyuk
dcea9bf087 8301247: JPackage app-image exe launches multiple exe's in JDK 17+
Reviewed-by: almatvee
2023-09-18 20:19:36 +00:00
Alexey Semenyuk
1b104b63a9 8314909: tools/jpackage/windows/Win8282351Test.java fails with java.lang.AssertionError: Expected [0]. Actual [1618]:
Reviewed-by: almatvee
2023-09-18 20:12:38 +00:00
Aleksey Shipilev
4421951d8f 8316142: Enable parallelism in vmTestbase/nsk/monitoring/stress/lowmem tests
Reviewed-by: lmesnik, cjplummer
2023-09-18 18:29:33 +00:00
shaojin.wensj
f09b7af685 8311220: Optimization for StringLatin UpperLower
Reviewed-by: redestad, liach
2023-09-18 17:04:50 +00:00
Christoph Langer
2e2d49c76d 8316400: Exclude jdk/jfr/event/runtime/TestResidentSetSizeEvent.java on AIX
Reviewed-by: mbaesken
2023-09-18 12:31:36 +00:00
Christoph Langer
bf9d1e2071 8316399: Exclude java/net/MulticastSocket/Promiscuous.java on AIX
Reviewed-by: alanb
2023-09-18 12:31:14 +00:00
Joachim Kern
21c2dac159 8315706: com/sun/tools/attach/warnings/DynamicLoadWarningTest.java real fix for failure on AIX
Reviewed-by: dholmes, mbaesken
2023-09-18 11:57:48 +00:00
Albert Mingkun Yang
ecce2afc1a 8316357: Serial: Remove unused GenCollectedHeap::space_containing
Reviewed-by: tschatzl
2023-09-18 11:36:42 +00:00
Nikita Sakharin
3828dc913a 8314236: Overflow in Collections.rotate
Co-authored-by: Nikita Sakharin <17588081+nikita-sakharin@users.noreply.github.com>
Reviewed-by: shade, smarks
2023-09-18 09:20:11 +00:00
Adam Sotona
1203e11a8d 8294969: Convert jdk.jdeps javap to use the Classfile API
Reviewed-by: vromero
2023-09-18 08:35:31 +00:00
Leo Korinth
fbc766ee21 8315988: Parallel: Make TestAggressiveHeap use createTestJvm
Reviewed-by: ayang, tschatzl
2023-09-18 07:14:53 +00:00
Matthias Baesken
aa0ebeedb1 8316341: sun/security/pkcs11/PKCS11Test.java needs adjustment on Linux ppc64le Ubuntu 22
Reviewed-by: lucy, clanger
2023-09-18 07:01:48 +00:00
Aleksey Shipilev
ca3fe7b3fd 8315932: runtime/InvocationTests spend a lot of time on dependency verification
Reviewed-by: phh, vlivanov
2023-09-18 05:53:12 +00:00
Alan Bateman
f44032969f 8316391: (zipfs) ZipFileSystem.readFullyAt does not tolerate short reads
Reviewed-by: jpai, lancea
2023-09-17 11:53:12 +00:00
Doug Simon
4b8f5d031a 8316273: JDK-8315818 broke JVMCIPrintProperties on libgraal
Reviewed-by: never, kvn
2023-09-16 21:31:23 +00:00
Christoph Langer
e62419823a 8316387: Exclude more failing multicast tests on AIX after JDK-8315651
Reviewed-by: alanb
2023-09-16 21:08:49 +00:00
Pavel Rappo
c92bdb0e91 8316187: Modernize examples in StringTokenizer and {Date,Number}Format
Reviewed-by: naoto
2023-09-16 07:51:34 +00:00
Harshitha Onkar
8f46abc938 8315889: Open source several Swing HTMLDocument related tests
Reviewed-by: tr, azvegint
2023-09-15 20:32:38 +00:00
Chris Plummer
00504472b9 8316148: Remove sun/tools/jhsdb/JStackStressTest.java from problem list
Reviewed-by: dholmes
2023-09-15 20:22:03 +00:00
Pavel Rappo
149acd186e 8316207: Fix typos in java.io.StreamTokenizer
Reviewed-by: naoto
2023-09-15 17:32:41 +00:00
Daniel Fuchs
dc5ca1d379 8316031: SSLFlowDelegate should not log from synchronized block
Reviewed-by: djelinski
2023-09-15 17:21:27 +00:00
Brian Burkhalter
8dfde28b28 8315485: (fs) Move java/nio/file/Path/Misc.java tests into java/nio/file/Path/PathOps.java
Reviewed-by: alanb
2023-09-15 15:15:46 +00:00
Sean Mullan
3c743cfea0 8312126: NullPointerException in CertStore.getCRLs after 8297955
Reviewed-by: weijun
2023-09-15 13:12:15 +00:00
Albert Mingkun Yang
bd268137ed 8316295: Serial: Remove empty Generation::promotion_failure_occurred
Reviewed-by: tschatzl
2023-09-15 11:39:16 +00:00
Feilong Jiang
42dc6b5d3a 8316182: RISC-V: SA stack walking code having trouble finding sender frame when invoking LambdaForms is involved
Reviewed-by: fyang
2023-09-15 10:04:43 +00:00
Roman Kennke
31c4e03d5d 8314551: More generic way to handshake GC threads with monitor deflation
Reviewed-by: jsjolen, eosterlund
2023-09-15 09:48:58 +00:00
Andrey Turbanov
89cb290bb0 8312165: Fix typos in java.desktop Swing
Co-authored-by: Alexey Ivanov <aivanov@openjdk.org>
Reviewed-by: aivanov
2023-09-15 09:18:28 +00:00
Alan Bateman
25f32f3538 8316160: Remove sun.misc.Unsafe.{shouldBeInitialized,ensureClassInitialized}
Reviewed-by: rriggs, mchung, jpai
2023-09-15 09:09:21 +00:00
Leo Korinth
86dde5e02b 8316001: GC: Make TestArrayAllocatorMallocLimit use createTestJvm
Reviewed-by: ayang, tschatzl
2023-09-15 08:59:48 +00:00
Daniel Fuchs
4f864faf42 8314136: Test java/net/httpclient/CancelRequestTest.java failed: WARNING: tracker for HttpClientImpl(42) has outstanding operations
Reviewed-by: jpai
2023-09-15 08:30:18 +00:00
Gui Cao
4070829ae5 8315931: RISC-V: xxxMaxVectorTestsSmokeTest fails when using RVV
Reviewed-by: fyang, dzhang
2023-09-15 07:42:23 +00:00
Aleksey Shipilev
d575968b4b 8316178: Better diagnostic header for CodeBlobs
Reviewed-by: thartmann, kvn
2023-09-15 07:14:35 +00:00
Abhishek Kumar
bfbc41c1f1 8315741: Open source few swing JFormattedTextField and JPopupMenu tests
Reviewed-by: kizune, tr
2023-09-15 06:23:20 +00:00
Abhishek Kumar
0775bf2f03 8316106: Open source few swing JInternalFrame and JMenuBar tests
Reviewed-by: kizune, tr
2023-09-15 06:18:36 +00:00
Tejesh R
4a63eb0522 8315834: Open source several Swing JSpinner related tests
Reviewed-by: psadhukhan, abhiscxk
2023-09-15 06:08:27 +00:00
Per Minborg
8dc2d9280e 8316190: Improve MemorySegment::toString
Reviewed-by: rriggs
2023-09-15 05:43:57 +00:00
Jayathirth D V
783e44d07e 8316326: ProblemList java/awt/Mouse/EnterExitEvents/DragWindowTest.java on macosx-all again
Reviewed-by: dholmes
2023-09-15 03:04:28 +00:00
Pengfei Li
96781ba33d 8312332: C2: Refactor SWPointer out from SuperWord
Reviewed-by: epeter, kvn
2023-09-15 01:02:44 +00:00
Justin Lu
b55e418a07 8301991: Convert l10n properties resource bundles to UTF-8 native
Reviewed-by: naoto
2023-09-14 22:19:18 +00:00
Harshitha Onkar
d475f61fd5 8315731: Open source several Swing Text related tests
Reviewed-by: psadhukhan, tr
2023-09-14 22:03:03 +00:00
Soumadipta Roy
4415261688 8315683: Parallelize java/util/concurrent/tck/JSR166TestCase.java
Reviewed-by: martin, shade
2023-09-14 19:22:31 +00:00
Adam Sotona
b2e91060db 8313452: Improve Classfile API attributes handling safety
Reviewed-by: briangoetz
2023-09-14 18:52:51 +00:00
Chris Plummer
2a6fb9ce59 8316147: Remove serviceability/sa/TestJhsdbJstackMixed.java from -Xcomp problem list
Reviewed-by: lmesnik
2023-09-14 18:52:24 +00:00
Adam Sotona
ca747f09b6 8315678: Classfile API ConstantPool::entryCount and ConstantPool::entryByIndex methods are confusing
Reviewed-by: briangoetz
2023-09-14 18:30:39 +00:00
Adam Sotona
6d47fc6d5b 8313258: RuntimeInvisibleTypeAnnotationsAttribute.annotations() API Index out of Bound error
Reviewed-by: briangoetz
2023-09-14 18:29:01 +00:00
Adam Sotona
c7d306c65c 8315541: Classfile API TypeAnnotation.TargetInfo factory methods accept null labels
Reviewed-by: briangoetz
2023-09-14 18:27:12 +00:00
Harshitha Onkar
c11f8352e9 8315824: Open source several Swing Text/HTML related tests
Reviewed-by: psadhukhan, azvegint
2023-09-14 17:51:54 +00:00
Mandy Chung
5cea53d372 8315810: Reimplement sun.reflect.ReflectionFactory::newConstructorForSerialization with method handles
Co-authored-by: Chen Liang <liach@openjdk.org>
Reviewed-by: rriggs
2023-09-14 16:10:55 +00:00
Soumadipta Roy
eb1f67b160 8315937: Enable parallelism in vmTestbase/nsk/stress/numeric tests
Reviewed-by: shade, lmesnik
2023-09-14 15:59:13 +00:00
Prasanta Sadhukhan
a57b9dab6c 8316242: Opensource SwingGraphics manual test
Reviewed-by: kizune, abhiscxk
2023-09-14 15:50:03 +00:00
Albert Mingkun Yang
3abe7982bf 8316115: Parallel: Fix -Wconversion warnings around NUMA node ID
Reviewed-by: shade, tschatzl
2023-09-14 14:49:40 +00:00
Matias Saavedra Silva
83dca6296e 8313638: Add test for dump of resolved references
Reviewed-by: ccheung, iklam
2023-09-14 14:30:14 +00:00
Robbin Ehn
cfa89012ab 8315338: RISC-V: Change flags for stable extensions to non-experimental
Reviewed-by: fyang, luhenry, fjiang
2023-09-14 13:50:49 +00:00
Soumadipta Roy
edd454b502 8315766: Parallelize gc/stress/TestStressIHOPMultiThread.java test
Reviewed-by: shade, tschatzl
2023-09-14 12:21:45 +00:00
Albert Mingkun Yang
de9b971c2e 8315933: Serial: Remove empty Generation::ensure_parsability
Reviewed-by: tschatzl, sjohanss
2023-09-14 12:06:25 +00:00
Stefan Karlsson
b48dbf6bfa 8316181: Move the fast locking implementation out of the .ad files
Reviewed-by: thartmann, rkennke, fyang
2023-09-14 11:50:24 +00:00
Prasanta Sadhukhan
8f4dfc443b 8316164: Opensource JMenuBar manual test
Reviewed-by: tr, jdv
2023-09-14 10:21:44 +00:00
Prasanta Sadhukhan
33c62e4fff 8316154: Opensource JTextArea manual tests
Reviewed-by: abhiscxk, jdv
2023-09-14 10:09:08 +00:00
Andrey Turbanov
14408bc8f8 8315973: Remove unused fields from ThreadLocalRandom
Reviewed-by: jpai
2023-09-14 09:01:13 +00:00
Kevin Walls
903b9e8dd9 8316199: Remove sun/tools/jstatd/TestJstatd* tests from problemlist for Windows.
Reviewed-by: lmesnik, cjplummer
2023-09-14 07:06:20 +00:00
Stefan Karlsson
639ba13c4b 8316179: Use consistent naming for lightweight locking in MacroAssembler
Reviewed-by: rkennke, coleenp, dholmes
2023-09-14 07:02:29 +00:00
Leonid Mesnik
11d431b2c4 8316228: jcmd tests are broken by 8314828
Reviewed-by: dholmes
2023-09-14 01:20:24 +00:00
Sergey Bylokhov
eb37c7e361 8315971: ProblemList containers/docker/TestMemoryAwareness.java on linux-all
Reviewed-by: shade
2023-09-13 23:40:44 +00:00
Leonid Mesnik
23fab1181b 8314828: Mark 3 jcmd command-line options test as vm.flagless
Reviewed-by: cjplummer
2023-09-13 22:52:01 +00:00
Alexander Zvegintsev
1741d13b12 8315726: Open source several AWT applet tests
Reviewed-by: psadhukhan, aivanov
2023-09-13 22:23:27 +00:00
Claes Redestad
92ad4a2399 8315789: Minor HexFormat performance improvements
Reviewed-by: rriggs
2023-09-13 20:58:23 +00:00
Justin Lu
ce93d27fe5 6228794: java.text.ChoiceFormat pattern behavior is not well documented.
Reviewed-by: naoto
2023-09-13 20:32:21 +00:00
Aggelos Biboudis
3b0a6d2a68 8314226: Series of colon-style fallthrough switch cases with guards compiled incorrectly
Reviewed-by: mcimadamore, vromero
2023-09-13 15:09:01 +00:00
Sean Coffey
ff240a9135 8316087: Test SignedLoggerFinderTest.java is still failing
Reviewed-by: dfuchs
2023-09-13 15:05:46 +00:00
Ludovic Henry
a731a24c93 8315934: RISC-V: Disable conservative fences per vendor
Reviewed-by: rehn, mli, fyang
2023-09-13 14:54:43 +00:00
Albert Mingkun Yang
b3dad2443a 8316021: Serial: Remove unused Generation::post_compact
Reviewed-by: tschatzl
2023-09-13 13:40:54 +00:00
Per Minborg
f9ab115acb 8316050: Use hexadecimal encoding in MemorySegment::toString
Reviewed-by: rriggs, mcimadamore
2023-09-13 12:45:54 +00:00
Emanuel Peter
f804f8652d 8314612: TestUnorderedReduction.java fails with -XX:MaxVectorSize=32 and -XX:+AlignVector
Reviewed-by: chagedorn, kvn
2023-09-13 10:47:20 +00:00
shaojin.wensj
f8df754b9a 8311207: Cleanup for Optimization for UUID.toString
Reviewed-by: liach, rriggs
2023-09-13 08:25:13 +00:00
Abhishek Kumar
fecd2fd8f2 8315898: Open source swing JMenu tests
Reviewed-by: serb
2023-09-13 07:42:53 +00:00
Abhishek Kumar
bb6b3f2486 8315761: Open source few swing JList and JMenuBar tests
Reviewed-by: psadhukhan, tr
2023-09-13 07:35:01 +00:00
Aleksey Shipilev
2d168c5734 8313202: MutexLocker should disallow null Mutexes
Reviewed-by: dholmes, coleenp, dcubed
2023-09-13 07:32:54 +00:00
Matthias Baesken
36552e7193 8316123: ProblemList serviceability/dcmd/gc/RunFinalizationTest.java on AIX
Reviewed-by: clanger
2023-09-13 07:29:10 +00:00
Abhishek Kumar
fe5ef5f20d 8315677: Open source few swing JFileChooser and other tests
Reviewed-by: psadhukhan, tr
2023-09-13 07:27:18 +00:00
Aleksey Shipilev
ece9bdfc83 8299614: Shenandoah: STW mark should keep nmethod/oops referenced from stack chunk alive
Reviewed-by: rkennke, zgu
2023-09-13 06:04:10 +00:00
Prasanta Sadhukhan
a36f5a54ab 8315663: Open source misc awt tests
Reviewed-by: tr, jdv
2023-09-13 05:25:25 +00:00
Robbin Ehn
cbbfa0ddfb 8315652: RISC-V: Features string uses wrong separator for jtreg
Reviewed-by: fyang, luhenry
2023-09-13 04:59:19 +00:00
Robbin Ehn
1ebf510e5a 8315743: RISC-V: Cleanup masm lr()/sc() methods
Reviewed-by: fyang, luhenry
2023-09-13 04:58:49 +00:00
Sergey Bylokhov
bd52bbfa27 8316060: test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java may fail if heap is huge
Reviewed-by: lmesnik, dholmes
2023-09-13 02:33:03 +00:00
Justin Lu
dde11551e2 8315946: DecimalFormat and CompactNumberFormat do allow U+FFFE and U+FFFF in the pattern
Reviewed-by: naoto
2023-09-12 22:59:34 +00:00
Erik Joelsson
a9679acd5c 8253620: Debug symbols for tests missing on macos and windows
Reviewed-by: dholmes, ihse, jwaters
2023-09-12 20:17:52 +00:00
Erik Joelsson
020255a72d 8267174: Many test files have the wrong Copyright header
Reviewed-by: valeriep, aivanov, iris, dholmes, ihse
2023-09-12 20:16:05 +00:00
Naoto Sato
ac2dfe45d1 8313865: Always true condition in sun.nio.cs.CharsetMapping#readINDEXC2B
Reviewed-by: aturbanov, vtewari, rriggs, iris
2023-09-12 18:19:07 +00:00
Aleksey Shipilev
947dee7f2d 8316113: Infinite permission checking loop in java/net/spi/InetAddressResolverProvider/RuntimePermissionTest
Reviewed-by: jpai, aefimov, dfuchs
2023-09-12 18:13:55 +00:00
Andrew Haley
1d702d28b6 8313800: AArch64: SA stack walking code having trouble finding sender frame when invoking LambdaForms is involved
Reviewed-by: cjplummer
2023-09-12 16:49:55 +00:00
shaojin.wensj
e0845163aa 8315968: Move java.util.Digits to jdk.internal.util and refactor to reduce duplication
Reviewed-by: rriggs, liach, redestad
2023-09-12 16:35:01 +00:00
Mandy Chung
d75d9774c8 8285447: StackWalker minimal batch size should be optimized for getCallerClass
Reviewed-by: simonis
2023-09-12 16:24:16 +00:00
Mikhailo Seledtsov
fc3e826692 8314832: Few runtime/os tests ignore vm flags
Reviewed-by: dholmes, lmesnik
2023-09-12 14:40:06 +00:00
Thomas Schatzl
347beb21aa 8315998: Remove dead ClassLoaderDataGraphKlassIteratorStatic
Reviewed-by: coleenp
2023-09-12 13:34:04 +00:00
Thomas Schatzl
50158f393e 8316002: Remove unnecessary seen_dead_loader in ClassLoaderDataGraph::do_unloading
Reviewed-by: coleenp
2023-09-12 12:38:38 +00:00
Doug Simon
6f2684b7ba 8315948: JDK-8315818 broke Xcomp on libgraal
Reviewed-by: never, thartmann
2023-09-12 12:02:34 +00:00
Prasanta Sadhukhan
8b4f9a88e6 8315990: Amend problemlisted tests to proper position
Reviewed-by: aivanov
2023-09-12 11:47:07 +00:00
Jiangli Zhou
455c471ee3 8313277: Resolve multiple definition of 'normalize' when statically linking JDK native libraries with user code
Co-authored-by: Chris Moon <cjmoon@google.com>
Reviewed-by: dholmes, stuefe, sspitsyn
2023-09-12 09:06:08 +00:00
Christian Hagedorn
3b422d0dc1 8316094: Problemlist compiler/rangechecks/TestRangeCheckHoistingScaledIV.java
Reviewed-by: thartmann
2023-09-12 08:54:59 +00:00
Pavel Rappo
f55e799491 8316038: Fix doc typos in java.io.Console and java.util.Scanner
Reviewed-by: bpb, naoto, iris
2023-09-12 08:11:24 +00:00
Albert Mingkun Yang
94800781ea 8315550: G1: Fix -Wconversion warnings in g1NUMA
Reviewed-by: tschatzl, iwalulya
2023-09-12 07:40:29 +00:00
Alan Bateman
d08258f735 8315938: Deprecate for removal Unsafe methods that have standard APIs for many releases
Reviewed-by: mchung, psandoz, iris
2023-09-12 07:19:05 +00:00
Serguei Spitsyn
fda142ff6c 8312174: missing JVMTI events from vthreads parked during JVMTI attach
Reviewed-by: lmesnik, amenkov
2023-09-12 02:46:47 +00:00
Naoto Sato
d0be73a780 8041488: Locale-Dependent List Patterns
Reviewed-by: joehw, rriggs
2023-09-11 16:48:22 +00:00
Aleksey Shipilev
dd214d0f95 8315437: Enable parallelism in vmTestbase/nsk/monitoring/stress/classload tests
Reviewed-by: lmesnik, cjplummer
2023-09-11 16:41:35 +00:00
Soumadipta Roy
877731d2a2 8315770: serviceability/sa/TestJmapCoreMetaspace.java should run with -XX:-VerifyDependencies
Reviewed-by: shade, kevinw, cjplummer, lmesnik
2023-09-11 16:34:56 +00:00
Albert Mingkun Yang
d06a564328 8315765: G1: Incorrect use of G1LastPLABAverageOccupancy
Reviewed-by: iwalulya, tschatzl
2023-09-11 14:42:10 +00:00
Aleksei Efimov
66b6a5a84f 8277954: Replace use of monitors with explicit locks in the JDK LDAP provider implementation
Reviewed-by: dfuchs
2023-09-11 14:05:48 +00:00
shaojin.wensj
4cb4637b79 8315970: Big-endian issues after JDK-8310929
Reviewed-by: mdoerr
2023-09-11 13:39:26 +00:00
Prasanta Sadhukhan
ae08143d3d 8315611: Open source swing text/html and tree test
Reviewed-by: jdv
2023-09-11 13:23:47 +00:00
Albert Mingkun Yang
7b3e6970a6 8315855: G1: Revise signature of set_humongous_candidate
Reviewed-by: tschatzl, iwalulya
2023-09-11 12:45:31 +00:00
Aleksey Shipilev
1941290b79 8315942: Sort platform enums and definitions after JDK-8304913 follow-ups
Reviewed-by: rriggs, jpai
2023-09-11 12:08:31 +00:00
Albert Mingkun Yang
996b3362bf 8315781: Reduce the max value of GCDrainStackTargetSize
Reviewed-by: tschatzl, iwalulya
2023-09-11 11:07:21 +00:00
Ludovic Henry
35bccacb66 8315841: RISC-V: Check for hardware TSO support
Reviewed-by: vkempik, rehn, fyang
2023-09-11 09:02:40 +00:00
Prasanta Sadhukhan
a04c6c1ac6 8315609: Open source few more swing text/html tests
Reviewed-by: jdv
2023-09-11 07:06:41 +00:00
Vladimir Petko
dab1c213fd 8314491: Linux: jexec launched via PATH fails to find java
Reviewed-by: dholmes, rriggs
2023-09-10 23:20:49 +00:00
Alan Bateman
9a83d55887 8315373: Change VirtualThread to unmount after freezing, re-mount before thawing
Reviewed-by: pchilanomate, mgronlun, sspitsyn
2023-09-10 14:57:40 +00:00
Jorn Vernee
68f69417c7 8314452: Explicitly indicate inlining success/failure in PrintInlining
Reviewed-by: kvn, shade, thartmann
2023-09-09 10:32:23 +00:00
Kim Barrett
b482e6d902 8315580: Remove unused java_lang_String::set_value_raw()
Reviewed-by: shade, ayang
2023-09-09 01:28:20 +00:00
Justin Lu
9b0da48915 8315410: Undocumented exceptions in java.text.StringCharacterIterator
Reviewed-by: naoto
2023-09-08 23:05:00 +00:00
Joe Darcy
578ded4645 8312418: Add Elements.getEnumConstantBody
Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Reviewed-by: vromero
2023-09-08 22:06:24 +00:00
Joe Wang
dccf670492 8306632: Add a JDK Property for specifying DTD support
Reviewed-by: lancea, smarks
2023-09-08 20:24:23 +00:00
Maurizio Cimadamore
a62c48b87e 8315891: java/foreign/TestLinker.java failed with "error occurred while instantiating class TestLinker: null"
Reviewed-by: sundar, jvernee, pminborg
2023-09-08 16:36:21 +00:00
Aleksey Shipilev
9559e035d2 8315578: PPC builds are broken after JDK-8304913
Reviewed-by: mdoerr, rriggs
2023-09-08 15:11:17 +00:00
Sean Coffey
e409d07ae8 8315696: SignedLoggerFinderTest.java test failed
Co-authored-by: Daniel Fuchs <dfuchs@openjdk.org>
Reviewed-by: dfuchs
2023-09-08 14:25:58 +00:00
Evgeny Nikitin
ab6a87e670 8314838: 3 compiler tests ignore vm flags
Reviewed-by: eastigeevich, kvn, lmesnik
2023-09-08 14:09:10 +00:00
Markus Grönlund
b3dfc399da 8315930: Revert "8315220: Event NativeLibraryLoad breaks invariant by taking a stacktrace when thread is in state _thread_in_native"
Reviewed-by: egahlin
2023-09-08 12:27:01 +00:00
Doug Simon
ebc718f5c0 8315818: vmTestbase/nsk/jvmti/Allocate/alloc001/alloc001.java fails on libgraal
Reviewed-by: never
2023-09-08 11:55:54 +00:00
Albert Mingkun Yang
4a6bd81432 8315854: G1: Remove obsolete comment in G1ReclaimEmptyRegionsTask
Reviewed-by: iwalulya, tschatzl
2023-09-08 11:26:58 +00:00
Boris Ulasevich
c664f1ca66 8307352: AARCH64: Improve itable_stub
Reviewed-by: simonis, eastigeevich, aph
2023-09-08 09:59:23 +00:00
Thomas Schatzl
8ddf9eac00 8315686: G1: Disallow evacuation of marking regions in a Prepare Mixed gc
Reviewed-by: ayang, iwalulya
2023-09-08 08:44:46 +00:00
Thomas Schatzl
7ef059a75c 8315605: G1: Add number of nmethods in code roots scanning statistics
Reviewed-by: iwalulya, ayang
2023-09-08 08:44:22 +00:00
Aleksey Shipilev
825e0ed2a1 8315774: Enable parallelism in vmTestbase/gc/g1/unloading tests
Reviewed-by: phh, lmesnik
2023-09-08 08:34:05 +00:00
Roland Westrelin
dac1727956 8308869: C2: use profile data in subtype checks when profile has more than one class
Co-authored-by: Fei Yang <fyang@openjdk.org>
Reviewed-by: vlivanov, thartmann
2023-09-08 07:48:05 +00:00
Alan Bateman
3c258ac907 8315702: jcmd Thread.dump_to_file slow with millions of virtual threads
Reviewed-by: mchung, amenkov, jpai
2023-09-08 04:40:01 +00:00
Tejesh R
3a00ec8639 8312075: FileChooser.win32.newFolder is not updated when changing Locale
Reviewed-by: aivanov, abhiscxk
2023-09-08 04:26:14 +00:00
Prasanta Sadhukhan
806ef0897b 8315594: Open source few headless Swing misc tests
Reviewed-by: azvegint
2023-09-08 03:44:15 +00:00
shaojin.wensj
4b43c25fe3 8310929: Optimization for Integer.toString
Reviewed-by: redestad, rriggs
2023-09-08 02:13:52 +00:00
Mandy Chung
111ecdbaf5 8268829: Provide an optimized way to walk the stack with Class object only
8210375: StackWalker::getCallerClass throws UnsupportedOperationException

Reviewed-by: coleenp, dfuchs, bchristi
2023-09-07 21:37:40 +00:00
William Kemper
716201c77d 8314935: Shenandoah: Unable to throw OOME on back-to-back Full GCs
Reviewed-by: kdnilsen, ysr
2023-09-07 21:14:28 +00:00
Patricio Chilano Mateo
4c6d7fc258 8315795: runtime/Safepoint/TestAbortVMOnSafepointTimeout.java fails after JDK-8305507
Reviewed-by: dcubed
2023-09-07 20:12:04 +00:00
Daniel D. Daugherty
7e7ab6ee1b 8315877: ProblemList vmTestbase/nsk/jvmti/InterruptThread/intrpthrd003/TestDescription.java on macosx-aarch64
8315879: ProblemList java/awt/PopupMenu/PopupMenuLocation.java on macosx-aarch64

Reviewed-by: azvegint, rriggs, ccheung
2023-09-07 20:10:00 +00:00
Ioi Lam
0c865a75e6 8315637: JDK-8314249 broke libgraal
Reviewed-by: dnsimon, matsaave
2023-09-07 18:30:09 +00:00
Matias Saavedra Silva
683672c0bb 8292692: Move MethodCounters inline functions out of method.hpp
Reviewed-by: iklam, ccheung, kvn
2023-09-07 17:15:18 +00:00
Mikhailo Seledtsov
9bf3dee242 8314831: NMT tests ignore vm flags
Reviewed-by: lmesnik, stuefe, gziemski
2023-09-07 17:12:46 +00:00
Christian Stein
b74805d383 8315863: [GHA] Update checkout action to use v4
Reviewed-by: shade
2023-09-07 16:15:09 +00:00
Markus Grönlund
1cae0f53a9 8315220: Event NativeLibraryLoad breaks invariant by taking a stacktrace when thread is in state _thread_in_native
Reviewed-by: mbaesken, egahlin
2023-09-07 16:12:55 +00:00
Qing Xiao
8f7e29b2cd 8313422: test/langtools/tools/javac 144 test classes uses com.sun.tools.classfile library
Reviewed-by: asotona
2023-09-07 15:37:25 +00:00
Ilya Gavrilin
8557205a82 8312569: RISC-V: Missing intrinsics for Math.ceil, floor, rint
Reviewed-by: luhenry, fjiang, fyang
2023-09-07 15:26:55 +00:00
Qing Xiao
2fd870a74f 8315444: Convert test/jdk/tools to Classfile API
Reviewed-by: asotona
2023-09-07 15:02:13 +00:00
Aggelos Biboudis
81f8c57e4a 8314632: Intra-case dominance check fails in the presence of a guard
Reviewed-by: vromero
2023-09-07 12:51:37 +00:00
Per Minborg
b408a82f9b 8314260: Unable to load system libraries on Windows when using a SecurityManager
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Reviewed-by: jvernee
2023-09-07 11:52:14 +00:00
Jan Lahoda
726c9c977d 8315735: VerifyError when switch statement used with synchronized block
Reviewed-by: vromero
2023-09-07 11:08:55 +00:00
Prasanta Sadhukhan
fd6442c079 8315602: Open source swing security manager test
Reviewed-by: kizune, aivanov
2023-09-07 10:16:06 +00:00
Thomas Obermeier
e22eb06a3b 8315651: Stop hiding AIX specific multicast socket errors via NetworkConfiguration (aix)
Reviewed-by: alanb, mdoerr, clanger
2023-09-07 08:42:55 +00:00
Matthias Baesken
9887cd8adc 8315751: RandomTestBsi1999 fails often with timeouts on Linux ppc64le
Reviewed-by: mdoerr
2023-09-07 07:36:08 +00:00
Matthias Baesken
8107eab3c0 8314121: test tools/jpackage/share/RuntimePackageTest.java#id0 fails on RHEL8
Reviewed-by: lucy, asemenyuk
2023-09-07 07:30:32 +00:00
Daniel Jeliński
ab28300a42 8315698: Crash when comparing BasicType as int after JDK-8310577
Reviewed-by: dlong, kvn, coleenp
2023-09-07 04:52:18 +00:00
Prasanta Sadhukhan
b05198a4f3 8315600: Open source few more headless Swing misc tests
Reviewed-by: aivanov
2023-09-07 03:49:42 +00:00
Prasanta Sadhukhan
4127fbb9ed 8315606: Open source few swing text/html tests
Reviewed-by: aivanov
2023-09-07 03:41:24 +00:00
Saint Wesonga
9402548546 8268719: Force execution (and source) code page used when compiling on Windows
Reviewed-by: jwaters, erikj
2023-09-07 03:03:22 +00:00
Justin Lu
86a18f5e2e 8314604: j.text.DecimalFormat behavior regarding patterns is not clear
Reviewed-by: naoto
2023-09-06 18:02:39 +00:00
Aleksey Shipilev
bd477810b1 8315554: C1: Replace "cmp reg, 0" with "test reg, reg" on x86
Reviewed-by: iveresov, chagedorn, thartmann
2023-09-06 15:37:33 +00:00
Calvin Cheung
25e85db61c 8307468: CDS Lambda Proxy classes are regenerated in dynamic dump
Reviewed-by: iklam
2023-09-06 15:37:03 +00:00
singhnitin
024133b089 8311964: Some jtreg tests failing on x86 with error 'unrecognized VM options' (C2 flags)
Reviewed-by: dhanalla, thartmann
2023-09-06 11:36:13 +00:00
Albert Mingkun Yang
62a953f402 8315689: G1: Remove unused init_hash_seed
Reviewed-by: tschatzl
2023-09-06 09:36:18 +00:00
Aleksey Shipilev
cfc148930b 8315579: SPARC64 builds are broken after JDK-8304913
Reviewed-by: rriggs, phh
2023-09-06 08:27:11 +00:00
Martin Doerr
f6c203e616 8314949: linux PPC64 Big Endian: Implementation of Foreign Function & Memory API
Reviewed-by: mcimadamore, jvernee
2023-09-06 08:26:48 +00:00
Pavel Rappo
a01b3fb8e9 8288660: JavaDoc should be more helpful if it doesn't recognize a tag
Reviewed-by: jjg
2023-09-06 07:51:14 +00:00
Roland Westrelin
ba1a46392f 8315377: C2: assert(u->find_out_with(Op_AddP) == nullptr) failed: more than 2 chained AddP nodes?
Reviewed-by: chagedorn, kvn, thartmann
2023-09-06 07:25:22 +00:00
Roman Marchenko
a258fc443f 8315648: Add test for JDK-8309979 changes
Reviewed-by: cjplummer
2023-09-06 07:19:53 +00:00
Vladimir Kempik
5d3fdc1750 8315612: RISC-V: intrinsic for unsignedMultiplyHigh
Reviewed-by: fyang
2023-09-06 06:49:10 +00:00
Leonid Mesnik
5cbff24608 8315406: [REDO] serviceability/jdwp/AllModulesCommandTest.java ignores VM flags
Reviewed-by: cjplummer, dcubed
2023-09-06 00:02:54 +00:00
Rajan Halade
7a08e6bdd6 8313575: Refactor PKCS11Test tests
Reviewed-by: valeriep
2023-09-05 23:08:25 +00:00
Alex Menkov
d3ee704b28 8315563: Remove references to JDK-8226420 from problem list
Reviewed-by: kevinw, cjplummer
2023-09-05 22:46:15 +00:00
Tobias Hotz
aba89f20bf 8312213: Remove unnecessary TEST instructions on x86 when flags reg will already be set
Reviewed-by: jvernee, dlong
2023-09-05 22:08:20 +00:00
Ioi Lam
1f4cdb327f 8315127: CDSMapTest fails with incorrect number of oop references
Reviewed-by: ccheung
2023-09-05 20:56:09 +00:00
Rajan Halade
939d7c5d84 8161536: sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java fails with ProviderException
Reviewed-by: mullan
2023-09-05 17:51:12 +00:00
Daniel D. Daugherty
ebe3127734 8315717: ProblemList serviceability/sa/TestHeapDumpForInvokeDynamic.java with ZGC
Reviewed-by: thartmann, azvegint, kevinw
2023-09-05 17:48:43 +00:00
Quan Anh Mai
969fcdb0de 8314191: C2 compilation fails with "bad AD file"
Reviewed-by: thartmann, chagedorn
2023-09-05 16:15:54 +00:00
Wojciech Kudla
cef9fff067 8305507: Add support for grace period before AbortVMOnSafepointTimeout triggers
Reviewed-by: dholmes, pchilanomate
2023-09-05 14:12:45 +00:00
Matthias Baesken
ed2b4673de 8315499: build using devkit on Linux ppc64le RHEL puts path to devkit into libsplashscreen
Reviewed-by: erikj
2023-09-05 12:48:03 +00:00
Christian Hagedorn
4b445753e6 8305637: Remove Opaque1 nodes for Parse Predicates and clean up useless predicate elimination
Reviewed-by: roland, kvn
2023-09-05 12:45:55 +00:00
Afshin Zafari
8647f001bb 8293850: need a largest_committed metric for each category of NMT's output
Reviewed-by: gziemski, jsjolen
2023-09-05 11:05:49 +00:00
Ivan Walulya
5a2e151d48 8315548: G1: Document why VM_G1CollectForAllocation::doit() may allocate without completing a GC
Reviewed-by: tschatzl
2023-09-05 10:12:24 +00:00
Aleksey Shipilev
9013b03244 8315442: Enable parallelism in vmTestbase/nsk/monitoring/stress/thread tests
Reviewed-by: stuefe, lmesnik
2023-09-05 10:08:35 +00:00
Adam Sotona
744b3970f9 8312491: Update Classfile API snippets and examples
Reviewed-by: jlahoda
2023-09-05 08:48:39 +00:00
Christoph Langer
69c9ec92d0 8314094: java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges
Reviewed-by: mbaesken, azeller
2023-09-05 08:30:03 +00:00
Roland Westrelin
fe4f90021f 8315088: C2: assert(wq.size() - before == EMPTY_LOOP_SIZE) failed: expect the EMPTY_LOOP_SIZE nodes of this body if empty
Reviewed-by: thartmann, chagedorn
2023-09-05 07:32:51 +00:00
Matthias Baesken
8bbebbba8f 8315644: increase timeout of sun/security/tools/jarsigner/Warning.java
Reviewed-by: clanger, lucy
2023-09-05 07:06:37 +00:00
Per Minborg
f292268268 8315454: Add a way to create an immutable snapshot of a BitSet
Co-authored-by: Claes Redestad <redestad@openjdk.org>
Reviewed-by: redestad
2023-09-05 06:43:00 +00:00
Roland Westrelin
9def4538ab 8314580: PhaseIdealLoop::transform_long_range_checks fails with assert "was tested before"
Reviewed-by: chagedorn, kvn
2023-09-04 15:18:39 +00:00
Aleksey Shipilev
6c821f5e1d 8315545: C1: x86 cmove can use short branches
Reviewed-by: adinn, kvn
2023-09-04 11:02:52 +00:00
Doug Simon
d7e4087faf 8315369: [JVMCI] failure to attach to a libgraal isolate during shutdown should not be fatal
Reviewed-by: never
2023-09-04 10:19:18 +00:00
Doug Simon
d1cabe4f22 8315566: [JVMCI] deadlock in JVMCI startup when bad option specified
Reviewed-by: thartmann, never
2023-09-04 10:17:23 +00:00
Jan Lahoda
94a74a0a45 8315534: Incorrect warnings about implicit annotation processing
Reviewed-by: darcy
2023-09-04 10:06:20 +00:00
Jan Lahoda
84425a6290 8315452: Erroneous AST missing modifiers for partial input
Reviewed-by: vromero
2023-09-04 09:14:16 +00:00
Jan Lahoda
3094fd1ac5 8314662: jshell shows duplicated signatures of javap
Reviewed-by: asotona, cstein
2023-09-04 08:36:41 +00:00
Roberto Castañeda Lozano
0d52c82ed1 8310220: IGV: dump graph after each IGVN step at level 4
Reviewed-by: chagedorn, tholenstein
2023-09-04 07:41:41 +00:00
Jan Lahoda
adfc1d6cd2 8313323: javac -g on a java file which uses unnamed variable leads to ClassFormatError when launching that class
Reviewed-by: vromero
2023-09-04 07:17:28 +00:00
Christian Hagedorn
2dc930de12 8314997: Missing optimization opportunities due to missing try_clean_mem_phi() calls
Reviewed-by: roland, kvn, thartmann
2023-09-04 06:53:19 +00:00
Aleksey Shipilev
ab12c5d32f 8315549: CITime misreports code/total nmethod sizes
Reviewed-by: kvn
2023-09-04 06:02:03 +00:00
Leonid Mesnik
ba8d5c2206 8315582: Exclude compiler/codecache/CodeCacheFullCountTest.java with Xcomp
Reviewed-by: thartmann
2023-09-04 05:25:34 +00:00
Yi Yang
75d4ac2659 8311775: [TEST] duplicate verifyHeapDump in several tests
Reviewed-by: kevinw, amenkov, cjplummer
2023-09-04 01:56:13 +00:00
Rajat Mahajan
4f90abaf17 8311585: Add JRadioButtonMenuItem to bug8031573.java
Reviewed-by: honkar, aivanov
2023-09-01 21:49:49 +00:00
Yi-Fan Tsai
2a11bc41ba 8314837: 5 compiled/codecache tests ignore VM flags
Reviewed-by: kvn, lmesnik
2023-09-01 20:41:45 +00:00
Erik Joelsson
2f7c65ec48 8303427: Fixpath confused if unix root contains "/jdk"
Reviewed-by: mikael
2023-09-01 17:12:56 +00:00
Xin Liu
e9e0c5699b 8314319: LogCompilation doesn't reset lateInlining when it encounters a failure.
Reviewed-by: ecaspole, kvn
2023-09-01 16:54:55 +00:00
Abhishek Kumar
56b8db11c3 8258970: Disabled JPasswordField foreground color is wrong with GTK LAF
Reviewed-by: tr, dnguyen, psadhukhan
2023-09-01 15:26:25 +00:00
Robbin Ehn
0d4cadb824 8315195: RISC-V: Update hwprobe query for new extensions
Reviewed-by: fyang, fjiang, luhenry
2023-09-01 14:40:29 +00:00
Albert Mingkun Yang
b4f7069c5b 8315446: G1: Remove unused G1AllocRegion::attempt_allocation
Reviewed-by: iwalulya, tschatzl
2023-09-01 13:46:41 +00:00
Claes Redestad
cf02cf31da 8315098: Improve URLEncodeDecode microbenchmark
Reviewed-by: ecaspole, dfuchs
2023-09-01 11:18:05 +00:00
Thomas Stuefe
c32e340d94 8315321: [aix] os::attempt_reserve_memory_at must map at the requested address or fail
Reviewed-by: mdoerr
2023-09-01 11:05:34 +00:00
Daniel Jeliński
42f5b9e7aa 8315436: HttpsServer does not send TLS alerts
Reviewed-by: dfuchs, michaelm
2023-09-01 10:19:53 +00:00
Fredrik Bredberg
033f311abc 8315069: Relativize extended_sp in interpreter frames
Reviewed-by: haosun, aph, fyang
2023-09-01 08:35:49 +00:00
Adam Sotona
c2e01eba5a 8313983: jmod create --target-platform should replace existing ModuleTarget attribute
Reviewed-by: alanb, mchung
2023-09-01 08:33:33 +00:00
Thomas Stuefe
81b5d2211e 8315459: Print G1 reserved and committed sizes as separate items in VM.info and hs_err
Reviewed-by: ayang, tschatzl
2023-09-01 08:01:39 +00:00
Cesar Soares Lucas
764f65c8b4 8315278: Patch 'print-targets' target to print targets separated by new line
Reviewed-by: erikj, ksakata
2023-09-01 06:06:35 +00:00
Justin Lu
7754ac0506 8314925: ChoiceFormat does not specify IllegalArgumentExceptions
Reviewed-by: naoto
2023-08-31 23:02:26 +00:00
John Jiang
2264667bba 8315422: getSoTimeout() would be in try block in SSLSocketImpl
Reviewed-by: jnimeh
2023-08-31 22:26:48 +00:00
Justin Lu
d5973bdb98 6333341: [BI] Doc: java.text.BreakIterator class specification is unclear
Reviewed-by: naoto
2023-08-31 21:43:09 +00:00
Brian Burkhalter
63f561fac2 8306882: (fs) Path.toRealPath(LinkOption.NOFOLLOW_LINKS) fails when "../../" follows a link
Reviewed-by: alanb
2023-08-31 21:14:22 +00:00
Valerie Peng
2436fb010e 8312306: Add more Reference.reachabilityFence() calls to the security classes using Cleaner
Reviewed-by: ascarpino
2023-08-31 20:40:25 +00:00
Gerard Ziemski
351c31ea58 8315378: [BACKOUT] runtime/NMT/SummarySanityCheck.java failed with "Total committed (MMMMMM) did not match the summarized committed (NNNNNN)"
Reviewed-by: stuefe, ccheung
2023-08-31 20:38:41 +00:00
Andrey Turbanov
c12ca885cc 8312521: Unused field LocaleProviderAdapter#defaultLocaleProviderAdapter could be removed
Reviewed-by: naoto
2023-08-31 20:10:15 +00:00
Alex Menkov
b38bcae1ba 8313656: assert(!JvmtiExport::can_support_virtual_threads()) with -XX:-DoJVMTIVirtualThreadTransitions
Reviewed-by: sspitsyn, lmesnik
2023-08-31 19:18:18 +00:00
Mandy Chung
c8acab1d91 8315413: Remove special filtering of Continuation.yield0 in StackWalker
Reviewed-by: alanb
2023-08-31 16:11:03 +00:00
Oliver Kopp
ea5aa61c8c 8315383: jlink SystemModulesPlugin incorrectly parses the options
Reviewed-by: mchung
2023-08-31 16:10:44 +00:00
Andrew Haley
29ff1e45b9 8315445: 8314748 causes crashes in x64 builds
Reviewed-by: chagedorn, shade
2023-08-31 12:51:29 +00:00
Aleksey Shipilev
145d8bc1a3 8315051: jdk/jfr/jvm/TestGetEventWriter.java fails with non-JVMCI GCs
Reviewed-by: phh, egahlin
2023-08-31 11:15:09 +00:00
Thomas Obermeier
486fa08d4b 8313873: java/nio/channels/DatagramChannel/SendReceiveMaxSize.java fails on AIX due to small default RCVBUF size and different IPv6 Header interpretation
Reviewed-by: clanger, mbaesken
2023-08-31 09:51:13 +00:00
Albert Mingkun Yang
b0353addf2 8315242: G1: Fix -Wconversion warnings around GCDrainStackTargetSize
Reviewed-by: tschatzl, mli
2023-08-31 09:49:16 +00:00
Andrew Haley
b594f01fe4 8314748: 1-10% regressions on Crypto micros
Reviewed-by: chagedorn, adinn, kvn, sviswanathan
2023-08-31 08:31:31 +00:00
shiker
39f181337b 8315318: Typo in comment on sun.nio.ch.Net.unblock4
Reviewed-by: mbaesken, vtewari
2023-08-31 08:28:11 +00:00
Ivan Walulya
47aa6f3a65 8315219: G1: Improve allocator pathological case where it keeps doing direct allocations instead of retiring a PLAB
Reviewed-by: tschatzl, ayang, mli
2023-08-31 08:04:47 +00:00
Leonid Mesnik
218829e0a2 8315421: [BACKOUT] 8314834 serviceability/jdwp/AllModulesCommandTest.java ignores VM flags
Reviewed-by: dholmes
2023-08-31 02:33:38 +00:00
Justin Lu
3c8a6678fe 8314611: Provide more explicative error message parsing Currencies
Reviewed-by: naoto
2023-08-30 23:40:34 +00:00
Jonathan Gibbons
df5e6e5d48 8315248: AssertionError in Name.compareTo
Reviewed-by: vromero
2023-08-30 21:52:31 +00:00
Daniel D. Daugherty
3eac8905ae 8315061: Make LockingMode a product flag
Reviewed-by: ccheung
2023-08-30 20:20:17 +00:00
Kim Barrett
8419a53bf1 8315072: Remove unneeded AdaptivePaddedAverage::operator new
Reviewed-by: tschatzl, iwalulya
2023-08-30 19:51:23 +00:00
Alex Menkov
c90cd2c060 8286789: Test forceEarlyReturn002.java timed out
Reviewed-by: lmesnik, sspitsyn
2023-08-30 18:28:43 +00:00
Thomas Stuefe
89d18ea40f 8312018: Improve reservation of class space and CDS
8313669: Reduced chance for zero-based nKlass encoding since JDK-8296565

Reviewed-by: iklam, adinn
2023-08-30 17:51:28 +00:00
Brian Burkhalter
dd64a4a483 8315241: (fs) Move toRealPath tests in java/nio/file/Path/Misc.java to separate JUnit 5 test
Reviewed-by: rriggs
2023-08-30 16:58:16 +00:00
Leonid Mesnik
8e4cda063c 8314834: serviceability/jdwp/AllModulesCommandTest.java ignores VM flags
Reviewed-by: sspitsyn
2023-08-30 16:14:07 +00:00
Leonid Mesnik
1ea6463fbb 8314835: gtest wrappers should be marked as flagless
Reviewed-by: dholmes, stuefe
2023-08-30 16:12:17 +00:00
Leonid Mesnik
93e82c0146 8314824: Fix serviceability/jvmti/8036666/GetObjectLockCount.java to use vm flags
Reviewed-by: sspitsyn, kevinw
2023-08-30 16:11:56 +00:00
Sean Coffey
7daae1fb42 8314263: Signed jars triggering Logger finder recursion and StackOverflowError
Co-authored-by: Daniel Fuchs <dfuchs@openjdk.org>
Reviewed-by: dfuchs
2023-08-30 12:54:57 +00:00
Lance Andersen
6701eba736 8315117: Update Zlib Data Compression Library to Version 1.3
Reviewed-by: alanb
2023-08-30 11:45:38 +00:00
Qing Xiao
e29f0c2d75 8297777: Convert jdk.jlink StringSharingPlugin to use Class File API
Reviewed-by: asotona
2023-08-30 11:26:29 +00:00
Afshin Zafari
bf63945ad1 8298992: runtime/NMT/SummarySanityCheck.java failed with "Total committed (MMMMMM) did not match the summarized committed (NNNNNN)"
Reviewed-by: gziemski, stuefe
2023-08-30 11:11:44 +00:00
Albert Mingkun Yang
cb3f9680d3 8314651: G1: Fix -Wconversion warnings in static fields of HeapRegion
Reviewed-by: tschatzl, iwalulya
2023-08-30 09:36:34 +00:00
Robbin Ehn
876a725af9 8315206: RISC-V: hwprobe query is_set return wrong value
Reviewed-by: luhenry, fyang
2023-08-30 08:56:50 +00:00
Roland Westrelin
ed1ea5fe7c 8314024: SIGSEGV in PhaseIdealLoop::build_loop_late_post_work due to bad immediate dominator info
Reviewed-by: kvn, chagedorn
2023-08-30 07:52:05 +00:00
Matthias Baesken
f3aeb024d9 8315213: java/lang/ProcessHandle/TreeTest.java test enhance output of children
Reviewed-by: stuefe, rriggs
2023-08-30 06:46:51 +00:00
Matthias Baesken
1e7e2bcf35 8315214: Do not run sun/tools/jhsdb tests concurrently
Reviewed-by: alanb, cjplummer
2023-08-30 06:41:43 +00:00
Scott Gibbons
ce2a7ea40a 8314056: Remove runtime platform check from frem/drem
Reviewed-by: sviswanathan, jbhateja
2023-08-30 01:28:27 +00:00
Valerie Peng
1c598c2245 8312428: PKCS11 tests fail with NSS 3.91
Reviewed-by: ssahoo, rhalade
2023-08-29 22:08:34 +00:00
Chris Plummer
b2728cb139 8189685: need PerfMemory class update and a volatile_static_field support in VMStructs
Reviewed-by: ysuenaga, dholmes, sspitsyn
2023-08-29 20:55:11 +00:00
Albert Mingkun Yang
e22762c010 8314932: G1: Fix -Wconversion warnings for simple cases inside g1 folder
Reviewed-by: tschatzl, iwalulya
2023-08-29 16:04:50 +00:00
Thomas Schatzl
762b652912 8314573: G1: Heap resizing at Remark does not take existing eden regions into account
Reviewed-by: kbarrett, ayang
2023-08-29 14:20:11 +00:00
Pavel Rappo
a4e97aa4eb 8314753: Remove support for @beaninfo, @ToDo, @since.unbundled, and @Note
Reviewed-by: rriggs, azvegint, kevinw
2023-08-29 12:00:19 +00:00
Emmy
5cc64cc27a 8309463: IGV: Dynamic graph layout algorithm
Reviewed-by: tholenstein, rcastanedalo, chagedorn
2023-08-29 09:52:41 +00:00
Kevin Walls
1d0250709a 8314476: TestJstatdPortAndServer.java failed with "java.rmi.NoSuchObjectException: no such object in table"
Reviewed-by: msheppar, sspitsyn
2023-08-29 08:54:00 +00:00
Sergey Tsypanov
93188bd80c 8314569: (fs) Improve normalization of UnixPath for input with trailing slashes
Reviewed-by: alanb, bpb, rriggs
2023-08-29 08:39:42 +00:00
Albert Mingkun Yang
8b8182db59 8315087: G1: Use uint for G1 flags indicating percentage
Reviewed-by: tschatzl, kbarrett
2023-08-29 08:01:35 +00:00
Feilong Jiang
3dc266c58b 8315070: RISC-V: Clean up platform dependent inline headers
Reviewed-by: fyang, rehn
2023-08-29 02:43:44 +00:00
Hao Sun
25f5df2af2 8315073: Zero build on macOS fails after JDK-8303852
Reviewed-by: jiefu, fyang
2023-08-29 02:12:37 +00:00
Pengfei Li
a03954e6c5 8309697: [TESTBUG] Remove "@requires vm.flagless" from jtreg vectorization tests
Reviewed-by: kvn, thartmann, epeter, chagedorn
2023-08-29 01:39:54 +00:00
Pengfei Li
e5ea9aa9aa 8312570: [TESTBUG] Jtreg compiler/loopopts/superword/TestDependencyOffsets.java fails on 512-bit SVE
Reviewed-by: epeter, kvn
2023-08-29 01:34:33 +00:00
Calvin Cheung
1cb2cc6587 8308464: Shared array class should not always be loaded in boot loader
Reviewed-by: dholmes, iklam
2023-08-28 22:05:15 +00:00
Erik Joelsson
69d1feb83f 8315060: Out of tree incremental build fails with ccache
Reviewed-by: kbarrett, dholmes
2023-08-28 20:56:31 +00:00
Joe Darcy
8e2a533df6 8315137: Add explicit override RecordComponentElement.asType()
Reviewed-by: jjg
2023-08-28 20:43:54 +00:00
Justin Lu
b4b2fecb42 8311081: KeytoolReaderP12Test.java fail on localized Windows platform
Reviewed-by: lancea, jpai, weijun
2023-08-28 20:36:32 +00:00
lawrence.andrews
31e26814db 8315071: Modify TrayIconScalingTest.java, PrintLatinCJKTest.java to use new PassFailJFrame's builder pattern usage
Reviewed-by: honkar, aivanov
2023-08-28 20:31:02 +00:00
Alisen Chung
21916f32c0 8139208: [macosx] Issue with setExtendedState of JFrame
Reviewed-by: honkar, dnguyen, azvegint
2023-08-28 20:17:40 +00:00
Xin Liu
99ea8bf2b9 8315062: [GHA] get-bootjdk action should return the abolute path
Reviewed-by: clanger, erikj
2023-08-28 15:59:24 +00:00
Vicente Romero
acb24bf354 8315116: fix minor issue in copyright header introduced by JDK-8269957 that is breaking the build
Reviewed-by: jjg, dcubed
2023-08-28 15:43:41 +00:00
Archie Cobbs
11da15d142 8269957: facilitate alternate impls of NameTable and Name
Reviewed-by: jjg, vromero
2023-08-28 14:48:45 +00:00
Ao Qi
725ec0ce1b 8315020: The macro definition for LoongArch64 zero build is not accurate.
Reviewed-by: erikj, fyang
2023-08-28 11:10:53 +00:00
Roberto Castañeda Lozano
1c3177eea7 8315029: [BACKOUT] Generational ZGC: Tests crash with assert(index == 0 || is_power_of_2(index))
Reviewed-by: chagedorn, mdoerr
2023-08-28 11:08:44 +00:00
Albert Mingkun Yang
dd23f7d5cd 8315039: Parallel: Remove unimplemented PSYoungGen::oop_iterate
Reviewed-by: kbarrett, tschatzl
2023-08-28 10:51:00 +00:00
Christian Hagedorn
5c4f1dc43e 8314513: [IR Framework] Some internal IR Framework tests are failing after JDK-8310308 on PPC and Cascade Lake
Reviewed-by: kvn, mdoerr
2023-08-28 10:30:48 +00:00
Martin Doerr
cf2d33ca2e 8299658: C1 compilation crashes in LinearScan::resolve_exception_edge
Reviewed-by: thartmann, lucy
2023-08-28 10:14:19 +00:00
Darragh Clarke
1664e793eb 8311792: java/net/httpclient/ResponsePublisher.java fails intermittently with AssertionError: Found some outstanding operations
Reviewed-by: dfuchs, jpai
2023-08-28 10:03:42 +00:00
Pavel Rappo
0901d75e07 8314762: Make {@Incubating} conventional
Reviewed-by: jjg, iris, chegar
2023-08-28 09:38:02 +00:00
Daniel Jeliński
12de9b0225 8314148: Fix variable scope in SunMSCAPI
Reviewed-by: valeriep
2023-08-28 05:27:25 +00:00
Amit Kumar
7fbad4cd5e 8310596: Utilize existing method frame::interpreter_frame_monitor_size_in_bytes()
Reviewed-by: dholmes, stefank
2023-08-28 03:34:20 +00:00
Ioi Lam
752a438f99 8314684: Add overview docs to loaderConstraints.cpp
Reviewed-by: ccheung, dholmes
2023-08-27 03:44:38 +00:00
Doug Simon
acd9310234 8313430: [JVMCI] fatal error: Never compilable: in JVMCI shutdown
Reviewed-by: never, kvn, shade
2023-08-26 10:13:23 +00:00
Chris Plummer
8a5db6bab3 8237542: JMapHeapConfigTest.java doesn't work with negative jlong values
Reviewed-by: sspitsyn, shade
2023-08-25 23:16:02 +00:00
Chris Plummer
d0cc0439c0 8314550: [macosx-aarch64] serviceability/sa/TestJmapCore.java fails with "sun.jvm.hotspot.debugger.UnmappedAddressException: 801000800"
Reviewed-by: dholmes, iklam, stuefe
2023-08-25 21:14:33 +00:00
Erik Joelsson
837d2e1cac 8314483: Optionally override copyright header in generated source
Reviewed-by: dholmes, iris
2023-08-25 20:42:14 +00:00
Erik Joelsson
320162395d 8310454: Introduce static-libs-graal bundle
Reviewed-by: jiangli
2023-08-25 20:35:40 +00:00
Rajan Halade
e9ba8d5a0e 8314960: Add Certigna Root CA - 2
Reviewed-by: mullan
2023-08-25 18:17:27 +00:00
Quan Anh Mai
837cf85f7d 8312547: Max/Min nodes Value implementation could be improved
Reviewed-by: thartmann, kvn
2023-08-25 17:48:27 +00:00
Leonid Mesnik
7342f5a033 8314333: Update com/sun/jdi/ProcessAttachTest.java to use ProcessTools.createTestJvm(..)
Reviewed-by: cjplummer
2023-08-25 16:18:45 +00:00
Roberto Castañeda Lozano
f139f30695 8315033: Problemlist java/lang/template/StringTemplateTest.java
Reviewed-by: chagedorn
2023-08-25 15:27:24 +00:00
Weibing Xiao
f2383b3cbd 8314063: The socket is not closed in Connection::createSocket when the handshake failed for LDAP connection
Reviewed-by: aefimov, msheppar
2023-08-25 12:20:18 +00:00
Jonas Norlinder
dcd6e75671 8314990: Generational ZGC: Strong OopStorage stats reported as weak roots
Reviewed-by: stefank, eosterlund
2023-08-25 08:10:09 +00:00
Roberto Castañeda Lozano
002b594870 8312749: Generational ZGC: Tests crash with assert(index == 0 || is_power_of_2(index))
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Erik Österlund <eosterlund@openjdk.org>
Reviewed-by: thartmann, ayang, kvn
2023-08-25 07:18:34 +00:00
Jie Fu
d024059174 8314951: VM build without C2 still fails after JDK-8313530
Reviewed-by: dnsimon, kvn
2023-08-25 04:59:19 +00:00
Brian Burkhalter
2624324ac2 8219567: Name of first parameter of RandomAccessFile(String,String) is inconsistent
Reviewed-by: jlu, vtewari, rriggs, jpai
2023-08-24 18:18:16 +00:00
Patricio Chilano Mateo
8e4240c316 8314850: SharedRuntime::handle_wrong_method() gets called too often when resolving Continuation.enter
Reviewed-by: rpressler, aph
2023-08-24 18:08:16 +00:00
Alan Bateman
d9fc6b6933 8314759: VirtualThread.parkNanos timeout adjustment when pinned should be replaced
Reviewed-by: aturbanov, shade, dfuchs
2023-08-24 16:51:20 +00:00
Vyom Tewari
acaab6fd74 8306040: HttpResponseInputStream.available() returns 1 on empty stream
Reviewed-by: dfuchs
2023-08-24 15:46:44 +00:00
Aleksey Shipilev
76b9011c9e 8314656: GHA: No need for Debian ports keyring installation after JDK-8313701
Reviewed-by: fyang
2023-08-24 13:49:22 +00:00
Vladimir Petko
e36620d80e 8314554: Debian/Ubuntu should not link OpenJDK with --as-needed link option
Reviewed-by: erikj
2023-08-24 12:27:52 +00:00
Matthias Baesken
97b94cb1cd 8314883: Java_java_util_prefs_FileSystemPreferences_lockFile0 write result errno in missing case
Reviewed-by: jpai, shade, vtewari
2023-08-24 10:44:09 +00:00
Doug Simon
75e19e0d5e 8314819: [JVMCI] HotSpotJVMCIRuntime.lookupType throws unexpected ClassNotFoundException
Reviewed-by: never, thartmann
2023-08-24 10:12:16 +00:00
Gergö Barany
c418933d32 8313530: VM build without C2 fails after JDK-8312579
Reviewed-by: dnsimon, haosun, jiefu, kvn
2023-08-24 08:05:33 +00:00
Thomas Stuefe
de0e46c2f6 8303815: Improve Metaspace test speed
Reviewed-by: stefank, dholmes
2023-08-24 05:38:43 +00:00
Thomas Stuefe
3699666c93 8313319: [linux] mmap should use MAP_FIXED_NOREPLACE if available
Reviewed-by: jsjolen, dholmes
2023-08-24 05:16:58 +00:00
Koichi Sakata
3285a1efc8 8314555: Build with mawk fails on Windows
Reviewed-by: erikj
2023-08-24 00:32:31 +00:00
David Holmes
4a50e87592 8303852: current_stack_region() gets called twice unnecessarily
Reviewed-by: stuefe, pchilanomate
2023-08-23 22:51:31 +00:00
Kim Barrett
c077be4768 8314694: Separate checked_cast from globalDefinitions.hpp
Reviewed-by: stuefe, coleenp, sspitsyn
2023-08-23 22:32:37 +00:00
Andrey Turbanov
68815d54c1 8314734: Remove unused field TypeVariableImpl.EMPTY_ANNOTATION_ARRAY
Reviewed-by: bpb, darcy
2023-08-23 20:41:28 +00:00
Alexander Matveev
57a322da9b 8308042: [macos] Developer ID Application Certificate not picked up by jpackage if it contains UNICODE characters
Reviewed-by: asemenyuk
2023-08-23 20:22:12 +00:00
Chris Plummer
38a9edfb7e 8314679: SA fails to properly attach to JVM after having just detached from a different JVM
Reviewed-by: dholmes, kevinw
2023-08-23 20:11:10 +00:00
Chris Plummer
2c60cadfde 8280743: HSDB "Monitor Cache Dump" command might throw NPE
Reviewed-by: kevinw, sspitsyn
2023-08-23 19:12:35 +00:00
Ben Perez
9435cd1916 8175874: Update Security.insertProviderAt to specify behavior when requested position is out of range.
Reviewed-by: mullan, valeriep
2023-08-23 18:10:11 +00:00
lawrence.andrews
dbb788f34d 8294535: Add screen capture functionality to PassFailJFrame
Co-authored-by: Alexey Ivanov <aivanov@openjdk.org>
Reviewed-by: aivanov, honkar
2023-08-23 17:48:07 +00:00
Andrey Turbanov
fae3b02aeb 8314746: Remove unused private put* methods from DirectByteBufferR
Reviewed-by: alanb, bpb
2023-08-23 17:36:46 +00:00
Brian Burkhalter
096b7ff097 8314810: (fs) java/nio/file/Files/CopyInterference.java should use TestUtil::supportsLinks
Reviewed-by: aturbanov, alanb
2023-08-23 15:31:33 +00:00
Alexey Ivanov
62610203f1 8312555: Ideographic characters aren't stretched by AffineTransform.scale(2, 1)
Ignore bitmaps embedded into fonts for non-uniform scales

Reviewed-by: prr, serb
2023-08-23 11:48:22 +00:00
Matthias Baesken
703817d21f 8314517: some tests fail in case ipv6 is disabled on the machine
Reviewed-by: mdoerr, lucy, jpai, dfuchs
2023-08-23 10:44:40 +00:00
Thomas Schatzl
742e319a21 8314157: G1: "yielded" is not initialized on some paths after JDK-8140326
Reviewed-by: ayang, iwalulya
2023-08-23 09:45:25 +00:00
Roland Westrelin
1cee3b9fd9 8313262: C2: Sinking node may cause required cast to be dropped
Reviewed-by: chagedorn, thartmann
2023-08-23 08:59:36 +00:00
Tobias Holenstein
f8203cb272 8313626: C2 crash due to unexpected exception control flow
Reviewed-by: thartmann, chagedorn
2023-08-23 08:47:33 +00:00
Aleksey Shipilev
2be469f89e 8314743: Use of uninitialized local in SR_initialize after JDK-8314114
Reviewed-by: dholmes, coleenp
2023-08-23 07:17:29 +00:00
Jan Kratochvil
571c435e1a 8313374: --enable-ccache's CCACHE_BASEDIR breaks builds
Reviewed-by: erikj
2023-08-23 06:26:18 +00:00
Kimura Yukihiro
d1de3d082e 8313901: [TESTBUG] test/hotspot/jtreg/compiler/codecache/CodeCacheFullCountTest.java fails with java.lang.VirtualMachineError
Reviewed-by: shade, thartmann
2023-08-23 06:04:28 +00:00
Thomas Stuefe
a0d0f21f08 8314752: Use google test string comparison macros
Reviewed-by: coleenp, kbarrett
2023-08-23 05:26:05 +00:00
Andrew John Hughes
7e843c22e7 8284772: GHA: Use GCC Major Version Dependencies Only
Reviewed-by: jwaters, shade, stuefe, erikj, serb
Backport-of: 62defc3dfc4b9ba5adfe3189f34fe8b3f59b94a0
2023-08-23 03:28:23 +00:00
Valerie Peng
ba6cdbe2c2 8309214: sun/security/pkcs11/KeyStore/CertChainRemoval.java fails after 8301154
Reviewed-by: mbaesken, jnimeh
2023-08-22 23:49:03 +00:00
Calvin Cheung
9f4a9fe488 8312434: SPECjvm2008/xml.transform with CDS fails with "can't seal package nu.xom"
Reviewed-by: iklam, matsaave
2023-08-22 22:37:16 +00:00
Chris Plummer
7c169a426f 8312232: Remove sun.jvm.hotspot.runtime.VM.buildLongFromIntsPD()
Reviewed-by: lmesnik, kevinw
2023-08-22 20:57:11 +00:00
Brian Burkhalter
2eae13c669 8214248: (fs) Files:mismatch spec clarifications
Reviewed-by: alanb
2023-08-22 19:04:46 +00:00
Albert Mingkun Yang
ce1ded1a4f 8314749: Remove unimplemented _Copy_conjoint_oops_atomic
Reviewed-by: dcubed
2023-08-22 17:23:37 +00:00
Albert Mingkun Yang
32bf468c3b 8314274: G1: Fix -Wconversion warnings around G1CardSetArray::_data
Reviewed-by: kbarrett, tschatzl
2023-08-22 17:21:44 +00:00
Alexey Ivanov
eb065726f2 8313408: Use SVG for BoxLayout example
Reviewed-by: serb, tr, prr
2023-08-22 17:14:29 +00:00
Thomas Stuefe
20e94784c9 8314426: runtime/os/TestTrimNative.java is failing on slow machines
Reviewed-by: mbaesken, mdoerr, shade
2023-08-22 14:00:47 +00:00
Aleksey Shipilev
69d900d2ce 8314730: GHA: Drop libfreetype6-dev transitional package in favor of libfreetype-dev
Reviewed-by: andrew, erikj
2023-08-22 13:37:21 +00:00
Pavel Rappo
f39fc0aa2d 8314738: Remove all occurrences of and support for @revised
Reviewed-by: mr
2023-08-22 13:02:53 +00:00
Daohan Qu
6b9df037e4 8311240: Eliminate usage of testcases.jar from TestMetaSpaceLog.java
Reviewed-by: ayang, tschatzl
2023-08-22 12:51:59 +00:00
bobpengxie
3e1b1bf94e 8314688: VM build without C1 fails after JDK-8313372
Reviewed-by: yzheng, dnsimon, haosun
2023-08-22 09:21:25 +00:00
Cesar Soares Lucas
02ef859f79 8313689: C2: compiler/c2/irTests/scalarReplacement/AllocationMergesTests.java fails intermittently with -XX:-TieredCompilation
Reviewed-by: kvn, thartmann
2023-08-22 07:58:51 +00:00
Julian Waters
ab86d23adf 8250269: Replace ATTRIBUTE_ALIGNED with alignas
Reviewed-by: rkennke, kbarrett
2023-08-22 06:12:28 +00:00
Gui Cao
a66b5df14a 8314618: RISC-V: -XX:MaxVectorSize does not work as expected
Reviewed-by: fyang, dzhang
2023-08-22 02:47:52 +00:00
Sergey Bylokhov
87298d2ade 8312535: MidiSystem.getSoundbank() throws unexpected SecurityException
Reviewed-by: prr
2023-08-22 01:44:16 +00:00
Daniel D. Daugherty
78f74bc8ff 8314672: ProblemList runtime/cds/appcds/customLoader/HelloCustom_JFR.java on linux-all and windows-x64
Reviewed-by: azvegint
2023-08-21 17:13:48 +00:00
Leo Korinth
17a19dc060 8311639: Replace currentTimeMillis() with nanoTime() in jtreg/gc
Reviewed-by: stefank, ayang
2023-08-21 12:19:36 +00:00
Albert Mingkun Yang
0b3f452d25 8314161: G1: Fix -Wconversion warnings in G1CardSetConfiguration::_bitmap_hash_mask
Reviewed-by: tschatzl, iwalulya
2023-08-21 12:17:38 +00:00
Albert Mingkun Yang
abac60851c 8313962: G1: Refactor G1ConcurrentMark::_num_concurrent_workers
Reviewed-by: tschatzl, iwalulya
2023-08-21 12:15:26 +00:00
Aleksey Shipilev
812f475bc4 8314501: Shenandoah: sun/tools/jhsdb/heapconfig/JMapHeapConfigTest.java fails
Reviewed-by: cjplummer, sspitsyn
2023-08-21 09:02:01 +00:00
Thomas Schatzl
8939d15d92 8314100: G1: Improve collection set candidate selection code
Reviewed-by: ayang, iwalulya
2023-08-21 08:28:31 +00:00
Sidraya
ec1f7a8480 8311630: [s390] Implementation of Foreign Function & Memory API (Preview)
Reviewed-by: amitkumar, jvernee, mdoerr
2023-08-21 07:15:25 +00:00
Christian Stein
c50315de8f 8314495: Update to use jtreg 7.3.1
Reviewed-by: dholmes, erikj, iris, jpai
2023-08-21 06:30:56 +00:00
Alan Bateman
ed0f75f266 8313290: Misleading exception message from STS.Subtask::get when task forked after shutdown
Reviewed-by: psandoz
2023-08-19 18:42:43 +00:00
Xin Liu
febc34dd28 8314610: hotspot can't compile with the latest of gtest because of <iomanip>
Reviewed-by: jiefu, stuefe
2023-08-19 17:42:30 +00:00
Leonid Mesnik
58f5826ff4 8311222: strace004 can fail due to unexpected stack length after JDK-8309408
Reviewed-by: dholmes, alanb
2023-08-19 01:46:40 +00:00
Tyler Steele
395fc78880 8309475: Test java/foreign/TestByteBuffer.java fails: a problem with msync (aix)
Reviewed-by: mbaesken, alanb, mdoerr
2023-08-18 20:11:24 +00:00
Leonid Mesnik
f481477144 8314320: Mark runtime/CommandLine/ tests as flagless
Reviewed-by: dholmes
2023-08-18 17:53:07 +00:00
Chris Plummer
fbe28ee90d 8314481: JDWPTRANSPORT_ERROR_INTERNAL code in socketTransport.c can never be executed
Reviewed-by: dcubed, sspitsyn
2023-08-18 17:46:36 +00:00
Mandy Chung
50a2ce01f4 8310815: Clarify the name of the main class, services and provider classes in module descriptor
8314449: Clarify the name of the declaring class of StackTraceElement

Reviewed-by: alanb
2023-08-18 17:10:39 +00:00
Pavel Rappo
aecbb1b5c3 8314448: Coordinate DocLint and JavaDoc to report on unknown tags
Reviewed-by: jjg
2023-08-18 16:40:51 +00:00
Fredrik Bredberg
bcba5e9785 8313419: Template interpreter produces no safepoint check for return bytecodes
Reviewed-by: pchilanomate
2023-08-18 14:33:03 +00:00
Fredrik Bredberg
c36e009772 8308984: Relativize last_sp (and top_frame_sp) in interpreter frames
Reviewed-by: pchilanomate, aph, haosun
2023-08-18 14:29:28 +00:00
Tyler Steele
fdac6a6ac8 8312180: (bf) MappedMemoryUtils passes incorrect arguments to msync (aix)
Reviewed-by: clanger, stuefe
2023-08-18 13:58:58 +00:00
Coleen Phillimore
752121114f 8314265: Fix -Wconversion warnings in miscellaneous runtime code
Reviewed-by: stuefe, dholmes, chagedorn
2023-08-18 12:06:02 +00:00
Alexander Zvegintsev
2f04bc5f93 8313697: [XWayland][Screencast] consequent getPixelColor calls are slow
8310334: [XWayland][Screencast] screen capture error message in debug

Reviewed-by: serb, prr
2023-08-18 10:44:20 +00:00
Andrei Rybak
33d5dfdab3 8314543: gitattributes: make diffs easier to read
Git supports special hunk headers for several languages in diff output,
which make it easier to read diffs of files in that language, generated
by Git (git-diff, git-show, `git log -p`, etc).  For details, see
`git help gitattributes` or the online documentation.[1]

Add entries to the root .gitattributes file to support showing the hunk
headers for Java, C, C++, Markdown, Shell script, HTML, and CSS.  This
makes it easier to read diffs generated by Git.

[1] https://git-scm.com/docs/gitattributes

Reviewed-by: erikj, ksakata
2023-08-18 07:48:50 +00:00
Matthias Baesken
5058854b86 8314389: AttachListener::pd_set_flag obsolete
Reviewed-by: cjplummer, mdoerr, sspitsyn
2023-08-18 06:45:18 +00:00
Thomas Stuefe
891c3f4cca 8307356: Metaspace: simplify BinList handling
Reviewed-by: rkennke, coleenp
2023-08-18 05:51:05 +00:00
Ioi Lam
0299364d85 8314249: Refactor handling of invokedynamic in JVMCI ConstantPool
Reviewed-by: dnsimon, coleenp
2023-08-17 22:52:05 +00:00
Justin Lu
96778dd549 8314169: Combine related RoundingMode logic in j.text.DigitList
Reviewed-by: naoto
2023-08-17 22:41:21 +00:00
Harshitha Onkar
808bb1f7bc 8314246: javax/swing/JToolBar/4529206/bug4529206.java fails intermittently on Linux
Reviewed-by: dnguyen, serb
2023-08-17 20:37:06 +00:00
Joe Darcy
6445314fec 8314477: Improve definition of "prototypical type"
Reviewed-by: prappo
2023-08-17 20:25:46 +00:00
Andrey Turbanov
d27daf01d6 8314129: Make fields final in java.util.Scanner
Reviewed-by: stsypanov, liach, alanb
2023-08-17 18:32:06 +00:00
Andrey Turbanov
a8ab3be371 8314261: Make fields final in sun.net.www
Reviewed-by: redestad, jpai, dfuchs
2023-08-17 17:54:02 +00:00
Joe Darcy
3bb8afba69 8314489: Add javadoc index entries for java.lang.Math terms
Reviewed-by: alanb
2023-08-17 17:32:49 +00:00
Daniel D. Daugherty
2505cebc5d 8314533: ProblemList runtime/cds/appcds/customLoader/HelloCustom_JFR.java on linux-all with ZGC
Reviewed-by: azvegint
2023-08-17 17:05:54 +00:00
Erik Joelsson
b33ff30d70 8313661: [REDO] Relax prerequisites for java.base-jmod target
Reviewed-by: alanb
2023-08-17 16:54:36 +00:00
Chris Plummer
62ca00158c 8313357: Revisit requiring SA tests on OSX to either run as root or use sudo
Reviewed-by: dholmes, amenkov
2023-08-17 15:26:45 +00:00
Chris Plummer
388dcff725 8282712: VMConnection.open() does not detect if VM failed to be created, resulting in NPE
Reviewed-by: sspitsyn, amenkov
2023-08-17 15:09:09 +00:00
Robbin Ehn
e8f6b3e497 8314268: Missing include in assembler_riscv.hpp
Reviewed-by: shade, fyang
2023-08-17 14:45:59 +00:00
Claes Redestad
c634bdf9d9 8314444: Update jib-profiles.js to use JMH 1.37 devkit
Reviewed-by: shade, mikael, erikj
2023-08-17 11:54:24 +00:00
Per Minborg
2b81885f78 8314071: Test java/foreign/TestByteBuffer.java timed out
Reviewed-by: mcimadamore
2023-08-17 11:31:09 +00:00
Cristian Vat
32efd23c5d 8311939: Excessive allocation of Matcher.groups array
Reviewed-by: rriggs, igraves
2023-08-17 11:27:39 +00:00
Alan Bateman
ed585d16b9 8314280: StructuredTaskScope.shutdown should document that the state of completing subtasks is not defined
Reviewed-by: psandoz
2023-08-17 08:02:53 +00:00
Pavel Rappo
6f1071f5ed 8314213: DocLint should warn about unknown standard tags
Reviewed-by: jjg
2023-08-17 07:43:07 +00:00
Aggelos Biboudis
4331193010 8314423: Multiple patterns without unnamed variables
8314216: Case enumConstant, pattern compilation fails

Reviewed-by: jlahoda
2023-08-17 07:33:16 +00:00
Andrey Turbanov
249dc37426 8314321: Remove unused field jdk.internal.util.xml.impl.Attrs.mAttrIdx
Reviewed-by: alanb, vtewari, bpb
2023-08-17 07:13:38 +00:00
Sergey Bylokhov
b78f5a1068 8314076: ICC_ColorSpace#minVal/maxVal have the opposite description
Reviewed-by: azvegint
2023-08-17 05:33:44 +00:00
Kim Barrett
2a1176b544 8314276: Improve PtrQueue API around size/capacity
Reviewed-by: iwalulya, tschatzl
2023-08-17 05:06:11 +00:00
Joe Darcy
0c3bc71d24 8281169: Expand discussion of elements and types
Reviewed-by: mcimadamore, prappo
2023-08-16 20:31:51 +00:00
Ben Perez
f143380d01 8314240: test/jdk/sun/security/pkcs/pkcs7/SignerOrder.java fails to compile
Reviewed-by: mullan
2023-08-16 19:56:13 +00:00
Brian Burkhalter
6b396da278 8062795: (fs) Files.setPermissions requires read access when NOFOLLOW_LINKS specified
Reviewed-by: alanb
2023-08-16 17:53:56 +00:00
Leonid Mesnik
7b28d3608a 8314330: java/foreign tests should respect vm flags when start new processes
Reviewed-by: jvernee
2023-08-16 17:49:38 +00:00
Glavo
b32d6411c4 8311943: Cleanup usages of toLowerCase() and toUpperCase() in java.base
Reviewed-by: naoto
2023-08-16 17:37:21 +00:00
Lance Andersen
13f6450e2e 8313765: Invalid CEN header (invalid zip64 extra data field size)
Reviewed-by: simonis, alanb, coffeys
2023-08-16 15:42:36 +00:00
Ralf Schmelter
24e896d7c9 8310275: Bug in assignment operator of ReservedMemoryRegion
Reviewed-by: jsjolen, dholmes, stuefe
2023-08-16 15:00:50 +00:00
Thomas Schatzl
1925508425 8314144: gc/g1/ihop/TestIHOPStatic.java fails due to extra concurrent mark with -Xcomp
Reviewed-by: ayang, iwalulya
2023-08-16 12:08:56 +00:00
Raffaello Giulietti
b80001de0c 8314209: Wrong @since tag for RandomGenerator::equiDoubles
Reviewed-by: alanb
2023-08-16 08:21:34 +00:00
Matthias Baesken
ef6db5c299 8314211: Add NativeLibraryUnload event
Reviewed-by: stuefe, mdoerr
2023-08-16 07:39:42 +00:00
Christian Hagedorn
49ddb19972 8313760: [REDO] Enhance AES performance
Co-authored-by: Andrew Haley <aph@openjdk.org>
Reviewed-by: adinn, aph, sviswanathan, rhalade, kvn, dlong
2023-08-16 07:21:04 +00:00
Emanuel Peter
d46f0fb318 8313720: C2 SuperWord: wrong result with -XX:+UseVectorCmov -XX:+UseCMoveUnconditionally
Reviewed-by: chagedorn, thartmann
2023-08-16 07:15:43 +00:00
Aleksey Shipilev
38687f1a3e 8314262: GHA: Cut down cross-compilation sysroots deeper
Reviewed-by: erikj
2023-08-16 07:04:25 +00:00
Aleksey Shipilev
a602624ef4 8314020: Print instruction blocks in byte units
Reviewed-by: stuefe, fyang
2023-08-16 07:02:48 +00:00
Christian Hagedorn
0b12480de8 8314233: C2: assert(assertion_predicate_has_loop_opaque_node(iff)) failed: unexpected
Reviewed-by: thartmann, kvn
2023-08-16 06:58:23 +00:00
Tom Rodriguez
e1fdef5613 8314324: "8311557: [JVMCI] deadlock with JVMTI thread suspension" causes various failures
Reviewed-by: cjplummer, thartmann
2023-08-16 06:06:59 +00:00
Prasanta Sadhukhan
2bd2faeb76 4346610: Adding JSeparator to JToolBar "pushes" buttons added after separator to edge
Reviewed-by: tr, aivanov, dnguyen
2023-08-16 05:35:40 +00:00
Thomas Stuefe
6a15860b12 8314163: os::print_hex_dump prints incorrectly for big endian platforms and unit sizes larger than 1
Reviewed-by: mbaesken, shade
2023-08-16 05:14:40 +00:00
Leonid Mesnik
6bf4a33593 8314242: Update applications/scimark/Scimark.java to accept VM flags
Reviewed-by: dholmes
2023-08-16 00:15:55 +00:00
Christoph Schwentker
bc8e9f44a3 8311591: Add SystemModulesPlugin test case that splits module descriptors with new local variables defined by DedupSetBuilder
Reviewed-by: mchung
2023-08-15 22:34:37 +00:00
Chris Plummer
0f5e030bad 8309335: Get rid of use of reflection to call Thread.isVirtual() in nsk/jdi/EventRequestManager/stepRequests/stepreq001t.java
Reviewed-by: lmesnik, sspitsyn, alanb
2023-08-15 20:55:27 +00:00
Mikael Vidstedt
f66c73d34b 8314166: Update googletest to v1.14.0
Reviewed-by: kbarrett, stuefe, shade, erikj
2023-08-15 19:52:56 +00:00
Gerard Ziemski
f239954657 8310134: NMT: thread count in Thread section of VM.native_memory output confusing with virtual threads
Reviewed-by: jsjolen, dholmes, alanb
2023-08-15 17:06:28 +00:00
Aleksey Shipilev
2e8a0ab272 8314120: Add tests for FileDescriptor.sync
Reviewed-by: alanb, bpb
2023-08-15 16:11:09 +00:00
Ioi Lam
80809ef4cc 8314248: Remove HotSpotConstantPool::isResolvedDynamicInvoke
Reviewed-by: thartmann, dnsimon
2023-08-15 15:54:44 +00:00
Tom Rodriguez
004651ddc2 8311557: [JVMCI] deadlock with JVMTI thread suspension
Reviewed-by: thartmann, dnsimon
2023-08-15 15:44:33 +00:00
Coleen Phillimore
9ded86821b 8314114: Fix -Wconversion warnings in os code, primarily linux
Reviewed-by: dholmes, dlong
2023-08-15 11:05:31 +00:00
Emanuel Peter
a02d65efcc 8310308: IR Framework: check for type and size of vector nodes
Reviewed-by: chagedorn, thartmann
2023-08-15 10:08:51 +00:00
Thomas Stuefe
dff99f7f3d 8313782: Add user-facing warning if THPs are enabled but cannot be used
Reviewed-by: dholmes, sjohanss
2023-08-15 09:09:02 +00:00
Dmitry Cherepanov
f4e72c58d7 8313949: Missing word in GPLv2 license text in StackMapTableAttribute.java
Reviewed-by: iris
2023-08-15 08:43:38 +00:00
Matthias Baesken
6338927221 8314197: AttachListener::pd_find_operation always returning nullptr
Reviewed-by: dholmes, cjplummer, sspitsyn
2023-08-15 07:48:38 +00:00
David Holmes
b7dee213df 8314244: Incorrect file headers in new tests from JDK-8312597
Reviewed-by: lmesnik, kvn
2023-08-15 04:29:25 +00:00
Fei Gao
37c6b23f5b 8308340: C2: Idealize Fma nodes
Reviewed-by: kvn, epeter
2023-08-15 01:04:22 +00:00
Yasumasa Suenaga
583cb754f3 8313406: nep_invoker_blob can be simplified more
Reviewed-by: jvernee, vlivanov
2023-08-14 23:12:42 +00:00
Ben Taylor
0074b48ad7 8312597: Convert TraceTypeProfile to UL
Reviewed-by: shade, phh
2023-08-14 22:50:37 +00:00
Sean Mullan
1f1c5c6f8d 8314241: Add test/jdk/sun/security/pkcs/pkcs7/SignerOrder.java to ProblemList
Reviewed-by: dcubed, dholmes
2023-08-14 22:23:11 +00:00
David Holmes
f142470dea 8311981: Test gc/stringdedup/TestStringDeduplicationAgeThreshold.java#ZGenerational timed out
Reviewed-by: stefank, pchilanomate, dcubed, rehn
2023-08-14 21:18:57 +00:00
Ben Perez
595fdd36c5 8314059: Remove PKCS7.verify()
Reviewed-by: mullan
2023-08-14 18:39:18 +00:00
Kimura Yukihiro
49b29845f7 8313854: Some tests in serviceability area fail on localized Windows platform
Reviewed-by: amenkov, cjplummer
2023-08-14 18:26:55 +00:00
Brian Burkhalter
c132176b93 8114830: (fs) Files.copy fails due to interference from something else changing the file system
Reviewed-by: alanb, vtewari
2023-08-14 17:48:50 +00:00
Weibing Xiao
e56d3bc2da 8313657: com.sun.jndi.ldap.Connection.cleanup does not close connections on SocketTimeoutErrors
Reviewed-by: vtewari, msheppar, aefimov
2023-08-14 17:38:53 +00:00
Oli Gillespie
4b2703ad39 8313678: SymbolTable can leak Symbols during cleanup
Reviewed-by: coleenp, dholmes, shade
2023-08-14 15:58:03 +00:00
Liam Miller-Cushon
f41c267f85 8314045: ArithmeticException in GaloisCounterMode
Co-authored-by: Ioana Nedelcu <ioannanedelcu@google.com>
Reviewed-by: ascarpino
2023-08-14 15:51:18 +00:00
Ioi Lam
911d1dbbf7 8314078: HotSpotConstantPool.lookupField() asserts due to field changes in ConstantPool.cpp
Reviewed-by: dnsimon, coleenp
2023-08-14 15:37:44 +00:00
Christian Stein
6574dd796d 8314025: Remove JUnit-based test in java/lang/invoke from problem list
Reviewed-by: dholmes, jpai
2023-08-14 13:38:22 +00:00
Christian Hagedorn
207bd00c51 8313756: [BACKOUT] 8308682: Enhance AES performance
Reviewed-by: thartmann
2023-08-14 12:08:16 +00:00
Afshin Zafari
823f5b930c 8308850: Change JVM options with small ranges that get -Wconversion warnings to 32 bits
Reviewed-by: dholmes, coleenp, dlong
2023-08-14 11:57:17 +00:00
Albert Mingkun Yang
5bfb82e6fa 8314119: G1: Fix -Wconversion warnings in G1CardSetInlinePtr::card_pos_for
Reviewed-by: tschatzl, kbarrett
2023-08-14 11:08:31 +00:00
Aleksey Shipilev
06aa3c5628 8314118: Update JMH devkit to 1.37
Reviewed-by: erikj, redestad
2023-08-14 10:04:55 +00:00
Yudi Zheng
4164693f3b 8313372: [JVMCI] Export vmIntrinsics::is_intrinsic_available results to JVMCI compilers.
Reviewed-by: dnsimon, kvn
2023-08-14 08:56:15 +00:00
Stefan Karlsson
049b55f24e 8314019: Add gc logging to jdk/jfr/event/gc/detailed/TestZAllocationStallEvent.java
Reviewed-by: aboldtch, eosterlund
2023-08-14 08:45:16 +00:00
Christian Hagedorn
a39ed1087b 8314116: C2: assert(false) failed: malformed control flow after JDK-8305636
Reviewed-by: thartmann, kvn
2023-08-14 08:15:02 +00:00
Christian Hagedorn
1de5bf1ce9 8314106: C2: assert(is_valid()) failed: must be valid after JDK-8305636
Reviewed-by: thartmann, kvn
2023-08-14 08:14:42 +00:00
Feilong Jiang
5c91622885 8314117: RISC-V: Incorrect VMReg encoding in RISCV64Frame.java
Reviewed-by: fyang
2023-08-14 07:50:43 +00:00
Andrey Turbanov
6bbcef5315 8313948: Remove unnecessary static fields defaultUpper/defaultLower in sun.net.PortConfig
Reviewed-by: dfuchs
2023-08-14 07:04:29 +00:00
Andrey Turbanov
b88c273503 8313743: Make fields final in sun.nio.ch
Reviewed-by: bpb
2023-08-14 07:04:05 +00:00
Alexander Matveev
ec0cc6300a 8313904: [macos] All signing tests which verifies unsigned app images are failing
Reviewed-by: asemenyuk
2023-08-11 21:00:52 +00:00
Man Cao
7332502883 8314139: TEST_BUG: runtime/os/THPsInThreadStackPreventionTest.java could fail on machine with large number of cores
Reviewed-by: shade, stuefe
2023-08-11 20:43:31 +00:00
Chris Plummer
8f1c134848 8313798: [aarch64] sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java sometimes times out on aarch64
Reviewed-by: kevinw, sspitsyn
2023-08-11 18:09:44 +00:00
Andreas Steiner
12326770dc 8313244: NM flags handling in configure process
Reviewed-by: clanger, jwaters, mbaesken, erikj
2023-08-11 13:21:46 +00:00
Albert Mingkun Yang
6ffc0324dc 8314113: G1: Remove unused G1CardSetInlinePtr::card_at
Reviewed-by: tschatzl
2023-08-11 12:19:39 +00:00
Johan Sjölen
62adeb08c3 8311648: Refactor the Arena/Chunk/ChunkPool interface
Reviewed-by: stuefe, coleenp
2023-08-11 09:32:45 +00:00
Ioi Lam
43462a36ab 8313224: Avoid calling JavaThread::current() in MemAllocator::Allocation constructor
Reviewed-by: tschatzl, coleenp
2023-08-11 03:39:39 +00:00
Mark Powers
9abb2a559e 8312461: JNI warnings in SunMSCApi provider
Reviewed-by: valeriep, djelinski
2023-08-10 23:43:38 +00:00
Jesse Glick
42758cb889 8312882: Update the CONTRIBUTING.md with pointers to lifecycle of a PR
Reviewed-by: erikj, jwilhelm
2023-08-10 22:26:32 +00:00
Calvin Cheung
88b4e3b853 8304292: Memory leak related to ClassLoader::update_class_path_entry_list
Reviewed-by: dholmes, iklam
2023-08-10 20:02:27 +00:00
Doug Simon
6f5c903d10 8313899: JVMCI exception Translation can fail in TranslatedException.<clinit>
Reviewed-by: never, thartmann
2023-08-10 18:53:02 +00:00
Damon Nguyen
d97de8260c 8313633: [macOS] java/awt/dnd/NextDropActionTest/NextDropActionTest.java fails with java.lang.RuntimeException: wrong next drop action!
Reviewed-by: honkar, serb
2023-08-10 17:52:28 +00:00
Xue-Lei Andrew Fan
79be8d9383 8312259: StatusResponseManager unused code clean up
Reviewed-by: mpowers, jnimeh
2023-08-10 17:15:56 +00:00
Tom Rodriguez
1875b2872b 8314061: [JVMCI] DeoptimizeALot stress logic breaks deferred barriers
Reviewed-by: thartmann, dnsimon
2023-08-10 16:40:28 +00:00
Coleen Phillimore
bd1b942741 8313905: Checked_cast assert in CDS compare_by_loader
Reviewed-by: dlong, iklam
2023-08-10 15:25:00 +00:00
Leonid Mesnik
9b53251131 8313654: Test WaitNotifySuspendedVThreadTest.java timed out
Reviewed-by: sspitsyn
2023-08-10 15:18:57 +00:00
Leonid Mesnik
e7c83ea948 8312194: test/hotspot/jtreg/applications/ctw/modules/jdk_crypto_ec.java cannot handle empty modules
Reviewed-by: kvn, thartmann
2023-08-10 15:18:34 +00:00
Matthias Baesken
23fe2ece58 8313616: support loading library members on AIX in os::dll_load
Reviewed-by: mdoerr
2023-08-10 12:06:43 +00:00
Coleen Phillimore
f47767ffef 8313882: Fix -Wconversion warnings in runtime code
Reviewed-by: pchilanomate, dlong, dholmes
2023-08-10 11:57:25 +00:00
Jaikiran Pai
0cb9ab04f4 8313239: InetAddress.getCanonicalHostName may return ip address if reverse lookup fails
Reviewed-by: dfuchs, aefimov, alanb
2023-08-10 10:01:46 +00:00
Oli Gillespie
028b3ae1b1 8313874: JNI NewWeakGlobalRef throws exception for null arg
Reviewed-by: dholmes, kbarrett, shade
2023-08-10 08:51:50 +00:00
Doug Simon
83adaf5477 8313421: [JVMCI] avoid locking class loader in CompilerToVM.lookupType
Reviewed-by: never, thartmann
2023-08-10 08:17:03 +00:00
Per Minborg
35b60f925a 8298095: Refine implSpec for SegmentAllocator
Reviewed-by: mcimadamore
2023-08-10 07:57:19 +00:00
Matthias Baesken
6dba2026d7 8313670: Simplify shared lib name handling code in some tests
Reviewed-by: cjplummer, sspitsyn
2023-08-10 07:23:24 +00:00
Thomas Stuefe
8f28809aa8 8299790: os::print_hex_dump is racy
Reviewed-by: shade, dholmes
2023-08-10 07:21:47 +00:00
Axel Boldt-Christmas
e080a0b4c0 8311508: ZGC: RAII use of IntelJccErratumAlignment
Reviewed-by: stefank, shade, tschatzl
2023-08-10 07:18:31 +00:00
Axel Boldt-Christmas
242a2e63df 8308843: Generational ZGC: Remove gc/z/TestHighUsage.java
Reviewed-by: ayang, tschatzl
2023-08-10 07:16:36 +00:00
Sergey Tsypanov
c822183e98 8313768: Reduce interaction with volatile field in j.u.l.StreamHandler
Reviewed-by: dfuchs, jpai
2023-08-10 05:50:19 +00:00
Alexandre Iline
cd16158edb 8314075: Update JCov version for JDK 22
Reviewed-by: serb
2023-08-10 00:43:28 +00:00
Joe Darcy
c307391ab1 8307184: Incorrect/inconsistent specification and implementation for Elements.getDocComment
Reviewed-by: vromero, jjg
2023-08-09 21:17:10 +00:00
Pavel Rappo
593ba2fe47 8313693: Introduce an internal utility for the Damerau–Levenshtein distance calculation
Reviewed-by: jlahoda, jjg
2023-08-09 16:08:23 +00:00
Christian Stein
360f65d7b1 8314022: Problem-list tests failing with jtreg 7.3
Reviewed-by: dholmes
2023-08-09 14:00:21 +00:00
Markus Grönlund
0eb0997ae4 8288936: Wrong lock ordering writing G1HeapRegionTypeChange JFR event
Reviewed-by: egahlin
2023-08-09 13:34:04 +00:00
Pavel Rappo
19ae62ae2c 8311170: Simplify and modernize equals and hashCode in security area
Reviewed-by: djelinski, rriggs, valeriep
2023-08-09 12:34:40 +00:00
Daniel Jeliński
e9f751ab16 8311247: Some cpp files are compiled with -std:c11 flag
Reviewed-by: aivanov, jwaters, prr, erikj
2023-08-09 12:26:32 +00:00
Erik Gahlin
213d3c449a 8313891: JFR: Incorrect exception message for RecordedObject::getInt
Reviewed-by: mgronlun
2023-08-09 11:46:25 +00:00
Richard Startin
0e2c72d7a5 8313796: AsyncGetCallTrace crash on unreadable interpreter method pointer
Reviewed-by: coleenp, aph, stuefe
2023-08-09 11:23:32 +00:00
Hannes Wallnöfer
52ec4bcb1b 8303056: Improve support for Unicode characters and digits in JavaDoc search
Reviewed-by: jjg
2023-08-09 09:50:21 +00:00
Albert Mingkun Yang
9cf12bb977 8313922: Remove unused WorkerPolicy::_debug_perturbation
Reviewed-by: tschatzl
2023-08-09 09:13:34 +00:00
Matthias Baesken
6e3cc131da 8312467: relax the builddir check in make/autoconf/basic.m4
Reviewed-by: clanger, erikj
2023-08-09 07:08:52 +00:00
Hannes Wallnöfer
77e5739f60 8310118: Resource files should be moved to appropriate directories
Reviewed-by: jjg
2023-08-09 07:01:15 +00:00
Matthias Baesken
96304f37f8 8313691: use close after failing os::fdopen in vmError and ciEnv
Reviewed-by: dholmes, thartmann
2023-08-09 06:54:15 +00:00
Leonid Mesnik
3fb4805b1a 8307462: [REDO] VmObjectAlloc is not generated by intrinsics methods which allocate objects
Reviewed-by: sspitsyn, thartmann
2023-08-09 06:29:42 +00:00
Stefan Karlsson
0a42c44bf8 8313954: Add gc logging to vmTestbase/vm/gc/containers/Combination05
Reviewed-by: tschatzl, lmesnik
2023-08-09 06:16:39 +00:00
Stefan Karlsson
735b16a696 8313752: InstanceKlassFlags::print_on doesn't print the flag names
Reviewed-by: stuefe, shade, coleenp
2023-08-09 06:16:18 +00:00
Tobias Hartmann
d3b578f1c9 8313345: SuperWord fails due to CMove without matching Bool pack
Co-authored-by: Emanuel Peter <epeter@openjdk.org>
Co-authored-by: Hannes Greule <hannesgreule@outlook.de>
Reviewed-by: chagedorn, epeter, hgreule
2023-08-09 05:16:02 +00:00
Yi Yang
31a307f2fb 8306441: Two phase segmented heap dump
Co-authored-by: Kevin Walls <kevinw@openjdk.org>
Reviewed-by: amenkov, kevinw
2023-08-09 01:58:57 +00:00
Rajan Halade
515add88ed 8313206: PKCS11 tests silently skip execution
Reviewed-by: ssahoo, mullan
2023-08-08 20:21:16 +00:00
Jim Laskey
6864441163 8313809: String template fails with java.lang.StringIndexOutOfBoundsException if last fragment is UTF16
Reviewed-by: redestad
2023-08-08 19:33:44 +00:00
Jorn Vernee
509f80bb04 8313889: Fix -Wconversion warnings in foreign benchmarks
Reviewed-by: pminborg, mcimadamore
2023-08-08 13:59:35 +00:00
Coleen Phillimore
5c3041ce83 8313435: Clean up unused default methods code
Reviewed-by: kbarrett, iklam
2023-08-08 12:12:57 +00:00
Coleen Phillimore
8752d4984a 8313785: Fix -Wconversion warnings in prims code
Reviewed-by: sspitsyn, dlong
2023-08-08 11:51:42 +00:00
Andrey Turbanov
41bdcded65 8313875: Use literals instead of static fields in java.util.Math: twoToTheDoubleScaleUp, twoToTheDoubleScaleDown
Reviewed-by: redestad, darcy, bpb, rgiulietti
2023-08-08 11:38:15 +00:00
Markus Grönlund
091e65e95b 8313552: Fix -Wconversion warnings in JFR code
Reviewed-by: coleenp
2023-08-08 11:01:59 +00:00
Thomas Schatzl
7e209528d3 8140326: G1: Consider putting regions where evacuation failed into next collection set
Co-authored-by: Albert Mingkun Yang <ayang@openjdk.org>
Reviewed-by: iwalulya, ayang
2023-08-08 10:29:14 +00:00
Stefan Karlsson
28fd7a1739 8311179: Generational ZGC: gc/z/TestSmallHeap.java failed with OutOfMemoryError
Reviewed-by: ayang, aboldtch, tschatzl
2023-08-08 09:57:52 +00:00
Jan Lahoda
a1115a7a39 8312204: unexpected else with statement causes compiler crash
Reviewed-by: vromero
2023-08-08 09:28:21 +00:00
Jan Lahoda
87a6acbeee 8313792: Verify 4th party information in src/jdk.internal.le/share/legal/jline.md
Reviewed-by: vromero
2023-08-08 08:49:39 +00:00
Chris Plummer
87b08b6e01 8307408: Some jdk/sun/tools/jhsdb tests don't pass test JVM args to the debuggee JVM
Reviewed-by: sspitsyn, lmesnik
2023-08-07 18:51:29 +00:00
Alex Menkov
83edffa608 8309663: test fails "assert(check_alignment(result)) failed: address not aligned: 0x00000008baadbabe"
Reviewed-by: sspitsyn, eosterlund
2023-08-07 18:27:33 +00:00
Justin Lu
1da82a34b1 8313702: Update IANA Language Subtag Registry to Version 2023-08-02
Reviewed-by: naoto, iris
2023-08-07 17:10:27 +00:00
Christian Stein
9c6eb67e85 8313167: Update to use jtreg 7.3
Reviewed-by: jjg, iris
2023-08-07 16:09:23 +00:00
Qing Xiao
380418fad0 8295058: test/langtools/tools/javac 116 test classes uses com.sun.tools.classfile library
Reviewed-by: asotona
2023-08-07 15:49:11 +00:00
Antonios Printezis
4726960fcd 8313779: RISC-V: use andn / orn in the MD5 instrinsic
Reviewed-by: luhenry, fyang
2023-08-07 14:17:44 +00:00
Per Minborg
bbbfa217a0 8313880: Incorrect copyright header in jdk/java/foreign/TestFree.java after JDK-8310643
Reviewed-by: thartmann
2023-08-07 12:34:52 +00:00
Coleen Phillimore
0bb6af3bc0 8313791: Fix just zPage.inline.hpp and xPage.inline.hpp
Reviewed-by: stefank, tschatzl
2023-08-07 12:06:41 +00:00
Aleksey Shipilev
4b192a8dc3 8313676: Amend TestLoadIndexedMismatch test to target intrinsic directly
Reviewed-by: thartmann, chagedorn
2023-08-07 11:26:08 +00:00
Per Minborg
0b4387e3a3 8310643: Misformatted copyright messages in FFM
Reviewed-by: jvernee
2023-08-07 10:58:11 +00:00
Aleksey Shipilev
538f9557b8 8313701: GHA: RISC-V should use the official repository for bootstrap
Reviewed-by: clanger, fyang
2023-08-07 10:48:11 +00:00
Aleksey Shipilev
226cdc696d 8312585: Rename DisableTHPStackMitigation flag to THPStackMitigation
Reviewed-by: dholmes, stuefe
2023-08-07 10:45:14 +00:00
Christian Hagedorn
dc01604756 8305636: Expand and clean up predicate classes and move them into separate files
Reviewed-by: thartmann, roland
2023-08-07 09:14:16 +00:00
Prasanta Sadhukhan
a38fdaf18d 8166900: If you wrap a JTable in a JLayer, the cursor is moved to the last row of table by you press the page down key.
Reviewed-by: abhiscxk, dnguyen, prr, serb
2023-08-07 09:12:33 +00:00
Abhishek Kumar
c1f4595e64 8311160: [macOS, Accessibility] VoiceOver: No announcements on JRadioButtonMenuItem and JCheckBoxMenuItem
Reviewed-by: asemenov, kizune
2023-08-07 05:02:16 +00:00
Julian Waters
90d795abf1 8313141: Missing check for os_thread type in os_windows.cpp
Reviewed-by: dholmes, mgronlun
2023-08-05 05:24:08 +00:00
Christoph Langer
6d18529616 8313795: Fix for JDK-8313564 breaks ppc and s390x builds
Reviewed-by: stuefe
2023-08-04 22:33:36 +00:00
Matias Saavedra Silva
ad6e9e75bf 8313554: Fix -Wconversion warnings for ResolvedFieldEntry
Reviewed-by: coleenp, dlong
2023-08-04 20:24:50 +00:00
danthe1st
b463c6d3b0 8311517: Add performance information to ArrayList javadoc
Reviewed-by: smarks, bpb
2023-08-04 20:21:25 +00:00
Stuart Marks
b2add96c35 8159527: Collections mutator methods should all be marked as optional operations
Reviewed-by: naoto, bpb
2023-08-04 19:27:56 +00:00
Ashutosh Mehra
873d117932 8312623: SA add NestHost and NestMembers attributes when dumping class
Reviewed-by: cjplummer, sspitsyn, stuefe
2023-08-04 18:42:37 +00:00
Thomas Stuefe
017e0c7850 8310388: Shenandoah: Auxiliary bitmap is not madvised for THP
Reviewed-by: shade, kdnilsen
2023-08-04 18:40:16 +00:00
Coleen Phillimore
f66cd5008d 8313564: Fix -Wconversion warnings in classfile code
Reviewed-by: matsaave, dholmes
2023-08-04 14:06:16 +00:00
Aleksey Shipilev
e8a37b90db 8313248: C2: setScopedValueCache intrinsic exposes nullptr pre-values to store barriers
Reviewed-by: thartmann, rkennke
2023-08-04 09:53:20 +00:00
Aleksey Shipilev
29f1d8ef50 8313707: GHA: Bootstrap sysroots with --variant=minbase
Reviewed-by: clanger, fyang
2023-08-04 09:11:32 +00:00
Raffaello Giulietti
61c58fdd00 8312976: MatchResult produces StringIndexOutOfBoundsException for groups outside match
Reviewed-by: alanb, smarks
2023-08-04 07:11:18 +00:00
Matthias Baesken
5d232959c2 8313251: Add NativeLibraryLoad event
Reviewed-by: jbechberger, egahlin, dholmes
2023-08-04 07:03:25 +00:00
Andreas Steiner
c4b8574b94 8311938: Add default cups include location for configure on AIX
Reviewed-by: clanger, mbaesken, jwaters
2023-08-04 06:56:12 +00:00
Qing Xiao
10a2605884 8294979: test/jdk/tools/jlink 3 test classes use ASM library
Reviewed-by: mchung, ksakata
2023-08-04 05:13:57 +00:00
KIRIYAMA Takuya
e8c325dea3 8313394: Array Elements in OldObjectSample event has the incorrect description
Reviewed-by: egahlin
2023-08-04 03:19:53 +00:00
Joe Wang
d60352e26f 8311006: missing @since info in jdk.xml.dom
Reviewed-by: iris, naoto, lancea
2023-08-03 21:49:05 +00:00
Tobias Hartmann
4577147993 8313712: [BACKOUT] 8313632: ciEnv::dump_replay_data use fclose
Reviewed-by: mikael
2023-08-03 18:08:29 +00:00
Tejesh R
bb3aac6063 8301606: JFileChooser file chooser details view "size" label cut off in Metal Look&Feel
Reviewed-by: aivanov, abhiscxk
2023-08-03 16:09:47 +00:00
Matthias Baesken
0f2fce7168 8313632: ciEnv::dump_replay_data use fclose
Reviewed-by: thartmann, lucy
2023-08-03 12:02:52 +00:00
Tobias Hartmann
ab1c212ac1 8312909: C1 should not inline through interface calls with non-subtype receiver
Reviewed-by: kvn, chagedorn
2023-08-03 11:02:42 +00:00
Jan Lahoda
c386091734 8312984: javac may crash on a record pattern with too few components
Reviewed-by: vromero
2023-08-03 08:37:15 +00:00
Thomas Stuefe
3212b64f8e 8313582: Problemlist failing test on linux x86
Reviewed-by: tschatzl
2023-08-03 08:32:13 +00:00
Matthias Baesken
bdac348c80 8313602: increase timeout for jdk/classfile/CorpusTest.java
Reviewed-by: clanger
2023-08-03 08:12:20 +00:00
Prasanta Sadhukhan
58906bf8fb 4893524: Swing drop targets should call close() on transferred readers and streams
Reviewed-by: serb, tr, aivanov
2023-08-03 07:23:19 +00:00
Jaikiran Pai
3c920f9cc6 8313274: [BACKOUT] Relax prerequisites for java.base-jmod target
Reviewed-by: dholmes
2023-08-03 07:15:21 +00:00
Amit Kumar
53ca75b18e 8313312: Add missing classpath exception copyright header
Reviewed-by: rriggs, asotona
2023-08-03 05:47:22 +00:00
Tejesh R
87d7e976cb 8311031: JTable header border vertical lines are not aligned with data grid lines
Reviewed-by: abhiscxk, psadhukhan, aivanov
2023-08-03 04:44:41 +00:00
Sergey Bylokhov
8248e351d0 8313576: GCC 7 reports compiler warning in bundled freetype 2.13.0
Reviewed-by: shade, prr
2023-08-02 23:37:35 +00:00
Jonathan Gibbons
6d180d5fbf 8313349: Introduce abstract void HtmlDocletWriter.buildPage()
Reviewed-by: prappo
2023-08-02 21:59:22 +00:00
Jim Laskey
bc1d2eac9a 8312821: Javac accepts char literal as template
Reviewed-by: jlahoda
2023-08-02 21:01:44 +00:00
Matias Saavedra Silva
cff25dd574 8306582: Remove MetaspaceShared::exit_after_static_dump()
Reviewed-by: iklam, alanb, ccheung
2023-08-02 17:11:22 +00:00
Brian Burkhalter
4ba81f631f 8313368: (fc) FileChannel.size returns 0 on block special files
Reviewed-by: vtewari, alanb
2023-08-02 15:25:59 +00:00
Deepa Kumari
c1a3f143bf 8312078: [PPC] JcmdScale.java Failing on AIX
Reviewed-by: stuefe, tsteele
2023-08-02 14:39:33 +00:00
Cesar Soares Lucas
6446792327 8312617: SIGSEGV in ConnectionGraph::verify_ram_nodes
Reviewed-by: kvn, thartmann
2023-08-02 14:27:07 +00:00
Antonios Printezis
b093880acd 8313322: RISC-V: implement MD5 intrinsic
Reviewed-by: luhenry, rehn
2023-08-02 13:17:00 +00:00
Stefan Karlsson
19e2c8c321 8313593: Generational ZGC: NMT assert when the heap fails to expand
Reviewed-by: stuefe, tschatzl, eosterlund
2023-08-02 12:13:47 +00:00
Aleksey Shipilev
46fbedb2be 8313402: C1: Incorrect LoadIndexed value numbering
Reviewed-by: phh, thartmann
2023-08-02 11:21:34 +00:00
Alan Bateman
6faf05c6dd 8311989: Test java/lang/Thread/virtual/Reflection.java timed out
Reviewed-by: jpai, mchung
2023-08-02 10:40:25 +00:00
Albert Mingkun Yang
5d1b911c92 8310311: Serial: move Generation::contribute_scratch to DefNewGeneration
Reviewed-by: tschatzl, kbarrett
2023-08-02 09:17:41 +00:00
Aleksey Shipilev
9454b2bbe1 8312591: GCC 6 build failure after JDK-8280982
Reviewed-by: jiefu, prr
2023-08-02 07:00:37 +00:00
Jenny Shivayogi
6a853bba09 8311821: Simplify ParallelGCThreadsConstraintFunc after CMS removal
Reviewed-by: kbarrett, shade, tschatzl
2023-08-02 07:00:13 +00:00
Daniel Jeliński
e8471f6bbe 8313507: Remove pkcs11/Cipher/TestKATForGCM.java from ProblemList
Reviewed-by: mullan
2023-08-02 05:45:24 +00:00
Joe Wang
528596fa93 8310991: missing @since tags in java.xml
Reviewed-by: iris, naoto, lancea
2023-08-02 01:37:40 +00:00
Jim Laskey
f14245b388 8312814: Compiler crash when template processor type is a captured wildcard
Reviewed-by: jlahoda, mcimadamore, vromero
2023-08-02 00:47:20 +00:00
Justin Lu
9b55e9a706 8312572: JDK 21 RDP2 L10n resource files update
Reviewed-by: naoto
2023-08-01 23:16:39 +00:00
John Jiang
28be34c1b9 8313226: Redundant condition test in X509CRLImpl
Reviewed-by: jnimeh
2023-08-01 22:35:27 +00:00
Calvin Cheung
dc14247077 8309240: Array classes should be stored in dynamic CDS archive
Reviewed-by: iklam
2023-08-01 22:08:55 +00:00
Calvin Cheung
bf7077752a 8312181: CDS dynamic dump crashes when verifying unlinked class from static archive
Reviewed-by: iklam, matsaave
2023-08-01 20:31:25 +00:00
Ashutosh Mehra
7ba8c69a2c 8312596: Null pointer access in Compile::TracePhase::~TracePhase after JDK-8311976
Reviewed-by: chagedorn, dlong, shade
2023-08-01 19:26:45 +00:00
Aleksey Shipilev
ec2f38fd38 8313428: GHA: Bump GCC versions for July 2023 updates
Reviewed-by: clanger, mbaesken, stuefe
2023-08-01 16:03:24 +00:00
Thomas Obermeier
98a915a54c 8313256: Exclude failing multicast tests on AIX
Reviewed-by: clanger
2023-08-01 15:31:54 +00:00
Christoph Langer
94b50b714a 8313404: Fix section label in test/jdk/ProblemList.txt
Reviewed-by: mbaesken, alanb
2023-08-01 13:45:10 +00:00
Coleen Phillimore
ee3e0917b3 8313249: Fix -Wconversion warnings in verifier code
Reviewed-by: matsaave, iklam, dlong
2023-08-01 11:59:11 +00:00
Joshua Cao
e36960ec6d 8312420: Integrate Graal's blender micro benchmark
Reviewed-by: dnsimon, thartmann, ksakata
2023-08-01 10:48:38 +00:00
Tejesh R
0a3c6d6bd0 8280482: Window transparency bug on Linux
Reviewed-by: dnguyen, azvegint
2023-08-01 04:28:42 +00:00
Matias Saavedra Silva
c91a3002fb 8307312: Replace "int which" with "int cp_index" in constantPool
Reviewed-by: coleenp, dholmes, iklam
2023-07-31 20:23:59 +00:00
Jim Laskey
6af0af5934 8310913: Move ReferencedKeyMap to jdk.internal so it may be shared
Reviewed-by: naoto, rriggs, mchung, liach
2023-07-31 19:11:14 +00:00
Matias Saavedra Silva
86783b9851 8301996: Move field resolution information out of the cpCache
Co-authored-by: Gui Cao <gcao@openjdk.org>
Co-authored-by: Dingli Zhang <dzhang@openjdk.org>
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Reviewed-by: coleenp, fparain
2023-07-31 18:41:38 +00:00
Thomas Stuefe
5362ec9c6e 8312492: Remove THP sanity checks at VM startup
Reviewed-by: dholmes, coleenp
2023-07-31 16:51:29 +00:00
Hai-May Chao
e47a84f23d 8312489: Increase jdk.jar.maxSignatureFileSize default which is too low for JARs such as WhiteSource/Mend unified agent jar
Reviewed-by: mullan, mbaesken
2023-07-31 15:18:04 +00:00
Gerard Ziemski
78f67993f8 8293972: runtime/NMT/NMTInitializationTest.java#default_long-off failed with "Suspiciously long bucket chains in lookup table."
Reviewed-by: stuefe, dholmes
2023-07-31 15:12:22 +00:00
Qing Xiao
97b688340e 8295059: test/langtools/tools/javap 12 test classes use com.sun.tools.classfile library
Reviewed-by: asotona
2023-07-31 15:03:05 +00:00
Matthias Baesken
3671d83c87 8313252: Java_sun_awt_windows_ThemeReader_paintBackground release resources in early returns
Reviewed-by: clanger
2023-07-31 14:57:28 +00:00
Matias Saavedra Silva
b60e0adad6 8313207: Remove MetaspaceShared::_has_error_classes
Reviewed-by: ccheung, iklam
2023-07-31 13:44:38 +00:00
Aleksey Shipilev
408987e1ca 8313307: java/util/Formatter/Padding.java fails on some Locales
Reviewed-by: jlu, naoto
2023-07-31 08:35:31 +00:00
Jorn Vernee
6fca289887 8313023: Return value corrupted when using CCS + isTrivial (mainline)
Reviewed-by: mcimadamore, vlivanov
2023-07-31 08:01:17 +00:00
John Jiang
f8c2b7fee1 8313231: Redundant if statement in ZoneInfoFile
Reviewed-by: jiefu, scolebourne
2023-07-31 07:49:10 +00:00
Christoph Langer
807ca2d3a1 8313316: Disable runtime/ErrorHandling/MachCodeFramesInErrorFile.java on ppc64le
Reviewed-by: mbaesken
2023-07-31 07:42:37 +00:00
Thomas Stuefe
ad34be1f32 8312525: New test runtime/os/TestTrimNative.java#trimNative is failing: did not see the expected RSS reduction
Reviewed-by: dholmes, shade
2023-07-29 05:36:58 +00:00
Vladimir Kempik
d6245b6832 8310268: RISC-V: misaligned memory access in String.Compare intrinsic
Co-authored-by: Feilong Jiang <fjiang@openjdk.org>
Reviewed-by: fyang
2023-07-28 21:55:33 +00:00
Jonathan Gibbons
402cb6a550 8312201: Clean up common behavior in "page writers" and "member writers"
8284447: Remove the unused NestedClassWriter interface

Reviewed-by: prappo
2023-07-28 17:48:31 +00:00
Justin Lu
23755f90c9 8312411: MessageFormat.formatToCharacterIterator() can be improved
Reviewed-by: naoto
2023-07-28 17:33:20 +00:00
Jonathan Gibbons
e2cb0bc6f1 8313204: Inconsistent order of sections in generated class documentation
Reviewed-by: hannesw, prappo
2023-07-28 17:05:37 +00:00
Jonathan Gibbons
4ae75cab53 8313253: Rename methods in javadoc Comparators class
Reviewed-by: hannesw, prappo
2023-07-28 16:39:33 +00:00
Coleen Phillimore
e897041770 8312262: Klass::array_klass() should return ArrayKlass pointer
Reviewed-by: dlong, ccheung
2023-07-28 16:32:06 +00:00
Justin Lu
a9a3463afb 8312416: Tests in Locale should have more descriptive names
Reviewed-by: lancea, naoto
2023-07-28 16:27:06 +00:00
Matthias Baesken
d9559f9b24 8312612: handle WideCharToMultiByte return values
Reviewed-by: clanger
2023-07-28 13:45:19 +00:00
Matthias Baesken
34173ff0d1 8312574: jdk/jdk/jfr/jvm/TestChunkIntegrity.java fails with timeout
Reviewed-by: egahlin
2023-07-28 13:31:13 +00:00
Coleen Phillimore
47c4b992b4 8312121: Fix -Wconversion warnings in tribool.hpp
Reviewed-by: dlong, dholmes
2023-07-28 12:08:24 +00:00
Alexander Scherbatiy
a3d67231a7 8311033: [macos] PrinterJob does not take into account Sides attribute
Reviewed-by: prr, serb
2023-07-28 10:25:22 +00:00
Kevin Walls
4ae5a3e39b 8306446: java/lang/management/ThreadMXBean/Locks.java transient failures
Reviewed-by: cjplummer, sspitsyn
2023-07-28 09:44:04 +00:00
Damon Fenacci
cad6114e1c 8304954: SegmentedCodeCache fails when using large pages
Reviewed-by: stuefe, thartmann
2023-07-28 09:09:48 +00:00
Leonid Mesnik
ba645da97b 8313082: Enable CreateCoredumpOnCrash for testing in makefiles
Reviewed-by: dholmes
2023-07-28 02:01:48 +00:00
Valerie Peng
c27c87786a 8302017: Allocate BadPaddingException only if it will be thrown
Reviewed-by: xuelei
2023-07-27 21:24:03 +00:00
Jiangli Zhou
c55d29ff11 8312626: Resolve multiple definition of 'start_timer' when statically linking JDK native libraries with user code
Reviewed-by: serb
2023-07-27 19:12:46 +00:00
Alexey Semenyuk
0ca2bfd779 8311104: dangling-gsl warning in libwixhelper.cpp
Reviewed-by: almatvee
2023-07-27 16:07:54 +00:00
Thomas Obermeier
c05ba48b60 8313250: Exclude java/foreign/TestByteBuffer.java on AIX
Reviewed-by: rriggs, clanger
2023-07-27 15:45:20 +00:00
Kevin Walls
169b6e3cff 8313174: Create fewer predictable port clashes in management tests
Reviewed-by: cjplummer, amenkov
2023-07-27 15:40:13 +00:00
Roger Riggs
8650026ff1 8310033: Clarify return value of Java Time compareTo methods
Reviewed-by: bpb, scolebourne, prappo, naoto
2023-07-27 14:01:25 +00:00
Thomas Stuefe
25058cd23a 8312620: WSL Linux build crashes after JDK-8310233
Reviewed-by: dholmes, djelinski
2023-07-27 13:45:36 +00:00
Richard Reingruber
8661b8e115 8312495: assert(0 <= i && i < _len) failed: illegal index after JDK-8287061 on big endian platforms
Reviewed-by: clanger, kvn, dlong
2023-07-27 13:40:23 +00:00
Jaikiran Pai
486c7844f9 8312433: HttpClient request fails due to connection being considered idle and closed
Reviewed-by: djelinski
2023-07-27 12:14:14 +00:00
Gergö Barany
271417a0e1 8312579: [JVMCI] JVMCI support for virtual Vector API objects
Reviewed-by: dnsimon, never
2023-07-27 10:48:18 +00:00
Andreas Steiner
44576a7cca 8312466: /bin/nm usage in AIX makes needs -X64 flag
Reviewed-by: mbaesken, stuefe, jwaters
2023-07-27 10:37:40 +00:00
Doug Simon
86821a7ce8 8312235: [JVMCI] ConstantPool should not force eager resolution
Reviewed-by: never, matsaave
2023-07-27 08:39:32 +00:00
Eric Nothum
7cbab1f396 8312218: Print additional debug information when hitting assert(in_hash)
Reviewed-by: chagedorn, thartmann
2023-07-27 07:29:23 +00:00
Roland Westrelin
01e135c910 8312440: assert(cast != nullptr) failed: must have added a cast to pin the node
Reviewed-by: chagedorn, kvn, thartmann
2023-07-27 07:24:46 +00:00
Matthias Baesken
b7545a69a2 8313164: src/java.desktop/windows/native/libawt/windows/awt_Robot.cpp GetRGBPixels adjust releasing of resources
Reviewed-by: stuefe
2023-07-27 07:06:32 +00:00
Sean Coffey
36d578cddb 8311653: Modify -XshowSettings launcher behavior
Reviewed-by: mchung, rriggs
2023-07-27 06:33:27 +00:00
Paul Hohensee
a9d21c61fb 8313081: MonitoringSupport_lock should be unconditionally initialized after 8304074
Reviewed-by: dholmes, sspitsyn, shade
2023-07-26 19:30:21 +00:00
Rajan Halade
4c2e54fb05 8309088: security/infra/java/security/cert/CertPathValidator/certification/AmazonCA.java fails
Reviewed-by: mullan
2023-07-26 16:55:29 +00:00
John Jiang
830413f19a 8313087: DerValue::toString should output a hex view of the values in byte array
Reviewed-by: mullan
2023-07-26 15:16:52 +00:00
Brian Burkhalter
74121930e3 4800398: (ch spec) Clarify Channels.newChannel(InputStream) spec
Reviewed-by: alanb
2023-07-26 15:07:18 +00:00
Christian Stein
e7726fbd69 8313155: Problem list some JUnit-based tests in test/jdk/java/lang/invoke
Reviewed-by: dholmes, jpai
2023-07-26 13:42:10 +00:00
Hannes Wallnöfer
02a04731b1 8312445: Array types in annotation elements show square brackets twice
Reviewed-by: prappo
2023-07-26 13:04:39 +00:00
Erik Gahlin
c22cadf32f 8312526: Test dk/jfr/event/oldobject/TestHeapDeep.java failed: Could not find ChainNode
Reviewed-by: mgronlun
2023-07-26 10:47:25 +00:00
Jan Lahoda
cc2a75e11c 8312619: Strange error message when switching over long
Reviewed-by: vromero
2023-07-26 10:35:15 +00:00
Jan Lahoda
1f81e5b19e 8312229: Crash involving yield, switch and anonymous classes
Reviewed-by: vromero
2023-07-26 09:44:50 +00:00
Jaikiran Pai
e9daf4a018 8312916: Remove remaining usages of -Xdebug from test/hotspot/jtreg
Reviewed-by: kevinw, cjplummer, dholmes
2023-07-26 07:34:52 +00:00
Thomas Stuefe
117f42dbe9 8312625: Test serviceability/dcmd/vm/TrimLibcHeapTest.java failed: RSS use increased
Reviewed-by: kevinw, dholmes
2023-07-26 05:46:13 +00:00
Coleen Phillimore
2d05d3545c 8312979: Fix assembler_aarch64.hpp after JDK-8311847
Reviewed-by: dlong
2023-07-25 21:33:54 +00:00
Vladimir Petko
78a8a99d99 8312488: tools/jpackage/share/AppLauncherEnvTest.java fails with dynamically linked libstdc++
Reviewed-by: asemenyuk, almatvee
2023-07-25 20:12:23 +00:00
Joe Darcy
cb82c954e3 8312415: Expand -Xlint:serial checks to enum constants with specialized class bodies
Reviewed-by: jjg, jlahoda
2023-07-25 18:57:32 +00:00
Justin Lu
c6396dceb9 8039165: [Doc] MessageFormat null locale generates NullPointerException
Reviewed-by: naoto
2023-07-25 18:26:23 +00:00
Jiangli Zhou
36f3bae556 8312401: SymbolTable::do_add_if_needed hangs when called in InstanceKlass::add_initialization_error path with requesting length exceeds max_symbol_length
Reviewed-by: dholmes, coleenp, iklam
2023-07-25 16:37:51 +00:00
Anthony Scarpino
e554fdee25 8311592: ECKeySizeParameterSpec causes too many exceptions on third party providers
Reviewed-by: hchao, valeriep
2023-07-25 15:48:31 +00:00
Doug Simon
9606cbcd23 8312524: [JVMCI] serviceability/dcmd/compiler/CompilerQueueTest.java fails
Reviewed-by: never, thartmann
2023-07-25 13:12:42 +00:00
Jaikiran Pai
91fe032327 8312818: Incorrect format specifier in a HttpClient log message
Reviewed-by: djelinski
2023-07-25 11:00:33 +00:00
Matthias Baesken
bd098806f7 8312512: sspi.cpp avoid some NULL checks related to free and delete
Reviewed-by: djelinski
2023-07-25 10:56:23 +00:00
Erik Gahlin
b35ccb27c3 8312533: JFR: No message for JFR.view when data is missing
Reviewed-by: mgronlun
2023-07-25 09:58:29 +00:00
Aleksey Shipilev
ea067fc3d2 8312592: New parentheses warnings after HarfBuzz 7.2.0 update
Reviewed-by: prr, serb
2023-07-25 08:46:12 +00:00
Chad Rakoczy
9999838156 8311646: ZGC: LIR_OpZStoreBarrier::_info shadows LIR_Op::_info
Reviewed-by: kbarrett, eosterlund, ksakata
2023-07-25 06:04:42 +00:00
John Jiang
d63bff672f 8312578: Redundant javadoc in X400Address
Reviewed-by: xuelei, hchao
2023-07-24 22:12:28 +00:00
Dean Long
d0761c19d1 8312077: Fix signed integer overflow, final part
Reviewed-by: kvn, amitkumar
2023-07-24 20:40:08 +00:00
Brian Burkhalter
2bdfa836ad 8262742: (fs) Add Path::resolve with varargs string
Reviewed-by: alanb
2023-07-24 19:59:17 +00:00
Ioi Lam
8008e27c55 8308903: Print detailed info for Java objects in -Xlog:cds+map
Reviewed-by: stuefe, ccheung
2023-07-24 17:56:42 +00:00
Sergey Tsypanov
d8f2e9ae3b 8310530: PipedOutputStream.flush() accesses sink racily
Reviewed-by: dfuchs, bpb, liach, rriggs
2023-07-24 16:24:40 +00:00
sunyaqi
fac9f88c52 8311631: When multiple users run tools/jpackage/share/LicenseTest.java, Permission denied for writing /var/tmp/*.files
Reviewed-by: asemenyuk, almatvee
2023-07-24 16:22:57 +00:00
Varada M
d5c6b0d0bb 8311261: [AIX] TestAlwaysPreTouchStacks.java fails due to java.lang.RuntimeException: Did not find expected NMT output
Reviewed-by: stuefe
2023-07-24 15:35:22 +00:00
Per Minborg
d1cc278260 8311822: AIX : test/jdk/java/foreign/TestLayouts.java fails because of different output - expected [[i4](struct)] but found [[I4](struct)]
Reviewed-by: jvernee
2023-07-24 15:00:47 +00:00
Erik Gahlin
3caf64e065 8309238: jdk/jfr/tool/TestView.java failed with "exitValue = 134"
Reviewed-by: mgronlun
2023-07-24 14:32:17 +00:00
Michael McMahon
298dda4c98 8301457: Code in SendPortZero.java is uncommented even after JDK-8236852 was fixed
Reviewed-by: aefimov, msheppar
2023-07-24 14:13:44 +00:00
Coleen Phillimore
7dd47998f0 8311847: Fix -Wconversion for assembler.hpp emit_int8,16 callers
Reviewed-by: dlong, aph
2023-07-24 12:09:27 +00:00
Prasanta Sadhukhan
197981b431 8311881: jdk/javax/swing/ProgressMonitor/ProgressTest.java does not show the ProgressMonitorInputStream all the time
Reviewed-by: azvegint, tr
2023-07-24 09:22:14 +00:00
Eric Nothum
04f39e1f1e 8310316: Failing HotSpot Compiler directives are too verbose
Reviewed-by: thartmann, chagedorn
2023-07-24 09:17:09 +00:00
Terry Chow
f3ade388da 8308593: Add Keepalive Extended Socket Options Support for Windows
Reviewed-by: michaelm, djelinski, vtewari
2023-07-24 09:03:10 +00:00
Tejesh R
ab821aa24f 6442919: JFilechooser popup still left-to-right when JFilechooser is set to right-to-left
Reviewed-by: serb, abhiscxk
2023-07-24 08:23:05 +00:00
Andreas Steiner
0328886450 8311955: c++filt is now ibm-llvm-cxxfilt when using xlc17 / clang on AIX
Reviewed-by: stuefe, mbaesken, clanger, vtewari
2023-07-24 06:24:00 +00:00
Thomas Stuefe
0487aa61c6 8312530: Problemlist runtime/os/TestTrimNative.java
Reviewed-by: dcubed
2023-07-23 06:33:15 +00:00
Doug Lea
8d1ab57065 8301341: LinkedTransferQueue does not respect timeout for poll()
8300663: java/util/concurrent/SynchronousQueue/Fairness.java failed with "Error: fair=true i=0 j=1"
8267502: JDK-8246677 caused 16x performance regression in SynchronousQueue

Reviewed-by: alanb
2023-07-22 10:41:42 +00:00
William Kemper
bfa76dffb5 8311978: Shenandoah: Create abstraction over heap metrics for heuristics
Reviewed-by: ysr, phh, shade
2023-07-21 21:47:20 +00:00
Jonathan Gibbons
3c644dc586 8312044: Simplify toolkit Builder/Writer world
Reviewed-by: prappo
2023-07-21 18:51:06 +00:00
Andrey Turbanov
f4ba7b2198 8312414: Make java.util.ServiceLoader.LANG_ACCESS final
Reviewed-by: alanb, jpai
2023-07-21 16:49:37 +00:00
Brian Burkhalter
d55d7e8d87 8136895: Writer not closed with disk full error, file resource leaked
Reviewed-by: djelinski, vtewari
2023-07-21 15:21:02 +00:00
Matthew Donovan
8042a50b99 8309305: sun/security/ssl/SSLSocketImpl/BlockedAsyncClose.java fails with jtreg test timeout
Reviewed-by: djelinski
2023-07-21 14:45:59 +00:00
Thomas Stuefe
84b325b844 8312182: THPs cause huge RSS due to thread start timing issue
8310687: JDK-8303215 is incomplete

Reviewed-by: dholmes, poonam
2023-07-21 14:19:57 +00:00
Jaikiran Pai
842d6329cf 8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6
Reviewed-by: alanb, cjplummer, dholmes
2023-07-21 12:58:20 +00:00
Thomas Stuefe
9e4fc568a6 8293114: JVM should trim the native heap
Reviewed-by: shade, rehn, dholmes
2023-07-21 12:22:03 +00:00
Markus Grönlund
59f66a3b83 8312293: SIGSEGV in jfr.internal.event.EventWriter.putUncheckedByte after JDK-8312086
Reviewed-by: egahlin
2023-07-21 12:21:35 +00:00
Erik Gahlin
8cd43bff3c 8312474: JFR: Improve logging to diagnose event stream timeout
Reviewed-by: mgronlun
2023-07-21 08:09:52 +00:00
Ashutosh Mehra
3e8f1eb820 8311976: Inconsistency in usage of CITimeVerbose to generate compilation logs
Reviewed-by: kvn, thartmann
2023-07-21 05:25:31 +00:00
Eric Liu
d4aacdb446 8306136: [vectorapi] Intrinsics of VectorMask.laneIsSet()
Reviewed-by: psandoz, xgong
2023-07-21 03:26:30 +00:00
Serguei Spitsyn
783de32b6a 8300051: assert(JvmtiEnvBase::environments_might_exist()) failed: to enter event controller, JVM TI environments must exist
Reviewed-by: dholmes, pchilanomate
2023-07-20 22:40:18 +00:00
John Jiang
4e8f331a80 8312443: sun.security should use toLowerCase(Locale.ROOT)
Reviewed-by: xuelei
2023-07-20 21:48:19 +00:00
Mandy Chung
d7b9416406 8199149: Improve the exception message thrown by VarHandle of unsupported operation
Reviewed-by: liach, jvernee
2023-07-20 20:21:32 +00:00
Daniel Jeliński
354c6605e3 8307185: pkcs11 native libraries make JNI calls into java code while holding GC lock
Reviewed-by: alanb, valeriep
2023-07-20 16:39:17 +00:00
Naoto Sato
bae2247938 8308591: JLine as the default Console provider
Reviewed-by: alanb
2023-07-20 16:11:13 +00:00
Matthias Baesken
b772e67e29 8312395: Improve assertions in growableArray
Reviewed-by: dholmes, stuefe
2023-07-20 15:06:59 +00:00
Pavel Rappo
9fa944e63f 8312019: Simplify and modernize java.util.BitSet.equals
Reviewed-by: rriggs, martin
2023-07-20 13:54:45 +00:00
Alexander Zvegintsev
fe41910141 8312459: Problem list java/awt/GraphicsDevice/DisplayModes/CycleDMImage.java for macOS
Reviewed-by: psadhukhan
2023-07-20 13:36:45 +00:00
Matthew Donovan
8d29329138 8312320: Remove javax/rmi/ssl/SSLSocketParametersTest.sh from ProblemList
Reviewed-by: xuelei, jpai
2023-07-20 11:07:23 +00:00
Thomas Stuefe
94eb44b192 8312394: [linux] SIGSEGV if kernel was built without hugepage support
Reviewed-by: dholmes, shade
2023-07-20 10:23:35 +00:00
Pengfei Li
32833285bf 8311130: AArch64: Sync SVE related CPU features with VM options
Reviewed-by: aph, xgong
2023-07-20 09:35:45 +00:00
Sergey Nazarkin
a7427678e1 8312246: NPE when HSDB visits bad oop
Reviewed-by: cjplummer, sspitsyn
2023-07-20 09:21:23 +00:00
Wojciech Kudla
37c756a7be 8305506: Add support for fractional values of SafepointTimeoutDelay
Reviewed-by: mdoerr, dholmes
2023-07-20 05:10:39 +00:00
airsquared
dfe764e3f8 8309032: jpackage does not work for module projects unless --module-path is specified
Reviewed-by: asemenyuk, almatvee
2023-07-20 02:14:19 +00:00
Joe Darcy
61ab27087e 8310835: Address gaps in -Xlint:serial checks
Reviewed-by: rriggs, jjg
2023-07-20 01:10:46 +00:00
Chen Liang
5d57b5c2f0 6983726: Reimplement MethodHandleProxies.asInterfaceInstance
Co-authored-by: Mandy Chung <mchung@openjdk.org>
Reviewed-by: jvernee, mchung
2023-07-20 00:59:28 +00:00
Justin Lu
71cac8ce47 8311663: Additional refactoring of Locale tests to JUnit
Reviewed-by: naoto
2023-07-19 20:22:40 +00:00
Daohan Qu
aa23fd98f5 8311879: SA ClassWriter generates invalid invokedynamic code
Reviewed-by: matsaave, cjplummer, coleenp
2023-07-19 19:25:40 +00:00
Sidraya
6f6621303a 8312014: [s390x] TestSigInfoInHsErrFile.java Failure
Reviewed-by: stuefe, amitkumar, tsteele
2023-07-19 18:49:24 +00:00
Pavel Rappo
b5b6f4e7a7 8312164: Refactor Arrays.hashCode for long, boolean, double, float, and Object arrays
Reviewed-by: rriggs, vtewari
2023-07-19 17:21:19 +00:00
Raffaello Giulietti
14cf035681 8302987: Add uniform and spatially equidistributed bounded double streams to RandomGenerator
Reviewed-by: darcy
2023-07-19 16:48:54 +00:00
Thomas Stuefe
d1c788c52b 8312392: ARM32 build broken since 8311035
Reviewed-by: shade
2023-07-19 16:14:25 +00:00
Ashutosh Mehra
c1190375fc 8311971: SA's ConstantPool.java uses incorrect computation to read long value in the constant pool
Reviewed-by: cjplummer, dholmes, stuefe
2023-07-19 14:24:16 +00:00
Alan Bateman
028068a655 8312166: (dc) DatagramChannel's socket adaptor does not release carrier thread when blocking in receive
Reviewed-by: jpai, michaelm
2023-07-19 13:17:37 +00:00
Gui Cao
e7adbdb1f1 8311923: TestIRMatching.java fails on RISC-V
Reviewed-by: fyang
2023-07-19 13:14:03 +00:00
Roland Westrelin
c6ab9c2905 8308103: Massive (up to ~30x) increase in C2 compilation time since JDK 17
Reviewed-by: kvn, thartmann, chagedorn
2023-07-19 11:31:49 +00:00
Johan Sjölen
d33e8e6f93 8312200: Fix Parse::catch_call_exceptions memory leak
Reviewed-by: kvn, thartmann
2023-07-19 09:03:53 +00:00
Daniel Jeliński
f677793d02 8312190: Fix c++11-narrowing warnings in hotspot code
Reviewed-by: dholmes, kbarrett
2023-07-19 07:49:52 +00:00
Jie Fu
82612e2725 8312329: Minimal build failure after JDK-8311541
Reviewed-by: dholmes, amitkumar
2023-07-19 04:58:22 +00:00
Julian Waters
702fea8deb 8312147: Dynamic Exception Specification warnings are no longer required after JDK-8311380
Reviewed-by: prr, serb
2023-07-19 00:44:43 +00:00
Joe Darcy
e5ecbff69e 8312203: Improve specification of Array.newInstance
Reviewed-by: bpb, mchung
2023-07-18 22:40:12 +00:00
David Holmes
c2f421b8bf 8311541: JavaThread::print_jni_stack doesn't support native stacks on all platforms
Reviewed-by: pchilanomate, shade, stuefe
2023-07-18 22:04:37 +00:00
Sergey Bylokhov
e31df3a774 6211126: ICC_ColorSpace.toCIEXYZ(float[]): NPE is not specified
6211139: ICC_ColorSpace.toRGB(float[]): NPE is not specified

Reviewed-by: prr
2023-07-18 21:51:11 +00:00
Sergey Bylokhov
7d9f5afea1 6211202: ColorSpace.getInstance(int): IAE is not specified
Reviewed-by: prr
2023-07-18 21:46:02 +00:00
Valerie Peng
28c4d196cf 8311902: Concurrency regression in the PBKDF2 key impl of SunJCE provider
Reviewed-by: ascarpino, xuelei, mullan
2023-07-18 21:35:41 +00:00
Christian Hagedorn
5c4623b360 8308682: Enhance AES performance
Reviewed-by: rhalade, dlong, kvn
2023-07-18 21:17:09 +00:00
Jan Lahoda
cb5f1b72e1 8303376: Better launching of JDI
Reviewed-by: mschoene, rhalade, vromero
2023-07-18 21:17:09 +00:00
Calvin Cheung
925138a942 8296565: Enhanced archival support
Reviewed-by: rhalade, iklam
2023-07-18 21:17:08 +00:00
Brian Burkhalter
889c663a0e 8305312: Enhanced path handling
Reviewed-by: rhalade, alanb
2023-07-18 21:17:08 +00:00
Ioi Lam
be70bc1c58 8294323: Improve Shared Class Data
Co-authored-by: Calvin Cheung <ccheung@openjdk.org>
Reviewed-by: coleenp, rhalade
2023-07-18 21:17:08 +00:00
Hai-May Chao
ecd0bc1d62 8300596: Enhance Jar Signature validation
Reviewed-by: mullan, rhalade, mschoene, weijun
2023-07-18 21:17:08 +00:00
Lance Andersen
fff7e1ad00 8302483: Enhance ZIP performance
Reviewed-by: ahgross, alanb, rhalade, coffeys
2023-07-18 21:17:07 +00:00
Michael McMahon
4ae3d8f2cd 8302475: Enhance HTTP client file downloading
Reviewed-by: dfuchs, rhalade
2023-07-18 21:17:07 +00:00
Tobias Hartmann
34dbb22505 8304460: Improve array usages
Reviewed-by: iveresov, rhalade, chagedorn
2023-07-18 21:17:07 +00:00
Tobias Hartmann
5e47b8e5e6 8304468: Better array usages
Reviewed-by: iveresov, rhalade, chagedorn
2023-07-18 21:17:07 +00:00
Jamil Nimeh
282a93a4cc 8300285: Enhance TLS data handling
Reviewed-by: ahgross, ascarpino, rhalade
2023-07-18 21:17:06 +00:00
Alex Menkov
af5bf81754 8310584: GetThreadState reports blocked and runnable for pinned suspended virtual threads
Reviewed-by: sspitsyn, dholmes
2023-07-18 20:16:41 +00:00
Mandy Chung
b4dce0d624 8310814: Clarify the targetName parameter of Lookup::findClass
Reviewed-by: liach, rriggs, bchristi
2023-07-18 16:07:35 +00:00
Markus Grönlund
9905f75822 8311040: JFR: RecordedThread::getOSThreadId() should return -1 if thread is virtual
Reviewed-by: egahlin
2023-07-18 16:00:30 +00:00
Pavel Rappo
1dfb0fb3e2 8311188: Simplify and modernize equals and hashCode in java.text
Reviewed-by: lancea, naoto, rriggs
2023-07-18 15:12:09 +00:00
Aggelos Biboudis
1fc726a8b3 8312163: Crash in dominance check when compiling unnamed patterns
Reviewed-by: jlahoda
2023-07-18 11:41:36 +00:00
Matthew Donovan
b20dc1e9cd 8310629: java/security/cert/CertPathValidator/OCSP/OCSPTimeout.java fails with RuntimeException Server not ready
Reviewed-by: jnimeh
2023-07-18 10:45:41 +00:00
Hao Sun
4b9ec82451 8310355: Move the stub test from initialize_final_stubs() to test/hotspot/gtest
Reviewed-by: mseledtsov, lmesnik
2023-07-18 05:58:31 +00:00
Jaikiran Pai
8ec136e6f0 8312072: Deprecate for removal the -Xnoagent option
Reviewed-by: alanb, dholmes, cjplummer
2023-07-18 05:41:37 +00:00
Alan Bateman
fbe51e388d 8312127: FileDescriptor.sync should temporarily increase parallelism
Reviewed-by: shade, bpb
2023-07-18 05:13:14 +00:00
Chen Liang
201e3bcf52 8291065: Creating a VarHandle for a static field triggers class initialization
Reviewed-by: mchung, psandoz
2023-07-18 00:58:25 +00:00
Cesar Soares Lucas
a53345ad03 8287061: Support for rematerializing scalar replaced objects participating in allocation merges
Reviewed-by: kvn, vlivanov
2023-07-17 23:01:35 +00:00
Serguei Spitsyn
3236ba0be4 8312189: ProblemList serviceability/jvmti/vthread/VThreadTLSTest/VThreadTLSTest.java#id1
Reviewed-by: dholmes
2023-07-17 22:50:25 +00:00
Pavel Rappo
5cc71f817f 8312089: Simplify and modernize equals, hashCode, and compareTo in java.nio and implementation code
Reviewed-by: alanb, vtewari
2023-07-17 22:27:48 +00:00
Justin Lu
6a09992dbd 8311968: Clarify Three-letter time zone IDs in java.util.TimeZone
Reviewed-by: naoto, lancea
2023-07-17 21:00:49 +00:00
Anthony Scarpino
6ae152d1be 8312196: ProblemList test/hotspot/jtreg/applications/ctw/modules/jdk_crypto_ec.java
Reviewed-by: darcy
2023-07-17 20:37:40 +00:00
Joe Darcy
295ae1190d 8312195: Changes in JDK-8284493 use wrong copyright syntax
Reviewed-by: rriggs
2023-07-17 19:44:08 +00:00
Chris Hennick
f975be44a8 8284493: Improve computeNextExponential tail performance and accuracy
Reviewed-by: darcy
2023-07-17 19:19:13 +00:00
Anthony Scarpino
e737968792 8308398: Move SunEC crypto provider into java.base
Reviewed-by: valeriep, alanb
2023-07-17 17:38:54 +00:00
Jorn Vernee
69a46c25cc 8310157: Allow void-returning filters for MethodHandles::collectCoordinates
Reviewed-by: mcimadamore
2023-07-17 14:53:37 +00:00
Chen Liang
3fb9d117e3 8311172: Classfile.PREVIEW_MINOR_VERSION doesn't match that read from class files
Reviewed-by: asotona
2023-07-17 11:53:32 +00:00
Matthew Donovan
afcf8e4751 8290005: com/sun/jndi/ldap/LdapCBPropertiesTest.java failling with NullPointerException
Reviewed-by: jnimeh, xuelei
2023-07-17 11:16:19 +00:00
Prasanta Sadhukhan
acf591e856 8140527: JInternalFrame has incorrect title button width
8139392: JInternalFrame has incorrect padding

Co-authored-by: Alexey Ivanov <aivanov@openjdk.org>
Reviewed-by: aivanov, tr
2023-07-17 08:40:10 +00:00
Sean Coffey
f6e23ae451 8310201: Reduce verbose locale output in -XshowSettings launcher option
Reviewed-by: jpai
2023-07-17 08:28:16 +00:00
Jan Lahoda
a4412166ec 8311815: Incorrect exhaustivity computation
Reviewed-by: vromero
2023-07-17 08:19:51 +00:00
Jan Lahoda
1c9691b1f7 8312093: Incorrect javadoc comment text
Reviewed-by: jlaskey
2023-07-17 06:43:16 +00:00
Thomas Stuefe
37ca9024ef 8310233: Fix THP detection on Linux
Reviewed-by: jsjolen, dholmes
2023-07-17 04:56:10 +00:00
Jaikiran Pai
81c4e8f916 8304006: jlink should create the jimage file in the native endian for the target platform
Co-authored-by: Mandy Chung <mchung@openjdk.org>
Reviewed-by: alanb, mchung, rriggs
2023-07-16 07:11:39 +00:00
Ludovic Henry
e8f66bf88c 8310949: RISC-V: Initialize UseUnalignedAccesses
Reviewed-by: rehn, vkempik, fyang
2023-07-15 06:50:21 +00:00
Joe Darcy
19691fab48 6361826: (reflect) provide method for mapping strings to class object for primitive types
Reviewed-by: rriggs, mchung
2023-07-14 20:18:23 +00:00
Chris Plummer
c84866ac0d 8310551: vmTestbase/nsk/jdb/interrupt/interrupt001/interrupt001.java timed out due to missing prompt
Reviewed-by: kevinw, sspitsyn
2023-07-14 18:39:34 +00:00
Alan Bateman
0d2196f8e5 8311992: Test java/lang/Thread/virtual/JfrEvents::testVirtualThreadPinned failed
Reviewed-by: jpai
2023-07-14 16:01:26 +00:00
Ilya Gavrilin
f3b96f6937 8311862: RISC-V: small improvements to shift immediate instructions
Reviewed-by: luhenry, fjiang, fyang
2023-07-14 14:32:40 +00:00
Doug Simon
a63f865feb 8311946: add support for libgraal specific jtreg tests
Reviewed-by: kvn, thartmann
2023-07-14 14:10:10 +00:00
Leslie Zhai
167d1c1835 8311986: Disable runtime/os/TestTracePageSizes.java for ShenandoahGC
Reviewed-by: jiefu, stuefe, shade
2023-07-14 13:54:46 +00:00
Markus Grönlund
7539cc092d 8303134: JFR: Missing stack trace during chunk rotation stress
Reviewed-by: egahlin, thartmann
2023-07-14 10:46:49 +00:00
Jan Lahoda
d1fa1a8686 8311825: Duplicate qualified enum constants not detected
Reviewed-by: vromero
2023-07-14 09:54:56 +00:00
Thomas Stuefe
4676b40f17 8312049: runtime/logging/ClassLoadUnloadTest can be improved
Reviewed-by: dnsimon, dholmes
2023-07-14 08:49:05 +00:00
Jan Lahoda
bbb7ce5137 8311038: Incorrect exhaustivity computation
Reviewed-by: vromero
2023-07-14 08:21:48 +00:00
Sean Coffey
2e12a123c9 8281658: Add a security category to the java -XshowSettings option
Reviewed-by: rriggs, mullan
2023-07-14 07:31:09 +00:00
Jenny Shivayogi
43099a85b1 8311647: Memory leak in Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ttyname_1r
Reviewed-by: phh, shade, jlahoda
2023-07-13 22:09:21 +00:00
Liam Miller-Cushon
c7c6d47a07 6355567: AdobeMarkerSegment causes failure to read valid JPEG
Reviewed-by: prr, serb
2023-07-13 19:36:36 +00:00
Matthew Donovan
af7f95e24a 8310070: Test: javax/net/ssl/DTLS/DTLSWontNegotiateV10.java timed out
Reviewed-by: jnimeh
2023-07-13 17:52:27 +00:00
Ashutosh Mehra
c710e71178 8311102: Write annotations in the classfile dumped by SA
Reviewed-by: cjplummer, stuefe
2023-07-13 17:14:30 +00:00
Markus Grönlund
61932f49a5 8244289: fatal error: Possible safepoint reached by thread that does not allow it
Reviewed-by: egahlin
2023-07-13 16:50:16 +00:00
Viktor Klang
8c9d091f19 8308047: java/util/concurrent/ScheduledThreadPoolExecutor/BasicCancelTest.java timed out and also had jcmd pipe errors
Reviewed-by: stefank, alanb
2023-07-13 14:25:50 +00:00
Matthias Baesken
b587fc51a8 8312013: avoid UnixConstants.java.template warning: '__linux__' is not defined on AIX
Reviewed-by: alanb, vtewari
2023-07-13 14:02:52 +00:00
Coleen Phillimore
135f64e603 8311583: tableswitch broken by JDK-8310577
Reviewed-by: dholmes, dlong
2023-07-13 13:20:52 +00:00
Markus Grönlund
6895debf66 8311536: JFR TestNativeMemoryUsageEvents fails in huge pages configuration
Reviewed-by: egahlin, mseledtsov
2023-07-13 12:13:44 +00:00
Leo Korinth
bb5278d98a 8311239: GC: Remove trailing blank lines in source files
Reviewed-by: tschatzl, aboldtch, mli
2023-07-13 08:53:36 +00:00
Alan Bateman
92a04e201e 8311867: StructuredTaskScope.shutdown does not interrupt newly started threads
Reviewed-by: jpai
2023-07-13 07:33:01 +00:00
Erik Gahlin
f60c1f9bc4 8294401: Update jfr man page to include recently added features
Reviewed-by: mgronlun
2023-07-13 07:27:16 +00:00
Yudi Zheng
1b0dd7c254 8310108: Skip ReplaceCriticalClassesForSubgraphs when EnableJVMCI is specified
Reviewed-by: dnsimon, iklam
2023-07-13 07:20:18 +00:00
Matthias Baesken
a38a421f62 8311917: MAP_FAILED definition seems to be obsolete in src/java.desktop/unix/native/common/awt/fontpath.c
Reviewed-by: prr
2023-07-13 07:11:14 +00:00
Matthias Baesken
812dadb0f9 8311788: ClassLoadUnloadTest fails on AIX after JDK-8193513
Reviewed-by: lucy, stuefe
2023-07-13 07:05:57 +00:00
Serguei Spitsyn
11a5115caf 8311556: GetThreadLocalStorage not working for vthreads mounted during JVMTI attach
Reviewed-by: lmesnik, cjplummer
2023-07-13 01:55:37 +00:00
Pengfei Li
a38582e941 8311691: C2: Remove legacy code related to PostLoopMultiversioning
Reviewed-by: kvn, sviswanathan
2023-07-13 01:45:52 +00:00
David Holmes
38f74125d1 8311609: [windows] Native stack printing lacks source information for dynamically loaded dlls
Reviewed-by: stuefe, iklam
2023-07-13 01:21:06 +00:00
Jonathan Gibbons
e51472e9a8 8309566: Migrate away from TagletWriter and TagletWriterImpl
8311974: Clean up Utils.getBlockTags

Reviewed-by: prappo
2023-07-13 01:03:52 +00:00
Julian Waters
fb90af881b 8311380: Prepare java.desktop for C++17
Reviewed-by: azvegint
2023-07-13 00:58:51 +00:00
Stuart Marks
743e8b8e0a 8306785: fix deficient spliterators for Sequenced Collections
Reviewed-by: psandoz
2023-07-12 23:45:42 +00:00
David Holmes
372d0cf752 8311545: Allow test symbol files to be kept in the test image
Reviewed-by: mikael
2023-07-12 23:01:54 +00:00
Chad Rakoczy
489a32fe40 8311813: C1: Uninitialized PhiResolver::_loop field
Reviewed-by: thartmann, shade
2023-07-12 19:24:18 +00:00
Rajan Halade
119cc495fc 8156889: ListKeychainStore.sh fails in some virtualized environments
Reviewed-by: mullan
2023-07-12 18:15:20 +00:00
Brian Burkhalter
ed9337e665 8155902: DataOuputStream should clarify that it might write primitive types as multiple byte groups
Reviewed-by: alanb, djelinski, lancea, rriggs
2023-07-12 18:14:56 +00:00
Stuart Marks
f82c8184b2 8308694: Clarify reversed() default methods' implementation requirements
Reviewed-by: rriggs
2023-07-12 16:10:41 +00:00
Alan Bateman
7304316a8c 8311926: java/lang/ScopedValue/StressStackOverflow.java takes 9mins in tier1
Reviewed-by: jpai
2023-07-12 15:44:41 +00:00
Matthias Baesken
aa7367f1ec 8311921: Inform about MaxExpectedDataSegmentSize in case of pthread_create failures on AIX
Reviewed-by: jbechberger, stuefe
2023-07-12 10:39:28 +00:00
Thomas Stuefe
753bd563ec 8311870: Split CompressedKlassPointers from compressedOops.hpp
Reviewed-by: iklam, rkennke
2023-07-12 09:06:53 +00:00
Chad Rakoczy
0b0e064e36 8311656: Shenandoah: Unused ShenandoahSATBAndRemarkThreadsClosure::_claim_token
Reviewed-by: ysr, shade
2023-07-12 07:29:52 +00:00
Rajan Halade
fd7fddb6ed 8295894: Remove SECOM certificate that is expiring in September 2023
Reviewed-by: xuelei, mullan
2023-07-11 23:53:40 +00:00
Justin Lu
d82ade3545 8310683: Refactor StandardCharset/standard.java to use JUnit
Reviewed-by: naoto
2023-07-11 20:43:03 +00:00
Alexey Ivanov
aac903dbfb 8311805: Clean up ScrollPane: drop redundant initialiser, mark scroller final
Reviewed-by: azvegint, serb, prr
2023-07-11 19:41:42 +00:00
Alex Menkov
15195e6018 8310066: Improve test coverage for JVMTI GetThreadState on carrier and mounted vthread
Reviewed-by: sspitsyn, cjplummer
2023-07-11 17:31:21 +00:00
Justin Lu
6cb9ec32a6 6960866: [Fmt-Ch] ChoiceFormat claims impossible and unimplemented functionality
Reviewed-by: naoto
2023-07-11 17:12:02 +00:00
Jenny Shivayogi
401c3dea5d 8311645: Memory leak in jspawnhelper spawnChild after JDK-8307990
Reviewed-by: shade, simonis, alanb, rriggs
2023-07-11 16:55:23 +00:00
Jiangli Zhou
e154b0d6cd 8311606: Change read_icc_profile() to static function in java.desktop/share/native/libjavajpeg/imageioJPEG.c
Reviewed-by: serb
2023-07-11 16:53:44 +00:00
Swati Sharma
a03a3a43bb 8311178: JMH tests don't scale well when sharing output buffers
Co-authored-by: Vladimir Ivanov <vaivanov@openjdk.org>
Reviewed-by: ecaspole, sviswanathan, mli
2023-07-11 16:14:33 +00:00
Naoto Sato
00c7f914c6 8310047: Add UTF-32 based Charsets into StandardCharsets
Reviewed-by: alanb, lancea, bpb, jpai, jlu
2023-07-11 16:10:34 +00:00
Roland Westrelin
caadad4fdc 8303279: C2: crash in SubTypeCheckNode::sub() at IGVN split if
Reviewed-by: kvn, vlivanov, thartmann, simonis
2023-07-11 15:59:17 +00:00
Alexey Ivanov
b3f34039fe 8311689: Wrong visible amount in Adjustable of ScrollPane
Reviewed-by: prr, honkar, serb
2023-07-11 13:43:15 +00:00
Erik Gahlin
a1cfc96954 8311245: JFR: Remove t.printStackTrace() in PeriodicEvents
Reviewed-by: mgronlun
2023-07-11 11:03:36 +00:00
Hao Sun
4b1403d06b 8311548: AArch64: [ZGC] Many tests fail with "assert(allocates2(pc)) failed: not in CodeBuffer memory" on some CPUs
Reviewed-by: aboldtch, fyang, kbarrett, tschatzl
2023-07-10 22:00:31 +00:00
Eirik Bjorsnos
940a4e12d1 8304503: Modernize debugging jvm args in demo netbeans projects
Reviewed-by: prr
2023-07-10 21:48:03 +00:00
Patricio Chilano Mateo
57e7e82fa1 8309637: runtime/handshake/HandshakeTimeoutTest.java fails with "has not cleared handshake op" and SIGILL
Reviewed-by: dholmes, coleenp
2023-07-10 19:09:27 +00:00
Naoto Sato
63f32fbe97 8311528: Remove IDE specific SuppressWarnings
Reviewed-by: lancea, bpb, jlu
2023-07-10 17:07:26 +00:00
Liam Miller-Cushon
b285ed72ae 8311666: Disabled tests in test/jdk/sun/java2d/marlin
Reviewed-by: prr
2023-07-10 16:13:06 +00:00
Maurizio Cimadamore
6569b252b9 8311593: Minor doc issue in MemorySegment::copy
Reviewed-by: jvernee
2023-07-10 15:04:21 +00:00
Alan Bateman
623cfcd04b 8310892: ScopedValue throwing StructureViolationException should be clearer
Reviewed-by: dfuchs, jpai
2023-07-10 12:33:29 +00:00
Christian Hagedorn
06a1a15d01 8311588: C2: RepeatCompilation compiler directive does not choose stress seed randomly
Reviewed-by: thartmann
2023-07-10 07:44:16 +00:00
Ioi Lam
581f90e242 8311604: Simplify NOCOOPS requested addresses for archived heap objects
Reviewed-by: ccheung
2023-07-09 15:18:46 +00:00
Doug Simon
4a1fcb6063 8193513: add support for printing a stack trace on class loading
Reviewed-by: dholmes, iklam, coleenp
2023-07-08 07:56:28 +00:00
Leonid Mesnik
292ee630ae 8305962: update jcstress to 0.16
Reviewed-by: shade
2023-07-07 19:14:17 +00:00
Justin Lu
12e9430910 8310818: Refactor more Locale tests to use JUnit
Reviewed-by: lancea, naoto
2023-07-07 19:12:13 +00:00
Kevin Driver
5667afc362 8295068: SSLEngine throws NPE parsing CertificateRequests
Reviewed-by: xuelei
2023-07-07 16:55:26 +00:00
Daniel Jeliński
34004e1666 8311575: Fix invalid format parameters
Reviewed-by: dholmes, kbarrett, mli
2023-07-07 12:14:16 +00:00
Daohan Qu
9084b6c9d5 8311514: Incorrect regex in TestMetaSpaceLog.java
Reviewed-by: stuefe
2023-07-07 11:49:29 +00:00
Matthias Baesken
0ef03f1228 8311285: report some fontconfig related environment variables in hs_err file
Reviewed-by: clanger, stuefe
2023-07-07 10:27:51 +00:00
Johan Sjölen
92ca670bf3 8310170: Use sp's argument to improve performance of outputStream::indent and remove SP_USE_TABS
Reviewed-by: shade, dholmes, stuefe
2023-07-07 09:24:30 +00:00
Matthias Baesken
25cbe85d6f 8310550: Adjust references to rt.jar
Reviewed-by: erikj, clanger
2023-07-07 06:57:23 +00:00
Matthias Baesken
848abd2831 8311511: Improve description of NativeLibrary JFR event
Reviewed-by: clanger, jbechberger
2023-07-07 06:55:32 +00:00
Prasanta Sadhukhan
6485b7d0d3 6875229: Wrong placement of icons in JTabbedPane in Nimbus
Reviewed-by: honkar, abhiscxk, dnguyen, jdv
2023-07-07 02:55:42 +00:00
Daohan Qu
27de536b40 8311581: Remove obsolete code and comments in TestLVT.java
Reviewed-by: coleenp, jwaters
2023-07-07 01:43:44 +00:00
Justin Lu
e848d9471f 8310923: Refactor Currency tests to use JUnit
Reviewed-by: naoto, lancea
2023-07-07 01:32:59 +00:00
Patricio Chilano Mateo
0c86c31bcc 8302351: "assert(!JavaThread::current()->is_interp_only_mode() || !nm->method()->is_continuation_enter_intrinsic() || ContinuationEntry::is_interpreted_call(return_pc)) failed: interp_only_mode but not in enterSpecial interpreted entry" in fixup_callers_callsite
Reviewed-by: dcubed, sspitsyn, dlong
2023-07-06 19:15:45 +00:00
Oliver Kopp
ec7da91bd8 8240567: MethodTooLargeException thrown while creating a jlink image
Reviewed-by: mchung
2023-07-06 16:08:36 +00:00
Johan Sjölen
97e99f01d4 8311087: PhiNode::wait_for_region_igvn should break early
Reviewed-by: thartmann, chagedorn
2023-07-06 12:27:13 +00:00
Aleksey Shipilev
7173c3009e 8307766: Linux: Provide the option to override the timer slack
Reviewed-by: dholmes, stuefe
2023-07-06 10:38:34 +00:00
Daniel Jeliński
356067d03f 8311489: Remove unused dirent_md files
Reviewed-by: bpb
2023-07-06 10:24:47 +00:00
Daniel Jeliński
3d813ae39f 8311301: MethodExitTest may fail with stack buffer overrun
Reviewed-by: kevinw, dholmes, cjplummer, sspitsyn
2023-07-06 08:52:28 +00:00
Hannes Wallnöfer
0741cd3289 8311264: JavaDoc index comparator is not transitive
Reviewed-by: jjg
2023-07-06 07:08:20 +00:00
Christian Hagedorn
edb2be10fb 8311279: TestStressIGVNAndCCP.java failed with different IGVN traces for the same seed
Reviewed-by: thartmann
2023-07-06 06:32:05 +00:00
Naoto Sato
d072c40ff1 8311183: Remove unused mapping test files
Reviewed-by: lancea, bpb
2023-07-05 23:27:36 +00:00
Joakim Nordström
66d2736521 8307526: [JFR] Better handling of tampered JFR repository
Reviewed-by: egahlin
2023-07-05 22:26:57 +00:00
Thomas Stuefe
0616648c59 8311035: CDS should not use dump time JVM narrow Klass encoding to pre-compute Klass ids
Reviewed-by: iklam
2023-07-05 19:51:27 +00:00
Roger Riggs
6eba096ca2 8310999: Add @since info in jdk.jsobject files
Reviewed-by: lancea, joehw, bpb, iris, prr
2023-07-05 18:21:48 +00:00
Jatin Bhateja
6ebb0e3bd4 8311023: assert(false) failed: EA: missing memory path
Reviewed-by: thartmann, chagedorn
2023-07-05 15:37:38 +00:00
Pavel Rappo
2cffef2120 8311290: Improve java.lang.ref.Cleaner rendered documentation
Reviewed-by: rriggs
2023-07-05 14:10:44 +00:00
Coleen Phillimore
22e17c29a2 8311180: Remove unused unneeded definitions from globalDefinitions
Co-authored-by: Axel Boldt-Christmas <aboldtch@openjdk.org>
Reviewed-by: dholmes, aboldtch
2023-07-05 12:37:38 +00:00
Coleen Phillimore
cf82e3152b 8311077: Fix -Wconversion warnings in jvmti code
Reviewed-by: fparain, matsaave, dholmes
2023-07-05 12:30:07 +00:00
Conor Cleary
00ac46c06d 8310645: CancelledResponse.java does not use HTTP/2 when testing the HttpClient
Reviewed-by: dfuchs
2023-07-05 11:04:10 +00:00
Jatin Bhateja
d6578bff1c 8309531: Incorrect result with unwrapped iotaShuffle.
Reviewed-by: sviswanathan, xgong, thartmann
2023-07-05 05:46:24 +00:00
Pavel Rappo
7b3c2dc5f4 8311122: Fix typos in java.base
Reviewed-by: darcy, naoto, mchung, iris, mli, mullan
2023-07-04 19:03:09 +00:00
Darragh Clarke
607ddaa0e6 8310997: missing @since tags in jdk.httpserver
Reviewed-by: dfuchs
2023-07-04 12:19:44 +00:00
Darragh Clarke
7655b487da 8311001: missing @since info in jdk.net
Reviewed-by: dfuchs
2023-07-04 12:19:23 +00:00
Aleksey Shipilev
711cddd899 8311249: Remove unused MemAllocator::obj_memory_range
Reviewed-by: tschatzl
2023-07-04 09:01:47 +00:00
Sidraya Jayagond
514816ed7d 8309889: [s390] Missing return statement after calling jump_to_native_invoker method in generate_method_handle_dispatch.
Reviewed-by: amitkumar, lucy
2023-07-04 04:35:18 +00:00
Xiaohong Gong
60544f9088 8309894: compiler/vectorapi/VectorLogicalOpIdentityTest.java fails on SVE system with UseSVE=0
Reviewed-by: epeter, chagedorn
2023-07-04 01:35:03 +00:00
Vladimir Petko
0916e6a603 8311092: Please disable runtime/jni/nativeStack/TestNativeStack.java on armhf
Reviewed-by: dholmes
2023-07-03 22:25:20 +00:00
Harshitha Onkar
d8a012161a 8311109: tautological-compare warning in awt_Win32GraphicsDevice.cpp
Reviewed-by: aivanov
2023-07-03 20:43:17 +00:00
Mandy Chung
b9198f9931 8254566: Clarify the spec of ClassLoader::getClassLoadingLock for non-parallel capable loader
Reviewed-by: dholmes, darcy
2023-07-03 16:04:35 +00:00
Axel Boldt-Christmas
f393975d1b 8310743: assert(reserved_rgn != nullptr) failed: Add committed region, No reserved region found
Reviewed-by: stefank, ayang
2023-07-03 14:06:58 +00:00
Erik Gahlin
ba974d5c62 8310661: JFR: Replace JVM.getJVM() with JVM
Reviewed-by: mgronlun
2023-07-03 12:19:57 +00:00
Leo Korinth
496f94b488 8311086: Remove jtreg/gc/startup_warnings
Reviewed-by: ayang, mli, kbarrett, tschatzl
2023-07-03 11:11:05 +00:00
Renjith Kannath Pariyangad
9d2e0b2a80 8307934: JRobot.moveMouseTo must access component on EDT
Reviewed-by: aivanov
2023-07-03 10:32:47 +00:00
Darragh Clarke
87c79c0801 8309302: java/net/Socket/Timeouts.java fails with AssertionError on test temporal post condition
Reviewed-by: alanb, dfuchs
2023-07-03 10:03:54 +00:00
Daohan Qu
8e0ca8e05c 8310331: JitTester: Exclude java.lang.Math.random
Reviewed-by: thartmann, chagedorn
2023-07-03 08:59:35 +00:00
Daniel Jeliński
055b4b426c 8310948: Fix ignored-qualifiers warning in Hotspot
Reviewed-by: kbarrett, dholmes
2023-07-03 07:51:38 +00:00
Emanuel Peter
2c29705d7b 8309660: C2: failed: XMM register should be 0-15 (UseKNLSetting and ConvF2HF)
Co-authored-by: Sandhya Viswanathan <sviswanathan@openjdk.org>
Reviewed-by: sviswanathan, jbhateja
2023-07-03 06:50:16 +00:00
David Holmes
52ee570025 8309209: C2 failed "assert(_stack_guard_state == stack_guard_reserved_disabled) failed: inconsistent state"
Co-authored-by: Fei Yang <fyang@openjdk.org>
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Co-authored-by: Amit Kumar <amitkumar@openjdk.org>
Reviewed-by: aph, thartmann
2023-07-03 04:23:58 +00:00
Robbin Ehn
faf1b822d0 8310656: RISC-V: __builtin___clear_cache can fail silently.
Reviewed-by: luhenry, stuefe, fyang
2023-07-02 16:15:28 +00:00
Daniel D. Daugherty
0e3d91dc21 8311215: [BACKOUT] JDK-8047998 Abort the vm if MaxNewSize is not the same as NewSize when MaxHeapSize is the same as InitialHeapSize
Reviewed-by: jiefu
2023-07-01 15:55:29 +00:00
Daohan Qu
09a4924015 8311145: Remove check_with_errno duplicates
Reviewed-by: rehn, stuefe
2023-07-01 08:45:24 +00:00
Guoxiong Li
8abb9f590f 8047998: Abort the vm if MaxNewSize is not the same as NewSize when MaxHeapSize is the same as InitialHeapSize
Reviewed-by: ayang, tschatzl
2023-07-01 08:01:22 +00:00
Xin Liu
d2e1159300 8311125: Remove unused parameter 'phase' in AllocateNode::Ideal_allocation
Reviewed-by: chagedorn, kvn
2023-07-01 07:25:26 +00:00
Chen Liang
8c8e9d911d 8309819: Clarify API note in Class::getName and MethodType::toMethodDescriptorString
Reviewed-by: mchung
2023-06-30 23:37:53 +00:00
Daniel D. Daugherty
140b70fb29 8311186: ProblemList javax/management/remote/mandatory/subjectDelegation/SubjectDelegation1Test.java on linux-aarch64
8311189: disable gc/z/TestHighUsage.java
8311190: ProblemList javax/management/remote/mandatory/connection/DeadLockTest.java with virtual threads on windows-x64
8311191: ProblemList javax/management/remote/mandatory/connection/ConnectionTest.java with virtual threads on windows-x64
8311193: ProblemList vmTestbase/nsk/jdb/interrupt/interrupt001/interrupt001.java on linux-all
8311195: ProblemList vmTestbase/nsk/jvmti/scenarios/capability/CM03/cm03t001/TestDescription.java with Xcomp on macosx-x64

Reviewed-by: lmesnik
2023-06-30 21:43:09 +00:00
Serguei Spitsyn
971c2efb69 8303086: SIGSEGV in JavaThread::is_interp_only_mode()
Reviewed-by: pchilanomate, cjplummer, lmesnik
2023-06-30 20:58:15 +00:00
Doug Simon
f6bdccb45c 8310829: guarantee(!HAS_PENDING_EXCEPTION) failed in ExceptionTranslation::doit
Reviewed-by: never, kvn
2023-06-30 20:10:24 +00:00
Joe Darcy
456bf115aa 8310173: Update --release 21 symbol information for JDK 21 build 29
Reviewed-by: iris
2023-06-30 19:11:40 +00:00
Kevin Walls
19601ebe91 8310993: Missing @since tags in jdk.attach
Reviewed-by: sspitsyn, cjplummer
2023-06-30 17:49:56 +00:00
Daniel Fuchs
e8ff74c7e8 8310987: Missing @since tag(s) in java/util/logging/ErrorManager.java
Reviewed-by: lancea, iris
2023-06-30 16:06:50 +00:00
Pavel Rappo
e3a7e020d2 8311162: Simplify and modernize equals and hashCode for java.net
Reviewed-by: dfuchs, michaelm, msheppar
2023-06-30 15:17:23 +00:00
Eric Caspole
430d6b61c5 8309976: Add microbenchmark for stressing code cache
Reviewed-by: redestad, shade
2023-06-30 15:02:45 +00:00
Albert Mingkun Yang
33011ea19b 8310946: G1: Refactor G1Policy::next_gc_should_be_mixed
Reviewed-by: tschatzl, kbarrett
2023-06-30 12:23:18 +00:00
Matthias Baesken
a7d168b522 8311026: Some G1 specific tests do not set -XX:+UseG1GC
Reviewed-by: sspitsyn, tschatzl
2023-06-30 11:35:02 +00:00
Kevin Walls
c08c9831df 8311000: missing @since info in jdk.management
Reviewed-by: rriggs, mli
2023-06-30 08:28:19 +00:00
Kevin Walls
660cd256b7 8310988: Missing @since tags in java.management.rmi
Reviewed-by: rriggs, alanb, jjg, mli
2023-06-30 08:26:44 +00:00
Axel Boldt-Christmas
2a9e2f614f 8311046: ProblemList gc/z/TestHighUsage.java with Generational ZGC
Reviewed-by: kbarrett, tschatzl
2023-06-30 08:10:09 +00:00
Gui Cao
77e7b6d2a1 8311074: RISC-V: Fix -Wconversion warnings in some code header files
Reviewed-by: fyang, coleenp
2023-06-30 00:16:57 +00:00
Roger Riggs
11fd34e196 8310241: OffsetDateTime compareTo redundant computation
Reviewed-by: naoto
2023-06-29 21:05:37 +00:00
Joe Darcy
d97966266e 8311115: Type in java.lang.reflect.AccessFlag.METHOD_PARAMETER
Reviewed-by: bpb, jlaskey, mchung
2023-06-29 20:31:57 +00:00
Naoto Sato
a995aa6cd1 8310232: java.time.Clock$TickClock.millis() fails in runtime when tick is 1 microsecond
Reviewed-by: iris, rriggs, jpai
2023-06-29 16:15:02 +00:00
Roland Westrelin
26efff7586 8309902: C2: assert(false) failed: Bad graph detected in build_loop_late after JDK-8305189
Reviewed-by: kvn, chagedorn
2023-06-29 15:05:49 +00:00
Ashutosh Mehra
05c2b6cd47 8309979: BootstrapMethods attribute is missing in class files recreated by SA
Reviewed-by: cjplummer, kevinw
2023-06-29 14:16:15 +00:00
shaojin.wensj
20f7d05ef2 8310502: Optimization for j.l.Long.fastUUID()
Reviewed-by: liach, alanb
2023-06-29 13:37:32 +00:00
Chen Liang
07734f6dde 8310848: Convert ClassDesc and MethodTypeDesc to be stored in static final fields
Reviewed-by: asotona
2023-06-29 12:32:52 +00:00
Damon Fenacci
e5744b8120 8310919: runtime/ErrorHandling/TestAbortVmOnException.java times out due to core dumps taking a long time on OSX
Reviewed-by: thartmann, dholmes
2023-06-29 12:07:54 +00:00
Artem Semenov
98a954eebc 8308286: Fix clang warnings in linux code
Reviewed-by: avu, djelinski
2023-06-29 09:07:34 +00:00
Nikita Gubarkov
f842ec48b1 8305667: Some fonts installed in user directory are not detected on Windows
Reviewed-by: avu, prr
2023-06-29 08:28:22 +00:00
Roland Westrelin
690d626995 8307927: C2: "malformed control flow" with irreducible loop
Reviewed-by: thartmann, epeter
2023-06-29 07:43:46 +00:00
Roland Westrelin
be64d3ac3c 8310299: C2: 8275201 broke constant folding of array store check in some cases
Reviewed-by: thartmann, kvn
2023-06-29 07:41:04 +00:00
Eric Nothum
b2eae16c45 8295191: IR framework timeout options expect ms instead of s
Reviewed-by: chagedorn, kvn, thartmann
2023-06-29 06:59:12 +00:00
Daniel Jeliński
af319d963f 8311064: Windows builds fail without precompiled headers after JDK-8310728
Reviewed-by: dholmes
2023-06-29 06:05:53 +00:00
Chen Liang
cbf418a486 8311020: Typo cleanup in Classfile API
Reviewed-by: asotona
2023-06-29 05:44:02 +00:00
Alan Bateman
f4b900b607 8310902: (fc) FileChannel.transferXXX async close and interrupt issues
Reviewed-by: bpb
2023-06-29 05:42:19 +00:00
Ioi Lam
cf8d706300 8308463: Refactor regenerated class handling in lambdaFormInvokers.cpp
Reviewed-by: coleenp, dholmes, matsaave
2023-06-29 04:28:30 +00:00
Glavo
6f58ab2bb9 8301569: jmod list option and jimage list --help not interpreted correctly on turkish locale
Reviewed-by: mchung, naoto, jpai
2023-06-29 01:34:26 +00:00
Jaikiran Pai
8f5a38488c 8311032: Empty value for java.protocol.handler.pkgs system property can lead to unnecessary classloading attempts of protocol handlers
Reviewed-by: dfuchs
2023-06-29 01:30:46 +00:00
Ioi Lam
ded137073a 8309811: BytecodePrinter cannot handle unlinked classes
Reviewed-by: coleenp, fparain
2023-06-28 22:50:24 +00:00
Johan Sjölen
02b17d793b 8310264: In PhaseChaitin::Split defs and phis are leaked
Reviewed-by: thartmann, chagedorn, kvn
2023-06-28 21:20:35 +00:00
Rajat Mahajan
a63afa4aa6 8294427: Check boxes and radio buttons have rendering issues on Windows in High DPI env
Reviewed-by: aivanov, achung
2023-06-28 21:07:24 +00:00
Joe Darcy
3df36c4f10 8310061: Note if implicit annotation processing is being used
Reviewed-by: briangoetz, vromero, jjg
2023-06-28 21:00:28 +00:00
Dean Long
da0f8325de 8310606: Fix signed integer overflow, part 3
Reviewed-by: kvn, thartmann
2023-06-28 20:31:08 +00:00
Alisen Chung
f0c2f09815 8296972: [macos13] java/awt/Frame/MaximizedToIconified/MaximizedToIconified.java: getExtendedState() != 6 as expected.
Reviewed-by: dmarkov, honkar
2023-06-28 20:17:00 +00:00
Coleen Phillimore
9f46fc2842 8310906: Fix -Wconversion warnings in runtime, oops and some code header files.
Reviewed-by: iklam, fparain
2023-06-28 19:42:33 +00:00
Jorn Vernee
7fffdb5e60 8310405: Linker.Option.firstVariadicArg should specify which index values are valid
Reviewed-by: mcimadamore
2023-06-28 17:32:33 +00:00
Justin Gu
b6c789faad 8309140: ResourceHashtable failed "assert(~(_allocation_t[0] | allocation_mask) == (uintptr_t)this) failed: lost resource object"
Reviewed-by: coleenp, matsaave, dholmes
2023-06-28 17:10:16 +00:00
Jesse Glick
9f98136c3a 6956385: URLConnection.getLastModified() leaks file handles for jar:file and file: URLs
Define FileURLConnection.closeInputStream for use by JarURLInputStream.close.
JarURLConnection properly tracks any InputStream it itself opened,
and correspondingly closes the JarFile if necessary (when caches are disabled).
But if its underlying FileURLConnection was used to retrieve a header field,
that would have caused a FileInputStream to be opened
which never gets closed until it is garbage collected.
This means that an application which calls certain methods
on jar:file:/…something.jar!/… URLs will leak file handles,
even if URLConnection caches are supposed to be turned off.
This can delay release of system resources,
and on Windows can prevent the JAR file from being deleted
even after it is no longer in use (for example after URLClassLoader.close).

Reviewed-by: dfuchs, michaelm
2023-06-28 15:33:37 +00:00
Aleksey Shipilev
46e4ee1e80 8310974: NMT: Arena diffs miss the scale
Reviewed-by: zgu, stuefe
2023-06-28 14:07:58 +00:00
Pavel Rappo
f17bfeec61 8311034: Fix typo in javac man page
Reviewed-by: hannesw
2023-06-28 13:48:16 +00:00
Johan Sjölen
2ccdd29206 8299825: Move StdoutLog and StderrLog to LogConfiguration
Reviewed-by: dholmes, azafari
2023-06-28 13:31:14 +00:00
Erik Gahlin
e3f18af1df 8311007: jdk/jfr/tool/TestView.java can't find event
Reviewed-by: mgronlun
2023-06-28 12:29:43 +00:00
Coleen Phillimore
08c51f25d2 8310920: Fix -Wconversion warnings in command line flags
Reviewed-by: iklam, dholmes
2023-06-28 12:24:39 +00:00
Coleen Phillimore
c2e9485481 8310921: Fix -Wconversion warnings from GenerateOopMap
Reviewed-by: iklam, dholmes
2023-06-28 12:23:04 +00:00
Thomas Stuefe
ef71c3215e 8310110: Shenandoah: Trace page sizes
Reviewed-by: shade, rkennke
2023-06-28 11:57:20 +00:00
Eric Nothum
c3f10e8479 8307625: Redundant receiver null check in LibraryCallKit::generate_method_call
Reviewed-by: thartmann, chagedorn
2023-06-28 07:25:20 +00:00
Matthias Baesken
39c104df44 8310380: Handle problems in core-related tests on macOS when codesign tool does not work
Reviewed-by: lucy, clanger, cjplummer
2023-06-28 06:51:05 +00:00
Emanuel Peter
526dba1a29 8310130: C2: assert(false) failed: scalar_input is neither phi nor a matchin reduction
Reviewed-by: kvn, chagedorn
2023-06-28 05:52:26 +00:00
Daniel Jeliński
48e61c1df5 8310728: Enable Zc:inline flag in Visual Studio build
Reviewed-by: erikj
2023-06-28 04:11:11 +00:00
Vyom Tewari
56a73a6f0f 8309591: Socket.setOption(TCP_QUICKACK) uses wrong level
Reviewed-by: djelinski, michaelm, alanb
2023-06-28 02:49:52 +00:00
Hao Sun
afdaa2a330 8309109: AArch64: [TESTBUG] compiler/intrinsics/sha/cli/TestUseSHA3IntrinsicsOptionOnSupportedCPU.java fails on Neoverse N2 and V1
Reviewed-by: aph, fyang
2023-06-28 02:00:09 +00:00
Roger Riggs
7f09435367 8310982: jdk/internal/util/ArchTest.java fails after JDK-8308452 failed with Method isARM()
Reviewed-by: naoto, mchung, bpb, lancea
2023-06-27 20:54:53 +00:00
Jorn Vernee
f07e396bda 8310914: Remove 2 malformed java/foreign ProblemList entries
Reviewed-by: jpai
2023-06-27 20:40:04 +00:00
Alex Menkov
a97f98fb8a 8310585: GetThreadState spec mentions undefined JVMTI_THREAD_STATE_MONITOR_WAITING
Reviewed-by: sspitsyn, cjplummer
2023-06-27 20:35:03 +00:00
Phil Race
2cf5c2f4b6 8310238: [test bug] javax/swing/JTableHeader/6889007/bug6889007.java fails
Reviewed-by: azvegint
2023-06-27 20:19:56 +00:00
Tom Rodriguez
269852b906 8294316: SA core file support is broken on macosx-x64 starting with macOS 12.x
Reviewed-by: cjplummer, sspitsyn
2023-06-27 19:57:06 +00:00
Joe Darcy
4bce38c6d7 8310830: typo in the parameter name in @throws of ClassDesc::ofDescriptor
Reviewed-by: bpb, rriggs, mchung
2023-06-27 19:30:59 +00:00
Jim Laskey
315242b741 8310975: java.util.FormatItemModifier should not be protected
Reviewed-by: alanb, darcy, iris, lancea
2023-06-27 18:45:37 +00:00
Roger Riggs
d6dd0dc3e0 8308452: Extend internal Architecture enum with byte order and address size
Reviewed-by: mdoerr, jpai, mchung, amitkumar
2023-06-27 17:49:09 +00:00
Lance Andersen
fb283dff04 8310828: java.sql java.sql.rowset packages have no @since info
Reviewed-by: naoto, iris, darcy, bpb
2023-06-27 17:22:41 +00:00
Naoto Sato
ec45bd64d5 8310182: DateTimeFormatter date formats (ISO_LOCAL_DATE) separated with hyphen, not dash
Reviewed-by: rriggs, darcy, iris, lancea
2023-06-27 16:13:20 +00:00
Chen Liang
2bd4136bdb 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect
Reviewed-by: mchung, darcy
2023-06-27 16:10:50 +00:00
Afshin Zafari
7ce967a10c 8281455: Change JVM options with small ranges from 64 to 32 bits, for gc_globals.hpp
Reviewed-by: tschatzl, coleenp
2023-06-27 15:54:55 +00:00
Pavel Rappo
f6133edb08 8310890: Normalize identifier names
Reviewed-by: naoto, rriggs
2023-06-27 15:47:29 +00:00
Brian Burkhalter
58bb6555e7 8222329: Readable read(CharBuffer) does not specify that 0 is returned when there is no remaining space in buffer
Reviewed-by: rriggs, lancea, alanb
2023-06-27 15:28:01 +00:00
Jaikiran Pai
05e9c41edd 8310731: Configure a javax.net.ssl.SNIMatcher for the HTTP/1.1 test servers in java/net/httpclient tests
Reviewed-by: dfuchs
2023-06-27 11:01:09 +00:00
David Leopoldseder
15878360bf 8310425: [JVMCI] compiler/runtime/TestConstantDynamic: lookupConstant returned an object of incorrect type: null
Reviewed-by: dnsimon, never
2023-06-27 08:29:55 +00:00
Daniel Skantz
73d7aa1d2c 8301489: C1: ShortLoopOptimizer might lift instructions before their inputs
Reviewed-by: thartmann, rcastanedalo
2023-06-27 07:05:48 +00:00
Adam Sotona
990e3a700d 8308899: Introduce Classfile context and improve Classfile options
8306650: Improve control of stack maps generation in Classfile API
8308646: Typo in ConstantValueAttribute

Reviewed-by: mcimadamore
2023-06-27 05:05:17 +00:00
Tejesh R
79c056ec8b 8006421: GraphicsConfiguration of a frame is changed when the frame is moved to another screen
Reviewed-by: azvegint, serb
2023-06-27 04:56:21 +00:00
changpeng1997
45b581b7d5 8309583: AArch64: Optimize firstTrue() when amount of elements < 8
Reviewed-by: aph, eliu
2023-06-27 04:10:38 +00:00
Feilong Jiang
87e6fab2c4 8310873: Re-enable locked_create_entry symbol check in runtime/NMT/CheckForProperDetailStackTrace.java for RISC-V
Reviewed-by: fyang, rehn
2023-06-27 01:49:58 +00:00
David Holmes
39fa4e6371 8310489: New test runtime/ClassInitErrors/TestStackOverflowDuringInit.java failed
Reviewed-by: coleenp
2023-06-27 00:13:42 +00:00
Jonathan Gibbons
46add3f8e3 8310909: java.io.InvalidObjectException has redundant @since tag
Reviewed-by: lancea, naoto, bpb, darcy, iris
2023-06-26 22:24:32 +00:00
Jonathan Gibbons
8f5b6771b8 8310908: Non-standard @since tag in com.sun.java.accessibility.util.package-info
Reviewed-by: bpb, iris, aivanov
2023-06-26 22:22:49 +00:00
Chen Liang
a197ee797b 8310838: Correct range notations in MethodTypeDesc specification
Reviewed-by: mchung
2023-06-26 22:07:35 +00:00
Mandy Chung
7c6a28fd0c 8310922: java/lang/Class/forName/ForNameNames.java fails after being added by JDK-8310242
Reviewed-by: dholmes
2023-06-26 21:25:09 +00:00
Mandy Chung
7db2f08756 8310242: Clarify the name parameter to Class::forName
Reviewed-by: rriggs, liach, alanb, dholmes
2023-06-26 19:56:24 +00:00
Sergey Tsypanov
297c799631 8301492: Modernize equals() method of ResourceBundle.CacheKey and Bundles.CacheKey
Reviewed-by: prappo, naoto
2023-06-26 19:41:43 +00:00
Archie Cobbs
a08352f621 8305671: javac rejects semicolons in compilation units with no imports
Reviewed-by: vromero
2023-06-26 19:05:00 +00:00
Jatin Bhateja
ff9a754109 8310459: [BACKOUT] 8304450: [vectorapi] Refactor VectorShuffle implementation
Reviewed-by: thartmann, sviswanathan
2023-06-26 18:35:03 +00:00
Joe Darcy
815ac6eeb3 8310907: Add missing file
Reviewed-by: jjg
2023-06-26 18:14:32 +00:00
Joe Darcy
289f218a32 8310861: Improve location reporting for javac serial lint warnings
Reviewed-by: jlahoda
2023-06-26 16:56:40 +00:00
Brian Burkhalter
d32eb015f0 8310682: No package-info (and @since) for package jdk.nio.mapmode
Reviewed-by: alanb
2023-06-26 16:28:48 +00:00
Weijun Wang
e624484ecf 8308540: On Kerberos TGT referral, if krb5.conf is missing realm, bad exception message
Reviewed-by: xuelei
2023-06-26 15:55:36 +00:00
Varada M
5ff42d1429 8303549: [AIX] TestNativeStack.java is failing with exit value 1
Reviewed-by: dholmes, gziemski
2023-06-26 14:28:40 +00:00
Gui Cao
24abd1054e 8310192: RISC-V: Merge vector min & max instructs with similar match rules
Reviewed-by: luhenry, fyang
2023-06-26 13:20:35 +00:00
Dingli Zhang
3357867928 8310276: RISC-V: Make use of shadd macro-assembler function when possible
Reviewed-by: fyang, luhenry, fjiang, vkempik
2023-06-26 12:47:41 +00:00
Albert Mingkun Yang
c1c5bd0faf 8310541: G1: Remove redundant check in G1Policy::need_to_start_conc_mark
Reviewed-by: tschatzl, kbarrett
2023-06-26 12:15:41 +00:00
Albert Mingkun Yang
5271f4def6 8310354: G1: Annotate G1MMUTracker::when_sec with const
Reviewed-by: tschatzl, kbarrett
2023-06-26 12:14:00 +00:00
Prasanta Sadhukhan
a420ff48da 6664309: Docking point of a floating toolbar changes after closing
Reviewed-by: tr, prr
2023-06-26 09:24:07 +00:00
Kevin Walls
a96e92c83d 8310816: GcInfoBuilder float/double signature mismatch
Reviewed-by: mchung, dholmes
2023-06-26 08:35:52 +00:00
Thomas Schatzl
c23794f882 8308633: Increase precision of timestamps in g1 log
Reviewed-by: ayang, kbarrett
2023-06-26 07:51:22 +00:00
Thomas Schatzl
9397094692 8310540: G1: Verification should use raw oop decode functions
Reviewed-by: ayang, kbarrett
2023-06-26 07:49:51 +00:00
Jaikiran Pai
013367b483 8310868: Thread.interrupt() method's javadoc has an incorrect {@link}
Reviewed-by: alanb
2023-06-26 06:25:08 +00:00
Emanuel Peter
9057b35033 8306922: IR verification fails because IR dump is chopped up
Reviewed-by: chagedorn, thartmann
2023-06-26 06:11:32 +00:00
Julian Waters
8242c647b9 8310863: Build failure after JDK- 8305341
Reviewed-by: dholmes
2023-06-26 05:38:04 +00:00
Julian Waters
78c3831701 8305341: Alignment should be enforced by alignas instead of compiler specific attributes
Reviewed-by: mdoerr
2023-06-25 23:49:49 +00:00
Julian Waters
c92b049db7 8308780: Fix the Java Integer types on Windows
Reviewed-by: dholmes, djelinski, aivanov
2023-06-25 23:41:54 +00:00
Joe Darcy
0db63ec76d 8310571: Use inline @return tag on java.util.Objects
Reviewed-by: smarks
2023-06-23 22:55:06 +00:00
Justin Lu
dad7bd9efc 8310234: Refactor Locale tests to use JUnit
Reviewed-by: naoto
2023-06-23 21:33:49 +00:00
Joe Darcy
69f3114c41 8310676: add note about unnamed module to Elements.getAllModuleElements
Reviewed-by: jjg
2023-06-23 21:21:41 +00:00
Ioi Lam
bfcca5eff9 8310494: Do not include constantPool.hpp from instanceKlass.hpp
Reviewed-by: stefank, coleenp
2023-06-23 19:42:57 +00:00
Joe Darcy
0314292cb2 8310267: Javadoc for Class#isPrimitive() is incorrect regarding Class objects for primitives
Reviewed-by: prappo
2023-06-23 19:35:57 +00:00
Kevin Walls
a9c0a0f6b9 8310628: GcInfoBuilder.c missing JNI Exception checks
Reviewed-by: mchung, dholmes
2023-06-23 17:42:13 +00:00
Mandy Chung
556831d1bf 8310460: Remove jdeps -profile option
Reviewed-by: alanb
2023-06-23 17:03:02 +00:00
Coleen Phillimore
d91d0d3011 8310537: Fix -Wconversion warnings in gcUtil.hpp
Reviewed-by: ayang, aboldtch
2023-06-23 15:57:16 +00:00
Ben Perez
7628da2008 8279254: PKCS9Attribute SigningTime always encoded in UTFTime
Reviewed-by: jnimeh
2023-06-23 15:31:16 +00:00
Jamil Nimeh
5ca4cdd2ca 8309740: Expand timeout windows for tests in JDK-8179502
Reviewed-by: xuelei, mbaesken
2023-06-23 14:52:12 +00:00
Jie Fu
e78fd46679 8310735: Build failure after JDK-8310577 with GCC8
Reviewed-by: lucy
2023-06-23 14:08:56 +00:00
Christian Stein
4bf78162c5 8309670: java -help output for --module-path / -p is incomplete
Reviewed-by: mchung, alanb
2023-06-23 11:09:37 +00:00
Alexander Zuev
d1d2b55ce0 8309733: [macOS, Accessibility] VoiceOver: Incorrect announcements of JRadioButton
Reviewed-by: abhiscxk, asemenov, prr, serb
2023-06-23 10:11:25 +00:00
Thomas Stuefe
d6685f0869 8310510: Remove WordsPerLong
Reviewed-by: mdoerr
2023-06-23 10:07:32 +00:00
Eric Nothum
31dcda5d67 8295210: IR framework should not whitelist -XX:-UseTLAB
Reviewed-by: thartmann, chagedorn
2023-06-23 07:25:34 +00:00
Daohan Qu
4772893127 8310581: retry_class_loading_during_parsing() is not used
Reviewed-by: kvn, thartmann
2023-06-23 06:32:36 +00:00
Coleen Phillimore
5a82fa3bb2 8310577: Fix -Wconversion warnings in interpreter and oops
Reviewed-by: fparain, matsaave
2023-06-22 19:37:01 +00:00
Matthew Donovan
130a9f1387 8292704: sun/security/tools/jarsigner/compatibility/Compatibility.java use wrong key size for EC
Reviewed-by: rhalade
2023-06-22 18:43:27 +00:00
Joe Darcy
0e4fde3d30 8310453: Update javadoc of java.lang.Object
Reviewed-by: rriggs, alanb
2023-06-22 16:38:39 +00:00
Coleen Phillimore
230bcb769a 8309685: Fix -Wconversion warnings in assembler and register code
Reviewed-by: aph, fparain
2023-06-22 14:22:02 +00:00
Daohan Qu
370b8b2644 8310618: Test serviceability/sa/ClhsdbDumpclass.java fails after 8242152: 'StackMapTable:' missing from stdout/stderr
Reviewed-by: kevinw, dholmes
2023-06-22 13:15:27 +00:00
Per Minborg
5a30fb6664 8310591: Missing @since tags in java.lang.foreign
Reviewed-by: mcimadamore
2023-06-22 11:59:33 +00:00
Erik Gahlin
8976ebf0ec 8310561: JFR: Unify decodeDescriptors(String, String)
Reviewed-by: mgronlun
2023-06-22 10:09:15 +00:00
Matthias Baesken
7da3f1999f 8310549: avoid potential leaks in KeystoreImpl.m related to JNU_CHECK_EXCEPTION early returns
Reviewed-by: weijun
2023-06-22 07:08:54 +00:00
Daohan Qu
8e047029e8 8242152: SA does not include StackMapTables when dumping .class files
Reviewed-by: cjplummer, sspitsyn
2023-06-22 06:45:19 +00:00
Serguei Spitsyn
3bc475ee65 8309909: remove test nsk.jvmti test objmonusage006 from ProblemList-Virtual.txt
Reviewed-by: cjplummer
2023-06-22 06:40:17 +00:00
Alan Bateman
3661cdee1b 8309853: StructuredTaskScope.join description improvements
Reviewed-by: rpressler, darcy
2023-06-22 04:29:13 +00:00
Daniel D. Daugherty
ac44ef19d5 8310586: ProblemList java/lang/ScopedValue/StressStackOverflow.java#default with virtual threads on linux-all
Reviewed-by: dholmes, mikael
2023-06-21 21:07:04 +00:00
Christoph Langer
3be50da636 8310512: Cleanup indentation in jfc files
Reviewed-by: egahlin
2023-06-21 20:04:03 +00:00
Jonathan Gibbons
f286e5a5e1 8310575: no @since for StandardDoclet
Reviewed-by: darcy
2023-06-21 19:56:51 +00:00
Erik Joelsson
16a34e8e1e 8310384: Add hooks for custom image creation
Reviewed-by: mikael, alanb
2023-06-21 18:28:19 +00:00
Jonathan Gibbons
226c6a097d 8309883: no @since info in com.sun.tools.javac package-info.java, Main.java
Reviewed-by: iris, darcy
2023-06-21 18:00:14 +00:00
Coleen Phillimore
fd1163d5f1 8310332: Fix -Wconversion warnings in MethodData
Reviewed-by: aph, fparain
2023-06-21 17:58:29 +00:00
Erik Joelsson
72501cf767 8310379: Relax prerequisites for java.base-jmod target
Reviewed-by: mikael
2023-06-21 17:18:15 +00:00
Erik Gahlin
59c6c0e1b7 8310335: JFR: Modernize collections and switch statements
Reviewed-by: mgronlun
2023-06-21 15:07:42 +00:00
Damon Fenacci
826dcb5424 8264899: C1: -XX:AbortVMOnException does not work if all methods in the call stack are compiled with C1 and there are no exception handlers
Reviewed-by: thartmann, amitkumar, fyang, mdoerr
2023-06-21 12:27:02 +00:00
Erik Gahlin
658c3374d8 8309296: jdk/jfr/event/runtime/TestAgentEvent.java fails due to "missing" dynamic JavaAgent
Reviewed-by: mgronlun
2023-06-21 11:47:25 +00:00
Coleen Phillimore
70e1c92a7f 8310297: assert(static_cast<T1>(result) == thing) with ctw
Reviewed-by: iklam, dholmes
2023-06-21 11:45:37 +00:00
Erik Joelsson
574c6f0ebf 8310376: Extend SetupTarget macro with DIR parameter
Reviewed-by: mikael
2023-06-21 09:57:49 +00:00
Erik Joelsson
7ea22cd385 8310369: UTIL_ARG_WITH fails when arg is disabled
Reviewed-by: mikael
2023-06-21 09:57:26 +00:00
Jan Lahoda
01623f6a57 8310133: Effectivelly final condition not enforced in guards for binding variables from the same case
Reviewed-by: vromero
2023-06-21 09:16:12 +00:00
Jan Lahoda
a15db1a56c 8302865: Illegal bytecode for break from if with instanceof pattern matching condition
Reviewed-by: vromero
2023-06-21 09:15:48 +00:00
Tobias Hartmann
67fbd87378 8310143: RandomCommandsTest fails due to unexpected VM exit code after JDK-8282797
Reviewed-by: rcastanedalo, chagedorn
2023-06-21 07:05:41 +00:00
Matthias Baesken
9eed049098 8310321: make JDKOPT_CHECK_CODESIGN_PARAMS more verbose
Reviewed-by: erikj
2023-06-21 06:49:24 +00:00
Julian Waters
3faba07ae3 8307145: windowsaccessbridge.dll erroneously includes private methods in its C API
Reviewed-by: djelinski
2023-06-21 06:43:03 +00:00
Emanuel Peter
886ac1c261 8308606: C2 SuperWord: remove alignment checks when not required
Reviewed-by: fgao, kvn, pli
2023-06-21 06:40:50 +00:00
Thomas Stuefe
47d00a4cbe 8310265: (process) jspawnhelper should not use argv[0]
Reviewed-by: simonis, rriggs
2023-06-21 04:55:43 +00:00
Jorn Vernee
e022e87654 8310053: VarHandle and slice handle derived from layout are lacking alignment check
Reviewed-by: mcimadamore
2023-06-21 00:03:13 +00:00
David Holmes
45eaf5edd8 8298443: Remove expired flags in JDK 22
Reviewed-by: coleenp, iklam
2023-06-20 23:14:33 +00:00
Ioi Lam
28415adb79 8310225: Reduce inclusion of oopMapCache.hpp and generateOopMap.hpp
Reviewed-by: stuefe, coleenp
2023-06-20 23:12:49 +00:00
David Holmes
4c3efb3910 8309034: NoClassDefFoundError when initializing Long$LongCache
Reviewed-by: coleenp, fparain
2023-06-20 21:58:31 +00:00
Justin Lu
11201067a8 8310458: Fix build failure caused by JDK-8310049
Reviewed-by: rriggs, naoto
2023-06-20 18:16:33 +00:00
Justin Lu
09174e0c99 8310049: Refactor Charset tests to use JUnit
Reviewed-by: lancea, naoto
2023-06-20 17:21:00 +00:00
Daniel Fuchs
99d2a9afa9 8310330: HttpClient: debugging interestOps/readyOps could cause exceptions and smaller cleanup
Reviewed-by: djelinski
2023-06-20 15:51:43 +00:00
Robbin Ehn
31b6fd775f 8309258: RISC-V: Add riscv_hwprobe syscall
Reviewed-by: fjiang, stuefe, fyang, luhenry
2023-06-20 15:12:46 +00:00
Eric Nothum
4a9cc8a000 8309266: C2: assert(final_con == (jlong)final_int) failed: final value should be integer
Reviewed-by: roland, chagedorn
2023-06-20 13:52:45 +00:00
Stefan Karlsson
4e4e586dac 8310194: Generational ZGC: Lock-order asserts in JVMTI IterateThroughHeap
Reviewed-by: eosterlund, aboldtch
2023-06-20 13:46:49 +00:00
Coleen Phillimore
e1906e7641 8310027: Fix -Wconversion warnings in nmethod and compiledMethod related code
Reviewed-by: kvn, fparain
2023-06-20 13:35:11 +00:00
Jan Lahoda
4ca548fe74 8310326: Incorrect position of the synthetic unnamed class
Reviewed-by: jlaskey
2023-06-20 10:34:52 +00:00
Axel Boldt-Christmas
a0595761ef 8310187: Improve Generational ZGC jtreg testing
Reviewed-by: stefank, eosterlund, stuefe
2023-06-20 10:08:13 +00:00
Thomas Schatzl
9a68ec8bb2 8219357: G1: G1GCPhaseTimes::debug_phase uses unnecessary ResourceMark
Reviewed-by: shade, ayang
2023-06-20 09:46:56 +00:00
Damon Fenacci
087887286d 8310020: MacroAssembler::call_VM(_leaf) doesn't consistently check for conflict with C calling convention.
Reviewed-by: thartmann, fyang, mdoerr, amitkumar
2023-06-20 07:40:46 +00:00
Jan Lahoda
79069c5e74 8310314: Misplaced "unnamed classes are a preview feature and are disabled by default" error
Reviewed-by: jlaskey
2023-06-20 07:02:49 +00:00
David Holmes
96a7db7b3c 8309228: Clarify EXPERIMENTAL flags comment in hotspot/share/runtime/globals.hpp
Reviewed-by: stuefe
2023-06-20 06:43:21 +00:00
David Holmes
b2e86aef65 8304478: Initial nroff manpage generation for JDK 22
Reviewed-by: alanb, sspitsyn, mchung, lancea
2023-06-19 22:30:50 +00:00
Michael McMahon
7b45c8fc3a 8241800: Disable IPV6_MULTICAST_ALL to prevent interference from all multicast groups
Reviewed-by: alanb
2023-06-19 21:35:58 +00:00
Ao Qi
137a5f7c2c 8310105: LoongArch64 builds are broken after JDK-8304913
Reviewed-by: shade, rriggs
2023-06-19 21:05:55 +00:00
Roger Riggs
33c6ec9d4e 8310019: MIPS builds are broken after JDK-8304913
Reviewed-by: phh, shade, aoqi
2023-06-19 18:29:14 +00:00
Erik Gahlin
e08e94f1b9 8310266: JFR: Refactor after 'view' command
Reviewed-by: mgronlun
2023-06-19 17:46:23 +00:00
Daniel Fuchs
f8f8bfbea1 8309939: HttpClient should not use Instant.now() as Instant source for deadlines
Reviewed-by: djelinski
2023-06-19 13:26:26 +00:00
Erik Gahlin
7d4b77ad9e 8304835: jdk/jfr/event/oldobject/TestArrayInformation.java fails with "Could not find event with class ... as (leak) object"
Reviewed-by: shade, mgronlun
2023-06-19 11:41:10 +00:00
Albert Mingkun Yang
b896e3e02a 8310146: Removing unused PerfLongVariant::_sampled
Reviewed-by: tschatzl
2023-06-19 11:08:07 +00:00
Prasanta Sadhukhan
d2a858e173 7083187: Class CSS.CssValue is missing implementations of equals() and hashCode()
Co-authored-by: Alexey Ivanov <aivanov@openjdk.org>
Reviewed-by: aivanov, prr
2023-06-19 08:52:06 +00:00
Erik Österlund
4229baf9b6 8310015: ZGC: Unbounded asynchronous unmapping can lead to running out of address space
Reviewed-by: stefank, aboldtch
2023-06-19 07:05:06 +00:00
Roland Westrelin
266f9838ee 8308855: ARM32: TestBooleanVector crashes after 8300257
Reviewed-by: kvn, thartmann
2023-06-19 07:02:10 +00:00
Matthias Baesken
6a63badd8e 8310191: com/sun/tools/attach/warnings/DynamicLoadWarningTest.java second failure on AIX
Reviewed-by: alanb, cjplummer
2023-06-19 06:39:58 +00:00
Thomas Stuefe
6473a7df20 8310107: os::trace_page_sizes_for_requested_size should name alignment as requested page size
Reviewed-by: stefank, dholmes
2023-06-19 06:00:50 +00:00
Tobias Hartmann
02aaab12e3 8310126: C1: Missing receiver null check in Reference::get intrinsic
Reviewed-by: roland, shade
2023-06-19 05:08:45 +00:00
Gergö Barany
492d25c8df 8309601: [JVMCI] AMD64#getLargestStorableKind returns incorrect mask kind
Reviewed-by: dnsimon, never
2023-06-19 02:28:05 +00:00
Jaikiran Pai
959a61fdd4 8310259: Pin msys2/setup-msys2 github action to a specific commit
Reviewed-by: cstein, stuefe
2023-06-17 06:02:40 +00:00
Archie Cobbs
bcc4d36857 8309511: Regression test ExtraImportSemicolon.java refers to the wrong bug
Reviewed-by: vromero
2023-06-16 22:49:22 +00:00
Coleen Phillimore
71baf00a2d 8309605: StubRoutines are not used by SA
Reviewed-by: cjplummer
2023-06-16 20:04:08 +00:00
Daniel D. Daugherty
16134f4422 8310211: serviceability/jvmti/thread/GetStackTrace/getstacktr03/getstacktr03.java failing
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Reviewed-by: mikael
2023-06-16 17:38:01 +00:00
Alexey Ivanov
d6c2ee3448 8310054: ScrollPane insets are incorrect
Reviewed-by: honkar, prr
2023-06-16 17:24:07 +00:00
Ben Perez
4eb4f20ae2 8308808: SunMSCAPI public keys returns internal key array
Reviewed-by: mullan
2023-06-16 16:46:54 +00:00
Liam Miller-Cushon
53abba3a5a 8309499: javac fails to report compiler.err.no.java.lang with annotation processing enabled
Co-authored-by: Paula Toth <paulatoth@google.com>
Reviewed-by: vromero
2023-06-16 16:43:22 +00:00
Joe Darcy
cf8d0b0537 8309964: Use directed inheritDoc for javax.lang.model API
Reviewed-by: vromero
2023-06-16 16:43:00 +00:00
Ioi Lam
a45f92961b 8310076: Reduce inclusion of bytecodeStream.hpp
Reviewed-by: dholmes, coleenp
2023-06-16 15:26:26 +00:00
Hannes Wallnöfer
21f6d83358 8309471: Limit key characters in static index pages
Reviewed-by: jjg
2023-06-16 15:04:07 +00:00
Andrew Haley
44a8aa0691 8308609: java/lang/ScopedValue/StressStackOverflow.java fails with "-XX:-VMContinuations"
Reviewed-by: alanb
2023-06-16 12:21:11 +00:00
Per Minborg
b412fc79c3 8309937: Add @sealedGraph for some Panama FFM interfaces
Reviewed-by: mcimadamore
2023-06-16 11:42:55 +00:00
Thomas Schatzl
fb024fde7b 8248149: G1: change _cleaning_claimed from int to bool
Reviewed-by: lkorinth, ayang, kbarrett
2023-06-16 10:04:17 +00:00
Christian Stein
c2b043e6cd 8310183: Update GitHub Actions to use boot JDK for building jtreg
Reviewed-by: shade
2023-06-16 09:58:19 +00:00
Eric Nothum
238c51e621 8293069: Make -XX:+Verbose less verbose
Reviewed-by: thartmann, chagedorn
2023-06-16 09:57:57 +00:00
Kevin Walls
8c9b85a990 8303916: ThreadLists.java inconsistent results
Reviewed-by: cjplummer, dholmes, lmesnik
2023-06-16 08:40:16 +00:00
Alan Bateman
227656f3a9 8309408: Thread.sleep cleanup
Reviewed-by: dholmes, stefank
2023-06-16 07:26:27 +00:00
Aggelos Biboudis
32243ef47d 8310128: Switch with unnamed patterns erroneously non-exhaustive
Reviewed-by: vromero, jlahoda
2023-06-16 07:03:28 +00:00
sunyaqi
cfae6ef2f6 8309778: java/nio/file/Files/CopyAndMove.java fails when using second test directory
Reviewed-by: alanb
2023-06-16 06:15:55 +00:00
Jaikiran Pai
db133dbc02 8310106: sun.security.ssl.SSLHandshake.getHandshakeProducer() incorrectly checks handshakeConsumers
Reviewed-by: wetmore, xuelei
2023-06-16 05:38:10 +00:00
Joe Darcy
353e581a53 8309747: Update --release 21 symbol information for JDK 21 build 27
Reviewed-by: iris
2023-06-15 23:36:27 +00:00
Phil Race
d3d0dbc363 8309756: Occasional crashes with pipewire screen capture on Wayland
Reviewed-by: avu, azvegint
2023-06-15 22:47:57 +00:00
Kim Barrett
92167505b2 8308643: Incorrect value of 'used' jvmstat counter
Reviewed-by: tschatzl, ayang
2023-06-15 22:23:26 +00:00
Man Cao
5c705166da 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent
Reviewed-by: rriggs, shade
2023-06-15 20:13:36 +00:00
Justin Lu
81bfd78901 8309632: JDK 21 RDP1 L10n resource files update
Reviewed-by: naoto
2023-06-15 19:43:07 +00:00
Matthew Donovan
9f64a64376 8301379: Verify TLS_ECDH_* cipher suites cannot be negotiated
Reviewed-by: mullan
2023-06-15 19:15:30 +00:00
Aleksey Shipilev
4a5475ce04 8309953: Strengthen and optimize oopDesc age methods
Reviewed-by: mdoerr, rkennke, tschatzl, stefank
2023-06-15 19:13:24 +00:00
Chris Plummer
79ff72a776 8308499: Test vmTestbase/nsk/jdi/MethodExitRequest/addClassExclusionFilter/filter001/TestDescription.java failed: VMDisconnectedException
Reviewed-by: lmesnik, kevinw
2023-06-15 19:11:12 +00:00
Pavel Rappo
3e0bbd290c 8285368: Overhaul doc-comment inheritance
6376959: Algorithm for Inheriting Method Comments seems to go not as documented
6934301: Support directed inheriting of class comments with @inheritDoc

Reviewed-by: jjg, rriggs, aivanov, smarks, martin
2023-06-15 17:47:41 +00:00
Naoto Sato
3eeb681a0d 8167252: Some of Charset.availableCharsets() does not contain itself
Reviewed-by: bpb, alanb, iris, lancea, jpai
2023-06-15 16:34:00 +00:00
Julian Waters
653a8d0cce 8310129: SetupNativeCompilation LIBS should match the order of the other parameters
Reviewed-by: erikj
2023-06-15 16:29:31 +00:00
Quan Anh Mai
947f14977a 8308444: LoadStoreNode::result_not_used() is too conservative
Reviewed-by: kvn, thartmann
2023-06-15 16:00:18 +00:00
Doug Simon
8b4af46be4 8309974: some JVMCI tests fail when VM options include -XX:+EnableJVMCI
Reviewed-by: dholmes
2023-06-15 15:53:08 +00:00
Vladimir Kozlov
0038491abd 8309978: [x64] Fix useless padding
Reviewed-by: chagedorn, thartmann, shade
2023-06-15 15:32:45 +00:00
Albert Mingkun Yang
5f3613e060 8309960: ParallelGC young collections very slow in DelayInducer
Reviewed-by: tschatzl, iwalulya
2023-06-15 12:01:02 +00:00
Roberto Castañeda Lozano
83d92672d4 8303513: C2: LoadKlassNode::make fails with 'expecting TypeKlassPtr'
Reviewed-by: thartmann, kvn
2023-06-15 10:08:28 +00:00
Martin Doerr
de8aca27ba 8307907: [ppc] Remove RTM locking implementation
Reviewed-by: mbaesken, rrich, stuefe
2023-06-15 09:52:31 +00:00
Johan Sjölen
4c0e164238 8309717: C2: Remove Arena::move_contents usage
Reviewed-by: thartmann, kvn
2023-06-15 08:36:35 +00:00
Vladimir Kempik
6b94289386 8309502: RISC-V: String.indexOf intrinsic may produce misaligned memory loads
Reviewed-by: luhenry, fjiang, fyang
2023-06-15 06:22:21 +00:00
Kim Barrett
181845ae46 8309899: Rename PtrQueueSet::buffer_size()
Reviewed-by: tschatzl, ayang
2023-06-14 22:01:44 +00:00
Ioi Lam
931625a930 8309808: BytecodeTracer prints wrong BSM for invokedynamic
Reviewed-by: coleenp, matsaave
2023-06-14 21:14:01 +00:00
Harshitha Onkar
ee4ab6709e 8309958: Incorrect @since tag format in Container.java
Reviewed-by: dmarkov
2023-06-14 19:49:24 +00:00
Aleksey Shipilev
57b8251241 8309956: Shenandoah: Strengthen the mark word check in string dedup
Reviewed-by: wkemper, zgu, ysr
2023-06-14 16:57:15 +00:00
Erik Joelsson
955fc2faba 8309746: Reconfigure check should include make/conf/version-numbers.conf
Reviewed-by: mikael
2023-06-14 13:27:19 +00:00
Erik Joelsson
554b4d7243 8308585: AC_REQUIRE: `PLATFORM_EXTRACT_TARGET_AND_BUILD' was expanded before it was required
Reviewed-by: mikael
2023-06-14 13:26:54 +00:00
Erik Gahlin
84d010a24b 8309928: JFR: View issues
Reviewed-by: mgronlun
2023-06-14 12:26:51 +00:00
Erik Gahlin
9872a14192 8309959: JFR: Display N/A for missing data amount
Reviewed-by: mgronlun, stuefe
2023-06-14 12:05:27 +00:00
Jorn Vernee
4c18b9e1fa 8309880: Add support for linking libffi on Windows and Mac
Co-authored-by: Aleksey Shipilev <shade@openjdk.org>
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Reviewed-by: erikj
2023-06-14 12:03:42 +00:00
Jim Laskey
1d1ed0d8f7 8309957: Rename JDK-8309595 test to conform
Reviewed-by: rriggs
2023-06-14 11:58:03 +00:00
Vladimir Petko
e3d6fc875b 8309847: FrameForm and RegisterForm constructors should initialize all members
Reviewed-by: kvn, thartmann
2023-06-14 11:47:02 +00:00
Martin Doerr
bd79db3930 8309613: [Windows] hs_err files sometimes miss information about the code containing the error
Reviewed-by: dholmes, stuefe
2023-06-14 08:28:39 +00:00
Stefan Karlsson
63fe413d93 8309890: TestStringDeduplicationInterned.java waits for the wrong condition
Reviewed-by: aboldtch, kbarrett
2023-06-14 06:30:05 +00:00
Jaikiran Pai
ba837b4bfa 8309910: Introduce jdk.internal.net.http.HttpConnection.getSNIServerNames() method
Reviewed-by: dfuchs
2023-06-14 01:37:45 +00:00
Ioi Lam
5d193193a3 8309878: Reduce inclusion of resolvedIndyEntry.hpp
Reviewed-by: coleenp, sspitsyn, matsaave
2023-06-14 00:16:12 +00:00
Christian Stein
8aad881e80 8309934: Update GitHub Actions to use JDK 17 for building jtreg
Reviewed-by: erikj
2023-06-13 20:32:29 +00:00
Mandy Chung
9bfe415f66 8305104: Remove the old core reflection implementation
Reviewed-by: dholmes, alanb
2023-06-13 19:41:38 +00:00
Raffaello Giulietti
bfef3c3e80 8309955: Matcher uses @since {@inheritDoc}
Reviewed-by: lancea
2023-06-13 18:40:47 +00:00
Chris Plummer
d7251c1755 8309757: com/sun/jdi/ReferrersTest.java fails with virtual test thread factory
Reviewed-by: sspitsyn, kevinw
2023-06-13 18:07:43 +00:00
Jonathan Gibbons
b5b5b7ce72 8309884: missing @since tags in com.sun.source.*
Reviewed-by: darcy
2023-06-13 17:40:34 +00:00
Chen Liang
75dcc4ef94 8307508: IndirectVarHandle.isAccessModeSupported throws NPE
Reviewed-by: mchung
2023-06-13 17:05:52 +00:00
Ben Perez
bed9161c81 8308474: DSA does not reset SecureRandom when initSign is called again
Reviewed-by: weijun
2023-06-13 16:34:58 +00:00
Tobias Hartmann
3eec179c72 8309854: ciReplay TestServerVM test fails with Graal
Reviewed-by: chagedorn, kvn
2023-06-13 16:13:42 +00:00
Calvin Cheung
14010876dc 8309753: Include array classes in the output of -XX:+PrintSharedArchiveAndExit
Reviewed-by: iklam, matsaave
2023-06-13 15:54:31 +00:00
Stuart Marks
e138685648 8309882: LinkedHashMap adds an errant serializable field
Reviewed-by: darcy, bpb, jpai, rriggs
2023-06-13 15:16:28 +00:00
Doug Simon
c0aa6bf4fe 8309390: [JVMCI] improve copying system properties into libgraal
Reviewed-by: never, kvn
2023-06-13 14:45:33 +00:00
Albert Mingkun Yang
63843b1153 8309907: Remove unused _print_gc_overhead_limit_would_be_exceeded
Reviewed-by: tschatzl
2023-06-13 14:01:53 +00:00
Eric Nothum
6d05360bec 8304403: Remove unused methods in RangeCheckElimination::Bound
Reviewed-by: chagedorn, thartmann
2023-06-13 13:45:59 +00:00
Ivan Bereziuk
9b0baa10b9 8306281: function isWsl() returns false on WSL2
Reviewed-by: erikj
2023-06-13 12:40:54 +00:00
Leo Korinth
c884862ad2 8309468: Remove jvmti Allocate locker test case
Reviewed-by: dholmes, lmesnik, sspitsyn
2023-06-13 12:31:20 +00:00
Markus Grönlund
05f896a153 8309862: Unsafe list operations in JfrStringPool
Reviewed-by: egahlin
2023-06-13 11:47:47 +00:00
Yudi Zheng
4f23fc1f27 8309671: Avoid using jvmci.Compiler property to determine if Graal is enabled
Reviewed-by: dnsimon, sspitsyn
2023-06-13 09:02:37 +00:00
Chen Liang
1a9edb8df9 8309838: Classfile API Util.toBinaryName and other cleanup
Reviewed-by: asotona
2023-06-13 08:57:47 +00:00
Per Minborg
f7de726bd3 8295555: Primitive wrapper caches could be @Stable
Reviewed-by: rriggs
2023-06-13 08:39:00 +00:00
Albert Mingkun Yang
5d716121c1 8309852: G1: Remove unnecessary assert_empty in G1ParScanThreadStateSet destructor
Reviewed-by: tschatzl
2023-06-13 07:54:13 +00:00
Albert Mingkun Yang
23a54f3701 8309538: G1: Move total collection increment from Cleanup to Remark
Reviewed-by: tschatzl, iwalulya
2023-06-13 07:53:34 +00:00
Jaikiran Pai
57fc9a3e96 8309763: Move tests in test/jdk/sun/misc/URLClassPath directory to test/jdk/jdk/internal/loader
Reviewed-by: alanb, mchung
2023-06-13 00:54:35 +00:00
Harshitha Onkar
2dca5ae4fd 8299052: ViewportOverlapping test fails intermittently on Win10 & Win11
Reviewed-by: aivanov
2023-06-12 23:11:52 +00:00
Ashutosh Mehra
3028295fdd 8309065: Move the logic to determine archive heap location from CDS to G1 GC
Reviewed-by: iklam, tschatzl, stuefe
2023-06-12 22:08:47 +00:00
Xue-Lei Andrew Fan
80a8144af5 8309867: redundant class field RSAPadding.md
Reviewed-by: hchao, weijun, valeriep
2023-06-12 20:42:53 +00:00
Ben Perez
3c15ad8d47 8307144: namedParams in XECParameters and EdDSAParameters can be private final
Reviewed-by: jnimeh, xuelei, mullan
2023-06-12 19:45:06 +00:00
Joe Darcy
3ce1240ca1 8309870: Using -proc:full should be considered requesting explicit annotation processing
Reviewed-by: jjg
2023-06-12 18:14:27 +00:00
Chris Plummer
1612b6dc6e 8309752: com/sun/jdi/SetLocalWhileThreadInNative.java fails with virtual test thread factory due to OpaqueFrameException
Reviewed-by: sspitsyn, lmesnik
2023-06-12 18:07:40 +00:00
Jiangli Zhou
45414fc2df 8307858: [REDO] JDK-8307194 Add make target for optionally building a complete set of all JDK and hotspot libjvm static libraries
Co-authored-by: Erik Joelsson <erikj@openjdk.org>
Reviewed-by: erikj
2023-06-12 16:22:24 +00:00
Maurizio Cimadamore
a6ad42e00e 8308645: Javadoc of FFM API needs to be refreshed
8309398: ValueLayout:: arrayElementVarHandle doesn't throws UnsupportedOperationException - if byteAlignment() > byteSize()
8308812: SequenceLayout::withElementCount(long elementCount) doesn't throw IllegalArgumentException - if elementCount < 0 for some cases

Reviewed-by: jvernee
2023-06-12 15:55:49 +00:00
Guoxiong Li
07275072aa 8272147: Consolidate preserved marks handling with other STW collectors
Reviewed-by: tschatzl, ayang, rkennke
2023-06-12 15:52:33 +00:00
Guoxiong Li
6cd166a284 8309403: Serial: Remove the useless adaptive size policy in GenCollectedHeap
Reviewed-by: ayang, tschatzl
2023-06-12 15:52:08 +00:00
Scott Gibbons
5d5ae35288 8308966: Add intrinsic for float/double modulo for x86 AVX2 and AVX512
Co-authored-by: Marius Cornea <marius.cornea@intel.com>
Reviewed-by: jbhateja, sviswanathan
2023-06-12 15:06:42 +00:00
Zhengyu Gu
8e4e6b056c 8309761: Leak class loader constraints
Reviewed-by: coleenp, jsjolen
2023-06-12 14:03:17 +00:00
Albert Mingkun Yang
fdaa2c4083 8309306: G1: Move is_obj_dead from HeapRegion to G1CollectedHeap
Reviewed-by: tschatzl, iwalulya
2023-06-12 11:13:05 +00:00
Christian Hagedorn
4bc6bbb23f 8309814: [IR Framework] Dump socket output string in which IR encoding was not found
Reviewed-by: rcastanedalo
2023-06-12 10:46:36 +00:00
JoKern65
cf9e6353cc 8309462: [AIX] vmTestbase/nsk/jvmti/RunAgentThread/agentthr001/TestDescription.java crashing due to empty while loop
Reviewed-by: mbaesken, mdoerr, clanger
2023-06-12 10:01:13 +00:00
Jaikiran Pai
268ec61d4f 8308184: Launching java with large number of jars in classpath with java.protocol.handler.pkgs system property set can lead to StackOverflowError
Reviewed-by: mchung, alanb
2023-06-12 09:45:07 +00:00
Prasanta Sadhukhan
4d4706967d 4516654: Metalworks Demo: Window title not displayed fully in Low Vision Theme
Reviewed-by: tr, aivanov
2023-06-12 08:49:57 +00:00
Jan Lahoda
408cadb351 8309467: Pattern dominance should be adjusted
Reviewed-by: vromero
2023-06-12 08:15:53 +00:00
Emanuel Peter
6c3e621f98 8308749: C2 failed: regular loops only (counted loop inside infinite loop)
Reviewed-by: kvn, chagedorn
2023-06-12 07:40:58 +00:00
Tobias Holenstein
f5cbe53fdd 8027711: Unify wildcarding syntax for CompileCommand and CompileOnly
Reviewed-by: kvn, thartmann, chagedorn
2023-06-12 07:39:23 +00:00
Matthias Baesken
4d66d97745 8309549: com/sun/tools/attach/warnings/DynamicLoadWarningTest.java fails on AIX
Reviewed-by: alanb, cjplummer, sspitsyn
2023-06-12 07:07:38 +00:00
Matthias Baesken
3981297fd3 8309703: AIX build fails after JDK-8280982
Reviewed-by: mdoerr, clanger, azvegint
2023-06-12 06:56:16 +00:00
Ioi Lam
16c3d53b1b 8308603: Removing do_pending_ref/enclosing_ref from MetaspaceClosure
Reviewed-by: ccheung
2023-06-10 19:32:47 +00:00
Kim Barrett
b94b679e9a 8309627: Incorrect sorting of DirtyCardQueue buffers
Reviewed-by: ayang, shade
2023-06-10 17:08:46 +00:00
Daniel D. Daugherty
aace3dc28c 8309760: ProblemList serviceability/jvmti/vthread/FollowReferences/VThreadStackRefTest.java#default with ZGC
Reviewed-by: amenkov
2023-06-10 02:02:34 +00:00
Kevin Driver
80edd5c298 8294985: SSLEngine throws IAE during parsing of X500Principal
Reviewed-by: wetmore, xuelei, mullan
2023-06-09 23:31:12 +00:00
Sergey Bylokhov
bdd81b3182 8304885: Reuse stale data to improve DNS resolver resiliency
Reviewed-by: michaelm, dfuchs
2023-06-09 23:20:06 +00:00
Coleen Phillimore
beec734fdd 8309692: Fix -Wconversion warnings in javaClasses
Reviewed-by: fparain, matsaave
2023-06-09 20:03:48 +00:00
Joe Darcy
7d82479096 8309142: Refactor test/langtools/tools/javac/versions/Versions.java
Reviewed-by: jjg
2023-06-09 19:56:14 +00:00
Alexander Zvegintsev
f5ec93eb88 8309745: Problem list open client tests failing on Ubuntu_23.04
Reviewed-by: aivanov
2023-06-09 19:53:12 +00:00
Chris Hegarty
cee5724d09 8309727: Assert privileges while reading the jdk.incubator.vector.VECTOR_ACCESS_OOB_CHECK system property
Reviewed-by: rriggs, uschindler, psandoz
2023-06-09 19:25:21 +00:00
Matias Saavedra Silva
7d6f97d04d 8309673: Refactor ref_at methods in SA ConstantPool
Reviewed-by: coleenp, fparain, iklam
2023-06-09 19:08:38 +00:00
Joe Darcy
7a970b251d 8309310: Update --release 21 symbol information for JDK 21 build 26
Reviewed-by: iris
2023-06-09 18:53:48 +00:00
Chris Plummer
84184f9473 8232839: JDI AfterThreadDeathTest.java failed due to "FAILED: Did not get expected IllegalThreadStateException on a StepRequest.enable()"
Reviewed-by: sspitsyn, kevinw
2023-06-09 18:01:22 +00:00
Mandy Chung
679a6d8935 8309303: jdk/internal/misc/VM/RuntimeArguments test ignores jdk/internal/vm/options
Reviewed-by: dnsimon, alanb
2023-06-09 16:44:56 +00:00
Harshitha Onkar
6cd370e04b 8305645: System Tray icons get corrupted when Windows primary monitor changes
Reviewed-by: serb, aivanov
2023-06-09 16:11:46 +00:00
Darragh Clarke
a48bcf3671 8308336: Test java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java failed: java.net.BindException: Address already in use
Reviewed-by: dfuchs
2023-06-09 14:06:00 +00:00
Tobias Holenstein
c052756154 8282797: CompileCommand parsing errors should exit VM
Reviewed-by: kvn, chagedorn, thartmann
2023-06-09 13:01:02 +00:00
Claes Redestad
dc842e8587 8309665: Simplify Arrays.copyOf/-Range methods
Reviewed-by: jlaskey, rriggs, alanb
2023-06-09 09:57:39 +00:00
Alan Bateman
307085618d 8309702: Exclude java/lang/ScopedValue/StressStackOverflow.java from JTREG_TEST_THREAD_FACTORY=Virtual runs
Reviewed-by: jpai
2023-06-09 08:33:18 +00:00
Alan Bateman
97df6cf55a 8309545: Thread.interrupted from virtual thread needlessly resets interrupt status
Reviewed-by: rpressler, dholmes, jpai
2023-06-09 07:30:03 +00:00
Serguei Spitsyn
f91e9ba757 8309612: [REDO] JDK-8307153 JVMTI GetThreadState on carrier should return STATE_WAITING
Reviewed-by: cjplummer, amenkov
2023-06-09 06:12:48 +00:00
Eric Nothum
0a697e73d5 8307620: [IR Framework] Readme mentions JTREG_WHITE_LIST_FLAGS instead of JTREG_WHITELIST_FLAGS
Reviewed-by: rcastanedalo, chagedorn
2023-06-09 06:09:56 +00:00
Jonathan Gibbons
6f492e8005 8309686: inconsistent URL for https://www.unicode.org/reports/tr35
Reviewed-by: naoto
2023-06-08 22:16:42 +00:00
Stefan Karlsson
c4e6542514 8309675: Generational ZGC: compiler/gcbarriers/UnsafeIntrinsicsTest.java fails in nmt_commit
Reviewed-by: aboldtch, dcubed
2023-06-08 19:41:26 +00:00
Jonathan Gibbons
34f0a6ec6a 8305593: Add @spec tags in java.desktop
Reviewed-by: prr
2023-06-08 19:00:19 +00:00
Jim Laskey
0be39054a6 8309595: Allow javadoc to process unnamed classes
Reviewed-by: hannesw
2023-06-08 17:51:11 +00:00
Alan Bateman
b2a5271e74 8309196: Remove Thread.countStackFrames
Reviewed-by: rriggs, mchung, dholmes, jpai, iris
2023-06-08 17:28:04 +00:00
Tom Rodriguez
bb966827ac 8309498: [JVMCI] race in CallSiteTargetValue recording
Reviewed-by: dnsimon, kvn
2023-06-08 16:11:33 +00:00
Joe Darcy
5a706fb403 8306584: Start of release updates for JDK 22
8306585: Add SourceVersion.RELEASE_22
8306586: Add source 22 and target 22 to javac

Reviewed-by: erikj, iris, dholmes, jlahoda, alanb
2023-06-08 16:02:21 +00:00
8749 changed files with 311269 additions and 189936 deletions

9
.gitattributes vendored
View File

@@ -1 +1,10 @@
* -text
*.java diff=java
*.c diff=cpp
*.h diff=cpp
*.cpp diff=cpp
*.hpp diff=cpp
*.md diff=markdown
*.sh diff=bash
*.html diff=html
*.css diff=css

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

@@ -0,0 +1,214 @@
[![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.3 | [17.0.9-b1087.3](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.9b1087.3) | 24-Oct-2023 |
| 2023.2 | [17.0.8-b1000.22](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.8b1000.22) | 04-Sep-2023 |
| 2023.1 | [17.0.7-b829.16](https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.7b829.16) | 06-Jun-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

@@ -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
@@ -104,6 +104,6 @@ runs:
- name: 'Export path to where BootJDK is installed'
id: path-name
run: |
# Export the path
echo 'path=bootjdk/jdk' >> $GITHUB_OUTPUT
# Export the absolute path
echo "path=`pwd`/bootjdk/jdk" >> $GITHUB_OUTPUT
shell: bash

View File

@@ -40,7 +40,7 @@ runs:
var: GTEST_VERSION
- name: 'Checkout GTest source'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: google/googletest
ref: 'v${{ steps.version.outputs.value }}'

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -47,7 +47,7 @@ runs:
key: jtreg-${{ steps.version.outputs.value }}
- name: 'Checkout the JTReg source'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: openjdk/jtreg
ref: jtreg-${{ steps.version.outputs.value }}
@@ -57,7 +57,7 @@ runs:
- name: 'Build JTReg'
run: |
# Build JTReg and move files to the proper locations
bash make/build.sh --jdk "$JAVA_HOME_11_X64"
bash make/build.sh --jdk "$JAVA_HOME_17_X64"
mkdir ../installed
mv build/images/jtreg/* ../installed
working-directory: jtreg/src

View File

@@ -30,7 +30,8 @@ runs:
using: composite
steps:
- name: 'Install MSYS2'
uses: msys2/setup-msys2@v2
# use a specific release of msys2/setup-msys2 to prevent jtreg build failures on newer release
uses: msys2/setup-msys2@7efe20baefed56359985e327d329042cde2434ff
with:
install: 'autoconf tar unzip zip make'
path-type: minimal

View File

@@ -31,12 +31,6 @@ on:
gcc-major-version:
required: true
type: string
apt-gcc-version:
required: true
type: string
apt-gcc-cross-version:
required: true
type: string
extra-conf-options:
required: false
type: string
@@ -86,13 +80,12 @@ jobs:
- target-cpu: riscv64
gnu-arch: riscv64
debian-arch: riscv64
debian-repository: https://deb.debian.org/debian-ports
debian-keyring: /usr/share/keyrings/debian-ports-archive-keyring.gpg
debian-repository: https://httpredir.debian.org/debian/
debian-version: sid
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Get the BootJDK'
id: bootjdk
@@ -114,12 +107,11 @@ jobs:
sudo apt-get update
sudo apt-get install --only-upgrade apt
sudo apt-get install \
gcc-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
g++-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev \
debian-ports-archive-keyring
gcc-${{ inputs.gcc-major-version }} \
g++-${{ inputs.gcc-major-version }} \
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}} \
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}} \
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
- name: 'Check cache for sysroot'
@@ -138,9 +130,9 @@ jobs:
sudo debootstrap
--arch=${{ matrix.debian-arch }}
--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
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype-dev,libpng-dev
--resolve-deps
$(test -n "${{ matrix.debian-keyring }}" && echo "--keyring=${{ matrix.debian-keyring }}")
--variant=minbase
${{ matrix.debian-version }}
sysroot
${{ matrix.debian-repository }}
@@ -153,7 +145,8 @@ jobs:
sudo chown ${USER} -R sysroot
rm -rf sysroot/{dev,proc,run,sys,var}
rm -rf sysroot/usr/{sbin,bin,share}
rm -rf sysroot/usr/lib/{apt,udev,systemd}
rm -rf sysroot/usr/lib/{apt,gcc,udev,systemd}
rm -rf sysroot/usr/libexec/gcc
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'
- name: 'Configure'

View File

@@ -49,9 +49,6 @@ on:
required: false
type: string
default: ''
apt-gcc-version:
required: true
type: string
apt-architecture:
required: false
type: string
@@ -81,7 +78,7 @@ jobs:
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Get the BootJDK'
id: bootjdk
@@ -114,7 +111,7 @@ jobs:
fi
sudo apt-get update
sudo apt-get install --only-upgrade apt
sudo apt-get install gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }}=${{ inputs.apt-gcc-version }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }}=${{ inputs.apt-gcc-version }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
sudo apt-get install gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
- name: 'Configure'

View File

@@ -55,7 +55,7 @@ on:
jobs:
build-macos:
name: build
runs-on: macos-11
runs-on: macos-13
strategy:
fail-fast: false
@@ -68,7 +68,7 @@ jobs:
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Get the BootJDK'
id: bootjdk

View File

@@ -79,7 +79,7 @@ jobs:
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Get MSYS2'
uses: ./.github/actions/get-msys2

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
@@ -26,10 +26,6 @@
name: 'OpenJDK GHA Sanity Checks'
on:
push:
branches-ignore:
- master
- pr/*
workflow_dispatch:
inputs:
platforms:
@@ -59,7 +55,8 @@ jobs:
outputs:
linux-x64: ${{ steps.include.outputs.linux-x64 }}
linux-x86: ${{ steps.include.outputs.linux-x86 }}
linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
# additional build options for linux-x64 are disabled
# linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
linux-cross-compile: ${{ steps.include.outputs.linux-cross-compile }}
macos-x64: ${{ steps.include.outputs.macos-x64 }}
macos-aarch64: ${{ steps.include.outputs.macos-aarch64 }}
@@ -130,7 +127,6 @@ jobs:
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
@@ -144,12 +140,11 @@ jobs:
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 libgcc-s1:i386 libstdc++6:i386'
extra-conf-options: '--with-target-bits=32'
apt-extra-packages: 'libfreetype-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libc6-i386 libgcc-s1:i386 libstdc++6:i386 libffi-dev:i386'
extra-conf-options: '--with-target-bits=32 --enable-fallback-linker --enable-libffi-bundling'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.linux-x86 == 'true'
@@ -163,7 +158,6 @@ jobs:
make-target: 'hotspot'
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
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 }}
@@ -178,7 +172,6 @@ jobs:
make-target: 'hotspot'
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
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 }}
@@ -193,7 +186,6 @@ jobs:
make-target: 'hotspot'
debug-levels: '[ "debug" ]'
gcc-major-version: '10'
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 }}
@@ -209,7 +201,6 @@ 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.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 }}
@@ -223,8 +214,6 @@ jobs:
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'
@@ -235,7 +224,7 @@ jobs:
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-x64
xcode-toolset-version: '12.5.1'
xcode-toolset-version: '14.3.1'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
if: needs.select.outputs.macos-x64 == 'true'
@@ -246,7 +235,7 @@ jobs:
uses: ./.github/workflows/build-macos.yml
with:
platform: macos-aarch64
xcode-toolset-version: '12.5.1'
xcode-toolset-version: '14.3.1'
extra-conf-options: '--openjdk-target=aarch64-apple-darwin'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
@@ -290,7 +279,6 @@ jobs:
# 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'
@@ -327,7 +315,7 @@ jobs:
with:
platform: macos-x64
bootjdk-platform: macos-x64
runs-on: macos-11
runs-on: macos-13
test-windows-x64:
name: windows-x64

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

@@ -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
@@ -105,7 +105,7 @@ jobs:
steps:
- name: 'Checkout the JDK source'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Get MSYS2'
uses: ./.github/actions/get-msys2
@@ -132,7 +132,7 @@ jobs:
run: |
# On macOS we need to install some dependencies for testing
brew install make
sudo xcode-select --switch /Applications/Xcode_11.7.app/Contents/Developer
sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer
# This will make GNU make available as 'make' and not only as 'gmake'
echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH
if: runner.os == 'macOS'

View File

@@ -1,7 +1,7 @@
[general]
project=jdk
jbs=JDK
version=21
version=22
[checks]
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists

View File

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

View File

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

View File

@@ -25,7 +25,26 @@
# Shell script for generating an IDEA project from a given list of modules
usage() {
echo "usage: $0 [-h|--help] [-v|--verbose] [-o|--output <path>] [-c|--conf <conf_name>] [modules]+"
echo "Usage: $0 [-h|--help] [-q|--quiet] [-a|--absolute-paths] [-r|--root <path>] [-o|--output <path>] [-c|--conf <conf_name>] [modules...]"
echo " -h | --help"
echo " -q | --quiet
No stdout output"
echo " -a | --absolute-paths
Use absolute paths to this jdk, so that generated .idea
project files can be moved independently of jdk sources"
echo " -r | --root <path>
Project content root
Default: $TOPLEVEL_DIR"
echo " -o | --output <path>
Where .idea directory with project files will be generated
(e.g. using '-o .' will place project files in './.idea')
Default: same as --root"
echo " -c | --conf <conf_name>
make configuration (release, slowdebug etc)"
echo " [modules...]
Generate project modules for specific java modules
(e.g. 'java.base java.desktop')
Default: all existing modules (java.* and jdk.*)"
exit 1
}
@@ -33,10 +52,13 @@ SCRIPT_DIR=`dirname $0`
#assume TOP is the dir from which the script has been called
TOP=`pwd`
cd $SCRIPT_DIR; SCRIPT_DIR=`pwd`
if [ "x$TOPLEVEL_DIR" = "x" ] ; then
cd .. ; TOPLEVEL_DIR=`pwd`
fi
cd $TOP;
IDEA_OUTPUT=$TOP/.idea
VERBOSE="false"
VERBOSE=true
ABSOLUTE_PATHS=false
CONF_ARG=
while [ $# -gt 0 ]
do
@@ -45,14 +67,24 @@ do
usage
;;
-v | --vebose )
VERBOSE="true"
-q | --quiet )
VERBOSE=false
;;
-a | --absolute-paths )
ABSOLUTE_PATHS=true
;;
-r | --root )
TOPLEVEL_DIR="$2"
shift
;;
-o | --output )
IDEA_OUTPUT=$2/.idea
IDEA_OUTPUT="$2/.idea"
shift
;;
-c | --conf )
CONF_ARG="CONF_NAME=$2"
shift
@@ -69,20 +101,17 @@ do
shift
done
if [ -e $IDEA_OUTPUT ] ; then
rm -r $IDEA_OUTPUT
if [ "x$IDEA_OUTPUT" = "x" ] ; then
IDEA_OUTPUT="$TOPLEVEL_DIR/.idea"
fi
mkdir -p $IDEA_OUTPUT || exit 1
cd $IDEA_OUTPUT; IDEA_OUTPUT=`pwd`
cd "$TOP" ; cd $TOPLEVEL_DIR; TOPLEVEL_DIR=`pwd`
cd "$TOP" ; cd $IDEA_OUTPUT; IDEA_OUTPUT=`pwd`
cd ..; IDEA_OUTPUT_PARENT=`pwd`
cd "$SCRIPT_DIR/.." ; OPENJDK_DIR=`pwd`
if [ "x$TOPLEVEL_DIR" = "x" ] ; then
cd $SCRIPT_DIR/..
TOPLEVEL_DIR=`pwd`
cd $IDEA_OUTPUT
fi
MAKE_DIR="$SCRIPT_DIR/../make"
IDEA_MAKE="$MAKE_DIR/ide/idea/jdk"
IDEA_MAKE="$OPENJDK_DIR/make/ide/idea/jdk"
IDEA_TEMPLATE="$IDEA_MAKE/template"
cp -r "$IDEA_TEMPLATE"/* "$IDEA_OUTPUT"
@@ -94,31 +123,31 @@ if [ -d "$TEMPLATES_OVERRIDE" ] ; then
done
fi
if [ "$VERBOSE" = "true" ] ; then
echo "output dir: $IDEA_OUTPUT"
echo "idea template dir: $IDEA_TEMPLATE"
if [ "$VERBOSE" = true ] ; then
echo "Will generate IDEA project files in \"$IDEA_OUTPUT\" for project \"$TOPLEVEL_DIR\""
fi
cd $TOP ; make -f "$IDEA_MAKE/idea.gmk" -I $MAKE_DIR/.. idea MAKEOVERRIDES= OUT=$IDEA_OUTPUT/env.cfg MODULES="$*" $CONF_ARG || exit 1
cd $TOP ; make -f "$IDEA_MAKE/idea.gmk" -I "$OPENJDK_DIR" idea TOPLEVEL_DIR="$TOPLEVEL_DIR" \
MAKEOVERRIDES= IDEA_OUTPUT_PARENT="$IDEA_OUTPUT_PARENT" OUT="$IDEA_OUTPUT/env.cfg" MODULES="$*" $CONF_ARG || exit 1
cd $SCRIPT_DIR
. $IDEA_OUTPUT/env.cfg
# Expect MODULE_ROOTS, MODULE_NAMES, BOOT_JDK & SPEC to be set
if [ "x$MODULE_ROOTS" = "x" ] ; then
echo "FATAL: MODULE_ROOTS is empty" >&2; exit 1
# Expect MODULES, MODULE_NAMES, RELATIVE_PROJECT_DIR, RELATIVE_BUILD_DIR to be set
if [ "xMODULES" = "x" ] ; then
echo "FATAL: MODULES is empty" >&2; exit 1
fi
if [ "x$MODULE_NAMES" = "x" ] ; then
echo "FATAL: MODULE_NAMES is empty" >&2; exit 1
fi
if [ "x$BOOT_JDK" = "x" ] ; then
echo "FATAL: BOOT_JDK is empty" >&2; exit 1
if [ "x$RELATIVE_PROJECT_DIR" = "x" ] ; then
echo "FATAL: RELATIVE_PROJECT_DIR is empty" >&2; exit 1
fi
if [ "x$SPEC" = "x" ] ; then
echo "FATAL: SPEC is empty" >&2; exit 1
if [ "x$RELATIVE_BUILD_DIR" = "x" ] ; then
echo "FATAL: RELATIVE_BUILD_DIR is empty" >&2; exit 1
fi
if [ -d "$TOPLEVEL_DIR/.hg" ] ; then
@@ -129,6 +158,43 @@ if [ -d "$TOPLEVEL_DIR/.git" ] ; then
VCS_TYPE="Git"
fi
if [ "$ABSOLUTE_PATHS" = true ] ; then
if [ "x$PATHTOOL" != "x" ]; then
PROJECT_DIR="`$PATHTOOL -am $OPENJDK_DIR`"
TOPLEVEL_PROJECT_DIR="`$PATHTOOL -am $TOPLEVEL_DIR`"
else
PROJECT_DIR="$OPENJDK_DIR"
TOPLEVEL_PROJECT_DIR="$TOPLEVEL_DIR"
fi
MODULE_DIR="$PROJECT_DIR"
TOPLEVEL_MODULE_DIR="$TOPLEVEL_PROJECT_DIR"
cd "$IDEA_OUTPUT_PARENT" && cd "$RELATIVE_BUILD_DIR" && BUILD_DIR="`pwd`"
CLION_SCRIPT_TOPDIR="$OPENJDK_DIR"
CLION_PROJECT_DIR="$PROJECT_DIR"
else
if [ "$RELATIVE_PROJECT_DIR" = "." ] ; then
PROJECT_DIR=""
else
PROJECT_DIR="/$RELATIVE_PROJECT_DIR"
fi
if [ "$RELATIVE_TOPLEVEL_PROJECT_DIR" = "." ] ; then
TOPLEVEL_PROJECT_DIR=""
else
TOPLEVEL_PROJECT_DIR="/$RELATIVE_TOPLEVEL_PROJECT_DIR"
fi
MODULE_DIR="\$MODULE_DIR\$$PROJECT_DIR"
PROJECT_DIR="\$PROJECT_DIR\$$PROJECT_DIR"
TOPLEVEL_MODULE_DIR="\$MODULE_DIR\$$TOPLEVEL_PROJECT_DIR"
TOPLEVEL_PROJECT_DIR="\$PROJECT_DIR\$$TOPLEVEL_PROJECT_DIR"
BUILD_DIR="\$PROJECT_DIR\$/$RELATIVE_BUILD_DIR"
CLION_SCRIPT_TOPDIR="$CLION_RELATIVE_PROJECT_DIR"
CLION_PROJECT_DIR="\$PROJECT_DIR\$/$CLION_SCRIPT_TOPDIR"
fi
if [ "$VERBOSE" = true ] ; then
echo "Project root: $PROJECT_DIR"
echo "Generating IDEA project files..."
fi
### Replace template variables
NUM_REPLACEMENTS=0
@@ -152,116 +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
SOURCES=$SOURCES" $SOURCE_PREFIX""$root""$SOURCE_POSTFIX"
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
fi
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

0
configure vendored Normal file → Executable file
View File

View File

@@ -324,7 +324,8 @@ GB of free disk space is required.</p>
<p>Even for 32-bit builds, it is recommended to use a 64-bit build
machine, and instead create a 32-bit target using
<code>--with-target-bits=32</code>.</p>
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release.</p>
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in
a future release.</p>
<h3 id="building-on-aarch64">Building on aarch64</h3>
<p>At a minimum, a machine with 8 cores is advisable, as well as 8 GB of
RAM. (The more cores to use, the more memory you need.) At least 6 GB of
@@ -366,7 +367,7 @@ to date at the time of writing.</p>
</tr>
<tr class="even">
<td>macOS</td>
<td>Mac OS X 10.13 (High Sierra)</td>
<td>macOS 13 (Ventura)</td>
</tr>
<tr class="odd">
<td>Windows</td>
@@ -401,7 +402,8 @@ to the build system, e.g. in arguments to <code>configure</code>. So,
use <code>--with-msvcr-dll=/cygdrive/c/msvcr100.dll</code> rather than
<code>--with-msvcr-dll=c:\msvcr100.dll</code>. For details on this
conversion, see the section on <a href="#fixpath">Fixpath</a>.</p>
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release.</p>
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in
a future release.</p>
<h4 id="cygwin">Cygwin</h4>
<p>A functioning <a href="http://www.cygwin.com/">Cygwin</a> environment
is required for building the JDK on Windows. If you have a 64-bit OS, we
@@ -462,9 +464,8 @@ this makes it difficult for a project such as the JDK to keep pace with
a continuously updated machine running macOS. See the section on <a
href="#apple-xcode">Apple Xcode</a> on some strategies to deal with
this.</p>
<p>It is recommended that you use at least Mac OS X 10.13 (High Sierra).
At the time of writing, the JDK has been successfully compiled on macOS
10.12 (Sierra).</p>
<p>It is recommended that you use at least macOS 13 (Ventura) and Xcode
14, but earlier versions may also work.</p>
<p>The standard macOS environment contains the basic tooling needed to
build, but for external libraries a package manager is recommended. The
JDK uses <a href="https://brew.sh/">homebrew</a> in the examples, but
@@ -543,7 +544,7 @@ to compile successfully without issues.</p>
</tr>
<tr class="even">
<td>macOS</td>
<td>Apple Xcode 10.1 (using clang 10.0.0)</td>
<td>Apple Xcode 14.3.1 (using clang 14.0.3)</td>
</tr>
<tr class="odd">
<td>Windows</td>
@@ -818,11 +819,11 @@ about the problem.</p>
<p>Some command line examples:</p>
<ul>
<li><p>Create a 32-bit build for Windows with FreeType2 in
<code>C:\freetype-i586</code>:
<code>bash configure --with-freetype=/cygdrive/c/freetype-i586 --with-target-bits=32</code></p></li>
<code>C:\freetype-i586</code>:</p>
<pre><code>bash configure --with-freetype=/cygdrive/c/freetype-i586 --with-target-bits=32</code></pre></li>
<li><p>Create a debug build with the <code>server</code> JVM and DTrace
enabled:
<code>bash configure --enable-debug --with-jvm-variants=server --enable-dtrace</code></p></li>
enabled:</p>
<pre><code>bash configure --enable-debug --with-jvm-variants=server --enable-dtrace</code></pre></li>
</ul>
<h3 id="common-configure-arguments">Common Configure Arguments</h3>
<p>Here follows some of the most common and important
@@ -1113,13 +1114,13 @@ just unpacked.</p>
Test framework. The top directory, which contains both
<code>googletest</code> and <code>googlemock</code> directories, should
be specified via <code>--with-gtest</code>. The minimum supported
version of Google Test is 1.13.0, whose source code can be obtained:</p>
version of Google Test is 1.14.0, whose source code can be obtained:</p>
<ul>
<li>by downloading and unpacking the source bundle from <a
href="https://github.com/google/googletest/releases/tag/v1.13.0">here</a></li>
<li>or by checking out <code>v1.13.0</code> tag of
href="https://github.com/google/googletest/releases/tag/v1.14.0">here</a></li>
<li>or by checking out <code>v1.14.0</code> tag of
<code>googletest</code> project:
<code>git clone -b v1.13.0 https://github.com/google/googletest</code></li>
<code>git clone -b v1.14.0 https://github.com/google/googletest</code></li>
</ul>
<p>To execute the most basic tests (tier 1), use:</p>
<pre><code>make run-test-tier1</code></pre>
@@ -1330,14 +1331,12 @@ Package Search</a> and search for the <code>libasound2</code> and
<code>libasound2-dev</code> packages for your <em>target</em> system.
Download them to /tmp.</p></li>
<li><p>Install the libraries into the cross-compilation toolchain. For
instance:</p></li>
</ul>
instance:</p>
<pre><code>cd /tools/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux/arm-linux-gnueabihf/libc
dpkg-deb -x /tmp/libasound2_1.0.25-4_armhf.deb .
dpkg-deb -x /tmp/libasound2-dev_1.0.25-4_armhf.deb .</code></pre>
<ul>
<li>If alsa is not properly detected by <code>configure</code>, you can
point it out by <code>--with-alsa</code>.</li>
dpkg-deb -x /tmp/libasound2-dev_1.0.25-4_armhf.deb .</code></pre></li>
<li><p>If alsa is not properly detected by <code>configure</code>, you
can point it out by <code>--with-alsa</code>.</p></li>
</ul>
<h4 id="x11-1">X11</h4>
<p>You will need X11 libraries suitable for your <em>target</em> system.
@@ -1371,21 +1370,18 @@ Package Search</a>, search for the following packages for your
</ul></li>
<li><p>Install the libraries into the cross-compilation toolchain. For
instance:</p>
<pre><code> cd /tools/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux/arm-linux-gnueabihf/libc/usr
mkdir X11R6
cd X11R6
for deb in /tmp/target-x11/*.deb ; do dpkg-deb -x $deb . ; done
mv usr/* .
cd lib
cp arm-linux-gnueabihf/* .
```
You can ignore the following messages. These libraries are not needed to
successfully complete a full JDK build.</code></pre>
<p>cp: cannot stat
<code>arm-linux-gnueabihf/libICE.so': No such file or directory cp: cannot stat</code>arm-linux-gnueabihf/libSM.so':
No such file or directory cp: cannot stat
`arm-linux-gnueabihf/libXt.so': No such file or directory ```</p></li>
<pre><code>cd /tools/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux/arm-linux-gnueabihf/libc/usr
mkdir X11R6
cd X11R6
for deb in /tmp/target-x11/*.deb ; do dpkg-deb -x $deb . ; done
mv usr/* .
cd lib
cp arm-linux-gnueabihf/* .</code></pre>
<p>You can ignore the following messages. These libraries are not needed
to successfully complete a full JDK build.</p>
<pre><code>cp: cannot stat `arm-linux-gnueabihf/libICE.so&#39;: No such file or directory
cp: cannot stat `arm-linux-gnueabihf/libSM.so&#39;: No such file or directory
cp: cannot stat `arm-linux-gnueabihf/libXt.so&#39;: No such file or directory</code></pre></li>
<li><p>If the X11 libraries are not properly detected by
<code>configure</code>, you can point them out by
<code>--with-x</code>.</p></li>
@@ -1403,17 +1399,41 @@ native compilation speed.</p>
<p>For example, cross-compiling to AArch64 from x86_64 could be done
like this:</p>
<ul>
<li><p>Install cross-compiler on the <em>build</em> system:
<code>apt install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu</code></p></li>
<li><p>Install cross-compiler on the <em>build</em> system:</p>
<pre><code>apt install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu</code></pre></li>
<li><p>Create chroot on the <em>build</em> system, configuring it for
<em>target</em> system:
<code>sudo debootstrap \ --arch=arm64 \ --verbose \ --include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev,libffi-dev \ --resolve-deps \ buster \ ~/sysroot-arm64 \ http://httpredir.debian.org/debian/ # If the target architecture is `riscv64`, # the path should be `debian-ports` instead of `debian`.</code></p></li>
<em>target</em> system:</p>
<pre><code>sudo debootstrap \
--arch=arm64 \
--verbose \
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev,libffi-dev \
--resolve-deps \
buster \
~/sysroot-arm64 \
http://httpredir.debian.org/debian/
# If the target architecture is `riscv64`,
# the path should be `debian-ports` instead of `debian`.</code></pre></li>
<li><p>To create a Ubuntu-based chroot:</p>
<pre><code>sudo debootstrap \
--arch=arm64 \
--verbose \
--components=main,universe \
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev,libffi-dev \
--resolve-deps \
jammy \
~/sysroot-arm64 \
http://ports.ubuntu.com/ubuntu-ports/
# symlinks is in the universe repository</code></pre></li>
<li><p>Make sure the symlinks inside the newly created chroot point to
proper locations:
<code>sudo chroot ~/sysroot-arm64 symlinks -cr .</code></p></li>
proper locations:</p>
<pre><code>sudo chroot ~/sysroot-arm64 symlinks -cr .</code></pre></li>
<li><p>Configure and build with newly created chroot as
sysroot/toolchain-path:
<code>sh ./configure \ --openjdk-target=aarch64-linux-gnu \ --with-sysroot=~/sysroot-arm64 make images ls build/linux-aarch64-server-release/</code></p></li>
sysroot/toolchain-path:</p>
<pre><code>sh ./configure \
--openjdk-target=aarch64-linux-gnu \
--with-sysroot=~/sysroot-arm64
make images
ls build/linux-aarch64-server-release/</code></pre></li>
</ul>
<p>The build does not create new files in that chroot, so it can be
reused for multiple builds without additional cleanup.</p>
@@ -1565,12 +1585,27 @@ libraries</a> required by OpenJDK complicate the building process. The
placeholder <code>&lt;toolchain-installed-path&gt;</code> shown below is
the path where you want to install the toolchain.</p>
<ul>
<li><p>Install the RISC-V GNU compiler toolchain:
<code>git clone --recursive https://github.com/riscv-collab/riscv-gnu-toolchain cd riscv-gnu-toolchain ./configure --prefix=&lt;toolchain-installed-path&gt; make linux export PATH=&lt;toolchain-installed-path&gt;/bin:$PATH</code></p></li>
<li><p>Cross-compile all the required libraries:
<code># An example for libffi git clone https://github.com/libffi/libffi cd libffi ./configure --host=riscv64-unknown-linux-gnu --prefix=&lt;toolchain-installed-path&gt;/sysroot/usr make make install</code></p></li>
<li><p>Configure and build OpenJDK:
<code>bash configure \ --with-boot-jdk=$BOOT_JDK \ --openjdk-target=riscv64-linux-gnu \ --with-sysroot=&lt;toolchain-installed-path&gt;/sysroot \ --with-toolchain-path=&lt;toolchain-installed-path&gt;/bin \ --with-extra-path=&lt;toolchain-installed-path&gt;/bin make images</code></p></li>
<li><p>Install the RISC-V GNU compiler toolchain:</p>
<pre><code>git clone --recursive https://github.com/riscv-collab/riscv-gnu-toolchain
cd riscv-gnu-toolchain
./configure --prefix=&lt;toolchain-installed-path&gt;
make linux
export PATH=&lt;toolchain-installed-path&gt;/bin:$PATH</code></pre></li>
<li><p>Cross-compile all the required libraries:</p>
<pre><code># An example for libffi
git clone https://github.com/libffi/libffi
cd libffi
./configure --host=riscv64-unknown-linux-gnu --prefix=&lt;toolchain-installed-path&gt;/sysroot/usr
make
make install</code></pre></li>
<li><p>Configure and build OpenJDK:</p>
<pre><code>bash configure \
--with-boot-jdk=$BOOT_JDK \
--openjdk-target=riscv64-linux-gnu \
--with-sysroot=&lt;toolchain-installed-path&gt;/sysroot \
--with-toolchain-path=&lt;toolchain-installed-path&gt;/bin \
--with-extra-path=&lt;toolchain-installed-path&gt;/bin
make images</code></pre></li>
</ul>
<h3 id="building-for-musl">Building for musl</h3>
<p>Just like it's possible to cross-compile for a different CPU, it's
@@ -2255,18 +2290,7 @@ However, please bear in mind that the JDK is a massive project, and we
must ask you to follow our rules and guidelines to be able to accept
your contribution.</p>
<p>The official place to start is the <a
href="http://openjdk.org/contribute/">'How to contribute' page</a>.
There is also an official (but somewhat outdated and skimpy on details)
<a href="http://openjdk.org/guide/">Developer's Guide</a>.</p>
<p>If this seems overwhelming to you, the Adoption Group is there to
help you! A good place to start is their <a
href="https://wiki.openjdk.org/display/Adoption/New+Contributor">'New
Contributor' page</a>, or start reading the comprehensive <a
href="https://adoptopenjdk.gitbooks.io/adoptopenjdk-getting-started-kit/en/">Getting
Started Kit</a>. The Adoption Group will also happily answer any
questions you have about contributing. Contact them by <a
href="http://mail.openjdk.org/mailman/listinfo/adoption-discuss">mail</a>
or <a href="http://openjdk.org/irc/">IRC</a>.</p>
href="https://openjdk.org/guide/">OpenJDK Developers Guide</a>.</p>
<h2 id="editing-this-document">Editing this document</h2>
<p>If you want to contribute changes to this document, edit
<code>doc/building.md</code> and then run

View File

@@ -167,7 +167,7 @@ time of writing.
| Operating system | Vendor/version used |
| ----------------- | ---------------------------------- |
| Linux | Oracle Enterprise Linux 6.4 / 7.6 |
| macOS | Mac OS X 10.13 (High Sierra) |
| macOS | macOS 13 (Ventura) |
| Windows | Windows Server 2012 R2 |
The double version numbers for Linux are due to the hybrid model
@@ -270,8 +270,8 @@ difficult for a project such as the JDK to keep pace with a continuously updated
machine running macOS. See the section on [Apple Xcode](#apple-xcode) on some
strategies to deal with this.
It is recommended that you use at least Mac OS X 10.13 (High Sierra). At the time
of writing, the JDK has been successfully compiled on macOS 10.12 (Sierra).
It is recommended that you use at least macOS 13 (Ventura) and Xcode
14, but earlier versions may also work.
The standard macOS environment contains the basic tooling needed to build, but
for external libraries a package manager is recommended. The JDK uses
@@ -337,7 +337,7 @@ issues.
| Operating system | Toolchain version |
| ------------------ | ------------------------------------------ |
| Linux | gcc 11.2.0 |
| macOS | Apple Xcode 10.1 (using clang 10.0.0) |
| macOS | Apple Xcode 14.3.1 (using clang 14.0.3) |
| Windows | Microsoft Visual Studio 2022 update 17.1.0 |
All compilers are expected to be able to compile to the C99 language standard,
@@ -626,11 +626,13 @@ automatically, it will exit and inform you about the problem.
Some command line examples:
* Create a 32-bit build for Windows with FreeType2 in `C:\freetype-i586`:
```
bash configure --with-freetype=/cygdrive/c/freetype-i586 --with-target-bits=32
```
* Create a debug build with the `server` JVM and DTrace enabled:
```
bash configure --enable-debug --with-jvm-variants=server --enable-dtrace
```
@@ -884,11 +886,11 @@ Download the latest `.tar.gz` file, unpack it, and point `--with-jtreg` to the
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
The minimum supported version of Google Test is 1.14.0, whose source
code can be obtained:
* 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`
* by downloading and unpacking the source bundle from [here](https://github.com/google/googletest/releases/tag/v1.14.0)
* or by checking out `v1.14.0` tag of `googletest` project: `git clone -b v1.14.0 https://github.com/google/googletest`
To execute the most basic tests (tier 1), use:
```
@@ -1100,11 +1102,12 @@ Note that alsa is needed even if you only want to build a headless JDK.
system. Download them to /tmp.
* Install the libraries into the cross-compilation toolchain. For instance:
```
cd /tools/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux/arm-linux-gnueabihf/libc
dpkg-deb -x /tmp/libasound2_1.0.25-4_armhf.deb .
dpkg-deb -x /tmp/libasound2-dev_1.0.25-4_armhf.deb .
```
```
cd /tools/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux/arm-linux-gnueabihf/libc
dpkg-deb -x /tmp/libasound2_1.0.25-4_armhf.deb .
dpkg-deb -x /tmp/libasound2-dev_1.0.25-4_armhf.deb .
```
* If alsa is not properly detected by `configure`, you can point it out by
`--with-alsa`.
@@ -1140,6 +1143,7 @@ Note that X11 is needed even if you only want to build a headless JDK.
* libxext-dev
* Install the libraries into the cross-compilation toolchain. For instance:
```
cd /tools/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux/arm-linux-gnueabihf/libc/usr
mkdir X11R6
@@ -1173,11 +1177,13 @@ for foreign architectures with native compilation speed.
For example, cross-compiling to AArch64 from x86_64 could be done like this:
* Install cross-compiler on the *build* system:
```
apt install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu
```
* Create chroot on the *build* system, configuring it for *target* system:
```
sudo debootstrap \
--arch=arm64 \
@@ -1191,12 +1197,29 @@ For example, cross-compiling to AArch64 from x86_64 could be done like this:
# the path should be `debian-ports` instead of `debian`.
```
* To create a Ubuntu-based chroot:
```
sudo debootstrap \
--arch=arm64 \
--verbose \
--components=main,universe \
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev,libffi-dev \
--resolve-deps \
jammy \
~/sysroot-arm64 \
http://ports.ubuntu.com/ubuntu-ports/
# symlinks is in the universe repository
```
* Make sure the symlinks inside the newly created chroot point to proper locations:
```
sudo chroot ~/sysroot-arm64 symlinks -cr .
```
* Configure and build with newly created chroot as sysroot/toolchain-path:
```
sh ./configure \
--openjdk-target=aarch64-linux-gnu \
@@ -1255,6 +1278,7 @@ 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
@@ -1264,6 +1288,7 @@ shown below is the path where you want to install the toolchain.
```
* Cross-compile all the required libraries:
```
# An example for libffi
git clone https://github.com/libffi/libffi
@@ -1274,6 +1299,7 @@ shown below is the path where you want to install the toolchain.
```
* Configure and build OpenJDK:
```
bash configure \
--with-boot-jdk=$BOOT_JDK \
@@ -2032,20 +2058,7 @@ First of all: Thank you! We gladly welcome your contribution.
However, please bear in mind that the JDK is a massive project, and we must ask
you to follow our rules and guidelines to be able to accept your contribution.
The official place to start is the ['How to contribute' page](
http://openjdk.org/contribute/). There is also an official (but somewhat
outdated and skimpy on details) [Developer's Guide](
http://openjdk.org/guide/).
If this seems overwhelming to you, the Adoption Group is there to help you! A
good place to start is their ['New Contributor' page](
https://wiki.openjdk.org/display/Adoption/New+Contributor), or start
reading the comprehensive [Getting Started Kit](
https://adoptopenjdk.gitbooks.io/adoptopenjdk-getting-started-kit/en/). The
Adoption Group will also happily answer any questions you have about
contributing. Contact them by [mail](
http://mail.openjdk.org/mailman/listinfo/adoption-discuss) or [IRC](
http://openjdk.org/irc/).
The official place to start is the [OpenJDK Developers Guide](https://openjdk.org/guide/).
## Editing this document

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

View File

@@ -0,0 +1,46 @@
# 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.
# jetbrains/runtime:jbr17env_aarch64
FROM arm64v8/centos:7
# Install the necessary build tools
RUN yum -y update; \
yum -y install centos-release-scl; \
yum -y install devtoolset-10-10.1-0.el7; \
yum -y install \
alsa-lib-devel-1.1.8-1.el7.aarch64 \
autoconf-2.69-11.el7.noarch \
automake-1.13.4-3.el7.noarch \
bzip2-1.0.6-13.el7.aarch64 \
cups-devel-1.6.3-51.el7.aarch64 \
file-5.11-37.el7.aarch64 \
fontconfig-devel-2.13.0-4.3.el7.aarch64 \
freetype-devel-2.8-14.el7_9.1.aarch64 \
giflib-devel-4.1.6-9.el7.aarch64 \
git-1.8.3.1-24.el7_9.aarch64 \
libtool-2.4.2-22.el7_3.aarch64 \
libXi-devel-1.7.9-1.el7.aarch64 \
libXrandr-devel-1.5.1-2.el7.aarch64 \
libXrender-devel-0.9.10-1.el7.aarch64 \
libXt-devel-1.1.5-3.el7.aarch64 \
libXtst-devel-1.2.3-1.el7.aarch64 \
make-3.82-24.el7.aarch64 \
rsync-3.1.2-12.el7_9.aarch64 \
tar-1.26-35.el7.aarch64 \
unzip-6.0-24.el7_9.aarch64 \
wayland-devel-1.15.0-1.el7 \
zip-3.0-11.el7.aarch64; \
yum -y clean all
ENV PATH="/opt/rh/devtoolset-10/root/usr/bin:${PATH}"
ENV LD_LIBRARY_PATH="/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib:/opt/rh/devtoolset-10/root/usr/lib64/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyninst:/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib"
ENV PKG_CONFIG_PATH="/opt/rh/devtoolset-10/root/usr/lib64/pkgconfig"
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,36 @@
# jetbrains/runtime:jbr17env_x86_64
FROM centos:7
RUN yum -y install centos-release-scl; \
yum -y install devtoolset-10-10.1-0.el7; \
yum -y install \
alsa-lib-devel-1.1.8-1.el7 \
autoconf-2.69-11.el7 \
automake-1.13.4-3.el7 \
bzip2-1.0.6-13.el7 \
cups-devel-1.6.3-51.el7 \
file-5.11-37.el7 \
fontconfig-devel-2.13.0-4.3.el7 \
freetype-devel-2.8-14.el7_9.1 \
giflib-devel-4.1.6-9.el7 \
git-1.8.3.1-24.el7_9 \
libtool-2.4.2-22.el7_3 \
libXi-devel-1.7.9-1.el7 \
libXrandr-devel-1.5.1-2.el7 \
libXrender-devel-0.9.10-1.el7 \
libXt-devel-1.1.5-3.el7 \
libXtst-devel-1.2.3-1.el7 \
make-3.82-24.el7 \
tar-1.26-35.el7 \
unzip-6.0-24.el7_9 \
wayland-devel-1.15.0-1.el7 \
wget-1.14-18.el7_6.1 \
which-2.20-7.el7 \
zip-3.0-11.el7
RUN mkdir .git && \
git config user.email "teamcity@jetbrains.com" && \
git config user.name "builduser"
ENV LD_LIBRARY_PATH="/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib:/opt/rh/devtoolset-10/root/usr/lib64/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyninst:/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib"
ENV PATH="/opt/rh/devtoolset-10/root/usr/bin::${PATH}"
ENV PKG_CONFIG_PATH="/opt/rh/devtoolset-10/root/usr/lib64/pkgconfig"

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,183 @@
#!/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" ] && [ "${bundle_type: -2}" != "ft" ]; 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}' | sort -t "-" -k 2 -g | tail -n 1 | tr -d ",")
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"
if [ "$bundle_type" == "nomodft" ]; then
WITH_BUNDLED_FREETYPE="--with-freetype=bundled"
else
WITH_BUNDLED_FREETYPE=""
fi
WITH_ZIPPED_NATIVE_DEBUG_SYMBOLS="--with-native-debug-symbols=zipped"
REPRODUCIBLE_BUILD_OPTS="--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,169 @@
#!/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 \
$WITH_BUNDLED_FREETYPE \
|| 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
cp $IMAGES_DIR/jdk/lib/server/*.jsa "$IMAGES_DIR"/"$__root_dir"/lib/server
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
jbr_name_postfix=""
case "$bundle_type" in
"jcef")
do_reset_changes=1
jbr_name_postfix="_${bundle_type}"
do_maketest=1
;;
"nomod" | "")
bundle_type=""
;;
"nomodft" | "")
jbr_name_postfix="_ft"
;;
"fd")
do_reset_changes=1
jbr_name_postfix="_${bundle_type}"
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
cat $JCEF_PATH/jcef.version >> $JSDK/release
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,172 @@
#!/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 \
$WITH_BUNDLED_FREETYPE \
|| 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
cp $IMAGES_DIR/jdk/lib/server/*.jsa "$IMAGES_DIR"/"$__root_dir"/lib/server
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
jbr_name_postfix=""
case "$bundle_type" in
"jcef")
do_reset_changes=1
jbr_name_postfix="_${bundle_type}"
jbrsdk_name_postfix="_${bundle_type}"
do_maketest=1
;;
"nomod" | "")
bundle_type=""
jbrsdk_name_postfix="_${bundle_type}"
;;
"nomodft" | "")
jbr_name_postfix="_ft"
jbrsdk_name_postfix="_ft"
;;
"fd")
do_reset_changes=1
jbr_name_postfix="_${bundle_type}"
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
cat $JCEF_PATH/jcef.version >> $JSDK/release
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,145 @@
#!/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
cp $IMAGES_DIR/jdk/lib/server/*.jsa "$IMAGES_DIR"/"$__root_dir"/lib/server
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,47 @@
#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" >/dev/null && pwd)"
source "$SCRIPT_DIR/jetsign-common.sh" || exit 1
function isMacOsBinary() {
file "$1" | grep -q 'Mach-O'
}
function isSigned() {
codesign --verify "$1" >/dev/null 2>&1 && ! grep -q Signature=adhoc < <(codesign --display --verbose "$1" 2>&1)
}
# last argument is a path to be signed
pathToBeSigned="$(pwd)/${*: -1}"
jetSignArgs=("${@:1:$#-1}")
if [[ ! -f "$pathToBeSigned" ]]; then
echo "$pathToBeSigned is missing or not a file"
exit 1
elif isSigned "$pathToBeSigned" && ! isForced "${jetSignArgs[@]}" ; then
echo "Already signed: $pathToBeSigned"
elif [[ "$JETSIGN_CLIENT" == "null" ]]; then
echo "JetSign client is missing, cannot proceed with signing"
exit 1
elif ! isMacOsBinary "$pathToBeSigned" && [[ "$pathToBeSigned" != *.sit ]] && [[ "$pathToBeSigned" != *.tar.gz ]]; then
echo "$pathToBeSigned won't be signed, assumed not to be a macOS executable"
else
if isMacOsBinary "$pathToBeSigned" && ! isSigned "$pathToBeSigned" ; then
echo "Unsigned macOS binary: $pathToBeSigned"
fi
workDir=$(dirname "$pathToBeSigned")
pathSigned="$workDir/signed/${pathToBeSigned##*/}"
jetSignExtensions=$(jetSignExtensions "${jetSignArgs[@]}")
contentType=$(jetSignContentType "$pathToBeSigned")
(
cd "$workDir" || exit 1
"$JETSIGN_CLIENT" -log-format text -denoted-content-type "$contentType" -extensions "$jetSignExtensions" "$pathToBeSigned"
# SRE-1223 (Codesign removes execute bits in executable files) workaround
chmod "$(stat -f %A "$pathToBeSigned")" "$pathSigned"
if isMacOsBinary "$pathSigned"; then
isSigned "$pathSigned"
fi
rm "$pathToBeSigned"
mv "$pathSigned" "$pathToBeSigned"
rm -rf "$workDir/signed"
)
fi

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,63 @@
#!/bin/bash
set -euo pipefail
function isForced() {
for arg in "$@"; do
if [[ "$arg" == --force ]]; then
return 0
fi
done
return 1
}
function jetSignExtensions() {
args=("$@")
((lastElementIndex=${#args[@]}-1))
for index in "${!args[@]}"; do
arg=${args[$index]}
case "$arg" in
--sign | -s)
echo -n 'mac_codesign_identity='
continue
;;
--entitlements)
echo -n 'mac_codesign_entitlements='
continue
;;
--options=runtime)
echo -n 'mac_codesign_options=runtime'
;;
--force)
echo -n 'mac_codesign_force=true'
;;
--timestamp | --verbose | -v)
continue
;;
*)
echo -n "$arg"
;;
esac
if [[ $index != "$lastElementIndex" ]]; then
echo -n ","
fi
done
}
# See jetbrains.sign.util.FileUtil.contentType
function jetSignContentType() {
case "${1##*/}" in
*.sit)
echo -n 'application/x-mac-app-zip'
;;
*.tar.gz)
echo -n 'application/x-mac-app-targz'
;;
*.pkg)
echo -n 'application/x-mac-pkg'
;;
*)
echo -n 'application/x-mac-app-bin'
;;
esac
}

View File

@@ -0,0 +1,172 @@
#!/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
cp $IMAGES_DIR/jdk-bundle/jdk-$JBSDK_VERSION.jdk/Contents/Home/lib/server/*.jsa $JRE_CONTENTS/Home/lib/server
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,40 @@
#!/bin/bash
#immediately exit script with an error if a command fails
set -euo pipefail
[[ "${SCRIPT_VERBOSE:-}" == "1" ]] && set -x
APP_PATH=$1
if [[ -z "$APP_PATH" ]]; then
echo "Usage: $0 AppPath"
exit 1
fi
if [[ ! -f "$APP_PATH" ]]; then
echo "AppName '$APP_PATH' does not exist or not a file"
exit 1
fi
function log() {
echo "$(date '+[%H:%M:%S]') $*"
}
# check required parameters
: "${APPLE_ISSUER_ID}"
: "${APPLE_KEY_ID}"
: "${APPLE_PRIVATE_KEY}"
# shellcheck disable=SC2064
trap "rm -f \"$PWD/tmp_key\"" INT EXIT RETURN
echo -n "${APPLE_PRIVATE_KEY}" > tmp_key
log "Notarizing $APP_PATH..."
xcrun notarytool submit --key tmp_key --key-id "${APPLE_KEY_ID}" --issuer "${APPLE_ISSUER_ID}" "$APP_PATH" 2>&1 | tee "notarytool.submit.out"
REQUEST_ID="$(grep -e " id: " "notarytool.submit.out" | grep -oE '([0-9a-f-]{36})'| head -n1)"
xcrun notarytool wait "$REQUEST_ID" --key tmp_key --key-id "${APPLE_KEY_ID}" --issuer "${APPLE_ISSUER_ID}" --timeout 6h ||:
xcrun notarytool log "$REQUEST_ID" --key tmp_key --key-id "${APPLE_KEY_ID}" --issuer "${APPLE_ISSUER_ID}" developer_log.json ||:
xcrun notarytool info "$REQUEST_ID" --key tmp_key --key-id "${APPLE_KEY_ID}" --issuer "${APPLE_ISSUER_ID}"
log "Notarizing finished"

View File

@@ -0,0 +1,41 @@
#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" >/dev/null && pwd)"
source "$SCRIPT_DIR/jetsign-common.sh" || exit 1
function isSigned() {
pkgutil --check-signature "$1" >/dev/null 2>&1 && grep -q "signed by a developer certificate" < <(pkgutil --check-signature "$1" 2>&1)
}
# second last argument is a path to be signed
pathToBeSigned="$(pwd)/${*:(-2):1}"
# last argument is a path to signed file
pathOut="$(pwd)/${*:(-1)}"
jetSignArgs=("${@:1:$#-2}")
if [[ ! -f "$pathToBeSigned" ]]; then
echo "$pathToBeSigned is missing or not a file"
exit 1
elif isSigned "$pathToBeSigned" && ! isForced "${jetSignArgs[@]}" ; then
echo "Already signed: $pathToBeSigned"
elif [[ "$JETSIGN_CLIENT" == "null" ]]; then
echo "JetSign client is missing, cannot proceed with signing"
exit 1
elif [[ "$pathToBeSigned" != *.pkg ]]; then
echo "$pathToBeSigned won't be signed, assumed not to be a macOS package"
else
if ! isSigned "$pathToBeSigned" ; then
echo "Unsigned macOS package: $pathToBeSigned"
fi
workDir=$(dirname "$pathToBeSigned")
pathSigned="$workDir/signed/${pathToBeSigned##*/}"
jetSignExtensions=$(jetSignExtensions "${jetSignArgs[@]}")
contentType=$(jetSignContentType "$pathToBeSigned")
(
cd "$workDir" || exit 1
"$JETSIGN_CLIENT" -log-format text -denoted-content-type "$contentType" -extensions "$jetSignExtensions" "$pathToBeSigned"
isSigned "$pathSigned"
rm -f "$pathOut"
mv "$pathSigned" "$pathOut"
rm -rf "$workDir/signed"
)
fi

View File

@@ -0,0 +1,162 @@
#!/bin/bash
#immediately exit script with an error if a command fails
set -euo pipefail
[[ "${SCRIPT_VERBOSE:-}" == "1" ]] && set -x
if [[ $# -lt 5 ]]; then
echo "Usage: $0 AppDirectory AppName BundleId CertificateID InstallerCertificateID"
exit 1
fi
APPLICATION_PATH=$1
PKG_NAME=$2
BUNDLE_ID=$3
JB_DEVELOPER_CERT=$4
JB_INSTALLER_CERT=$5
SCRIPT_DIR="$(cd "$(dirname "$0")" >/dev/null && pwd)"
# Use JetBrains sign utility if it's available
if [[ "${JETSIGN_CLIENT:=}" == "null" ]] || [[ "$JETSIGN_CLIENT" == "" ]]; then
JB_SIGN=false
SIGN_UTILITY="codesign"
PRODUCTSIGN_UTILITY="productsign"
else
JB_SIGN=true
SIGN_UTILITY="$SCRIPT_DIR/codesign.sh"
PRODUCTSIGN_UTILITY="$SCRIPT_DIR/productsign.sh"
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]') $*"
}
# 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 "$SIGN_UTILITY" --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime --force \
--entitlements "$SCRIPT_DIR/entitlements.xml" {} \;
fi
done
log "Signing libraries in jars in $APPLICATION_PATH"
# 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 "$SIGN_UTILITY" --timestamp \
--force \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--entitlements "$SCRIPT_DIR/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..."
# shellcheck disable=SC2043
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 "$SIGN_UTILITY" --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime --force \
--entitlements "$SCRIPT_DIR/entitlements.xml" {} \;
fi
done
log "Signing whole frameworks..."
# shellcheck disable=SC2043
if [ "$JB_SIGN" = true ]; then for f in \
"Contents/Home/Frameworks" "Contents/Frameworks"; do
if [ -d "$APPLICATION_PATH/$f" ]; then
find "$APPLICATION_PATH/$f" \( -name '*.framework' -o -name '*.app' \) -maxdepth 1 | while read -r line
do
log "Signing '$line':"
tar -pczf tmp-to-sign.tar.gz -C "$(dirname "$line")" "$(basename "$line")"
"$SIGN_UTILITY" --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--force \
--entitlements "$SCRIPT_DIR/entitlements.xml" tmp-to-sign.tar.gz
rm -rf "$line"
tar -xzf tmp-to-sign.tar.gz --directory "$(dirname "$line")"
rm -f tmp-to-sign.tar.gz
done
fi
done; fi
log "Checking framework signatures..."
for f in \
"Contents/Home/Frameworks" "Contents/Frameworks"; do
if [ -d "$APPLICATION_PATH/$f" ]; then
find "$APPLICATION_PATH/$f" -name '*.framework' -maxdepth 1 | while read -r line
do
log "Checking '$line':"
codesign --verify --deep --strict --verbose=4 "$line"
done
fi
done
log "Signing whole app..."
if [ "$JB_SIGN" = true ]; then
tar -pczf tmp-to-sign.tar.gz --exclude='man' -C "$(dirname "$APPLICATION_PATH")" "$(basename "$APPLICATION_PATH")"
"$SIGN_UTILITY" --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--force \
--entitlements "$SCRIPT_DIR/entitlements.xml" tmp-to-sign.tar.gz
rm -rf "$APPLICATION_PATH"
tar -xzf tmp-to-sign.tar.gz --directory "$(dirname "$APPLICATION_PATH")"
rm -f tmp-to-sign.tar.gz
else
"$SIGN_UTILITY" --timestamp \
-v -s "$JB_DEVELOPER_CERT" --options=runtime \
--force \
--entitlements "$SCRIPT_DIR/entitlements.xml" "$APPLICATION_PATH"
fi
BUILD_NAME="$(basename "$APPLICATION_PATH")"
log "Creating $PKG_NAME..."
rm -rf "$PKG_NAME"
mkdir -p unsigned
pkgbuild --identifier $BUNDLE_ID --root $APPLICATION_PATH \
--install-location /Library/Java/JavaVirtualMachines/${BUILD_NAME} unsigned/${PKG_NAME}
log "Signing $PKG_NAME..."
"$PRODUCTSIGN_UTILITY" --timestamp --sign "$JB_INSTALLER_CERT" unsigned/${PKG_NAME} ${PKG_NAME}
log "Verifying java is not broken"
find "$APPLICATION_PATH" \
-type f -name 'java' -perm +111 -exec {} -version \;

View File

@@ -0,0 +1,136 @@
#!/bin/bash
#immediately exit script with an error if a command fails
set -euo pipefail
[[ "${SCRIPT_VERBOSE:-}" == "1" ]] && 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
SCRIPT_DIR="$(cd "$(dirname "$0")" >/dev/null && pwd)"
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=$(basename "$INPUT_FILE" | awk -F".tar" '{ print $1 }')
PKG_NAME="$APP_NAME.pkg"
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
if [[ "${JETSIGN_CLIENT:=}" == "null" ]] || [[ "$JETSIGN_CLIENT" == "" ]]; then
log "Unlocking keychain..."
# Make sure *.p12 is imported into local KeyChain
security unlock-keychain -p "$PASSWORD" "/Users/$USERNAME/Library/Keychains/login.keychain"
fi
attempt=1
limit=3
set +e
while [[ $attempt -le $limit ]]; do
log "Signing (attempt $attempt) $APPLICATION_PATH ..."
"$SCRIPT_DIR/sign.sh" "$APPLICATION_PATH" "$PKG_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..."
"$SCRIPT_DIR/notarize.sh" "$PKG_NAME"
log "Stapling..."
xcrun stapler staple "$APPLICATION_PATH" ||:
xcrun stapler staple "$PKG_NAME" ||:
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
if [[ "$APPLICATION_PATH" != "$EXPLODED/$BUILD_NAME" ]]; then
mv $APPLICATION_PATH $EXPLODED/$BUILD_NAME
else
echo "No move, source == destination: $APPLICATION_PATH"
fi
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,150 @@
#!/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
cp $IMAGES_DIR/jdk/lib/server/*.jsa $__root_dir/lib/server
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,143 @@
#!/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
cp $IMAGES_DIR/jdk/lib/server/*.jsa $__root_dir/lib/server
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,132 @@
#!/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
cp $IMAGES_DIR/jdk/lib/server/*.jsa $__root_dir/lib/server
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

@@ -478,6 +478,27 @@ endif
################################################################################
ifneq ($(filter static-libs-graal-bundles, $(MAKECMDGOALS)), )
STATIC_LIBS_GRAAL_BUNDLE_FILES := $(call FindFiles, $(STATIC_LIBS_GRAAL_IMAGE_DIR))
ifeq ($(OPENJDK_TARGET_OS)-$(DEBUG_LEVEL), macosx-release)
STATIC_LIBS_GRAAL_BUNDLE_SUBDIR := $(JDK_MACOSX_CONTENTS_SUBDIR)/Home
else
STATIC_LIBS_GRAAL_BUNDLE_SUBDIR := $(JDK_BUNDLE_SUBDIR)
endif
$(eval $(call SetupBundleFile, BUILD_STATIC_LIBS_GRAAL_BUNDLE, \
BUNDLE_NAME := $(STATIC_LIBS_GRAAL_BUNDLE_NAME), \
FILES := $(STATIC_LIBS_GRAAL_BUNDLE_FILES), \
BASE_DIRS := $(STATIC_LIBS_GRAAL_IMAGE_DIR), \
SUBDIR := $(STATIC_LIBS_GRAAL_BUNDLE_SUBDIR), \
))
STATIC_LIBS_GRAAL_TARGETS += $(BUILD_STATIC_LIBS_GRAAL_BUNDLE)
endif
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Bundles.gmk))
@@ -490,8 +511,9 @@ docs-jdk-bundles: $(DOCS_JDK_TARGETS)
docs-javase-bundles: $(DOCS_JAVASE_TARGETS)
docs-reference-bundles: $(DOCS_REFERENCE_TARGETS)
static-libs-bundles: $(STATIC_LIBS_TARGETS)
static-libs-graal-bundles: $(STATIC_LIBS_GRAAL_TARGETS)
jcov-bundles: $(JCOV_TARGETS)
.PHONY: all default product-bundles test-bundles \
docs-jdk-bundles docs-javase-bundles docs-reference-bundles \
static-libs-bundles jcov-bundles
static-libs-bundles static-libs-graal-bundles jcov-bundles

View File

@@ -1,5 +1,5 @@
#
# 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
@@ -81,13 +81,11 @@ endif
ifneq ($(CMDS_DIR), )
DEPS += $(call FindFiles, $(CMDS_DIR))
ifeq ($(call isTargetOs, windows)+$(SHIP_DEBUG_SYMBOLS), true+public)
# For public debug symbols on Windows, we have to use stripped pdbs, rename them
# and filter out a few launcher pdbs where there's a lib that goes by the same name
# For public debug symbols on Windows, we have to use stripped pdbs and rename them
rename_stripped = $(patsubst %.stripped.pdb,%.pdb,$1)
CMDS_DIR_FILTERED := $(subst modules_cmds,modules_cmds_filtered, $(CMDS_DIR))
FILES_CMDS := $(filter-out %.pdb, $(call FindFiles, $(CMDS_DIR))) \
$(filter-out %jimage.stripped.pdb %jpackage.stripped.pdb %java.stripped.pdb, \
$(filter %.stripped.pdb, $(call FindFiles, $(CMDS_DIR))))
$(filter %.stripped.pdb, $(call FindFiles, $(CMDS_DIR)))
$(eval $(call SetupCopyFiles, COPY_FILTERED_CMDS, \
SRC := $(CMDS_DIR), \
DEST := $(CMDS_DIR_FILTERED), \
@@ -96,18 +94,6 @@ ifneq ($(CMDS_DIR), )
))
DEPS += $(COPY_FILTERED_CMDS)
JMOD_FLAGS += --cmds $(CMDS_DIR_FILTERED)
else ifeq ($(call isTargetOs, windows)+$(SHIP_DEBUG_SYMBOLS), true+full)
# For full debug symbols on Windows, we have to filter out a few launcher pdbs
# where there's a lib that goes by the same name
CMDS_DIR_FILTERED := $(subst modules_cmds,modules_cmds_filtered, $(CMDS_DIR))
$(eval $(call SetupCopyFiles, COPY_FILTERED_CMDS, \
SRC := $(CMDS_DIR), \
DEST := $(CMDS_DIR_FILTERED), \
FILES := $(filter-out %jimage.pdb %jpackage.pdb %java.pdb, \
$(call FindFiles, $(CMDS_DIR))), \
))
DEPS += $(COPY_FILTERED_CMDS)
JMOD_FLAGS += --cmds $(CMDS_DIR_FILTERED)
else
JMOD_FLAGS += --cmds $(CMDS_DIR)
endif

View File

@@ -66,11 +66,6 @@ MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) )
# In order to get a specific ordering it's necessary to specify the total
# ordering of tags as the tags are otherwise ordered in order of definition.
JAVADOC_TAGS := \
-tag beaninfo:X \
-tag revised:X \
-tag since.unbundled:X \
-tag Note:X \
-tag ToDo:X \
-tag 'apiNote:a:API Note:' \
-tag 'implSpec:a:Implementation Requirements:' \
-tag 'implNote:a:Implementation Note:' \

View File

@@ -43,10 +43,10 @@ $(eval $(call SetupCopyFiles, COPY_JDK_IMG, \
TARGETS += $(COPY_JDK_IMG)
$(eval $(call SetupCopyFiles, COPY_STATIC_LIBS, \
SRC := $(STATIC_LIBS_IMAGE_DIR)/lib, \
SRC := $(STATIC_LIBS_GRAAL_IMAGE_DIR)/lib, \
DEST := $(GRAAL_BUILDER_IMAGE_DIR)/lib, \
FILES := $(filter %$(STATIC_LIBRARY_SUFFIX), \
$(call FindFiles, $(STATIC_LIBS_IMAGE_DIR)/lib)), \
$(call FindFiles, $(STATIC_LIBS_GRAAL_IMAGE_DIR)/lib)), \
))
TARGETS += $(COPY_STATIC_LIBS)

View File

@@ -1,5 +1,5 @@
#
# 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,6 +29,7 @@ include $(SPEC)
include MakeBase.gmk
include Execute.gmk
include Modules.gmk
include Utils.gmk
JDK_TARGETS :=
JRE_TARGETS :=
@@ -39,7 +40,7 @@ $(eval $(call IncludeCustomExtension, Images-pre.gmk))
################################################################################
# All modules for the current target platform.
ALL_MODULES := $(call FindAllModules)
ALL_MODULES := $(call FindAllModules) $(EXTRA_MODULES)
$(eval $(call ReadImportMetaData))
@@ -54,7 +55,10 @@ JDK_MODULES_LIST := $(call CommaList, $(JDK_MODULES))
BASE_RELEASE_FILE := $(JDK_OUTPUTDIR)/release
JMODS := $(wildcard $(IMAGES_OUTPUTDIR)/jmods/*.jmod)
JMODS_DIRS := $(EXTRA_JMODS_DIR) $(IMAGES_OUTPUTDIR)/jmods
JDK_JMODS := $(foreach m, $(JDK_MODULES), $(firstword $(wildcard $(addsuffix /$m.jmod, $(JMODS_DIRS)))))
JRE_JMODS := $(foreach m, $(JRE_MODULES), $(firstword $(wildcard $(addsuffix /$m.jmod, $(JMODS_DIRS)))))
JLINK_ORDER_RESOURCES := **module-info.class
JLINK_JLI_CLASSES :=
@@ -71,7 +75,7 @@ JLINK_ORDER_RESOURCES += \
#
JLINK_TOOL := $(JLINK) -J-Djlink.debug=true \
--module-path $(IMAGES_OUTPUTDIR)/jmods \
--module-path $(call PathList, $(JMODS_DIRS)) \
--endian $(OPENJDK_TARGET_CPU_ENDIAN) \
--release-info $(BASE_RELEASE_FILE) \
--order-resources=$(call CommaList, $(JLINK_ORDER_RESOURCES)) \
@@ -87,12 +91,15 @@ endif
JLINK_DISABLE_WARNINGS := | ( $(GREP) -v -e "WARNING: Using incubator module" || test "$$?" = "1" )
JDK_IMAGE_SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jdk
JRE_IMAGE_SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jre
$(eval $(call SetupExecute, jlink_jdk, \
WARN := Creating jdk image, \
DEPS := $(JMODS) $(BASE_RELEASE_FILE) \
$(call DependOnVariable, JDK_MODULES_LIST), \
DEPS := $(JDK_JMODS) $(BASE_RELEASE_FILE) \
$(call DependOnVariable, JDK_MODULES_LIST, $(JDK_IMAGE_SUPPORT_DIR)/_jlink_jdk.vardeps), \
OUTPUT_DIR := $(JDK_IMAGE_DIR), \
SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jdk, \
SUPPORT_DIR := $(JDK_IMAGE_SUPPORT_DIR), \
PRE_COMMAND := $(RM) -r $(JDK_IMAGE_DIR), \
COMMAND := $(JLINK_TOOL) --add-modules $(JDK_MODULES_LIST) \
$(JLINK_JDK_EXTRA_OPTS) --output $(JDK_IMAGE_DIR) \
@@ -103,10 +110,10 @@ JLINK_JDK_TARGETS := $(jlink_jdk)
$(eval $(call SetupExecute, jlink_jre, \
WARN := Creating legacy jre image, \
DEPS := $(JMODS) $(BASE_RELEASE_FILE) \
$(call DependOnVariable, JDK_MODULES_LIST), \
DEPS := $(JRE_JMODS) $(BASE_RELEASE_FILE) \
$(call DependOnVariable, JRE_MODULES_LIST, $(JRE_IMAGE_SUPPORT_DIR)/_jlink_jre.vardeps), \
OUTPUT_DIR := $(JRE_IMAGE_DIR), \
SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jre, \
SUPPORT_DIR := $(JRE_IMAGE_SUPPORT_DIR), \
PRE_COMMAND := $(RM) -r $(JRE_IMAGE_DIR), \
COMMAND := $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \
$(JLINK_JRE_EXTRA_OPTS) --output $(JRE_IMAGE_DIR), \
@@ -142,7 +149,7 @@ define CreateCDSArchive
INFO := Using CDS flags for $1: $$($1_$2_CDS_DUMP_FLAGS), \
DEPS := $$(jlink_jdk), \
OUTPUT_FILE := $$(JDK_IMAGE_DIR)/$$($1_$2_CDS_ARCHIVE), \
SUPPORT_DIR := $$(SUPPORT_OUTPUTDIR)/images/jdk, \
SUPPORT_DIR := $$(JDK_IMAGE_SUPPORT_DIR), \
COMMAND := $$(FIXPATH) $$(JDK_IMAGE_DIR)/bin/java -Xshare:dump \
-XX:SharedArchiveFile=$$(JDK_IMAGE_DIR)/$$($1_$2_CDS_ARCHIVE) \
-$1 $$($1_$2_DUMP_EXTRA_ARG) $$($1_$2_CDS_DUMP_FLAGS) $$(LOG_INFO), \
@@ -155,7 +162,7 @@ define CreateCDSArchive
INFO := Using CDS flags for $1: $$($1_$2_CDS_DUMP_FLAGS), \
DEPS := $$(jlink_jre), \
OUTPUT_FILE := $$(JRE_IMAGE_DIR)/$$($1_$2_CDS_ARCHIVE), \
SUPPORT_DIR := $$(SUPPORT_OUTPUTDIR)/images/jre, \
SUPPORT_DIR := $$(JRE_IMAGE_SUPPORT_DIR), \
COMMAND := $$(FIXPATH) $$(JRE_IMAGE_DIR)/bin/java -Xshare:dump \
-XX:SharedArchiveFile=$$(JRE_IMAGE_DIR)/$$($1_$2_CDS_ARCHIVE) \
-$1 $$($1_$2_DUMP_EXTRA_ARG) $$($1_$2_CDS_DUMP_FLAGS) $$(LOG_INFO), \
@@ -267,9 +274,6 @@ else
endif
endif
FILTERED_PDBS := %jimage.stripped.pdb %jpackage.stripped.pdb %java.stripped.pdb \
%jimage.pdb %jpackage.pdb %java.pdb %jimage.map %jpackage.map %java.map
# Param 1 - either JDK or JRE
SetupCopyDebuginfo = \
$(foreach m, $(ALL_$1_MODULES), \
@@ -283,8 +287,8 @@ SetupCopyDebuginfo = \
$(eval $(call SetupCopyFiles, COPY_$1_CMDS_DEBUGINFO_$m, \
SRC := $(SUPPORT_OUTPUTDIR)/modules_cmds/$m, \
DEST := $($1_IMAGE_DIR)/$(CMDS_TARGET_SUBDIR), \
FILES := $(filter-out $(FILTERED_PDBS), $(call FindDebuginfoFiles, \
$(SUPPORT_OUTPUTDIR)/modules_cmds/$m)), \
FILES := $(call FindDebuginfoFiles, \
$(SUPPORT_OUTPUTDIR)/modules_cmds/$m), \
)) \
$(eval $1_TARGETS += $$(COPY_$1_CMDS_DEBUGINFO_$m)) \
)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 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
@@ -138,7 +138,10 @@ ifeq ($(HAS_SPEC),)
# The spec files depend on the autoconf source code. This check makes sure
# the configuration is up to date after changes to configure.
$(SPECS): $(wildcard $(topdir)/make/autoconf/*) \
$(if $(CUSTOM_CONFIG_DIR), $(wildcard $(CUSTOM_CONFIG_DIR)/*))
$(if $(CUSTOM_CONFIG_DIR), $(wildcard $(CUSTOM_CONFIG_DIR)/*)) \
$(addprefix $(topdir)/make/conf/, version-numbers.conf branding.conf) \
$(if $(CUSTOM_CONF_DIR), $(wildcard $(addprefix $(CUSTOM_CONF_DIR)/, \
version-numbers.conf branding.conf)))
ifeq ($(CONF_CHECK), fail)
@echo Error: The configuration is not up to date for \
"'$(lastword $(subst /, , $(dir $@)))'."

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

@@ -1,5 +1,5 @@
#
# 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
@@ -46,8 +46,10 @@ JIMAGE_PKGS := \
jdk/internal/jrtfs \
#
# Compile jrt-fs.jar with the interim compiler, as it
# ends up in the image, this will ensure reproducible classes
$(eval $(call SetupJavaCompilation, BUILD_JRTFS, \
COMPILER := bootjdk, \
COMPILER := interim, \
DISABLED_WARNINGS := options, \
TARGET_RELEASE := $(TARGET_RELEASE_JDK8), \
SRC := $(TOPDIR)/src/java.base/share/classes, \

View File

@@ -233,6 +233,7 @@ ALL_TARGETS += $(LAUNCHER_TARGETS)
HOTSPOT_VARIANT_TARGETS := $(addprefix hotspot-, $(JVM_VARIANTS))
HOTSPOT_VARIANT_GENSRC_TARGETS := $(addsuffix -gensrc, $(HOTSPOT_VARIANT_TARGETS))
HOTSPOT_VARIANT_LIBS_TARGETS := $(addsuffix -libs, $(HOTSPOT_VARIANT_TARGETS))
HOTSPOT_VARIANT_STATIC_LIBS_TARGETS := $(addsuffix -static-libs, $(HOTSPOT_VARIANT_TARGETS))
define DeclareHotspotGensrcRecipe
hotspot-$1-gensrc:
@@ -251,6 +252,14 @@ endef
$(foreach v, $(JVM_VARIANTS), $(eval $(call DeclareHotspotLibsRecipe,$v)))
define DeclareHotspotStaticLibsRecipe
hotspot-$1-static-libs:
+($(CD) $(TOPDIR)/make/hotspot && $(MAKE) $(MAKE_ARGS) -f lib/CompileLibraries.gmk \
JVM_VARIANT=$1 STATIC_LIBS=true)
endef
$(foreach v, $(JVM_VARIANTS), $(eval $(call DeclareHotspotStaticLibsRecipe,$v)))
$(eval $(call SetupTarget, hotspot-ide-project, \
MAKEFILE := ide/visualstudio/hotspot/CreateVSProject, \
DEPS := hotspot exploded-image, \
@@ -298,7 +307,7 @@ $(eval $(call SetupTarget, eclipse-shared-mixed-env, \
))
ALL_TARGETS += $(HOTSPOT_VARIANT_TARGETS) $(HOTSPOT_VARIANT_GENSRC_TARGETS) \
$(HOTSPOT_VARIANT_LIBS_TARGETS)
$(HOTSPOT_VARIANT_LIBS_TARGETS) $(HOTSPOT_VARIANT_STATIC_LIBS_TARGETS)
################################################################################
# Help and user support
@@ -462,6 +471,12 @@ $(eval $(call SetupTarget, symbols-image, \
$(eval $(call SetupTarget, static-libs-image, \
MAKEFILE := StaticLibsImage, \
TARGET := static-libs-image, \
))
$(eval $(call SetupTarget, static-libs-graal-image, \
MAKEFILE := StaticLibsImage, \
TARGET := static-libs-graal-image, \
))
$(eval $(call SetupTarget, mac-jdk-bundle, \
@@ -489,7 +504,7 @@ $(eval $(call SetupTarget, exploded-image-optimize, \
$(eval $(call SetupTarget, graal-builder-image, \
MAKEFILE := GraalBuilderImage, \
DEPS := jdk-image static-libs-image, \
DEPS := jdk-image static-libs-graal-image, \
))
ifeq ($(JCOV_ENABLED), true)
@@ -836,6 +851,12 @@ $(eval $(call SetupTarget, static-libs-bundles, \
DEPS := static-libs-image, \
))
$(eval $(call SetupTarget, static-libs-graal-bundles, \
MAKEFILE := Bundles, \
TARGET := static-libs-graal-bundles, \
DEPS := static-libs-graal-image, \
))
ifeq ($(JCOV_ENABLED), true)
$(eval $(call SetupTarget, jcov-bundles, \
MAKEFILE := Bundles, \
@@ -889,6 +910,7 @@ else
$(foreach v, $(JVM_VARIANTS), \
$(eval hotspot-$v-gensrc: java.base-copy buildtools-hotspot) \
$(eval hotspot-$v-libs: hotspot-$v-gensrc java.base-copy) \
$(eval hotspot-$v-static-libs: hotspot-$v-gensrc java.base-copy) \
)
# If not already set, set the JVM variant target so that the JVM will be built.
@@ -951,11 +973,15 @@ else
jdk.compiler-gendata: $(GENSRC_MODULEINFO_TARGETS)
# Declare dependencies between jmod targets.
# java.base jmod needs jrt-fs.jar and access to the other jmods to be built.
# java.base jmod needs jrt-fs.jar and access to the jmods for all non
# upgradeable modules and their transitive dependencies.
# When creating the BUILDJDK, we don't need to add hashes to java.base, thus
# we don't need to depend on all other jmods
ifneq ($(CREATING_BUILDJDK), true)
java.base-jmod: jrtfs-jar $(filter-out java.base-jmod, $(JMOD_TARGETS))
java.base-jmod: jrtfs-jar $(addsuffix -jmod, $(filter-out java.base, $(sort \
$(foreach m, $(filter-out $(call FindAllUpgradeableModules), $(JMOD_MODULES)), \
$m $(call FindTransitiveDepsForModules, $m) \
))))
endif
# If not already set, set the JVM target so that the JVM will be built.
@@ -1047,7 +1073,9 @@ else
symbols-image: $(LIBS_TARGETS) $(LAUNCHER_TARGETS)
static-libs-image: $(STATIC_LIBS_TARGETS)
static-libs-image: hotspot-static-libs $(STATIC_LIBS_TARGETS)
static-libs-graal-image: $(STATIC_LIBS_TARGETS)
bootcycle-images: jdk-image
@@ -1097,6 +1125,7 @@ hotspot: $(HOTSPOT_VARIANT_TARGETS)
$(foreach v, $(JVM_VARIANTS), \
$(eval hotspot-libs: hotspot-$v-libs) \
$(eval hotspot-gensrc: hotspot-$v-gensrc) \
$(eval hotspot-static-libs: hotspot-$v-static-libs) \
)
gensrc: $(GENSRC_TARGETS)
@@ -1259,7 +1288,8 @@ all-images: product-images test-image all-docs-images
# all-bundles packages all our deliverables as tar.gz bundles.
all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-gensrc gensrc gendata \
ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-static-libs \
hotspot-gensrc gensrc gendata \
copy java libs static-libs launchers jmods \
jdk.jdwp.agent-gensrc $(ALL_MODULES) demos \
exploded-image-base exploded-image runnable-buildjdk \
@@ -1401,19 +1431,27 @@ ALL_TARGETS += $(addsuffix -only, $(filter-out dist-clean clean%, $(ALL_TARGETS)
# are internal only, to support Init.gmk.
print-targets:
@$(ECHO) $(sort $(ALL_TARGETS))
$(info $(subst $(SPACE),$(NEWLINE),$(sort $(ALL_TARGETS))))
print-modules:
@$(ECHO) $(sort $(ALL_MODULES))
$(info $(subst $(SPACE),$(NEWLINE),$(sort $(ALL_MODULES))))
print-tests:
@$(ECHO) $(sort $(ALL_NAMED_TESTS))
$(info $(subst $(SPACE),$(NEWLINE),$(sort $(ALL_NAMED_TESTS))))
create-main-targets-include:
$(call LogInfo, Generating main target list)
@$(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

@@ -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
@@ -38,11 +38,16 @@ _MAINSUPPORT_GMK := 1
# TARGET the makefile target
# ARGS arguments to the makefile
# DEPS the target(s) this new rule depends on
# DIR the directory of the makefile (defaults to $(TOPDIR)/make)
#
SetupTarget = $(NamedParamsMacroTemplate)
define SetupTargetBody
ifeq ($$($1_DIR), )
$1_DIR := $(TOPDIR)/make
endif
$1:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f $$($1_MAKEFILE).gmk $$($1_TARGET) $$($1_ARGS))
+($(CD) $$($1_DIR) && $(MAKE) $(MAKE_ARGS) -f $$($1_MAKEFILE).gmk $$($1_TARGET) $$($1_ARGS))
ALL_TARGETS += $1

View File

@@ -178,7 +178,8 @@ ifeq ($(TEST_JOBS), 0)
c = c * $(TEST_JOBS_FACTOR_JDL); \
c = c * $(TEST_JOBS_FACTOR_MACHINE); \
if (c < 1) c = 1; \
printf "%.0f", c; \
c = c + 0.5; \
printf "%d", c; \
}')
endif
@@ -356,7 +357,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 .sh,,$(subst .html,,$(subst .java,,$(suffix $(notdir $1)))))
$(subst .jasm,,$(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
@@ -800,8 +801,10 @@ define SetupRunJtregTestBody
$1_JTREG_BASIC_OPTIONS += -e:JIB_DATA_DIR
# If running on Windows, propagate the _NT_SYMBOL_PATH to enable
# symbol lookup in hserr files
# The minidumps are disabled by default on client Windows, so enable them
ifeq ($$(call isTargetOs, windows), true)
$1_JTREG_BASIC_OPTIONS += -e:_NT_SYMBOL_PATH
$1_JTREG_BASIC_OPTIONS += -vmoption:-XX:+CreateCoredumpOnCrash
else ifeq ($$(call isTargetOs, linux), true)
$1_JTREG_BASIC_OPTIONS += -e:_JVM_DWARF_PATH=$$(SYMBOLS_IMAGE_DIR)
endif
@@ -860,11 +863,12 @@ define SetupRunJtregTestBody
$$(eval $$(call SetupRunJtregTestCustom, $1))
clean-workdir-$1:
clean-outputdirs-$1:
$$(RM) -r $$($1_TEST_SUPPORT_DIR)
$$(RM) -r $$($1_TEST_RESULTS_DIR)
$1_COMMAND_LINE := \
$$(JAVA) $$($1_JTREG_LAUNCHER_OPTIONS) \
$$(JTREG_JAVA) $$($1_JTREG_LAUNCHER_OPTIONS) \
-Dprogram=jtreg -jar $$(JT_HOME)/lib/jtreg.jar \
$$($1_JTREG_BASIC_OPTIONS) \
-testjdk:$$(JDK_UNDER_TEST) \
@@ -907,7 +911,7 @@ define SetupRunJtregTestBody
done
endif
run-test-$1: pre-run-test clean-workdir-$1
run-test-$1: pre-run-test clean-outputdirs-$1
$$(call LogWarn)
$$(call LogWarn, Running test '$$($1_TEST)')
$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR) \
@@ -944,9 +948,9 @@ define SetupRunJtregTestBody
$$(eval $1_TOTAL := 1) \
)
$1: run-test-$1 parse-test-$1 clean-workdir-$1
$1: run-test-$1 parse-test-$1 clean-outputdirs-$1
TARGETS += $1 run-test-$1 parse-test-$1 clean-workdir-$1
TARGETS += $1 run-test-$1 parse-test-$1 clean-outputdirs-$1
TEST_TARGETS += parse-test-$1
endef

View File

@@ -122,6 +122,7 @@ $(eval $(call SetupVariable,JT_HOME))
$(eval $(call SetupVariable,JDK_IMAGE_DIR,$(OUTPUTDIR)/images/jdk))
$(eval $(call SetupVariable,TEST_IMAGE_DIR,$(OUTPUTDIR)/images/test))
$(eval $(call SetupVariable,SYMBOLS_IMAGE_DIR,$(OUTPUTDIR)/images/symbols,NO_CHECK))
$(eval $(call SetupVariable,JTREG_JDK,$(BOOT_JDK)))
# Provide default values for tools that we need
$(eval $(call SetupVariable,MAKE,make,NO_CHECK))
@@ -157,6 +158,10 @@ ifeq ($(UNAME_OS), CYGWIN)
OPENJDK_TARGET_OS := windows
OPENJDK_TARGET_OS_TYPE := windows
OPENJDK_TARGET_OS_ENV := windows.cygwin
else ifeq ($(UNAME_OS), MINGW64)
OPENJDK_TARGET_OS := windows
OPENJDK_TARGET_OS_TYPE := windows
OPENJDK_TARGET_OS_ENV := windows.msys2
else
OPENJDK_TARGET_OS_TYPE:=unix
ifeq ($(UNAME_OS), Linux)
@@ -169,6 +174,9 @@ else
OPENJDK_TARGET_OS_ENV := $(OPENJDK_TARGET_OS)
endif
# Sanity check env detection
$(info Detected target OS, type and env: [$(OPENJDK_TARGET_OS)] [$(OPENJDK_TARGET_OS_TYPE)] [$(OPENJDK_TARGET_OS_ENV)])
# Assume little endian unless otherwise specified
OPENJDK_TARGET_CPU_ENDIAN := little
@@ -248,6 +256,7 @@ $(call CreateNewSpec, $(NEW_SPEC), \
TOPDIR := $(TOPDIR), \
OUTPUTDIR := $(OUTPUTDIR), \
BOOT_JDK := $(BOOT_JDK), \
JTREG_JDK := $(JTREG_JDK), \
JT_HOME := $(JT_HOME), \
JDK_IMAGE_DIR := $(JDK_IMAGE_DIR), \
JCOV_IMAGE_DIR := $(JCOV_IMAGE_DIR), \

View File

@@ -124,6 +124,8 @@ JAR := $(FIXPATH) $(JAR_CMD)
JLINK := $(FIXPATH) $(JLINK_CMD)
JMOD := $(FIXPATH) $(JMOD_CMD)
JTREG_JAVA := $(FIXPATH) $(JTREG_JDK)/bin/java $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
BUILD_JAVA := $(JDK_IMAGE_DIR)/bin/JAVA
################################################################################
# Some common tools. Assume most common name and no path.

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -38,19 +38,43 @@ ALL_MODULES = $(call FindAllModules)
TARGETS :=
ifneq ($(filter static-libs-image, $(MAKECMDGOALS)), )
IMAGE_DEST_DIR=$(STATIC_LIBS_IMAGE_DIR)/lib
else ifneq ($(filter static-libs-graal-image, $(MAKECMDGOALS)), )
IMAGE_DEST_DIR=$(STATIC_LIBS_GRAAL_IMAGE_DIR)/lib
endif
# Copy JDK static libs to the image.
$(foreach m, $(ALL_MODULES), \
$(eval $(call SetupCopyFiles, COPY_STATIC_LIBS_$m, \
FLATTEN := true, \
SRC := $(SUPPORT_OUTPUTDIR)/native/$m, \
DEST := $(STATIC_LIBS_IMAGE_DIR)/lib, \
DEST := $(IMAGE_DEST_DIR), \
FILES := $(filter %$(STATIC_LIBRARY_SUFFIX), \
$(call FindFiles, $(SUPPORT_OUTPUTDIR)/native/$m/*/static)), \
)) \
$(eval TARGETS += $$(COPY_STATIC_LIBS_$m)) \
$(eval STATIC_LIBS_TARGETS += $$(COPY_STATIC_LIBS_$m)) \
)
ifneq ($(filter static-libs-image, $(MAKECMDGOALS)), )
# Copy libjvm static library to the image.
$(foreach v, $(JVM_VARIANTS), \
$(eval $(call SetupCopyFiles, COPY_STATIC_LIBS_$v, \
SRC := $(HOTSPOT_OUTPUTDIR)/variant-$v/libjvm/objs/static, \
DEST := $(IMAGE_DEST_DIR)/$v, \
FILES := $(wildcard $(HOTSPOT_OUTPUTDIR)/variant-$v/libjvm/objs/static/*$(STATIC_LIBRARY_SUFFIX)), \
)) \
$(eval TARGETS += $$(COPY_STATIC_LIBS_$v)) \
$(eval HOTSPOT_VARIANT_STATIC_LIBS_TARGETS += $$(COPY_STATIC_LIBS_$v)) \
)
endif
################################################################################
static-libs-image: $(HOTSPOT_VARIANT_STATIC_LIBS_TARGETS) $(STATIC_LIBS_TARGETS)
static-libs-graal-image: $(STATIC_LIBS_TARGETS)
all: $(TARGETS)
.PHONY: all

View File

@@ -76,8 +76,8 @@ TOOL_GENERATECACERTS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_class
-Dkeystore.pkcs12.macAlgorithm=NONE \
build.tools.generatecacerts.GenerateCacerts
TOOL_GENERATEEMOJIDATA = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
build.tools.generateemojidata.GenerateEmojiData
TOOL_GENERATEEXTRAPROPERTIES = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
build.tools.generateextraproperties.GenerateExtraProperties
TOOL_MAKEZIPREPRODUCIBLE = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
build.tools.makezipreproducible.MakeZipReproducible
@@ -137,4 +137,7 @@ PANDOC_HTML_MANPAGE_FILTER := $(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-html-manpa
##########################################################################################
# Hook to include the corresponding custom post file, if present.
$(eval $(call IncludeCustomExtension, ToolsJdk-post.gmk))
endif # _TOOLS_GMK

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2020, 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
@@ -41,7 +41,6 @@ $(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP, \
modules/java.base/sun/security/internal/interfaces \
modules/java.base/sun/security/internal/spec \
modules/java.base/com/sun/crypto/provider \
modules/jdk.crypto.ec/sun/security/ec \
modules/jdk.crypto.mscapi/sun/security/mscapi \
modules/jdk.crypto.cryptoki/sun/security/pkcs11 \
modules/jdk.crypto.cryptoki/sun/security/pkcs11/wrapper \
@@ -88,9 +87,9 @@ ifeq ($(call isTargetOs, windows), true)
$(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP, \
SRC := $(SUPPORT_OUTPUTDIR), \
INCLUDE_FILES := modules_libs/java.security.jgss/w2k_lsa_auth.dll \
modules_libs/java.security.jgss/w2k_lsa_auth.diz \
modules_libs/java.security.jgss/w2k_lsa_auth.map \
modules_libs/java.security.jgss/w2k_lsa_auth.pdb, \
modules_libs/java.security.jgss/w2k_lsa_auth.dll.diz \
modules_libs/java.security.jgss/w2k_lsa_auth.dll.map \
modules_libs/java.security.jgss/w2k_lsa_auth.dll.pdb, \
ZIP := $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)))
TARGETS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)

View File

@@ -406,9 +406,9 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
# WARNING: This might be a bad thing to do. You need to be sure you want to
# have a configuration in this directory. Do some sanity checks!
if test ! -e "$OUTPUTDIR/spec.gmk"; then
# If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
# other files
if test ! -e "$OUTPUTDIR/spec.gmk" && test ! -e "$OUTPUTDIR/configure-support/generated-configure.sh"; then
# If we have a spec.gmk or configure-support/generated-configure.sh,
# we have run here before and we are OK. Otherwise, check for other files
files_present=`$LS $OUTPUTDIR`
# Configure has already touched config.log and confdefs.h in the current dir when this check
# is performed.
@@ -423,8 +423,9 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
AC_MSG_NOTICE([Current directory is $CONFIGURE_START_DIR.])
AC_MSG_NOTICE([Since this is not the source root, configure will output the configuration here])
AC_MSG_NOTICE([(as opposed to creating a configuration in <src_root>/build/<conf-name>).])
AC_MSG_NOTICE([However, this directory is not empty. This is not allowed, since it could])
AC_MSG_NOTICE([seriously mess up just about everything.])
AC_MSG_NOTICE([However, this directory is not empty, additionally to some allowed files])
AC_MSG_NOTICE([it contains $filtered_files.])
AC_MSG_NOTICE([This is not allowed, since it could seriously mess up just about everything.])
AC_MSG_NOTICE([Try 'cd $TOPDIR' and restart configure])
AC_MSG_NOTICE([(or create a new empty directory and cd to it).])
AC_MSG_ERROR([Will not continue creating configuration in $CONFIGURE_START_DIR])
@@ -478,7 +479,7 @@ 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
if "$DF -T local > /dev/null 2>&1"; then
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'

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

@@ -243,8 +243,11 @@ AC_DEFUN([BPERF_SETUP_CCACHE_USAGE],
fi
fi
# The CCACHE_BASEDIR needs to end with '/' as ccache will otherwise think
# directories next to it, that have the base dir name as a prefix, are sub
# directories of CCACHE_BASEDIR.
CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \
CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE"
CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$WORKSPACE_ROOT/ $CCACHE"
if test "x$SET_CCACHE_DIR" != x; then
mkdir -p $CCACHE_DIR > /dev/null 2>&1

View File

@@ -522,7 +522,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
# do this on s390x also for libjvm (where serviceability agent is not supported)
if test "x$ENABLE_LINKTIME_GC" = xtrue; then
TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK -ffunction-sections -fdata-sections"
if test "x$OPENJDK_TARGET_CPU" = xs390x; then
if test "x$OPENJDK_TARGET_CPU" = xs390x && test "x$DEBUG_LEVEL" == xrelease; then
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -ffunction-sections -fdata-sections"
fi
fi
@@ -560,8 +560,10 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
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"
TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:preprocessor -Zc:strictStrings -Zc:wchar_t-"
# The -utf-8 option sets source and execution character sets to UTF-8 to enable correct
# compilation of all source files regardless of the active code page on Windows.
TOOLCHAIN_CFLAGS_JVM="-nologo -MD -Zc:preprocessor -Zc:strictStrings -Zc:inline -utf-8 -MP"
TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:preprocessor -Zc:strictStrings -Zc:inline -utf-8 -Zc:wchar_t-"
fi
# CFLAGS C language level for JDK sources (hotspot only uses C++)
@@ -797,15 +799,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
$1_TOOLCHAIN_CFLAGS="${$1_GCC6_CFLAGS}"
$1_WARNING_CFLAGS_JVM="-Wno-format-zero-length -Wtype-limits -Wuninitialized"
elif test "x$TOOLCHAIN_TYPE" = xclang; then
NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$NO_DELETE_NULL_POINTER_CHECKS_CFLAG],
PREFIX: $3,
IF_FALSE: [
NO_DELETE_NULL_POINTER_CHECKS_CFLAG=
]
)
$1_TOOLCHAIN_CFLAGS="${NO_DELETE_NULL_POINTER_CHECKS_CFLAG}"
fi
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
@@ -816,6 +809,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
REPRODUCIBLE_CFLAGS=
]
)
AC_SUBST(REPRODUCIBLE_CFLAGS)
fi
# Prevent the __FILE__ macro from generating absolute paths into the built
@@ -849,6 +843,22 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
FILE_MACRO_CFLAGS=
]
)
if test "x$FILE_MACRO_CFLAGS" != x; then
# Add -pathmap for all VS system include paths using Windows
# full Long path name that is generated by the compiler
# Not enabled under WSL as there is no easy way to obtain the
# Windows full long paths, thus reproducible WSL builds will
# depend on building with the same VS toolchain install location.
if test "x$OPENJDK_BUILD_OS_ENV" != "xwindows.wsl1" && test "x$OPENJDK_BUILD_OS_ENV" != "xwindows.wsl2"; then
for ipath in ${$3SYSROOT_CFLAGS}; do
if test "x${ipath:0:2}" == "x-I"; then
ipath_path=${ipath#"-I"}
UTIL_FIXUP_WIN_LONG_PATH(ipath_path)
FILE_MACRO_CFLAGS="$FILE_MACRO_CFLAGS -pathmap:\"$ipath_path\"=vsi"
fi
done
fi
fi
fi
AC_MSG_CHECKING([how to prevent absolute paths in output])
@@ -926,17 +936,12 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
# $2 - Prefix for compiler variables (either BUILD_ or nothing).
AC_DEFUN([FLAGS_SETUP_GCC6_COMPILER_FLAGS],
[
# These flags are required for GCC 6 builds as undefined behavior in OpenJDK code
# runs afoul of the more aggressive versions of these optimizations.
# Notably, value range propagation now assumes that the this pointer of C++
# member functions is non-null.
NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$NO_DELETE_NULL_POINTER_CHECKS_CFLAG],
PREFIX: $2, IF_FALSE: [NO_DELETE_NULL_POINTER_CHECKS_CFLAG=""])
# This flag is required for GCC 6 builds as undefined behavior in OpenJDK code
# runs afoul of the more aggressive versions of this optimization.
NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse"
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$NO_LIFETIME_DSE_CFLAG],
PREFIX: $2, IF_FALSE: [NO_LIFETIME_DSE_CFLAG=""])
$1_GCC6_CFLAGS="${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}"
$1_GCC6_CFLAGS="${NO_LIFETIME_DSE_CFLAG}"
])
AC_DEFUN_ONCE([FLAGS_SETUP_BRANCH_PROTECTION],

View File

@@ -60,7 +60,8 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
# Add -z,defs, to forbid undefined symbols in object files.
# add -z,relro (mark relocations read only) for all libs
# add -z,now ("full relro" - more of the Global Offset Table GOT is marked read only)
BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now"
# add --no-as-needed to disable default --as-needed link flag on some GCC toolchains
BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,--no-as-needed"
# Linux : remove unused code+data in link step
if test "x$ENABLE_LINKTIME_GC" = xtrue; then
if test "x$OPENJDK_TARGET_CPU" = xs390x; then
@@ -72,9 +73,14 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
BASIC_LDFLAGS_JVM_ONLY=""
LDFLAGS_CXX_PARTIAL_LINKING="$MACHINE_FLAG -r"
elif test "x$TOOLCHAIN_TYPE" = xclang; then
BASIC_LDFLAGS_JVM_ONLY="-mno-omit-leaf-frame-pointer -mstack-alignment=16 \
-fPIC"
LDFLAGS_CXX_PARTIAL_LINKING="$MACHINE_FLAG -r"
if test "x$OPENJDK_TARGET_OS" = xaix; then
BASIC_LDFLAGS="-Wl,-b64 -Wl,-brtl -Wl,-bnorwexec -Wl,-bnolibpath -Wl,-bnoexpall \
-Wl,-bernotok -Wl,-bdatapsize:64k -Wl,-btextpsize:64k -Wl,-bstackpsize:64k"
@@ -161,6 +167,7 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
# Export some intermediate variables for compatibility
LDFLAGS_CXX_JDK="$BASIC_LDFLAGS_ONLYCXX $BASIC_LDFLAGS_ONLYCXX_JDK_ONLY $DEBUGLEVEL_LDFLAGS_JDK_ONLY"
AC_SUBST(LDFLAGS_CXX_JDK)
AC_SUBST(LDFLAGS_CXX_PARTIAL_LINKING)
])
################################################################################

View File

@@ -88,6 +88,16 @@ AC_DEFUN([FLAGS_SETUP_RCFLAGS],
AC_SUBST(RCFLAGS)
])
AC_DEFUN([FLAGS_SETUP_NMFLAGS],
[
# On AIX, we need to set NM flag -X64 for processing 64bit object files
if test "x$OPENJDK_TARGET_OS" = xaix; then
NMFLAGS="-X64"
fi
AC_SUBST(NMFLAGS)
])
################################################################################
# platform independent
AC_DEFUN([FLAGS_SETUP_ASFLAGS],

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2021, 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,16 +128,12 @@ AC_DEFUN([FLAGS_SETUP_MACOSX_VERSION],
# The expected format for <version> is either nn.n.n or nn.nn.nn. See
# /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityVersions.h
# MACOSX_VERSION_MIN specifies the lowest version of Macosx that the built
# MACOSX_VERSION_MIN specifies the lowest version of macOS that the built
# binaries should be compatible with, even if compiled on a newer version
# of the OS. It currently has a hard coded value. Setting this also limits
# exposure to API changes in header files. Bumping this is likely to
# require code changes to build.
if test "x$OPENJDK_TARGET_CPU_ARCH" = xaarch64; then
MACOSX_VERSION_MIN=11.00.00
else
MACOSX_VERSION_MIN=10.12.0
fi
MACOSX_VERSION_MIN=11.00.00
MACOSX_VERSION_MIN_NODOTS=${MACOSX_VERSION_MIN//\./}
AC_SUBST(MACOSX_VERSION_MIN)
@@ -301,6 +297,7 @@ AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
EXTRA_LDFLAGS="$MACHINE_FLAG $USER_LDFLAGS"
EXTRA_ASFLAGS="$USER_ASFLAGS"
AC_SUBST(MACHINE_FLAG)
AC_SUBST(EXTRA_CFLAGS)
AC_SUBST(EXTRA_CXXFLAGS)
AC_SUBST(EXTRA_LDFLAGS)
@@ -428,6 +425,7 @@ AC_DEFUN([FLAGS_SETUP_FLAGS],
FLAGS_SETUP_ARFLAGS
FLAGS_SETUP_STRIPFLAGS
FLAGS_SETUP_RCFLAGS
FLAGS_SETUP_NMFLAGS
FLAGS_SETUP_ASFLAGS
FLAGS_SETUP_ASFLAGS_CPU_DEP([TARGET])

View File

@@ -234,6 +234,31 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
fi
AC_SUBST(HOTSPOT_OVERRIDE_LIBPATH)
# Should we build the client for the JAWS screen reader?
if test "x$OPENJDK_TARGET_OS" = xwindows; then
AC_MSG_CHECKING([if JAWS client support is enabled])
A11Y_JAWS_ANNOUNCING_ENABLED=true
AC_ARG_ENABLE(
[jaws-client],
[AS_HELP_STRING([--disable-jaws-client], [Set to disable to exclude the client for the JAWS screen reader from the build])],
[
if test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
AC_MSG_WARN([--[enable|disable]-jaws-client[=*] flags are ignored for headless builds])
elif test "x$enableval" != xyes; then
A11Y_JAWS_ANNOUNCING_ENABLED=false
fi
]
)
if test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
A11Y_JAWS_ANNOUNCING_ENABLED=false
fi
AC_MSG_RESULT([$A11Y_JAWS_ANNOUNCING_ENABLED])
else
A11Y_JAWS_ANNOUNCING_ENABLED=false
fi
AC_SUBST(A11Y_JAWS_ANNOUNCING_ENABLED)
])
###############################################################################
@@ -822,6 +847,9 @@ AC_DEFUN([JDKOPT_CHECK_CODESIGN_PARAMS],
$RM "$CODESIGN_TESTFILE"
$TOUCH "$CODESIGN_TESTFILE"
CODESIGN_SUCCESS=false
$ECHO "check codesign, calling $CODESIGN $PARAMS $CODESIGN_TESTFILE" >&AS_MESSAGE_LOG_FD
eval \"$CODESIGN\" $PARAMS \"$CODESIGN_TESTFILE\" 2>&AS_MESSAGE_LOG_FD \
>&AS_MESSAGE_LOG_FD && CODESIGN_SUCCESS=true
$RM "$CODESIGN_TESTFILE"

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2016, 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
@@ -68,12 +68,20 @@ AC_DEFUN_ONCE([LIB_SETUP_CUPS],
fi
fi
if test "x$CUPS_FOUND" = xno; then
# Are the cups headers installed in the default /usr/include location?
AC_CHECK_HEADERS([cups/cups.h cups/ppd.h], [
CUPS_FOUND=yes
CUPS_CFLAGS=
DEFAULT_CUPS=yes
])
# Are the cups headers installed in the default AIX or /usr/include location?
if test "x$OPENJDK_TARGET_OS" = "xaix"; then
AC_CHECK_HEADERS([/opt/freeware/include/cups/cups.h /opt/freeware/include/cups/ppd.h], [
CUPS_FOUND=yes
CUPS_CFLAGS="-I/opt/freeware/include"
DEFAULT_CUPS=yes
])
else
AC_CHECK_HEADERS([cups/cups.h cups/ppd.h], [
CUPS_FOUND=yes
CUPS_CFLAGS=
DEFAULT_CUPS=yes
])
fi
fi
if test "x$CUPS_FOUND" = xno; then
HELP_MSG_MISSING_DEPENDENCY([cups])

View File

@@ -57,7 +57,11 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBFFI],
if test "x${with_libffi}" != x; then
LIBFFI_LIB_PATH="${with_libffi}/lib"
LIBFFI_LIBS="-L${with_libffi}/lib -lffi"
if test "x${OPENJDK_TARGET_OS}" != "xwindows"; then
LIBFFI_LIBS="-L${with_libffi}/lib -lffi"
else
LIBFFI_LIBS="${with_libffi}/lib/libffi.lib"
fi
LIBFFI_CFLAGS="-I${with_libffi}/include"
LIBFFI_FOUND=yes
fi
@@ -67,7 +71,11 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBFFI],
fi
if test "x${with_libffi_lib}" != x; then
LIBFFI_LIB_PATH="${with_libffi_lib}"
LIBFFI_LIBS="-L${with_libffi_lib} -lffi"
if test "x${OPENJDK_TARGET_OS}" != "xwindows"; then
LIBFFI_LIBS="-L${with_libffi_lib} -lffi"
else
LIBFFI_LIBS="${with_libffi_lib}/libffi.lib"
fi
LIBFFI_FOUND=yes
fi
# Do not try pkg-config if we have a sysroot set.
@@ -106,12 +114,13 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBFFI],
AC_MSG_ERROR([Could not find libffi! $HELP_MSG])
fi
AC_MSG_CHECKING([if libffi works])
AC_LANG_PUSH(C)
OLD_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $LIBFFI_CFLAGS"
OLD_LIBS="$LIBS"
LIBS="$LIBS $LIBFFI_LIBS"
AC_MSG_CHECKING([if libffi works])
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <ffi.h>],
[
ffi_call(NULL, NULL, NULL, NULL);
@@ -120,9 +129,6 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBFFI],
[LIBFFI_WORKS=yes],
[LIBFFI_WORKS=no]
)
CFLAGS="$OLD_CFLAGS"
LIBS="$OLD_LIBS"
AC_LANG_POP(C)
AC_MSG_RESULT([$LIBFFI_WORKS])
if test "x$LIBFFI_WORKS" = xno; then
@@ -130,39 +136,71 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBFFI],
AC_MSG_ERROR([Found libffi but could not link and compile with it. $HELP_MSG])
fi
# Check if FFI_GO_CLOSURES is properly defined. On some distributions, notably MacOS AArch64,
# ffitarget.h (included from ffi.h) does not explicitly define FFI_GO_CLOSURES. This makes the
# further include of ffi.h trigger the "FFI_GO_CLOSURES is undefined" warning, which fails
# the build when warnings are fatal.
AC_MSG_CHECKING([for FFI_GO_CLOSURES definition])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
#include <ffi.h>
#ifndef FFI_GO_CLOSURES
#error "FFI_GO_CLOSURES is not defined"
#endif
][])],
[
AC_MSG_RESULT([yes])
],
[
AC_MSG_RESULT([no, defining])
LIBFFI_CFLAGS="$LIBFFI_CFLAGS -DFFI_GO_CLOSURES=0"
]
)
CFLAGS="$OLD_CFLAGS"
LIBS="$OLD_LIBS"
AC_LANG_POP(C)
# Find the libffi.so.X to bundle
if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then
if test "x${OPENJDK_TARGET_OS}" = "xmacosx"; then
LIBFFI_LIB_FILE_NAME=libffi.?.dylib
elif test "x${OPENJDK_TARGET_OS}" = "xwindows"; then
LIBFFI_LIB_FILE_NAME=libffi.dll
else
LIBFFI_LIB_FILE_NAME=libffi.so.?
fi
AC_MSG_CHECKING([for libffi lib file location])
if test "x${LIBFFI_LIB_PATH}" != x; then
if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then
LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?"
if test -e ${LIBFFI_LIB_PATH}/${LIBFFI_LIB_FILE_NAME}; then
LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/${LIBFFI_LIB_FILE_NAME}"
else
AC_MSG_ERROR([Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}])
AC_MSG_ERROR([Could not locate ${LIBFFI_LIB_FILE_NAME} for bundling in ${LIBFFI_LIB_PATH}])
fi
else
# If we don't have an explicit path, look in a few obvious places
if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then
if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then
LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?"
elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then
LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?"
if test -e ${SYSROOT}/usr/lib/${LIBFFI_LIB_FILE_NAME} ; then
LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/${LIBFFI_LIB_FILE_NAME}"
elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/${LIBFFI_LIB_FILE_NAME} ; then
LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/${LIBFFI_LIB_FILE_NAME}"
else
AC_MSG_ERROR([Could not locate libffi.so.? for bundling])
AC_MSG_ERROR([Could not locate ${LIBFFI_LIB_FILE_NAME} for bundling])
fi
elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64" || test "x${OPENJDK_TARGET_CPU}" = "xaarch64"; then
if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then
LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?"
elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then
LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?"
if test -e ${SYSROOT}/usr/lib64/${LIBFFI_LIB_FILE_NAME} ; then
LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/${LIBFFI_LIB_FILE_NAME}"
elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/${LIBFFI_LIB_FILE_NAME} ; then
LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/${LIBFFI_LIB_FILE_NAME}"
else
AC_MSG_ERROR([Could not locate libffi.so.? for bundling])
AC_MSG_ERROR([Could not locate ${LIBFFI_LIB_FILE_NAME} for bundling])
fi
else
# Fallback on the default /usr/lib dir
if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then
LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?"
if test -e ${SYSROOT}/usr/lib/${LIBFFI_LIB_FILE_NAME} ; then
LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/${LIBFFI_LIB_FILE_NAME}"
else
AC_MSG_ERROR([Could not locate libffi.so.? for bundling])
AC_MSG_ERROR([Could not locate ${LIBFFI_LIB_FILE_NAME} for bundling])
fi
fi
fi

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2021, 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
@@ -134,7 +134,8 @@ AC_DEFUN([LIB_BUILD_BINUTILS],
BINUTILS_SRC="$with_binutils_src"
UTIL_FIXUP_PATH(BINUTILS_SRC)
BINUTILS_DIR="$CONFIGURESUPPORT_OUTPUTDIR/binutils"
BINUTILS_BUILD_DIR="$CONFIGURESUPPORT_OUTPUTDIR/binutils"
BINUTILS_INSTALL_DIR="$CONFIGURESUPPORT_OUTPUTDIR/binutils-install"
if ! test -d $BINUTILS_SRC; then
AC_MSG_ERROR([--with-binutils-src is not pointing to a directory])
@@ -143,15 +144,15 @@ AC_DEFUN([LIB_BUILD_BINUTILS],
AC_MSG_ERROR([--with-binutils-src does not look like a binutils source directory])
fi
if ! test -d $BINUTILS_DIR; then
$MKDIR -p $BINUTILS_DIR
if ! test -d $BINUTILS_BUILD_DIR; then
$MKDIR -p $BINUTILS_BUILD_DIR
fi
if test -e $BINUTILS_DIR/bfd/libbfd.a && \
test -e $BINUTILS_DIR/opcodes/libopcodes.a && \
test -e $BINUTILS_DIR/libiberty/libiberty.a && \
test -e $BINUTILS_DIR/zlib/libz.a; then
AC_MSG_NOTICE([Found binutils binaries in binutils source directory -- not building])
# We don't know the version, not checking for libsframe.a
if test -e $BINUTILS_INSTALL_DIR/lib/libbfd.a && \
test -e $BINUTILS_INSTALL_DIR/lib/libopcodes.a && \
test -e $BINUTILS_INSTALL_DIR/lib/libiberty.a; then
AC_MSG_NOTICE([Found binutils binaries in binutils install directory -- not building])
else
# On Windows, we cannot build with the normal Microsoft CL, but must instead use
# a separate mingw toolchain.
@@ -190,20 +191,26 @@ AC_DEFUN([LIB_BUILD_BINUTILS],
binutils_cflags="$binutils_cflags $MACHINE_FLAG $JVM_PICFLAG $C_O_FLAG_NORM"
AC_MSG_NOTICE([Running binutils configure])
AC_MSG_NOTICE([configure command line: cd $BINUTILS_DIR && $BINUTILS_SRC/configure --disable-nls CFLAGS="$binutils_cflags" CC="$binutils_cc" AR="$AR" $binutils_target])
AC_MSG_NOTICE([configure command line: cd $BINUTILS_BUILD_DIR && $BINUTILS_SRC/configure --disable-werror --prefix=$BINUTILS_INSTALL_DIR --enable-install-libiberty --with-system-zlib --without-zstd --disable-nls CFLAGS="$binutils_cflags" CC="$binutils_cc" AR="$AR" $binutils_target])
saved_dir=`pwd`
cd "$BINUTILS_DIR"
$BINUTILS_SRC/configure --disable-nls CFLAGS="$binutils_cflags" CC="$binutils_cc" AR="$AR" $binutils_target
if test $? -ne 0 || ! test -e $BINUTILS_DIR/Makefile; then
cd "$BINUTILS_BUILD_DIR"
$BINUTILS_SRC/configure --disable-werror --prefix=$BINUTILS_INSTALL_DIR --enable-install-libiberty --with-system-zlib --without-zstd --disable-nls CFLAGS="$binutils_cflags" CC="$binutils_cc" AR="$AR" $binutils_target
if test $? -ne 0 || ! test -e $BINUTILS_BUILD_DIR/Makefile; then
AC_MSG_NOTICE([Automatic building of binutils failed on configure. Try building it manually])
AC_MSG_ERROR([Cannot continue])
fi
AC_MSG_NOTICE([Running binutils make])
$MAKE all-opcodes
$MAKE all-opcodes all-libiberty
if test $? -ne 0; then
AC_MSG_NOTICE([Automatic building of binutils failed on make. Try building it manually])
AC_MSG_ERROR([Cannot continue])
fi
AC_MSG_NOTICE([Running binutils make install])
$MAKE install-opcodes install-libiberty
if test $? -ne 0; then
AC_MSG_NOTICE([Automatic building, install step, of binutils failed on make. Try building it manually])
AC_MSG_ERROR([Cannot continue])
fi
cd $saved_dir
AC_MSG_NOTICE([Building of binutils done])
fi
@@ -223,40 +230,66 @@ AC_DEFUN([LIB_SETUP_HSDIS_BINUTILS],
# We need the binutils static libs and includes.
if test "x$with_binutils_src" != x; then
# Try building the source first. If it succeeds, it sets $BINUTILS_DIR.
# Try building the source first. If it succeeds, it sets $BINUTILS_INSTALL_DIR.
LIB_BUILD_BINUTILS
fi
if test "x$with_binutils" != x; then
BINUTILS_DIR="$with_binutils"
BINUTILS_INSTALL_DIR="$with_binutils"
fi
binutils_system_error=""
HSDIS_LDFLAGS=""
HSDIS_LIBS=""
if test "x$BINUTILS_DIR" = xsystem; then
disasm_header="<dis-asm.h>"
if test "x$BINUTILS_INSTALL_DIR" = xsystem; then
AC_CHECK_LIB(bfd, bfd_openr, [ HSDIS_LIBS="-lbfd" ], [ binutils_system_error="libbfd not found" ])
AC_CHECK_LIB(opcodes, disassembler, [ HSDIS_LIBS="$HSDIS_LIBS -lopcodes" ], [ binutils_system_error="libopcodes not found" ])
AC_CHECK_LIB(iberty, xmalloc, [ HSDIS_LIBS="$HSDIS_LIBS -liberty" ], [ binutils_system_error="libiberty not found" ])
AC_CHECK_LIB(z, deflate, [ HSDIS_LIBS="$HSDIS_LIBS -lz" ], [ binutils_system_error="libz not found" ])
# libiberty is not required on Ubuntu
AC_CHECK_LIB(iberty, xmalloc, [ HSDIS_LIBS="$HSDIS_LIBS -liberty" ])
AC_CHECK_LIB(sframe, frame, [ HSDIS_LIBS="$HSDIS_LIBS -lsframe" ], )
HSDIS_CFLAGS="-DLIBARCH_$OPENJDK_TARGET_CPU_LEGACY_LIB"
elif test "x$BINUTILS_DIR" != x; then
if test -e $BINUTILS_DIR/bfd/libbfd.a && \
test -e $BINUTILS_DIR/opcodes/libopcodes.a && \
test -e $BINUTILS_DIR/libiberty/libiberty.a && \
test -e $BINUTILS_DIR/zlib/libz.a; then
HSDIS_CFLAGS="-DLIBARCH_$OPENJDK_TARGET_CPU_LEGACY_LIB"
if test -n "$BINUTILS_SRC"; then
HSDIS_CFLAGS="$HSDIS_CFLAGS -I$BINUTILS_SRC/include -I$BINUTILS_DIR/bfd"
elif test "x$BINUTILS_INSTALL_DIR" != x; then
disasm_header="\"$BINUTILS_INSTALL_DIR/include/dis-asm.h\""
if test -e $BINUTILS_INSTALL_DIR/lib/libbfd.a && \
test -e $BINUTILS_INSTALL_DIR/lib/libopcodes.a && \
(test -e $BINUTILS_INSTALL_DIR/lib/libiberty.a || test -e $BINUTILS_INSTALL_DIR/lib64/libiberty.a); then
HSDIS_CFLAGS="-DLIBARCH_$OPENJDK_TARGET_CPU_LEGACY_LIB -I$BINUTILS_INSTALL_DIR/include"
# libiberty ignores --libdir and may be installed in $BINUTILS_INSTALL_DIR/lib or $BINUTILS_INSTALL_DIR/lib64
# depending on system setup
LIBIBERTY_LIB=""
if test -e $BINUTILS_INSTALL_DIR/lib/libiberty.a; then
LIBIBERTY_LIB="$BINUTILS_INSTALL_DIR/lib/libiberty.a"
else
HSDIS_CFLAGS="$HSDIS_CFLAGS -I$BINUTILS_DIR/include -I$BINUTILS_DIR/bfd"
LIBIBERTY_LIB="$BINUTILS_INSTALL_DIR/lib64/libiberty.a"
fi
HSDIS_LDFLAGS=""
HSDIS_LIBS="$BINUTILS_DIR/bfd/libbfd.a $BINUTILS_DIR/opcodes/libopcodes.a $BINUTILS_DIR/libiberty/libiberty.a $BINUTILS_DIR/zlib/libz.a"
HSDIS_LIBS="$BINUTILS_INSTALL_DIR/lib/libbfd.a $BINUTILS_INSTALL_DIR/lib/libopcodes.a $LIBIBERTY_LIB"
# If we have libsframe add it.
if test -e $BINUTILS_INSTALL_DIR/lib/libsframe.a; then
HSDIS_LIBS="$HSDIS_LIBS $BINUTILS_INSTALL_DIR/lib/libsframe.a"
fi
AC_CHECK_LIB(z, deflate, [ HSDIS_LIBS="$HSDIS_LIBS -lz" ], AC_MSG_ERROR([libz not found]))
else
AC_MSG_ERROR(["$BINUTILS_INSTALL_DIR/lib[64] must contain libbfd.a, libopcodes.a and libiberty.a"])
fi
fi
AC_MSG_CHECKING([Checking binutils API])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include $disasm_header],[[void foo() {init_disassemble_info(0, 0, 0, 0);}]])],
[
AC_MSG_RESULT([New API])
HSDIS_CFLAGS="$HSDIS_CFLAGS -DBINUTILS_NEW_API"
],
[
AC_MSG_RESULT([Old API])
]
)
AC_MSG_CHECKING([for binutils to use with hsdis])
case "x$BINUTILS_DIR" in
case "x$BINUTILS_INSTALL_DIR" in
xsystem)
if test "x$OPENJDK_TARGET_OS" != xlinux; then
AC_MSG_RESULT([invalid])
@@ -279,10 +312,10 @@ AC_DEFUN([LIB_SETUP_HSDIS_BINUTILS],
;;
*)
if test "x$HSDIS_LIBS" != x; then
AC_MSG_RESULT([$BINUTILS_DIR])
AC_MSG_RESULT([$BINUTILS_INSTALL_DIR])
else
AC_MSG_RESULT([invalid])
AC_MSG_ERROR([$BINUTILS_DIR does not contain a proper binutils installation])
AC_MSG_ERROR([$BINUTILS_INSTALL_DIR does not contain a proper binutils installation])
fi
;;
esac

View File

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

View File

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

View File

@@ -28,8 +28,8 @@
################################################################################
# Minimum supported versions
JTREG_MINIMUM_VERSION=7.2
GTEST_MINIMUM_VERSION=1.13.0
JTREG_MINIMUM_VERSION=7.3.1
GTEST_MINIMUM_VERSION=1.14.0
###############################################################################
#
@@ -227,12 +227,47 @@ AC_DEFUN_ONCE([LIB_TESTS_SETUP_JTREG],
UTIL_FIXUP_PATH(JT_HOME)
AC_SUBST(JT_HOME)
# Specify a JDK for running jtreg. Defaults to the BOOT_JDK.
AC_ARG_WITH(jtreg-jdk, [AS_HELP_STRING([--with-jdk],
[path to JDK for running jtreg @<:@BOOT_JDK@:>@])])
AC_MSG_CHECKING([for jtreg jdk])
if test "x${with_jtreg_jdk}" != x; then
if test "x${with_jtreg_jdk}" = xno; then
AC_MSG_RESULT([no, jtreg jdk not specified])
elif test "x${with_jtreg_jdk}" = xyes; then
AC_MSG_RESULT([not specified])
AC_MSG_ERROR([--with-jtreg-jdk needs a value])
else
JTREG_JDK="${with_jtreg_jdk}"
AC_MSG_RESULT([$JTREG_JDK])
UTIL_FIXUP_PATH(JTREG_JDK)
if test ! -f "$JTREG_JDK/bin/java"; then
AC_MSG_ERROR([Could not find jtreg java at $JTREG_JDK/bin/java])
fi
fi
else
JTREG_JDK="${BOOT_JDK}"
AC_MSG_RESULT([no, using BOOT_JDK])
fi
UTIL_FIXUP_PATH(JTREG_JDK)
AC_SUBST([JTREG_JDK])
# For use in the configure script
JTREG_JAVA="$FIXPATH $JTREG_JDK/bin/java"
# Verify jtreg version
if test "x$JT_HOME" != x; then
AC_MSG_CHECKING([jtreg jar existence])
if test ! -f "$JT_HOME/lib/jtreg.jar"; then
AC_MSG_ERROR([Could not find jtreg jar at $JT_HOME/lib/jtreg.jar])
fi
AC_MSG_CHECKING([jtreg version number])
# jtreg -version looks like this: "jtreg 6.1+1-19"
# Extract actual version part ("6.1" in this case)
jtreg_version_full=`$JAVA -jar $JT_HOME/lib/jtreg.jar -version | $HEAD -n 1 | $CUT -d ' ' -f 2`
jtreg_version_full=$($JTREG_JAVA -jar $JT_HOME/lib/jtreg.jar -version | $HEAD -n 1 | $CUT -d ' ' -f 2)
jtreg_version=${jtreg_version_full/%+*}
AC_MSG_RESULT([$jtreg_version])

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
@@ -35,6 +35,7 @@ AC_DEFUN_ONCE([LIB_SETUP_X11],
X_CFLAGS=
X_LIBS=
else
x_libraries_orig="$x_libraries"
if test "x${with_x}" = xno; then
AC_MSG_ERROR([It is not possible to disable the use of X11. Remove the --without-x option.])
@@ -48,6 +49,7 @@ AC_DEFUN_ONCE([LIB_SETUP_X11],
fi
if test "x$x_libraries" = xNONE; then
x_libraries="${with_x}/lib"
x_libraries_orig="$x_libraries"
fi
else
# Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries.
@@ -82,8 +84,8 @@ AC_DEFUN_ONCE([LIB_SETUP_X11],
AC_PATH_XTRA
# AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
# this doesn't make sense so we remove it.
if test "x$COMPILE_TYPE" = xcross; then
# this doesn't make sense so we remove it; same for sysroot (devkit).
if test "x$COMPILE_TYPE" = xcross || (test "x$SYSROOT" != "x" && test "x$x_libraries_orig" = xNONE); then
X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[[^ ]]*//g'`
fi

View File

@@ -33,7 +33,9 @@ m4_include([lib-freetype.m4])
m4_include([lib-hsdis.m4])
m4_include([lib-std.m4])
m4_include([lib-x11.m4])
m4_include([lib-fontconfig.m4])
m4_include([lib-speechd.m4])
m4_include([lib-nvdacontrollerclient.m4])
m4_include([lib-tests.m4])
################################################################################
@@ -45,10 +47,16 @@ AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
# No X11 support on windows or macosx
NEEDS_LIB_X11=false
NEEDS_LIB_SPEECHD=false
elif test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
# No X11 support needed when building headless only
NEEDS_LIB_X11=false
NEEDS_LIB_SPEECHD=false
else
# All other instances need X11, even if building headless only, libawt still
# needs X11 headers.
NEEDS_LIB_X11=true
NEEDS_LIB_SPEECHD=true
fi
# Check if fontconfig is needed
@@ -87,6 +95,13 @@ AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
else
NEEDS_LIB_FFI=false
fi
# Check if nvdacontrollerclient is needed
if test "x$OPENJDK_TARGET_OS" = xwindows && test "x$ENABLE_HEADLESS_ONLY" != xtrue; then
NEEDS_LIB_NVDACONTROLLERCLIENT=true
else
NEEDS_LIB_NVDACONTROLLERCLIENT=false
fi
])
################################################################################
@@ -108,12 +123,6 @@ AC_DEFUN([LIB_SETUP_JVM_LIBS],
BASIC_JVM_LIBS_$1="$BASIC_JVM_LIBS_$1 -latomic"
fi
fi
# Because RISC-V only has word-sized atomics, it requires libatomic where
# other common architectures do not, so link libatomic by default.
if test "x$OPENJDK_$1_OS" = xlinux && test "x$OPENJDK_$1_CPU" = xriscv64; then
BASIC_JVM_LIBS_$1="$BASIC_JVM_LIBS_$1 -latomic"
fi
])
################################################################################
@@ -132,7 +141,8 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
LIB_SETUP_LIBFFI
LIB_SETUP_MISC_LIBS
LIB_SETUP_X11
LIB_SETUP_SPEECHD
LIB_SETUP_NVDACONTROLLERCLIENT
LIB_TESTS_SETUP_GTEST
BASIC_JDKLIB_LIBS=""

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
@@ -567,8 +567,6 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
HOTSPOT_$1_CPU_DEFINE=PPC64
elif test "x$OPENJDK_$1_CPU" = xppc64le; then
HOTSPOT_$1_CPU_DEFINE=PPC64
elif test "x$OPENJDK_$1_CPU" = xriscv32; then
HOTSPOT_$1_CPU_DEFINE=RISCV32
elif test "x$OPENJDK_$1_CPU" = xriscv64; then
HOTSPOT_$1_CPU_DEFINE=RISCV64
@@ -577,10 +575,14 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
HOTSPOT_$1_CPU_DEFINE=SPARC
elif test "x$OPENJDK_$1_CPU" = xppc; then
HOTSPOT_$1_CPU_DEFINE=PPC32
elif test "x$OPENJDK_$1_CPU" = xriscv32; then
HOTSPOT_$1_CPU_DEFINE=RISCV32
elif test "x$OPENJDK_$1_CPU" = xs390; then
HOTSPOT_$1_CPU_DEFINE=S390
elif test "x$OPENJDK_$1_CPU" = xs390x; then
HOTSPOT_$1_CPU_DEFINE=S390
elif test "x$OPENJDK_$1_CPU" = xloongarch64; then
HOTSPOT_$1_CPU_DEFINE=LOONGARCH64
elif test "x$OPENJDK_$1_CPU" != x; then
HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
fi
@@ -660,11 +662,10 @@ AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET],
PLATFORM_CHECK_DEPRECATION
])
AC_DEFUN_ONCE([PLATFORM_CHECK_DEPRECATION],
AC_DEFUN([PLATFORM_CHECK_DEPRECATION],
[
AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@],
[Suppress the error when configuring for a deprecated port @<:@no@:>@])])
AC_REQUIRE([PLATFORM_EXTRACT_TARGET_AND_BUILD])
if test "x$OPENJDK_TARGET_OS" = xwindows && test "x$OPENJDK_TARGET_CPU" = xx86; then
if test "x$enable_deprecated_ports" = "xyes"; then
AC_MSG_WARN([The Windows 32-bit x86 port is deprecated and may be removed in a future release.])

View File

@@ -424,6 +424,7 @@ LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
FILE_MACRO_CFLAGS := @FILE_MACRO_CFLAGS@
REPRODUCIBLE_CFLAGS := @REPRODUCIBLE_CFLAGS@
BRANCH_PROTECTION_CFLAGS := @BRANCH_PROTECTION_CFLAGS@
STATIC_LIBS_CFLAGS := @STATIC_LIBS_CFLAGS@
@@ -465,6 +466,20 @@ UBSAN_LDFLAGS:=@UBSAN_LDFLAGS@
X_CFLAGS:=@X_CFLAGS@
X_LIBS:=@X_LIBS@
# Linux speechd a11y announcer
A11Y_SPEECHD_ANNOUNCING_ENABLED:=@A11Y_SPEECHD_ANNOUNCING_ENABLED@
SPEECHD_CFLAGS:=@SPEECHD_CFLAGS@
SPEECHD_LIBS:=@SPEECHD_LIBS@
# Windows NVDA a11y announcer
A11Y_NVDA_ANNOUNCING_ENABLED:=@A11Y_NVDA_ANNOUNCING_ENABLED@
NVDACONTROLLERCLIENT_CFLAGS:=@NVDACONTROLLERCLIENT_CFLAGS@
NVDACONTROLLERCLIENT_DLL:=@NVDACONTROLLERCLIENT_DLL@
NVDACONTROLLERCLIENT_LIB:=@NVDACONTROLLERCLIENT_LIB@
# Windows the client for the JAWS screen reader
A11Y_JAWS_ANNOUNCING_ENABLED:=@A11Y_JAWS_ANNOUNCING_ENABLED@
# The lowest required version of macosx
MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
# The highest allowed version of macosx
@@ -546,6 +561,8 @@ JVM_LIBS := @JVM_LIBS@
BASIC_ASFLAGS := @BASIC_ASFLAGS@
MACHINE_FLAG := @MACHINE_FLAG@
# These flags might contain variables set by a custom extension that is included later.
EXTRA_CFLAGS = @EXTRA_CFLAGS@
EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
@@ -572,6 +589,9 @@ JDKEXE_LIBS:=@JDKEXE_LIBS@
# LDFLAGS specific to C++ linking.
LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
# LDFLAGS specific to partial linking.
LDFLAGS_CXX_PARTIAL_LINKING:=@LDFLAGS_CXX_PARTIAL_LINKING@
# Sometimes a different linker is needed for c++ libs
LDCXX := @LDCXX@
# The flags for linking libstdc++ linker.
@@ -601,6 +621,7 @@ AR := @AR@
ARFLAGS:=@ARFLAGS@
NM:=@NM@
NMFLAGS:=@NMFLAGS@
STRIP:=@STRIP@
OBJDUMP:=@OBJDUMP@
CXXFILT:=@CXXFILT@
@@ -678,6 +699,9 @@ JAR = $(JAR_CMD)
JLINK = $(JLINK_CMD)
JMOD = $(JMOD_CMD)
JTREG_JDK := @JTREG_JDK@
JTREG_JAVA = @FIXPATH@ $(JTREG_JDK)/bin/java $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
BUILD_JAVAC=@FIXPATH@ $(BUILD_JDK)/bin/javac
@@ -928,6 +952,10 @@ DOCS_OUTPUTDIR := $(DOCS_JDK_IMAGE_DIR)
STATIC_LIBS_IMAGE_SUBDIR := static-libs
STATIC_LIBS_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(STATIC_LIBS_IMAGE_SUBDIR)
# Graal static libs image
STATIC_LIBS_GRAAL_IMAGE_SUBDIR := static-libs-graal
STATIC_LIBS_GRAAL_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(STATIC_LIBS_GRAAL_IMAGE_SUBDIR)
# Graal builder image
GRAAL_BUILDER_IMAGE_SUBDIR := graal-builder-jdk
GRAAL_BUILDER_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(GRAAL_BUILDER_IMAGE_SUBDIR)
@@ -974,6 +1002,7 @@ DOCS_JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
DOCS_JAVASE_BUNDLE_NAME := javase-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
DOCS_REFERENCE_BUNDLE_NAME := jdk-reference-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
STATIC_LIBS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs$(DEBUG_PART).tar.gz
STATIC_LIBS_GRAAL_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs-graal$(DEBUG_PART).tar.gz
JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)

View File

@@ -804,7 +804,11 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_EXTRA],
case $TOOLCHAIN_TYPE in
gcc|clang)
UTIL_REQUIRE_TOOLCHAIN_PROGS(CXXFILT, c++filt)
if test "x$OPENJDK_TARGET_OS" = xaix; then
UTIL_REQUIRE_TOOLCHAIN_PROGS(CXXFILT, ibm-llvm-cxxfilt)
else
UTIL_REQUIRE_TOOLCHAIN_PROGS(CXXFILT, c++filt)
fi
;;
esac
])

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
@@ -509,7 +509,7 @@ AC_DEFUN([UTIL_CHECK_TYPE_directory],
FAILURE="Directory $1 does not exist or is not readable"
fi
if test "[x]ARG_CHECK_FOR_FILES" != x; then
if test "[x]ARG_CHECK_FOR_FILES" != "x:"; then
for file in ARG_CHECK_FOR_FILES; do
found_files=$($ECHO $(ls $1/$file 2> /dev/null))
if test "x$found_files" = x; then
@@ -781,25 +781,25 @@ UTIL_DEFUN_NAMED([UTIL_ARG_WITH],
else
AC_MSG_RESULT([$ARG_RESULT, $REASON])
fi
fi
# Verify value
# First use our dispatcher to verify that type requirements are satisfied
UTIL_CHECK_TYPE(ARG_TYPE, $ARG_RESULT)
# Verify value
# First use our dispatcher to verify that type requirements are satisfied
UTIL_CHECK_TYPE(ARG_TYPE, $ARG_RESULT)
if test "x$FAILURE" = x; then
# Execute custom verification payload, if present
RESULT="$ARG_RESULT"
if test "x$FAILURE" = x; then
# Execute custom verification payload, if present
RESULT="$ARG_RESULT"
ARG_CHECK_VALUE
ARG_CHECK_VALUE
ARG_RESULT="$RESULT"
fi
ARG_RESULT="$RESULT"
fi
if test "x$FAILURE" != x; then
AC_MSG_NOTICE([Invalid value for [--with-]ARG_NAME: "$ARG_RESULT"])
AC_MSG_NOTICE([$FAILURE])
AC_MSG_ERROR([Cannot continue])
if test "x$FAILURE" != x; then
AC_MSG_NOTICE([Invalid value for [--with-]ARG_NAME: "$ARG_RESULT"])
AC_MSG_NOTICE([$FAILURE])
AC_MSG_ERROR([Cannot continue])
fi
fi
# Execute result payloads, if present

View File

@@ -118,6 +118,24 @@ AC_DEFUN([UTIL_FIXUP_PATH],
fi
])
##############################################################################
# Fixup path to be a Windows full long path
# Note: Only supported with cygwin/msys2 (cygpath tool)
AC_DEFUN([UTIL_FIXUP_WIN_LONG_PATH],
[
# Only process if variable expands to non-empty
path="[$]$1"
if test "x$path" != x; then
if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
win_path=$($PATHTOOL -wl "$path")
if test "x$win_path" != "x$path"; then
$1="$win_path"
fi
fi
fi
])
###############################################################################
# Check if the given file is a unix-style or windows-style executable, that is,
# if it expects paths in unix-style or windows-style.

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