All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
To: Andres Lagar-Cavilla <andres@lagarcavilla.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Vincent Hanquez <Vincent.Hanquez@eu.citrix.com>,
	Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Subject: Re: [PATCH] libxenlight: clone context to avoid GC corruption
Date: Thu, 3 Dec 2009 15:11:10 +0000	[thread overview]
Message-ID: <20091203151110.GA16650@gwig.uk.xensource.com> (raw)
In-Reply-To: <4B16E586.7060505@lagarcavilla.com>

On Wed, Dec 02, 2009 at 10:09:10PM +0000, Andres Lagar-Cavilla wrote:
> Provide a function to clone a context. This is necessary
> because simply copying the structs will eventually
> corrup the GC: maxsize is updated in the cloned context
> but not in the originating one, yet they have the same
> array of referenced pointers alloc_ptrs.

I think this doesn't answer the question of why you need this function
at all. I don't think you should clone the context nor share it.

-- 
Vincent

  parent reply	other threads:[~2009-12-03 15:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 22:09 [PATCH] libxenlight: clone context to avoid GC corruption Andres Lagar-Cavilla
2009-12-03 12:16 ` Stefano Stabellini
2009-12-03 12:20   ` Stefano Stabellini
2009-12-03 13:57     ` Andres Lagar-Cavilla
2009-12-03 14:34       ` Stefano Stabellini
2009-12-03 15:11 ` Vincent Hanquez [this message]
2009-12-03 15:18   ` Stefano Stabellini
2009-12-03 15:18   ` andres

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091203151110.GA16650@gwig.uk.xensource.com \
    --to=vincent.hanquez@eu.citrix.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=andres@lagarcavilla.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.