libuv/docs/src
Brett Vickers c272f1f1bc memory: add uv_replace_allocator
With uv_replace_allocator, it's possible to override the default
memory allocator's malloc and free calls with functions of the user's
choosing. This allows libuv to interoperate with projects requiring a
custom memory allocator.

Internally, all calls to malloc and free have been replaced with
uv__malloc and uv__free, respectively. The uv__malloc and uv__free
functions call malloc and free unless they have been overridden by a
previous call to uv_replace_allocator.

As part of this change, the special aligned memory allocations
performed in src/win/fs-event.c have been replaced with standard
allocations. The 4-byte alignment being requested in this file was
unnecessary, since standard allocators already guarantee at least an
8-byte alignment.

PR-URL: https://github.com/libuv/libuv/pull/231
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2015-03-05 20:02:16 +01:00
..
sphinx-plugins doc: add Sphinx plugin for generating links to man pages 2015-03-02 14:20:02 +01:00
static doc: add API documentation 2014-09-11 09:38:35 +02:00
async.rst doc: clarify how uv_async_send behaves 2015-01-07 14:01:16 +01:00
check.rst doc: add API documentation 2014-09-11 09:38:35 +02:00
conf.py doc: add Sphinx plugin for generating links to man pages 2015-03-02 14:20:02 +01:00
design.rst doc: fix spelling 2014-11-29 04:22:56 +01:00
dll.rst doc: fix spelling 2014-11-29 04:22:56 +01:00
dns.rst doc: document uv_getnameinfo_t.{host|service} 2015-03-02 16:53:57 +01:00
errors.rst doc: add API documentation 2014-09-11 09:38:35 +02:00
fs_event.rst style: rename buf to buffer and len to size for consistency 2015-01-27 11:31:16 +01:00
fs_poll.rst style: rename buf to buffer and len to size for consistency 2015-01-27 11:31:16 +01:00
fs.rst doc: link system and library calls to man pages 2015-03-02 14:20:51 +01:00
handle.rst doc: fix typo: Strcutures -> Structures 2014-11-26 08:42:08 +01:00
idle.rst doc: add API documentation 2014-09-11 09:38:35 +02:00
index.rst doc,build,include: update project links 2014-11-25 15:39:12 +01:00
loop.rst doc: clarify uv_default_loop 2015-01-21 09:12:25 +01:00
migration_010_100.rst doc: fix spelling 2014-11-29 04:22:56 +01:00
misc.rst memory: add uv_replace_allocator 2015-03-05 20:02:16 +01:00
pipe.rst win, unix: add pipe_peername implementation 2015-01-28 21:40:32 +01:00
poll.rst doc: link system and library calls to man pages 2015-03-02 14:20:51 +01:00
prepare.rst doc: add API documentation 2014-09-11 09:38:35 +02:00
process.rst doc: add documentation for missing functions and structures 2014-10-01 09:23:09 +02:00
request.rst doc: fix typo: Strcutures -> Structures 2014-11-26 08:42:08 +01:00
signal.rst doc: add API documentation 2014-09-11 09:38:35 +02:00
stream.rst doc: link system and library calls to man pages 2015-03-02 14:20:51 +01:00
tcp.rst unix: set non-block mode in uv_{pipe,tcp,udp}_open 2015-01-14 19:46:54 +01:00
threading.rst doc: adjust next version to 1.4.1 2015-02-24 20:44:02 +01:00
threadpool.rst doc: clarify that the thread pool primites are not thread safe 2015-02-26 11:35:01 +01:00
timer.rst doc: add API documentation 2014-09-11 09:38:35 +02:00
tty.rst doc: clarify the behavior of uv_tty_init 2015-01-07 13:58:55 +01:00
udp.rst unix: set non-block mode in uv_{pipe,tcp,udp}_open 2015-01-14 19:46:54 +01:00