On Tue, 21 Oct 2025 20:31:06 GMT, Sergey Bylokhov <[email protected]> wrote:
>> I don't know where you are headed. All it does is set a boolean variable and >> there's no reason to be on the EDT. > > I meant, is it possible to get this surfaceData before invalidation on one > thread, start rendering to it, and then call delegate.dispose() on another > thread? Don't we need some kind of synchronization or is it already somehow > implemented? delegate.dispose just replaces the reference in the graphics with a NullSurfaceData. There's no synchronization needed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/27905#discussion_r2449667401
