Re: Futexes for OpenBSD

2016-09-04 Thread Mark Kettenis
> Date: Sun, 4 Sep 2016 15:17:21 +0200 > From: Michal Mazurek > > Resending a diff that works with the current tree. > > Comments? I believe it was said before, but this can't go in since it breaks architectures that don't implement the __sync_xxx primitives. > Index: sys/conf/files >

Re: Futexes for OpenBSD

2016-09-04 Thread Michal Mazurek
Resending a diff that works with the current tree. Comments? Index: sys/conf/files === RCS file: /cvs/src/sys/conf/files,v retrieving revision 1.627 diff -u -p -r1.627 files --- sys/conf/files 4 Sep 2016 09:22:28 - 1.6

Re: Futexes for OpenBSD

2016-09-03 Thread Gregor Best
On Fri, Sep 02, 2016 at 03:36:50PM +0200, Michal Mazurek wrote: > Here is a working futex implementation for OpenBSD. This diff touches > the kernel and librthread. > > * get rid of tickets from rthreads, they were getting in the way and are > unused anyway > * replace all struct _spinlock wit

Re: Futexes for OpenBSD

2016-09-02 Thread Jonathan Gray
On Fri, Sep 02, 2016 at 03:36:50PM +0200, Michal Mazurek wrote: > Here is a working futex implementation for OpenBSD. This diff touches > the kernel and librthread. > > * get rid of tickets from rthreads, they were getting in the way and are > unused anyway > * replace all struct _spinlock wit

Re: Futexes for OpenBSD

2016-09-02 Thread Amit Kulkarni
The new files should have the ISC/OpenBSD license inserted at the top. IMHO, the ticket changes are a separate diff and you will be able to commit that part first. Also, replacing struct _spinlock with int is also a separate diff. Those changes don't clash with futexes, so less chance of being r

Futexes for OpenBSD

2016-09-02 Thread Michal Mazurek
Here is a working futex implementation for OpenBSD. This diff touches the kernel and librthread. * get rid of tickets from rthreads, they were getting in the way and are unused anyway * replace all struct _spinlock with int * use futexes instead of spinlocks everywhere within librthread * libr