From 9a242f16d9e4a6afcd53782a9427471f6d144f1f Mon Sep 17 00:00:00 2001 From: cuishuang Date: Sun, 24 Apr 2022 23:32:44 +0800 Subject: [PATCH] fix some typos Signed-off-by: cuishuang --- bin/jeprof.in | 4 ++-- doc/jemalloc.xml.in | 2 +- include/jemalloc/internal/extent.h | 2 +- include/jemalloc/internal/jemalloc_internal_includes.h | 2 +- include/jemalloc/internal/pa.h | 2 +- include/jemalloc/internal/sc.h | 2 +- src/jemalloc.c | 2 +- src/tsd.c | 2 +- test/analyze/rand.c | 2 +- test/unit/sz.c | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/jeprof.in b/bin/jeprof.in index e0b212ae..dbf6252b 100644 --- a/bin/jeprof.in +++ b/bin/jeprof.in @@ -5085,7 +5085,7 @@ sub MapToSymbols { } 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 @@ sub GetProcedureBoundaries { # "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 8c3703bd..ce7acd9f 100644 --- a/doc/jemalloc.xml.in +++ b/doc/jemalloc.xml.in @@ -1409,7 +1409,7 @@ malloc_conf = "xmalloc:true";]]> 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 - jeprof. This prefix value can be overriden by + jeprof. This prefix value can be overridden by prof.prefix. diff --git a/include/jemalloc/internal/extent.h b/include/jemalloc/internal/extent.h index 7336e8b8..1d51d410 100644 --- a/include/jemalloc/internal/extent.h +++ b/include/jemalloc/internal/extent.h @@ -104,7 +104,7 @@ extent_can_acquire_neighbor(edata_t *edata, rtree_contents_t contents, 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 90a12a12..751c112f 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 3cf370c8..4748a05b 100644 --- a/include/jemalloc/internal/pa.h +++ b/include/jemalloc/internal/pa.h @@ -180,7 +180,7 @@ bool pa_shrink(tsdn_t *tsdn, pa_shard_t *shard, edata_t *edata, size_t old_size, 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 308985fa..9bab347b 100644 --- a/include/jemalloc/internal/sc.h +++ b/include/jemalloc/internal/sc.h @@ -348,7 +348,7 @@ size_t reg_size_compute(int lg_base, int lg_delta, int ndelta); 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 7e5bd338..9c94425c 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -327,7 +327,7 @@ a0dalloc(void *ptr) { } /* - * 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 b98c34bf..e8e4f3a3 100644 --- a/src/tsd.c +++ b/src/tsd.c @@ -209,7 +209,7 @@ tsd_state_set(tsd_t *tsd, uint8_t new_state) { /* * 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 a4ab49a2..bb20b06e 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 be11aca4..8ae04b92 100644 --- a/test/unit/sz.c +++ b/test/unit/sz.c @@ -4,7 +4,7 @@ TEST_BEGIN(test_sz_psz2ind) { /* * 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++) {