]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
misc: Fix a few typos in comments
authorYury Khrustalev <yury.khrustalev@arm.com>
Wed, 4 Mar 2026 09:04:14 +0000 (09:04 +0000)
committerYury Khrustalev <yury.khrustalev@arm.com>
Wed, 4 Mar 2026 09:04:14 +0000 (09:04 +0000)
malloc/arena.c
malloc/malloc.c
malloc/mcheck-impl.c
malloc/memusage.c
malloc/tst-aligned-alloc-random-thread.c
nptl/pthread_cancel.c
sysdeps/aarch64/dl-gcs.c
sysdeps/generic/ldsodefs.h

index cabeb0d8ce1783121af3327ccd3371ab516b8722..d2ed6279226856d630cfdf734303c4b936512f58 100644 (file)
@@ -423,7 +423,7 @@ alloc_new_heap  (size_t size, size_t top_pad, size_t pagesize,
       return NULL;
     }
 
-  /* Only considere the actual usable range.  */
+  /* Only consider the actual usable range.  */
   __set_vma_name (p2, size, " glibc: malloc arena");
 
   madvise_thp (p2, size);
index 710887f4da20ad03a10a8281e707af7d82c3b9d7..f7b925c49ab5f579eb70aa255ff54d19e9640614 100644 (file)
@@ -545,7 +545,7 @@ tag_at (void *ptr)
   there's no compelling reason to bother to do this.)
 
   The main declaration needed is the mallinfo struct that is returned
-  (by-copy) by mallinfo().  The SVID/XPG malloinfo struct contains a
+  (by-copy) by mallinfo().  The SVID/XPG mallinfo struct contains a
   bunch of fields that are not even meaningful in this version of
   malloc.  These fields are are instead filled by mallinfo() with
   other numbers that might be of interest.
@@ -809,7 +809,7 @@ libc_hidden_proto (__libc_mallopt)
   might set to a value close to the average size of a process
   (program) running on your system.  Releasing this much memory
   would allow such a process to run in memory.  Generally, it's
-  worth it to tune for trimming rather tham memory mapping when a
+  worth it to tune for trimming rather than memory mapping when a
   program undergoes phases where several large chunks are
   allocated and released in ways that can reuse each other's
   storage, perhaps mixed with phases where there are no such
@@ -973,7 +973,7 @@ libc_hidden_proto (__libc_mallopt)
      having to zero memory over and over again
 
   The implementation works with a sliding threshold, which is by default
-  limited to go between 128Kb and 32Mb (64Mb for 64 bitmachines) and starts
+  limited to go between 128Kb and 32Mb (64Mb for 64 bit machines) and starts
   out at 128Kb as per the 2001 default.
 
   This allows us to satisfy requirement 1) under the assumption that long
index 263dc50e42a293e0b35ad225fdc01e135a34b18c..b3bf680239276bb85c7987f6faaa2fa4ef7db511 100644 (file)
@@ -46,7 +46,7 @@ struct hdr
    It is only constructed if the pedantic testing is requested.  */
 static struct hdr *root;
 
-/* Nonzero if pedentic checking of all blocks is requested.  */
+/* Nonzero if pedantic checking of all blocks is requested.  */
 static bool pedantic;
 
 #if defined _LIBC || defined STDC_HEADERS || defined USG
index 227942623695f41bb2dbb6cbecad503f6323d824..f539c1141834aa070fefc01005a51bbd2fd35db8 100644 (file)
@@ -942,7 +942,7 @@ dest (void)
              failed[idx_munmap] ? "\e[01;41m" : "",
              (unsigned long int) failed[idx_munmap]);
 
-  /* Write out a histoogram of the sizes of the allocations.  */
+  /* Write out a histogram of the sizes of the allocations.  */
   fprintf (stderr, "\e[01;32mHistogram for block sizes:\e[0;0m\n");
 
   /* Determine the maximum of all calls for each size range.  */
index db94c24a096a8740aabcdba1f5c41a9dc0270009..a582ec6307fadc0dcb5c1201a934059a587e254e 100644 (file)
@@ -89,7 +89,7 @@ run_allocations (void *arg)
 
   xpthread_barrier_wait (&barrier);
 
-  /* Stage 2: Half of the threads allocationg memory and the other
+  /* Stage 2: Half of the threads allocating memory and the other
    * half deallocating:
    * - In the non cross-thread dealloc scenario the first half will be
    *   deallocating the memory allocated by themselves in stage 1 and the
index 5fe31c266c6bd1169606f68c21ff834773419f15..9150411271dff22be5cbca21739f47f3960a90dd 100644 (file)
@@ -97,8 +97,8 @@ __pthread_cancel (pthread_t th)
      EINTR).  So pthread_cancel cannot send SIGCANCEL unless the cancellation
      is enabled.
      In this case the target thread is set as 'cancelled' (CANCELED_BITMASK)
-     by atomically setting 'cancelhandling' and the cancelation will be acted
-     upon on next cancellation entrypoing in the target thread.
+     by atomically setting 'cancelhandling' and the cancellation will be acted
+     upon on next cancellation entrypoint in the target thread.
 
      It also requires to atomically check if cancellation is enabled, so the
      state are also tracked on 'cancelhandling'.  */
@@ -113,7 +113,7 @@ __pthread_cancel (pthread_t th)
       if (oldval == newval)
        break;
 
-      /* Only send the SIGANCEL signal if cancellation is enabled, since some
+      /* Only send the SIGCANCEL signal if cancellation is enabled, since some
         syscalls are never restarted even with SA_RESTART.  The signal
         will act iff async cancellation is enabled.  */
       if (cancel_enabled (newval))
index 841d6428d6d4c506750a1044592637dfe0eddb9e..4961ad75eb736e6da961c2994e5783f852363c72 100644 (file)
@@ -86,7 +86,7 @@ check_gcs (struct link_map *l, const char *program, bool enforced,
   if (__glibc_unlikely (GLRO(dl_debug_mask) & DL_DEBUG_SECURITY))
     warn (l, program);
   /* Binary is not marked and loaded via dlopen: abort.  Also, do not
-     fail is optional dlopne_mode is being used with audit modules without
+     fail is optional dlopen_mode is being used with audit modules without
      GCS support.  */
   if (program == NULL && (dlopen_mode & __RTLD_AUDIT) == 0)
     fail (l, program);
index 0fcc14999c25a10cdabb1c4eb1ebade89ad948cd..76afc5df7decddf0784823b40e3a9c01ad63ebf8 100644 (file)
@@ -1247,7 +1247,7 @@ extern struct link_map * _dl_get_dl_main_map (void) attribute_hidden;
 /* Find origin of the executable.  */
 extern const char *_dl_get_origin (void) attribute_hidden;
 
-/* Return the canonalized path name from the opened file descriptor FD,
+/* Return the canonicalized path name from the opened file descriptor FD,
    or NULL otherwise.  */
 extern char * _dl_canonicalize (int fd) attribute_hidden;
 
@@ -1387,7 +1387,7 @@ link_map_audit_state (struct link_map *l, size_t index)
 }
 
 /* Call the la_objsearch from the audit modules from the link map L.  If
-   ORIGNAME is non NULL, it is updated with the revious name prior calling
+   ORIGNAME is non NULL, it is updated with the previous name prior calling
    la_objsearch.  */
 const char *_dl_audit_objsearch (const char *name, struct link_map *l,
                                 unsigned int code)