From: Anthony PERARD Subject: [PATCH 0/2] Cleanup: flexarray taking gc. Date: Wed, 26 Sep 2012 14:31:32 +0100 Message-ID: <1348666294-18182-1-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen Devel Cc: Anthony PERARD , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org This two patches do a bit of cleanup in the memomy managment in libxl, regarding the use of flexarray. The first one does some cleanup only in libxl_json. The second one modify flexarray_make to take gc as argument and update every user in libxl to pass gc and to not call flexarray_free anymore. Anthony PERARD (2): libxl_json: Use libxl alloc function libxl: Have flexarray using the GC tools/libxl/flexarray.c | 45 +++++++------- tools/libxl/flexarray.h | 8 ++- tools/libxl/libxl.c | 99 ++++++------------------------- tools/libxl/libxl_dm.c | 15 +---- tools/libxl/libxl_internal.h | 1 - tools/libxl/libxl_json.c | 137 ++++++------------------------------------- tools/libxl/libxl_pci.c | 18 +----- tools/libxl/libxl_qmp.c | 29 ++------- 8 files changed, 74 insertions(+), 278 deletions(-) -- Anthony PERARD