From: Nikita Pettik <korablev@tarantool.org> To: Kirill Yukhin <kyukhin@tarantool.org> Cc: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org Subject: Re: [Tarantool-patches] [PATCH v2 0/2] Stacked diagnostic area follow-ups Date: Mon, 20 Apr 2020 14:35:24 +0000 [thread overview] Message-ID: <20200420143524.GA27460@tarantool.org> (raw) In-Reply-To: <20200420142237.jrnslig6pusym6nd@tarantool.org> On 20 Apr 17:22, Kirill Yukhin wrote: > Hello, > > On 17 апр 23:16, Nikita Pettik wrote: > > 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 > > I've checked your patchset into master. > > However, looks like it'd be better to just replace int32 to > int64 and avoid problems if GC64. Could you please specify which problems you are talking about? Current fix simply prevents from overflow, so it does not introduce any other problems. Meanwhile users who ref single error more than 2^32 times are likely doing smth wrong so Lua error notifying them aboit it is a good practice IMHO. > Since I've already checked the patch in, could you please > prepare a patch which will revert functional changes of 2/2 > and use int64 instead? > > -- > Regards, Kirill Yukhin
next prev parent reply other threads:[~2020-04-20 14:35 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-17 20:16 Nikita Pettik 2020-04-17 20:16 ` [Tarantool-patches] [PATCH v2 1/2] box/error: don't allow overflow of error ref counter Nikita Pettik 2020-04-17 23:54 ` Vladislav Shpilevoy 2020-04-20 1:15 ` Nikita Pettik 2020-04-17 20:16 ` [Tarantool-patches] [PATCH v2 2/2] box/error: ref error.prev while accessing it Nikita Pettik 2020-04-20 14:22 ` [Tarantool-patches] [PATCH v2 0/2] Stacked diagnostic area follow-ups Kirill Yukhin 2020-04-20 14:35 ` Nikita Pettik [this message] 2020-04-20 15:29 ` 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=20200420143524.GA27460@tarantool.org \ --to=korablev@tarantool.org \ --cc=kyukhin@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v2 0/2] Stacked diagnostic area follow-ups' \ /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