File tree 4 files changed +6
-6
lines changed 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ terms of the MIT license. A copy of the license can be found in the file
96
96
// Maximum number of size classes. (spaced exponentially in 16.7% increments)
97
97
#define MI_BIN_HUGE (64U)
98
98
99
- // Minimal aligment necessary. On most platforms 16 bytes are needed
99
+ // Minimal alignment necessary. On most platforms 16 bytes are needed
100
100
// due to SSE registers for example. This must be at least `MI_INTPTR_SIZE`
101
101
#define MI_MAX_ALIGN_SIZE 16 // sizeof(max_align_t)
102
102
@@ -150,7 +150,7 @@ typedef union mi_thread_free_u {
150
150
// `thread_free` for freed blocks by other threads
151
151
// The `local_free` and `thread_free` lists are migrated to the `free` list
152
152
// 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
154
154
// avoiding atomic operations in the common case.
155
155
//
156
156
// `used - thread_freed` == actual blocks that are in use (alive)
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ static void __attribute__((constructor)) _mi_macosx_override_malloc()
201
201
zone .pressure_relief = & zone_pressure_relief ;
202
202
intro .zone_locked = & intro_zone_locked ;
203
203
204
- // force the purgable zone to exist to avoid strange bugs
204
+ // force the purgeable zone to exist to avoid strange bugs
205
205
if (malloc_default_purgeable_zone ) {
206
206
purgeable_zone = malloc_default_purgeable_zone ();
207
207
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ by us is freed after we unpatched.
34
34
35
35
There are two tricky situations to deal with:
36
36
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
38
38
callbacks on TLS entries (allocated by `FlsAlloc`). This is done by the OS
39
39
before any DLL's are unloaded. Unfortunately, the C runtime registers such
40
40
TLS entries with CRT allocated memory which is freed in the callback.
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ terms of the MIT license. A copy of the license can be found in the file
18
18
----------------------------------------------------------- */
19
19
20
20
#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"
22
22
#elif (MI_MAX_ALIGN_SIZE > 2 * MI_INTPTR_SIZE )
23
23
#define MI_ALIGN4W // 4 machine words minimal alignment
24
24
#elif (MI_MAX_ALIGN_SIZE > MI_INTPTR_SIZE )
25
25
#define MI_ALIGN2W // 2 machine words minimal alignment
26
26
#else
27
- // ok, default aligment is 1 word
27
+ // ok, default alignment is 1 word
28
28
#endif
29
29
30
30
You can’t perform that action at this time.
0 commit comments