On 10/4/22 05:00, Daniel P. Berrangé wrote:
g_slice uses a one-time initializer to check the G_SLICE env variable making it hard for QEMU to set the env before any GLib API call has triggered the initializer. Even attribute((constructor)) is not sufficient as QEMU has many constructors and there is no ordering guarantee between them.
There are orderings for constructors, see __attribute__((constructor(priority))). r~
