diff options
author | vangyzen <vangyzen@FreeBSD.org> | 2017-06-01 16:03:01 +0000 |
---|---|---|
committer | vangyzen <vangyzen@FreeBSD.org> | 2017-06-01 16:03:01 +0000 |
commit | 2844e19fe7f54e34791df710ce48485a185ec5cd (patch) | |
tree | c7122494032ed203ef8c015929a4d2e8a4db37c5 /lib/libc | |
parent | 508684527e060482e9a54c7e672cb2ad3838f47b (diff) | |
download | FreeBSD-src-2844e19fe7f54e34791df710ce48485a185ec5cd.zip FreeBSD-src-2844e19fe7f54e34791df710ce48485a185ec5cd.tar.gz |
MFC r318582
Remove old spinlock_debug code from libc
This no longer seems useful. Remove it.
This was prompted by a "cast discards volatile qualifier" warning
in libthr when WARNS=6.
Sponsored by: Dell EMC
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/Symbol.map | 1 | ||||
-rw-r--r-- | lib/libc/gen/_spinlock_stub.c | 2 | ||||
-rw-r--r-- | lib/libc/include/spinlock.h | 13 |
3 files changed, 4 insertions, 12 deletions
diff --git a/lib/libc/gen/Symbol.map b/lib/libc/gen/Symbol.map index f452297..cb4e4da 100644 --- a/lib/libc/gen/Symbol.map +++ b/lib/libc/gen/Symbol.map @@ -489,7 +489,6 @@ FBSDprivate_1.0 { _pthread_sigmask; _pthread_testcancel; _spinlock; - _spinlock_debug; _spinunlock; _rtld_addr_phdr; _rtld_atfork_pre; diff --git a/lib/libc/gen/_spinlock_stub.c b/lib/libc/gen/_spinlock_stub.c index 3decf8a..e08db88 100644 --- a/lib/libc/gen/_spinlock_stub.c +++ b/lib/libc/gen/_spinlock_stub.c @@ -38,7 +38,6 @@ __FBSDID("$FreeBSD$"); long _atomic_lock_stub(volatile long *); void _spinlock_stub(spinlock_t *); void _spinunlock_stub(spinlock_t *); -void _spinlock_debug_stub(spinlock_t *, char *, int); __weak_reference(_atomic_lock_stub, _atomic_lock); @@ -48,7 +47,6 @@ _atomic_lock_stub(volatile long *lck __unused) return (0L); } -__weak_reference(_spinlock, _spinlock_debug); #pragma weak _spinlock void _spinlock(spinlock_t *lck) diff --git a/lib/libc/include/spinlock.h b/lib/libc/include/spinlock.h index c9facc5..c29f3f5 100644 --- a/lib/libc/include/spinlock.h +++ b/lib/libc/include/spinlock.h @@ -41,21 +41,17 @@ * Lock structure with room for debugging information. */ struct _spinlock { - volatile long access_lock; - volatile long lock_owner; - volatile char *fname; - volatile int lineno; + long spare1; + long spare2; + void *thr_extra; + int spare3; }; typedef struct _spinlock spinlock_t; #define _SPINLOCK_INITIALIZER { 0, 0, 0, 0 } #define _SPINUNLOCK(_lck) _spinunlock(_lck); -#ifdef _LOCK_DEBUG -#define _SPINLOCK(_lck) _spinlock_debug(_lck, __FILE__, __LINE__) -#else #define _SPINLOCK(_lck) _spinlock(_lck) -#endif /* * Thread function prototype definitions: @@ -64,7 +60,6 @@ __BEGIN_DECLS long _atomic_lock(volatile long *); void _spinlock(spinlock_t *); void _spinunlock(spinlock_t *); -void _spinlock_debug(spinlock_t *, char *, int); __END_DECLS #endif /* _SPINLOCK_H_ */ |