[crac] Withdrawn: X11 CRaC reinitializing on CheckpointRestore
Radim Vansa
rvansa at openjdk.org
Fri Jun 16 13:55:36 UTC 2023
On Fri, 8 Apr 2022 12:58:21 GMT, Ilya Kuznetsov <duke at openjdk.org> wrote:
> Allows CRaC to perform a CheckpointRestore operation for applications using GUI (Swing, AWT) and X11 connection.
>
> Resources are registered only if the application uses the GUI. The order in which resources are reinitialized matters: Toolkit should be cleared before reference handling for a proper garbage collection, and GraphicsEnvironment after handling for a correct X11 disconnection. Some resources restore lazily.
>
> The `beforeCheckpoint()` operation dispose necessary toolkit and connection resources and disconnects from X11. This allows CRaC to perform a Checkpoint since there is no external connection.
> The `afterRestore()` operations reconnect to X11 and then restore necessary connection and toolkit resources.
>
> Thus, after the Restore operation, we have a clean X11 connection. It is ready to restore the original GUI state.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/crac/pull/19
More information about the crac-dev
mailing list