Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: tarantool-patches@dev.tarantool.org, kostja.osipov@gmail.com
Subject: [Tarantool-patches] [PATCH 0/2] Module is not unloaded on function drop
Date: Wed, 27 Nov 2019 00:29:39 +0100	[thread overview]
Message-ID: <cover.1574810891.git.v.shpilevoy@tarantool.org> (raw)

The patchset fixes a problem when a C function, added via
box.schema.func.create(), is dropped, but its dynamic library is not unloaded
from the process' memory.

Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4648-func-unload
Issue: https://github.com/tarantool/tarantool/issues/4648

Vladislav Shpilevoy (2):
  errinj: provide 'get' method in Lua
  func: fix not unloading of unused modules

 src/box/func.c                             |  16 +--
 src/box/func.h                             |   2 -
 src/box/lua/error.cc                       |  37 ++++--
 src/lib/core/errinj.h                      |   1 +
 test/box/errinj.result                     |  55 +++++++++
 test/box/errinj.test.lua                   |  17 +++
 test/box/function1.c                       |  15 +++
 test/box/gh-4648-func-load-unload.result   | 137 +++++++++++++++++++++
 test/box/gh-4648-func-load-unload.test.lua |  63 ++++++++++
 test/box/suite.ini                         |   2 +-
 10 files changed, 326 insertions(+), 19 deletions(-)
 create mode 100644 test/box/gh-4648-func-load-unload.result
 create mode 100644 test/box/gh-4648-func-load-unload.test.lua

-- 
2.21.0 (Apple Git-122.2)

             reply	other threads:[~2019-11-26 23:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26 23:29 Vladislav Shpilevoy [this message]
2019-11-26 23:29 ` [Tarantool-patches] [PATCH 1/2] errinj: provide 'get' method in Lua Vladislav Shpilevoy
2019-11-27  8:35   ` Konstantin Osipov
2019-11-26 23:29 ` [Tarantool-patches] [PATCH 2/2] func: fix not unloading of unused modules Vladislav Shpilevoy
2019-11-27  8:41   ` Konstantin Osipov
2019-11-27 22:24     ` Vladislav Shpilevoy
2019-12-10 14:22 ` [Tarantool-patches] [PATCH 0/2] Module is not unloaded on function drop Kirill Yukhin
2019-12-11 21:36   ` Alexander Turenko
2019-12-11 22:33   ` Vladislav Shpilevoy
2019-12-19  4:50 ` Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1574810891.git.v.shpilevoy@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=kostja.osipov@gmail.com \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH 0/2] Module is not unloaded on function drop' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox