tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] tcc_set_realloc() no longer works as advertised


From: Eric Raible
Subject: [Tinycc-devel] tcc_set_realloc() no longer works as advertised
Date: Tue, 20 Feb 2024 22:16:31 -0800

Was it intended that d2f8ceac7 (tccrun: review last changes) would go
against the comment in libtcc.h?

/* set custom allocator for all allocations (optional) */
LIBTCCAPI void tcc_set_realloc(TCCReallocFunc *my_realloc);

Because default (unless -DCONFIG_RUNMEM_ALIGNED=0) since d2f8ceac7
is to use memalign() / libc_free() for some memory (mprotect()-ed ones?)
and the user-specified allocator for others.

At the very least, this diminishes the utility of a user-specified allocator.

- Eric


reply via email to

[Prev in Thread] Current Thread [Next in Thread]