Re: RFR: 8257455: javax/swing/Security/6378709/TimerHack.java and javax/swing/JFileChooser/4163841/AcceptAllFileFilterTest.java fails in CI

2023-04-07 Thread Tejesh R
On Tue, 14 Mar 2023 10:06:47 GMT, Tejesh R wrote: > The issue is intermittent and was not able to reproduce it. Though through > code analysis and bug reported logs, the issue seems to be in COM thread of > `FilesLoader` class in `BasicDirectoryModel` file. Looks like there are > certain place

Withdrawn: 8257455: javax/swing/Security/6378709/TimerHack.java and javax/swing/JFileChooser/4163841/AcceptAllFileFilterTest.java fails in CI

2023-04-07 Thread Tejesh R
On Tue, 14 Mar 2023 10:06:47 GMT, Tejesh R wrote: > The issue is intermittent and was not able to reproduce it. Though through > code analysis and bug reported logs, the issue seems to be in COM thread of > `FilesLoader` class in `BasicDirectoryModel` file. Looks like there are > certain place

Re: RFR: 8304912: Use OperatingSystem enum in java.desktop module [v4]

2023-04-07 Thread Phil Race
On Sat, 8 Apr 2023 00:58:57 GMT, Roger Riggs wrote: >> Update classes in the java.desktop module to use the >> jdk.internal.util.OperatingSystem enum instead of the `os.name` system >> property to select OS specific behaviors. > > Roger Riggs has updated the pull request with a new target base

Re: RFR: 8304912: Use OperatingSystem enum in java.desktop module [v4]

2023-04-07 Thread Roger Riggs
> Update classes in the java.desktop module to use the > jdk.internal.util.OperatingSystem enum instead of the `os.name` system > property to select OS specific behaviors. Roger Riggs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes

Re: RFR: 8303904: Transparent Windows Paint Wrong (Opaque) w/o Volatile Buffering

2023-04-07 Thread Alan Snyder
I may be confused, too! I haven’t kept close track of the various issues and PRs. My comment relates to a perhaps old idea of using a graphics rendering hint to suppress painting the window background. VAqua knows nothing about volatile buffering, nor do I. :-) > On Apr 7, 2023, at 3:29 PM,

Re: RFR: 8305427: Write a test Check whether focus changes as expected when requestFocus is used to traverse randomly around the window [v2]

