Skip to content

Cleanup: flexarray taking gc.

Anthony PERARD xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 3 repliesIn review
  2. v22 patches 3 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- New patch to expose gc_is_real to libxl.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libxl: Move gc_is_real to libxl_internal.h.tools/libxl/libxl_internal.c tools/libxl/libxl_internal.h+8 -81 reply
2/3libxl: Have flexarray using the GCtools/libxl/flexarray.c tools/libxl/flexarray.h tools/libxl/libxl.c +4 more+60 -1581 reply
3/3libxl_json: Use libxl alloc function.tools/libxl/libxl_json.c tools/libxl/libxl_qmp.c+19 -690 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchIan Jackson
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH V3 0/3] Cleanup: flexarray taking gc.

This two patches do a bit of cleanup in the memomy managment in libxl, regarding the use of flexarray.

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

The second one does some cleanup only in libxl_json to make it use the gc.

Change since v2:
- New patch to expose gc_is_real to libxl.

Change since v1:
- Change order of the two patch to not end up with leaks.
- Add a comment on the first patch to tell why it OK to store the gc in the flexarray struct.
- Keep the _free functions (libxl__json_object_free and flexarray_free, as they can be used if gc in NOGC.

Anthony PERARD (3):
libxl: Move gc_is_real to libxl_internal.h.
libxl: Have flexarray using the GC
libxl_json: Use libxl alloc function.

 tools/libxl/flexarray.c      | 43 +++++++++++--------
 tools/libxl/flexarray.h      |  7 +++-
 tools/libxl/libxl.c          | 99 +++++++++-----------------------------------
 tools/libxl/libxl_dm.c       | 15 ++-----
 tools/libxl/libxl_internal.c | 11 ++---
 tools/libxl/libxl_internal.h |  5 +++
 tools/libxl/libxl_json.c     | 93 +++++++++--------------------------------
 tools/libxl/libxl_pci.c      | 18 ++------
 tools/libxl/libxl_qmp.c      | 29 ++-----------
 9 files changed, 86 insertions(+), 234 deletions(-)
Signature · 1 line
Anthony PERARD