[crac] RFR: X11 CRaC reinitializing on CheckpointRestore [v4]

Radim Vansa rvansa at openjdk.org
Fri Jun 16 13:55:35 UTC 2023


On Mon, 12 Sep 2022 07:50:57 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.
>
> Ilya Kuznetsov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix newline

This PR looks abandoned, and while it involves quite some work it should be focused, and include a demo (test case).

Looking forward to any further work on this, but in this state I think it is in no shape for integration, therefore closing.

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

PR Comment: https://git.openjdk.org/crac/pull/19#issuecomment-1594713129


More information about the crac-dev mailing list