Amazing, thanks! I had no idea this was possible.

On Thu, 4 Dec 2025 at 17:55, Bruno Haible <[email protected]> wrote:

> Reuben Thomas wrote:
> > See https://savannah.gnu.org/bugs/index.php?item_id=66853
>
> The main report there is:
> > ... makes some memory blocks to be allocated using system
> malloc()/calloc(),
> > but passed to GC_realloc().
>
> If you have definitions
>   #define malloc GC_malloc
>   #define calloc GC_calloc
>   #define realloc GC_realloc
> and you need your application to use these Boehm-GC functions throughout
> the code, you need to invoke gnulib-tool with the options
>
>   --avoid=malloc-posix --avoid=malloc-gnu \
>   --avoid=calloc-posix --avoid=calloc-gnu \
>   --avoid=realloc-posix --avoid=realloc-gnu
>
> Bruno
>
>
>
>

-- 
Web: rrt.sc3d.org

Reply via email to