Skip to content

Commit 8ba50d6

Browse files
authored
Merge pull request #1 from chosungmann/fix-spelling-errors
Fix spelling errors
2 parents 6208e51 + def97b0 commit 8ba50d6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

include/mimalloc-types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ terms of the MIT license. A copy of the license can be found in the file
9696
// Maximum number of size classes. (spaced exponentially in 16.7% increments)
9797
#define MI_BIN_HUGE (64U)
9898

99-
// Minimal aligment necessary. On most platforms 16 bytes are needed
99+
// Minimal alignment necessary. On most platforms 16 bytes are needed
100100
// due to SSE registers for example. This must be at least `MI_INTPTR_SIZE`
101101
#define MI_MAX_ALIGN_SIZE 16 // sizeof(max_align_t)
102102

@@ -150,7 +150,7 @@ typedef union mi_thread_free_u {
150150
// `thread_free` for freed blocks by other threads
151151
// The `local_free` and `thread_free` lists are migrated to the `free` list
152152
// when it is exhausted. The separate `local_free` list is necessary to
153-
// implement a monotonic heartbeat. The `thead_free` list is needed for
153+
// implement a monotonic heartbeat. The `thread_free` list is needed for
154154
// avoiding atomic operations in the common case.
155155
//
156156
// `used - thread_freed` == actual blocks that are in use (alive)

src/alloc-override-osx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static void __attribute__((constructor)) _mi_macosx_override_malloc()
201201
zone.pressure_relief = &zone_pressure_relief;
202202
intro.zone_locked = &intro_zone_locked;
203203

204-
// force the purgable zone to exist to avoid strange bugs
204+
// force the purgeable zone to exist to avoid strange bugs
205205
if (malloc_default_purgeable_zone) {
206206
purgeable_zone = malloc_default_purgeable_zone();
207207
}

src/alloc-override-win.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ by us is freed after we unpatched.
3434
3535
There are two tricky situations to deal with:
3636
37-
1. The Thread Local Storage (TLS): when the main thead stops it will call registered
37+
1. The Thread Local Storage (TLS): when the main thread stops it will call registered
3838
callbacks on TLS entries (allocated by `FlsAlloc`). This is done by the OS
3939
before any DLL's are unloaded. Unfortunately, the C runtime registers such
4040
TLS entries with CRT allocated memory which is freed in the callback.

src/page-queue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ terms of the MIT license. A copy of the license can be found in the file
1818
----------------------------------------------------------- */
1919

2020
#if (MI_MAX_ALIGN_SIZE > 4*MI_INTPTR_SIZE)
21-
#error "define aligment for more than 4x word size for this platform"
21+
#error "define alignment for more than 4x word size for this platform"
2222
#elif (MI_MAX_ALIGN_SIZE > 2*MI_INTPTR_SIZE)
2323
#define MI_ALIGN4W // 4 machine words minimal alignment
2424
#elif (MI_MAX_ALIGN_SIZE > MI_INTPTR_SIZE)
2525
#define MI_ALIGN2W // 2 machine words minimal alignment
2626
#else
27-
// ok, default aligment is 1 word
27+
// ok, default alignment is 1 word
2828
#endif
2929

3030

0 commit comments

Comments
 (0)