diff options
author | Ondrej Bilka <neleai@seznam.cz> | 2013-07-11 11:57:32 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-07-11 11:59:40 +0400 |
commit | af453022720d3ae2f0f7ecb0f11029421e553abb (patch) | |
tree | 16451cac8bb7e2f5a869fb9a77447208df9a578a /malloc.c | |
parent | 5f52b60915bc7effa5d68ea7da8c29584806e9ce (diff) | |
download | bdwgc-af453022720d3ae2f0f7ecb0f11029421e553abb.tar.gz |
Fix typos in comments
* blacklst.c: Fix typo ("even though").
* cord/cordbscs.c: Fix typo ("exponentially").
* cord/cordxtra.c: Fix typo ("represented").
* dyn_load.c: Fix typos ("uncollectible", "occurred").
* extra/AmigaOS: Fix typos ("specific", "necessary", "always",
"effectiveness").
* finalize.c: Fix typo ("descendants").
* include/cord.h: Fix typo ("idiosyncrasies").
* include/gc.h: Fix typo ("collectible").
* include/gc_allocator.h: Fix typos ("allocator", "[un]collectible").
* mach_dep.c: Fix typo ("erroneously").
* malloc.c: Fix typos ("[un]collectible", "pointer-free",
"initialization").
* mallocx.c: Fix typos ("largely", "pointer-free", "uncollectible").
* mark.c: Fix typos ("[un]collectible", "even though").
* misc.c: Fix typo ("erroneously").
* os_dep.c: Fix typos ("non-addressable", "happening", "pointer-free").
* tests/test.c: Fix typos ("uncollectible", "reversed").
* tests/test_cpp.cc: Fix typos ("[un]collectible").
* typd_mlc.c: Fix typo ("copyright").
* win32_threads.c: Fix typos ("optimization", "uncollectible").
Diffstat (limited to 'malloc.c')
-rw-r--r-- | malloc.c | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -222,7 +222,7 @@ GC_API void * GC_CALL GC_generic_malloc(size_t lb, int k) } } -/* Allocate lb bytes of atomic (pointerfree) data */ +/* Allocate lb bytes of atomic (pointer-free) data. */ #ifdef THREAD_LOCAL_ALLOC GC_INNER void * GC_core_malloc_atomic(size_t lb) #else @@ -288,7 +288,7 @@ GC_API void * GC_CALL GC_generic_malloc(size_t lb, int k) } } -/* Allocate lb bytes of pointerful, traced, but not collectable data */ +/* Allocate lb bytes of pointerful, traced, but not collectible data. */ GC_API void * GC_CALL GC_malloc_uncollectable(size_t lb) { void *op; @@ -365,13 +365,10 @@ void * malloc(size_t lb) /* But any decent compiler should reduce the extra procedure call */ /* to at most a jump instruction in this case. */ # if defined(I386) && defined(GC_SOLARIS_THREADS) - /* - * Thread initialisation can call malloc before - * we're ready for it. - * It's not clear that this is enough to help matters. - * The thread implementation may well call malloc at other - * inopportune times. - */ + /* Thread initialization can call malloc before we're ready for. */ + /* It's not clear that this is enough to help matters. */ + /* The thread implementation may well call malloc at other */ + /* inopportune times. */ if (!EXPECT(GC_is_initialized, TRUE)) return sbrk(lb); # endif /* I386 && GC_SOLARIS_THREADS */ return((void *)REDIRECT_MALLOC(lb)); @@ -417,7 +414,7 @@ void * calloc(size_t n, size_t lb) return NULL; # if defined(GC_LINUX_THREADS) /* && !defined(USE_PROC_FOR_LIBRARIES) */ /* libpthread allocated some memory that is only pointed to by */ - /* mmapped thread stacks. Make sure it's not collectable. */ + /* mmapped thread stacks. Make sure it is not collectible. */ { static GC_bool lib_bounds_set = FALSE; ptr_t caller = (ptr_t)__builtin_return_address(0); @@ -592,7 +589,7 @@ GC_API void GC_CALL GC_free(void * p) { /* Don't bother with initialization checks. If nothing */ /* has been initialized, the check fails, and that's safe, */ - /* since we haven't allocated uncollectable objects either. */ + /* since we have not allocated uncollectible objects neither. */ ptr_t caller = (ptr_t)__builtin_return_address(0); /* This test does not need to ensure memory visibility, since */ /* the bounds will be set when/if we create another thread. */ |