RFR: 8353950: Clipboard interaction on Windows is unstable [v2]

Matthias Bläsing mblaesing at openjdk.org
Mon Apr 14 17:19:19 UTC 2025


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

Matthias Bläsing has updated the pull request incrementally with one additional commit since the last revision:

  Adress review comments: Update copyright years and fix whitespace in if condition

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/24614/files
  - new: https://git.openjdk.org/jdk/pull/24614/files/24c0d0a5..4fa4ef90

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24614&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24614&range=00-01

  Stats: 4 lines in 3 files changed: 0 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/24614.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24614/head:pull/24614

PR: https://git.openjdk.org/jdk/pull/24614


More information about the client-libs-dev mailing list