[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 5/5] xen: Disallow variable length arrays



On Mon, Sep 24, 2018 at 02:00:03PM +0100, Andrew Cooper wrote:
> Variable length arrays result in excess stack utilisation, with a risk
> of stack overflow if the length is too large.  It also results in fairly
> poor asm generation, because of requiring a divide as part of the space
> calcuation.
> 
> Xen no longer has any variable length arrays, so take the opportunity to
> formally disallow them.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.