From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: GNUS Kerberos support, native GSSAPI? Date: Mon, 24 Apr 2017 18:53:09 +0800 Message-ID: References: <87a89vmvd5.fsf@fastmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1142f130b9cca8054de76938 X-Trace: blaine.gmane.org 1493031230 30373 195.159.176.226 (24 Apr 2017 10:53:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Apr 2017 10:53:50 +0000 (UTC) Cc: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= , Joakim Jalap , Tom Tromey , emacs-devel To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 24 12:53:42 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2bcj-0007f3-2Z for ged-emacs-devel@m.gmane.org; Mon, 24 Apr 2017 12:53:41 +0200 Original-Received: from localhost ([::1]:43226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2bcn-0002nI-0K for ged-emacs-devel@m.gmane.org; Mon, 24 Apr 2017 06:53:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2bcG-0002n0-BE for emacs-devel@gnu.org; Mon, 24 Apr 2017 06:53:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2bcF-00060Y-ER for emacs-devel@gnu.org; Mon, 24 Apr 2017 06:53:12 -0400 Original-Received: from mail-vk0-x232.google.com ([2607:f8b0:400c:c05::232]:35832) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2bcF-000602-83 for emacs-devel@gnu.org; Mon, 24 Apr 2017 06:53:11 -0400 Original-Received: by mail-vk0-x232.google.com with SMTP id 198so15077174vkk.2 for ; Mon, 24 Apr 2017 03:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NpF7ts0iqIlfBRoQuKSh81rDOSYgCDUPBOWu+/Z2o1Y=; b=tXDf69tqm1QInafZHKdG8QeZ0r+brvLUvXsrGtR55p52YFA5N+jvybpOkw34E8TATE 7Yk7Cto+WIwA9zTYl+SRldBuj3ZnIBai6p/zkIcS9fKfI9bRGz7sZrs3NwZmrWFdEzix PrZ2ktImvdgmuDJw7+6iXzf7kbwtJETpcXvIfNGWdw3Cl72mCAb4OLEcMJ6N/IIjXneO WvX9Z71I+iiMX12moSoaAyOK8utkp7XVb7dTfUWG1ugo7V7YYVkE6ISs+Fxm1NHnWn80 ySJqycIPyeDaDwSFOZPKmWWGYHlTIuZNguOsk/H/r7Fth3dpmL/+Y09+430loioLP8nm JSDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NpF7ts0iqIlfBRoQuKSh81rDOSYgCDUPBOWu+/Z2o1Y=; b=RDnQbPXMvozz5HM0ZxLwwM71P6fIyPRiocMtC5S0dnEBPqbg2WLnkQWvjuOFFke987 uYZKzVS3iD/ZTXsbABTlQLa8tRqDSKIgwwiGBpLKLAymXA7fG/bI2t8WrXtzg0NIvjBM 8boLHmczGvBDF1XtYcJa2xNLa7VZ8UMmCMNGUW8Uo+EdnAC8A7Otslj12d1gesnbmZXS Xyvnr35y5TEUzEzcD8UZX30oWgTuqt1jRHVjNoy74jJn4EOVWDhuLfENl+UDvwtyKjL5 eXMzV7OaZsTtGRUUf0DWMwnWceygnygbIEY6ZAN8eoZ9hj3zQsqvpswopuqimlsXc7st 2WAw== X-Gm-Message-State: AN3rC/5igsd6gJfd6Oid8xpfb3fkv47W6IFvJDP+sLXNIbLZUC/ufr5L EnSYCYDguZtkSipDW7BJYg7wfzsCvw== X-Received: by 10.31.146.12 with SMTP id u12mr2031035vkd.102.1493031190119; Mon, 24 Apr 2017 03:53:10 -0700 (PDT) Original-Received: by 10.103.34.197 with HTTP; Mon, 24 Apr 2017 03:53:09 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400c:c05::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214259 Archived-At: --001a1142f130b9cca8054de76938 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 24 April 2017 at 01:31, Philipp Stephani wrote: > Aur=C3=A9lien Aptel schrieb am Fr., 10. = Feb. > 2017 um 19:21 Uhr: > >> >> This was not always the case: the behaviour was changed by Philipp at >> some point. We still have the make_global_ref and free_global_ref >> functions in the API, which serve no purpose as a result (correct me >> if I'm wrong). >> > > Using make_global_ref is definitely intended to make objects usable acros= s > environments (i.e. you should be able to use them in any thread whenever > any environment is active). If that's not the case, please report a bug. > The alternative of using intern everywhere is also not too bad because > it's much simpler and more obvious (no global state that you have to trac= k > carefully). I'd recommend only switching to global references if there is= a > significant performance penalty. > Thanks. I'll stick with env->intern then. :-) I'll also keep your point in mind, and if I see the issue again I'll send a bug report. --001a1142f130b9cca8054de76938 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 2= 4 April 2017 at 01:31, Philipp Stephani <p.stephani2@gmail.com>= wrote:
=C2=A0
Aur=C3=A9lien Ap= tel <aurelien.aptel+emacs@gmail.com> schrieb am Fr., 10. Feb. 201= 7 um 19:21=C2=A0Uhr:

This was not always the case: the behaviour was changed by Philipp at
some point. We still have the make_global_ref and free_global_ref
functions in the API, which serve no purpose as a result (correct me
if I'm wrong).

Using make_gl= obal_ref is definitely intended to make objects usable across environments = (i.e. you should be able to use them in any thread whenever any environment= is active). If that's not the case, please report a bug.
The= alternative of using intern everywhere is also not too bad because it'= s much simpler and more obvious (no global state that you have to track car= efully). I'd recommend only switching to global references if there is = a significant performance penalty.=C2=A0

Thanks. I'll st= ick with env->intern then. :-)

I'll also keep your point in mind, and if I= see the issue again I'll send a bug report.
--001a1142f130b9cca8054de76938--