[Tarantool-patches] [PATCH v2 0/2] Stacked diagnostic area follow-ups

Nikita Pettik korablev at tarantool.org
Fri Apr 17 23:16:44 MSK 2020


Branch: https://github.com/tarantool/tarantool/tree/np/gh-4887-ref-error-on-prev
Issue: https://github.com/tarantool/tarantool/issues/4887

Changes in v2:

 - modified test so that now it uses weak references to check that
gc collected error objects (i.e. there's no memory leaks);
 - added overflow check in error_ref() so that after 2^32 calls
of box.error.last() or error:prev() error object won't contain
broken reference counter.

Nikita Pettik (2):
  box/error: don't allow overflow of error ref counter
  box/error: ref error.prev while accessing it

 extra/exports           |  1 +
 src/lib/core/diag.c     | 21 +++++++++++++
 src/lib/core/diag.h     | 29 ++++++------------
 src/lua/error.c         |  3 +-
 src/lua/error.lua       | 13 ++++++++
 test/box/error.result   | 68 +++++++++++++++++++++++++++++++++++++++++
 test/box/error.test.lua | 26 ++++++++++++++++
 7 files changed, 140 insertions(+), 21 deletions(-)

-- 
2.17.1



More information about the Tarantool-patches mailing list