2023-04-07 Thread lawrence . andrews
On Wed, 5 Apr 2023 11:47:06 GMT, Ravi Gupta wrote: >> This testcase Checking whether the Component becoming the Focus Owner and >> FocusEvent.FOCUS_GAINED will be received by the Component when the focus is >> requested on the component using requestFocus. >> >> Testing: >> Tested using Mach5(

Re: RFR: 8303904: Transparent Windows Paint Wrong (Opaque) w/o Volatile Buffering

2023-04-07 Thread Jeremy
On Mon, 27 Mar 2023 21:45:08 GMT, Jeremy wrote: > The original write-up contains two complaints: > 1. The window is opaque, so pixels that should be transparent are black. > 2. The window is the wrong resolution. On a 200% resolution monitor it > renders as if it were 100% (so it looks pixelated

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread Roger Riggs
On Fri, 7 Apr 2023 06:03:11 GMT, Thomas Stuefe wrote: >>> What did you use as the example that would not compile on the other >>> architecture? >> >> https://github.com/openjdk/jdk/blob/52ca4a70fc3de9e285964f9545ea8cd54e2d9924/src/java.base/share/classes/jdk/internal/util/OperatingSystemProps.

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread Roger Riggs
On Fri, 7 Apr 2023 12:05:28 GMT, Lutz Schmidt wrote: >> Okay, Lutz is the expert here. Sorry for the noise. > > Just to let my voice be heard directly after being cited several times: s390 > is used to designate the CPU architecture. The arch-specific files are stored > in src/hotspot/cpu/s390

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v8]

2023-04-07 Thread Roger Riggs
On Fri, 7 Apr 2023 21:13:03 GMT, Roger Riggs wrote: >> Define an internal jdk.internal.util.Architecture enumeration and static >> methods to replace uses of the system property `os.arch`. >> The enumeration values are defined to match those used in the build. >> The initial values are: `X64, X8

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v8]

2023-04-07 Thread Roger Riggs
> Define an internal jdk.internal.util.Architecture enumeration and static > methods to replace uses of the system property `os.arch`. > The enumeration values are defined to match those used in the build. > The initial values are: `X64, X86, IA64, ARM, AARCH64, RISCV64, S390X, > PPC64LE` > Note

Re: RFR: 8279216: Investigate implementation of premultiplied alpha in the Little-CMS 2.13

2023-04-07 Thread Phil Race
On Mon, 20 Mar 2023 01:07:25 GMT, Sergey Bylokhov wrote: > Support of premultiplied alpha is added to the "accelerated" code path of the > CMM. It is implemented on top of the new feature added to the littlecms > library in 2.13 and 2.15. > > The next formats are now "supported": TYPE_INT_ARGB

Re: RFR: 8279216: Investigate implementation of premultiplied alpha in the Little-CMS 2.13

2023-04-07 Thread Phil Race
On Mon, 20 Mar 2023 01:07:25 GMT, Sergey Bylokhov wrote: > Support of premultiplied alpha is added to the "accelerated" code path of the > CMM. It is implemented on top of the new feature added to the littlecms > library in 2.13 and 2.15. > > The next formats are now "supported": TYPE_INT_ARGB

Re: RFR: 8305578: X11GraphicsDevice.pGetBounds() is slow in remote X11 sessions

2023-04-07 Thread Phil Race
On Wed, 5 Apr 2023 08:19:50 GMT, Maxim Kartashev wrote: > Getting bounds of a `GraphicsDevice` and insets of a screen are fairly > frequent operations. When working over the network (remote X session), those > can take several *seconds* to complete, introducing repeated freezes even > when typ

Re: RFR: 8305527: HarfBuzz: Remove trailing comma from the enum in hb-paint.h

2023-04-07 Thread Phil Race
On Fri, 7 Apr 2023 19:52:46 GMT, Harshitha Onkar wrote: > @dmarkov20 We will be having a HarfBuzz upgrade to mainline soon. As @prrace > suggested, this might be unnecessary at this point then. I think it extremely likely we'll do a HB update before JDK 21 RDP1 so, yes. - PR Comme

Re: RFR: 8305527: HarfBuzz: Remove trailing comma from the enum in hb-paint.h

2023-04-07 Thread Harshitha Onkar
On Fri, 7 Apr 2023 05:32:55 GMT, Phil Race wrote: > > > I don't see why we need this in mainline. I'd prefer to not have it > > > unless we need it. > > > > > > I believe it is better to have all JDK branches in sync if it's possible. > > This change is harmless and as Sergey mentioned it wou

Re: RFR: JDK-8303950: [macos]Translucent Windows Flicker on Repaint [v4]

2023-04-07 Thread Jeremy
On Fri, 7 Apr 2023 18:39:03 GMT, Damon Nguyen wrote: >> src/java.desktop/share/classes/java/awt/Window.java line 3953: >> >>> 3951: if (gg instanceof Graphics2D) { >>> 3952: gg.setColor(getBackground()); >>> 3953: ((Graphics2D) >>> gg).set

Re: RFR: JDK-8303950: [macos]Translucent Windows Flicker on Repaint [v5]

2023-04-07 Thread Jeremy
> I'm confident about the new test case for this ticket, but the resolution is > more invasive than I'd like. (It works, though.) > > In short: > This introduces a new RenderingHint (in SunHints) to bypass the call in > Window to `gg2d.fillRect(0, 0, getWidth(), getHeight());` > > I left more d

Re: RFR: JDK-8303950: [macos]Translucent Windows Flicker on Repaint [v4]

2023-04-07 Thread Damon Nguyen
On Fri, 7 Apr 2023 17:03:56 GMT, Damon Nguyen wrote: >> Jeremy has updated the pull request incrementally with one additional commit >> since the last revision: >> >> 8303950: adding unit test for legacy window behavior >> >> This test passes in the current JDK. The test criteria don't r

Re: RFR: JDK-8282232: [Win] GetMousePositionWithPopup test fails due to wrong mouse position [v2]

2023-04-07 Thread Harshitha Onkar
On Fri, 7 Apr 2023 16:24:37 GMT, Harshitha Onkar wrote: >> test/jdk/java/awt/Mouse/GetMousePositionTest/GetMousePositionWithPopup.java >> line 113: >> >>> 111: frame2.setBounds(120, 120, 120, 120); >>> 112: frame2.setVisible(true); >>> 113: } >> >> S

Re: RFR: JDK-8282232: [Win] GetMousePositionWithPopup test fails due to wrong mouse position [v2]

2023-04-07 Thread Harshitha Onkar
> This test issue was due to race condition that occured when using > `-Dsun.java2d.uiScale >= 2`. > As a result it led to incorrect mouse position being compared as opposed to > the updated mouse position after the final mouse move event. > > Following is the event log before and after fix. >

Re: RFR: 8305427: Write a test Check whether focus changes as expected when requestFocus is used to traverse randomly around the window [v2]

2023-04-07 Thread Damon Nguyen
On Wed, 5 Apr 2023 11:47:06 GMT, Ravi Gupta wrote: >> This testcase Checking whether the Component becoming the Focus Owner and >> FocusEvent.FOCUS_GAINED will be received by the Component when the focus is >> requested on the component using requestFocus. >> >> Testing: >> Tested using Mach5(

Re: RFR: 8303830: update for deprecated sprintf for jdk.accessibility

2023-04-07 Thread Phil Race
On Fri, 7 Apr 2023 07:03:32 GMT, Xue-Lei Andrew Fan wrote: > how did you test it ? > The existing regression tests will be used for the testing. I will ask for a > Mach5 testing if approved. Hopefully, the current regression test coverage is > sufficient. I have no plan to add new test cases.

Re: RFR: 8303904: Transparent Windows Paint Wrong (Opaque) w/o Volatile Buffering

2023-04-07 Thread Alan Snyder
When I added support for translucent windows to VAqua, I used a different solution: I “tricked” the AWT Window into accepting a transparent (alpha = 0) background color. I’m not sure if this is better or worse than your idea of suppressing the painting of the background, but it does raise the iss

Re: RFR: 8304825: MacOS metal pipeline - window isn't painted if created during display sleep

2023-04-07 Thread Phil Race
On Thu, 6 Apr 2023 14:16:46 GMT, Ajit Ghaisas wrote: > Root cause : The CVDisplayLink used in MTLLayer stops invoking callbacks on > screen sleep and wakeup event. It is found that stop and restart of > CVDisplayLink on these events also does not help. > > Fix : Recreate the CVDisplayLink on s

Re: RFR: 8304825: MacOS metal pipeline - window isn't painted if created during display sleep

2023-04-07 Thread Phil Race
On Fri, 7 Apr 2023 11:49:50 GMT, Ajit Ghaisas wrote: >> src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLLayer.m line 102: >> >>> 100: >>> 101: [self stopDisplayLink]; >>> 102: } >> >> I'm assuming this is something we should have done already to save wasted >> work ? >> i.e if

Re: RFR: JDK-8303950: [macos]Translucent Windows Flicker on Repaint [v4]

2023-04-07 Thread Damon Nguyen
On Tue, 21 Mar 2023 21:07:42 GMT, Jeremy wrote: >> I'm confident about the new test case for this ticket, but the resolution is >> more invasive than I'd like. (It works, though.) >> >> In short: >> This introduces a new RenderingHint (in SunHints) to bypass the call in >> Window to `gg2d.fill

Re: RFR: JDK-8282232: [Win] GetMousePositionWithPopup test fails due to wrong mouse position

2023-04-07 Thread Harshitha Onkar
On Fri, 7 Apr 2023 04:47:56 GMT, Phil Race wrote: >> This test issue was due to race condition that occured when using >> `-Dsun.java2d.uiScale >= 2`. >> As a result it led to incorrect mouse position being compared as opposed to >> the updated mouse position after the final mouse move event. >

Re: RFR: 8304825: MacOS metal pipeline - window isn't painted if created during display sleep

2023-04-07 Thread Alexey Ushakov
On Thu, 6 Apr 2023 14:16:46 GMT, Ajit Ghaisas wrote: > Root cause : The CVDisplayLink used in MTLLayer stops invoking callbacks on > screen sleep and wakeup event. It is found that stop and restart of > CVDisplayLink on these events also does not help. > > Fix : Recreate the CVDisplayLink on s

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread Roger Riggs
On Thu, 6 Apr 2023 22:44:52 GMT, Phil Race wrote: >> Roger Riggs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove unneeded qualified export from java.base to jdk.attach > > src/jdk.accessibility/windows/classes/com/sun/java/accessi

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread Lutz Schmidt
On Fri, 7 Apr 2023 11:21:33 GMT, Thomas Stuefe wrote: >> Hello Thomas, that change was based on the review comment here >> https://github.com/openjdk/jdk/pull/13357#discussion_r1159810942 > > Okay, Lutz is the expert here. Sorry for the noise. Just to let my voice be heard directly after being

Re: RFR: 8304825: MacOS metal pipeline - window isn't painted if created during display sleep

2023-04-07 Thread Kevin Rushforth
On Thu, 6 Apr 2023 14:16:46 GMT, Ajit Ghaisas wrote: > Root cause : The CVDisplayLink used in MTLLayer stops invoking callbacks on > screen sleep and wakeup event. It is found that stop and restart of > CVDisplayLink on these events also does not help. > > Fix : Recreate the CVDisplayLink on s

Re: RFR: 8304825: MacOS metal pipeline - window isn't painted if created during display sleep

2023-04-07 Thread Ajit Ghaisas
On Fri, 7 Apr 2023 04:36:39 GMT, Phil Race wrote: > I'm assuming this is something we should have done already to save wasted > work ? i.e if the screen is asleep, we don't need to be connected to it and updating windows ? We start the DisplayLink from Metal RenderQueue whenever there is somet

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread Thomas Stuefe
On Fri, 7 Apr 2023 10:52:47 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/jdk/internal/util/Architecture.java line 41: >> >>> 39: AARCH64(), >>> 40: RISCV64(), >>> 41: S390(), >> >> Why getting rid of the X in s390x? There has not been an s390 linux kernel >> in almost te

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread Jaikiran Pai
On Fri, 7 Apr 2023 10:24:20 GMT, Thomas Stuefe wrote: >> Roger Riggs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove unneeded qualified export from java.base to jdk.attach > > src/java.base/share/classes/jdk/internal/util/Architec

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread Thomas Stuefe
On Thu, 6 Apr 2023 19:25:19 GMT, Roger Riggs wrote: >> Define an internal jdk.internal.util.Architecture enumeration and static >> methods to replace uses of the system property `os.arch`. >> The enumeration values are defined to match those used in the build. >> The initial values are: `X64, X8

Integrated: 8305666: Add system property for fair AWT lock

2023-04-07 Thread Nikita Gubarkov
On Wed, 5 Apr 2023 15:54:53 GMT, Nikita Gubarkov wrote: > There are freezes reported on some Linux configurations which are believed to > may be caused by the toolkit thread quickly reacquiring AWT_LOCK while > polling for events, which starves EDT waiting on that lock. > Adding new `awt.lock.f

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread ExE Boss
On Fri, 7 Apr 2023 09:28:18 GMT, Thomas Stuefe wrote: > > > What I meant was: You define PPCLE. PPCLE specifies ppc, little endian. > > > We also have PPC big-endian, it is used by AIX (and you can also run > > > Linux with PPC big-endian). Why omit that? > > > os.arch for AIX is "ppc64". > >

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread Thomas Stuefe
On Fri, 7 Apr 2023 07:42:51 GMT, Alan Bateman wrote: > > What I meant was: You define PPCLE. PPCLE specifies ppc, little endian. We > > also have PPC big-endian, it is used by AIX (and you can also run Linux > > with PPC big-endian). Why omit that? > > os.arch for AIX is "ppc64". > > So I thin

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread ExE Boss
On Thu, 6 Apr 2023 19:25:19 GMT, Roger Riggs wrote: >> Define an internal jdk.internal.util.Architecture enumeration and static >> methods to replace uses of the system property `os.arch`. >> The enumeration values are defined to match those used in the build. >> The initial values are: `X64, X8

Re: RFR: 8304503: Modernize debugging jvm args in demo netbeans projects

2023-04-07 Thread Eirik Bjorsnos
On Mon, 20 Mar 2023 13:06:19 GMT, Eirik Bjorsnos wrote: > Please review this PR which suggests to modernize the JVM arguments used to > enable debugging in the netbeans project files for demos. > > The netbeans projects found in src/demo/share/nbproject currently use the > following outdated

Re: RFR: 8304503: Modernize debugging jvm args in demo netbeans projects

2023-04-07 Thread Eirik Bjorsnos
On Fri, 7 Apr 2023 06:44:14 GMT, Eirik Bjorsnos wrote: > Or could we simply withdraw this PR and instead broaden the scope of #13098 > to remove all Netbeans projects? As #13098 is now integrated, it would now make more sense to create a seperate PR for a removal of these projects. -

Re: RFR: 8304915: Create jdk.internal.util.Architecture enum and apply [v7]

2023-04-07 Thread Alan Bateman
On Fri, 7 Apr 2023 06:33:08 GMT, Thomas Stuefe wrote: > What I meant was: You define PPCLE. PPCLE specifies ppc, little endian. We > also have PPC big-endian, it is used by AIX (and you can also run Linux with > PPC big-endian). Why omit that? > > os.arch for AIX is "ppc64". So I think you ar

Re: RFR: 8304501: Remove orphaned demo netbeans projects [v2]

2023-04-07 Thread Alan Bateman
On Fri, 7 Apr 2023 06:26:18 GMT, Eirik Bjorsnos wrote: > Thanks, but it seems Alan did not actually approve anything, he simply left > an infomational note. > > We still only have the approval from Sergey, and it is still not clear what > he approved. Right, I just added a note as I remember

Re: RFR: 8303830: update for deprecated sprintf for jdk.accessibility

2023-04-07 Thread Xue-Lei Andrew Fan
On Fri, 7 Apr 2023 05:45:05 GMT, Phil Race wrote: > how did you test it ? The existing regression tests will be used for the testing. I will ask for a Mach5 testing if approved. Hopefully, the current regression test coverage is sufficient. I have no plan to add new test cases.