Skip to contentSkip to conversation

question about qemu_malloc and friends in xxx-user/mmap.c

Qemu-devel Jean-Christophe Dubois 1 participant 2 messages Jun 8, 2009 – Jun 10, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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.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