From: "Elias Mårtenson" <lokedhs@gmail.com>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: Andreas Politz <politza@hochschule-trier.de>,
emacs-devel <emacs-devel@gnu.org>
Subject: Re: Module support: No environment in pointer release function
Date: Mon, 27 Feb 2017 12:31:33 +0800 [thread overview]
Message-ID: <CADtN0WK1bS7tSZU=aTVbpM_gCSTpA=uYmN8q7CWJhDEO4Ygr5A@mail.gmail.com> (raw)
In-Reply-To: <CAArVCkRdC-Djjs1T03RQea=0t3K8ZbYva9y-Qx5wpKgW59vCYA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 918 bytes --]
On 27 February 2017 at 00:23, Philipp Stephani <p.stephani2@gmail.com>
wrote:
>
> Elias Mårtenson <lokedhs@gmail.com> schrieb am Fr., 10. Feb. 2017 um
> 06:21 Uhr:
>
> Right now I simply call abort() if there is an error. Excessive, I know,
>> but at least I know when there is a problem and the stack trace gives me
>> all the answers I need.
>>
>> I'm not sure I should keep the abort() in the final version though.
>>
>
> Probably not. You should either log (on stderr) and ignore the error, or
> not call gss_release_name (or any other function that can fail) in a
> finalizer.
> Just like they Java counterpart, finalizers can't fail. There's also no
> guarantee that they ever be called, or when they are called, so you
> shouldn't use them to implement cleanup that has to be deterministic or can
> fail.
>
Thank you. That seems reasonable, and I will do this.
Regards,
Elias
[-- Attachment #2: Type: text/html, Size: 2338 bytes --]
prev parent reply other threads:[~2017-02-27 4:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-03 2:55 Module support: No environment in pointer release function Elias Mårtenson
2017-02-06 5:33 ` Paul Eggert
2017-02-07 3:16 ` Elias Mårtenson
2017-02-07 6:41 ` Paul Eggert
2017-02-07 12:54 ` Philipp Stephani
2017-02-07 12:51 ` Philipp Stephani
2017-02-07 12:50 ` Philipp Stephani
2017-02-08 17:03 ` Andreas Politz
2017-02-10 5:21 ` Elias Mårtenson
2017-02-10 5:22 ` Elias Mårtenson
2017-02-10 9:27 ` Andreas Politz
2017-02-26 16:23 ` Philipp Stephani
2017-02-27 4:31 ` Elias Mårtenson [this message]
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='CADtN0WK1bS7tSZU=aTVbpM_gCSTpA=uYmN8q7CWJhDEO4Ygr5A@mail.gmail.com' \
--to=lokedhs@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=p.stephani2@gmail.com \
--cc=politza@hochschule-trier.de \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.