fix some typos
Signed-off-by: cuishuang <imcusg@gmail.com>
diff --git a/bin/jeprof.in b/bin/jeprof.in
index e0b212a..dbf6252 100644
--- a/bin/jeprof.in
+++ b/bin/jeprof.in
@@ -5085,7 +5085,7 @@
} else {
# MapSymbolsWithNM tags each routine with its starting address,
# useful in case the image has multiple occurrences of this
- # routine. (It uses a syntax that resembles template paramters,
+ # routine. (It uses a syntax that resembles template parameters,
# that are automatically stripped out by ShortFunctionName().)
# addr2line does not provide the same information. So we check
# if nm disambiguated our symbol, and if so take the annotated
@@ -5437,7 +5437,7 @@
# "nm -f $image" is supposed to fail on GNU nm, but if:
#
# a. $image starts with [BbSsPp] (for example, bin/foo/bar), AND
- # b. you have a.out in your current directory (a not uncommon occurence)
+ # b. you have a.out in your current directory (a not uncommon occurrence)
#
# then "nm -f $image" succeeds because -f only looks at the first letter of
# the argument, which looks valid because it's [BbSsPp], and then since
diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in
index 8c3703b..ce7acd9 100644
--- a/doc/jemalloc.xml.in
+++ b/doc/jemalloc.xml.in
@@ -1409,7 +1409,7 @@
set to the empty string, no automatic dumps will occur; this is
primarily useful for disabling the automatic final heap dump (which
also disables leak reporting, if enabled). The default prefix is
- <filename>jeprof</filename>. This prefix value can be overriden by
+ <filename>jeprof</filename>. This prefix value can be overridden by
<link linkend="prof.prefix"><mallctl>prof.prefix</mallctl></link>.
</para></listitem>
</varlistentry>
diff --git a/include/jemalloc/internal/extent.h b/include/jemalloc/internal/extent.h
index 7336e8b..1d51d41 100644
--- a/include/jemalloc/internal/extent.h
+++ b/include/jemalloc/internal/extent.h
@@ -104,7 +104,7 @@
edata_committed_get(neighbor))) {
/*
* Some platforms (e.g. Windows) require an explicit
- * commit step (and writing to uncomitted memory is not
+ * commit step (and writing to uncommitted memory is not
* allowed).
*/
return false;
diff --git a/include/jemalloc/internal/jemalloc_internal_includes.h b/include/jemalloc/internal/jemalloc_internal_includes.h
index 90a12a1..751c112 100644
--- a/include/jemalloc/internal/jemalloc_internal_includes.h
+++ b/include/jemalloc/internal/jemalloc_internal_includes.h
@@ -10,7 +10,7 @@
* structs, externs, and inlines), and included each header file multiple times
* in this file, picking out the portion we want on each pass using the
* following #defines:
- * JEMALLOC_H_TYPES : Preprocessor-defined constants and psuedo-opaque data
+ * JEMALLOC_H_TYPES : Preprocessor-defined constants and pseudo-opaque data
* types.
* JEMALLOC_H_STRUCTS : Data structures.
* JEMALLOC_H_EXTERNS : Extern data declarations and function prototypes.
diff --git a/include/jemalloc/internal/pa.h b/include/jemalloc/internal/pa.h
index 3cf370c..4748a05 100644
--- a/include/jemalloc/internal/pa.h
+++ b/include/jemalloc/internal/pa.h
@@ -180,7 +180,7 @@
size_t new_size, szind_t szind, bool *deferred_work_generated);
/*
* Frees the given edata back to the pa. Sets *generated_dirty if we produced
- * new dirty pages (well, we alwyas set it for now; but this need not be the
+ * new dirty pages (well, we always set it for now; but this need not be the
* case).
* (We could make generated_dirty the return value of course, but this is more
* consistent with the shrink pathway and our error codes here).
diff --git a/include/jemalloc/internal/sc.h b/include/jemalloc/internal/sc.h
index 308985f..9bab347 100644
--- a/include/jemalloc/internal/sc.h
+++ b/include/jemalloc/internal/sc.h
@@ -348,7 +348,7 @@
void sc_data_init(sc_data_t *data);
/*
* Updates slab sizes in [begin, end] to be pgs pages in length, if possible.
- * Otherwise, does its best to accomodate the request.
+ * Otherwise, does its best to accommodate the request.
*/
void sc_data_update_slab_size(sc_data_t *data, size_t begin, size_t end,
int pgs);
diff --git a/src/jemalloc.c b/src/jemalloc.c
index 7e5bd33..9c94425 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -327,7 +327,7 @@
}
/*
- * FreeBSD's libc uses the bootstrap_*() functions in bootstrap-senstive
+ * FreeBSD's libc uses the bootstrap_*() functions in bootstrap-sensitive
* situations that cannot tolerate TLS variable access (TLS allocation and very
* early internal data structure initialization).
*/
diff --git a/src/tsd.c b/src/tsd.c
index b98c34b..e8e4f3a 100644
--- a/src/tsd.c
+++ b/src/tsd.c
@@ -209,7 +209,7 @@
/*
* This is the tricky case. We're transitioning from
* one nominal state to another. The caller can't know
- * about any races that are occuring at the same time,
+ * about any races that are occurring at the same time,
* so we always have to recompute no matter what.
*/
tsd_slow_update(tsd);
diff --git a/test/analyze/rand.c b/test/analyze/rand.c
index a4ab49a..bb20b06 100644
--- a/test/analyze/rand.c
+++ b/test/analyze/rand.c
@@ -34,7 +34,7 @@
* (c) Any generated number >= n_bucket * 2^lg_bucket_width will be counted
* towards the last bucket; the expected mean and stddev provided should
* also reflect that.
- * (d) The number of iterations is adviced to be determined so that the bucket
+ * (d) The number of iterations is advised to be determined so that the bucket
* with the minimal expected proportion gets a sufficient count.
*/
diff --git a/test/unit/sz.c b/test/unit/sz.c
index be11aca..8ae04b9 100644
--- a/test/unit/sz.c
+++ b/test/unit/sz.c
@@ -4,7 +4,7 @@
/*
* Testing page size classes which reside prior to the regular group
* with all size classes divisible by page size.
- * For x86_64 Linux, it's 4096, 8192, 12288, 16384, with correponding
+ * For x86_64 Linux, it's 4096, 8192, 12288, 16384, with corresponding
* pszind 0, 1, 2 and 3.
*/
for (size_t i = 0; i < SC_NGROUP; i++) {