Deadlock in generated foo_get_type() functions
I've started getting bug reports about semi-regular deadlocks at startup in Geary running under Flatpak starting from 3.34.x (geary#592 (closed)), and the one good stack trace I have for it seems matches the conditions in glib#541's description.
The GLib bug suggests a GLib-based workaround is possible, but seems to suggest that the specific form of the foo_get_type()
functions that vala is generating is responsible for triggering it. Perhaps there is an alternative form that vala could use that would avoid triggering the deadlock?