question about qemu_malloc and friends in xxx-user/mmap.c
Hi everybody,
A little question about qemu_malloc(). There is one implementation that is heavily debated on the list. This implementation is for the main qemu part.
However there are also alternative implementation in xxx-user/mmap.c files for example. These alternative implementations are not on par with the main implementation when it comes to the behavior. In particular it does not abort() on error for example. Is this perceived as a problem? Should all qemu_malloc() implementation have the same behavior (whatever is finally agreed upon on the list)?
On the same kind of topic, these files do not offer some of the desired function. In particular there are no implementation of qemu_strdup() or qemu_strndud() and therefore the classical strdup() function is used in some files. Is this other issue perceived as another problem to solve?
Thanks
JC
Does anybody have an opinion on these topics?
JC
Le lundi 8 juin 2009 18:16:05 Jean-Christophe Dubois, vous avez écrit :
Quoted 20 lines
Hi everybody,
A little question about
qemu_malloc(). There is one implementation that is heavily debated on the list. This implementation is for the main qemu part.However there are also alternative implementation in
xxx-user/mmap.cfiles for example. These alternative implementations are not on par with the main implementation when it comes to the behavior. In particular it does notabort()on error for example. Is this perceived as a problem? Should allqemu_malloc()implementation have the same behavior (whatever is finally agreed upon on the list)?On the same kind of topic, these files do not offer some of the desired function. In particular there are no implementation of
qemu_strdup()orqemu_strndud()and therefore the classicalstrdup()function is used in some files. Is this other issue perceived as another problem to solve?Thanks
JC