RFR: 8370141: [macOS] Crash after PrinterJob ends when Graphics.create() is used.

Phil Race prr at openjdk.org
Tue Oct 21 20:52:31 UTC 2025


On Tue, 21 Oct 2025 20:31:06 GMT, Sergey Bylokhov <serb at openjdk.org> 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


More information about the client-libs-dev mailing list