Re: [PATCH hurd 28/30] libports: use protected payloads to optimize the object lookup

2015-04-04 Thread Justus Winter
Quoting Justus Winter (2015-04-03 11:55:07) > Quoting Samuel Thibault (2014-12-09 02:21:20) > > Justus Winter, le Thu 04 Dec 2014 15:39:04 +0100, a écrit : > > > If we now `ports_destroy_right' X, and at the same time the last send > > > right to X is destroyed, there's a chance that said notificat

Re: [PATCH hurd 28/30] libports: use protected payloads to optimize the object lookup

2015-04-03 Thread Justus Winter
Quoting Samuel Thibault (2014-12-09 02:21:20) > Justus Winter, le Thu 04 Dec 2014 15:39:04 +0100, a écrit : > > If we now `ports_destroy_right' X, and at the same time the last send > > right to X is destroyed, there's a chance that said notification is > > already delivered to X. > > Mmm, isn't t

Re: [PATCH hurd 28/30] libports: use protected payloads to optimize the object lookup

2014-12-08 Thread Samuel Thibault
Justus Winter, le Thu 04 Dec 2014 15:39:04 +0100, a écrit : > If we now `ports_destroy_right' X, and at the same time the last send > right to X is destroyed, there's a chance that said notification is > already delivered to X. Mmm, isn't that also true for any kind of message? Samuel

Re: [PATCH hurd 28/30] libports: use protected payloads to optimize the object lookup

2014-12-04 Thread Justus Winter
Hello, Hm, this was always the weakest part of the patch series. And I'm still not satisfied with it. Quoting Samuel Thibault (2014-12-02 01:51:36) > Justus Winter, le Thu 27 Nov 2014 14:19:08 +0100, a écrit : > > + /* We are the only one updating generation, so this is safe. */ > > +

Re: [PATCH hurd 28/30] libports: use protected payloads to optimize the object lookup

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:19:08 +0100, a écrit : > + /* We are the only one updating generation, so this is safe. */ > + old = generation; > + > + /* Update generation. */ > + __atomic_store_n (&generation, (old + 1) % 3, __ATOMIC_RELAXED); > + > + /* This is t

[PATCH hurd 28/30] libports: use protected payloads to optimize the object lookup

2014-11-27 Thread Justus Winter
* libports/create-internal.c (_ports_create_port_internal): Set the protected payload to the objects address. * libports/import-port.c (ports_import_port): Likewise. * libports/reallocate-from-external.c (ports_reallocate_from_external): Likewise. * libports/reallocate-port.c (ports_reallocate_port