]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
sort: comment fix
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 Dec 2010 04:52:04 +0000 (20:52 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 Dec 2010 08:29:13 +0000 (00:29 -0800)
* src/sort.c: Comment fix re spin locks.

src/sort.c

index 9cfc8144f8fc675957638c2ea54f79b966a7131e..36e3b19fba99591b9dc5257ebc6f8fcf71854169 100644 (file)
@@ -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;