[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] linux-user,bsd-user: re-exec with G_SLICE=always-malloc
From: |
Emilio Cota |
Subject: |
Re: [PATCH] linux-user,bsd-user: re-exec with G_SLICE=always-malloc |
Date: |
Thu, 1 Dec 2022 01:55:32 -0500 |
On Tue, Oct 04, 2022 at 13:00:47 +0100, Daniel P. Berrangé wrote:
(snip)
> Can't say I especially like this but I'm out of other ideas for how
> to guarantee a solution. Users can't set env vars prior to launching
> QEMU user emulators when using binfmt.
An alternative is to not use GSlice between fork/exec. I'm
not sure if within that region there are other users besides
GTree (GArray perhaps?), but if there aren't, then just using
a different binary tree implementation should do.
Untested patches using ccan's AVL tree:
https://github.com/cota/qemu/commits/avl
Would that be more palatable?
Thanks,
Emilio
- Re: [PATCH] linux-user,bsd-user: re-exec with G_SLICE=always-malloc,
Emilio Cota <=