[aegl@unix-os.sc.intel.com] libc/2223: _pthread_lock sometimes spins uselessly

Andreas Jaeger aj@suse.de
Mon Apr 30 12:01:00 GMT 2001


Hi glibc folks,

please comment on the appended bug report.  Should we really change
_pthread_fastlock to:

struct _pthread_fastlock
{
  volatile long int __status;   /* "Free" or "taken" or head of waiting list */
  int __spinlock;      /* Used by compare_and_swap emulation. Also,
			  adaptive SMP lock stores spin count here. */
};

Andreas



More information about the Libc-alpha mailing list