From d1f700355630c2d6e22ebff9de5f15b10aa14185 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 10 Dec 2010 20:52:04 -0800 Subject: sort: comment fix * src/sort.c: Comment fix re spin locks. --- src/sort.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/sort.c b/src/sort.c index 9cfc8144f..36e3b19fb 100644 --- a/src/sort.c +++ b/src/sort.c @@ -3149,10 +3149,7 @@ compare_nodes (void const *a, void const *b) return nodea->level < nodeb->level; } -/* Lock a merge tree NODE. - Spin locks were seen to perform better than mutexes when the number - of threads is limited to the number of processors, assuming 'sort' - never waits when writing to stdout. */ +/* Lock a merge tree NODE. */ static inline void lock_node (struct merge_node *node) @@ -4567,8 +4564,6 @@ main (int argc, char **argv) } else { - /* If NTHREADS > number of cores on the machine, spinlocking - could be wasteful. */ unsigned long int np2 = num_processors (NPROC_CURRENT_OVERRIDABLE); if (!nthreads || nthreads > np2) nthreads = np2; -- cgit v1.2.3-54-g00ecf