[Tarantool-patches] [PATCH 07/16] buffer: implement ffi stash
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Tue Mar 23 03:29:39 MSK 2021
> diff --git a/src/lib/core/cord_buf.h b/src/lib/core/cord_buf.h
> index 5e65d138b..5ad5290c1 100644
> --- a/src/lib/core/cord_buf.h
> +++ b/src/lib/core/cord_buf.h
> @@ -21,6 +21,11 @@ cord_ibuf_take(void);
> * Put the global ibuf back. It is not necessary - the buffer is put back on the
> * next yield. But then it can't be reused/freed until the yield. Put it back
> * manually when possible.
> + *
> + * XXX: buffer auto-put could be made more robust via some amendments. One
> + * option - push a cdata with __gc handler on the stack which puts the buffer
> + * back, and disable it manually when all worked without errors. The cons is
> + * that it is expensive.
This comment has nothing to do with the commit. I added it
accidentally. Dropped on the branch.
More information about the Tarantool-patches
mailing list