On Tue, Apr 03, 2012 at 01:09:09AM +0200, Marc-André Lureau wrote:
> On Mon, Apr 2, 2012 at 1:23 PM, Daniel P. Berrange
> wrote:
> > From: "Daniel P. Berrange"
> >
> > The red_worker_main method allocates a RedWorker struct instance
> > on the stack. This struct is a full 2 MB in size which is n
On Tue, Apr 03, 2012 at 11:18:45AM +0300, Alon Levy wrote:
> On Mon, Apr 02, 2012 at 12:23:41PM +0100, Daniel P. Berrange wrote:
> > From: "Daniel P. Berrange"
> >
> > The red_worker_main method allocates a RedWorker struct instance
> > on the stack. This struct is a full 2 MB in size which is no
On Mon, Apr 02, 2012 at 12:23:41PM +0100, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange"
>
> The red_worker_main method allocates a RedWorker struct instance
> on the stack. This struct is a full 2 MB in size which is not
> at all resonable to allocate on the stack.
Why?
>
> * server/r
On Mon, Apr 2, 2012 at 1:23 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange"
>
> The red_worker_main method allocates a RedWorker struct instance
> on the stack. This struct is a full 2 MB in size which is not
> at all resonable to allocate on the stack.
>
Ouch.. btw, apparently, it's
From: "Daniel P. Berrange"
The red_worker_main method allocates a RedWorker struct instance
on the stack. This struct is a full 2 MB in size which is not
at all resonable to allocate on the stack.
* server/red_worker.c: Move RedWorker struct to the heap
Signed-off-by: Daniel P. Berrange
---
s