Integrated: 8353950: Clipboard interaction on Windows is unstable
Matthias Bläsing
mblaesing at openjdk.org
Tue Jun 10 00:24:37 UTC 2025
On Sun, 13 Apr 2025 16:08:40 GMT, Matthias Bläsing <mblaesing at openjdk.org> wrote:
> - Introduce a lock into WClipboard that protects the code between
> openClipboard/closeClipboard invocations.
> The native side does not allow to open the clipboard multiple
> times or share the opened clipboard between multiple threads.
>
> - Remove of need to call openClipboard/closeClipboard from
> getClipboardFormats by using the win32 call
> GetUpdatedClipboardFormats
>
> - Prevent a race-condition by not registering the connection
> between java and native side of clipboard multiple time, but
> just at construction time.
This pull request has now been integrated.
Changeset: 92be7821
Author: Matthias Bläsing <mblaesing at openjdk.org>
Committer: SendaoYan <syan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/92be7821f5d5cbf5fe0244b41b2b7b1ada898df0
Stats: 174 lines in 4 files changed: 128 ins; 24 del; 22 mod
8353950: Clipboard interaction on Windows is unstable
8332271: Reading data from the clipboard from multiple threads crashes the JVM
Reviewed-by: abhiscxk, dnguyen
-------------
PR: https://git.openjdk.org/jdk/pull/24614
More information about the client-libs-dev
mailing list