Displaying 1 result from an estimated 1 matches for "spinlock_count".
2016 Dec 29
1
[compiler-rt] Improve atomic locking?
Hey,
I am wondering if there wouldn't be more room for improving the
locking of a pointer when an atomic operation is being made since I've
noticed that one could increase the SPINLOCK_COUNT in
lib/builtins/atomic.c to (1 << 13) which is a 8x increase of available
locks if we also change the type of the atomic lock which currently is
uintptr_t to a single byte (uint8_t) which I think is more appropriate
since the lock can only have two states for other systems than
freebsd, macos...