[RFC] kern: simple futex for gnumach (version 9)

2014-01-04 Thread Marin Ramesa
Red-black tree is used which simplifies the code. Instead of clear_wait(), thread_wakeup_prim() is used with the waiter's offset as the event, which removes the need for a seperate cross wake function. Value at the futex address is retrieved via a copyin() call and the compare before the block is

Re: [RFC] kern: simple futex for gnumach (version 9)

2014-01-04 Thread Justus Winter
Hi :) Quoting Marin Ramesa (2014-01-04 11:12:42) This is not yet ready to be called from userspace since glibc build on the Hurd doesn't seem to compile the new RPCs. I don't know how to actually call them. mig is your friend: % mig pong.defs % ls pong* pong.defs pong.h pongServer.c

Re: [PATCH 5/5] kern: make struct kmem_cache fit into two cache lines

2014-01-04 Thread Ludovic Courtès
Justus Winter 4win...@informatik.uni-hamburg.de skribis: Previously, the size of struct kmem_cache was 136 bytes, just eight bytes larger than 128 bytes, which is typically two cache lines on today's CPUs. By reducing the size of the name field which holds a human-readable description by