summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2019-03-22 19:44:35 +0300
committerIvan Maidanski <ivmai@mail.ru>2019-03-25 14:37:25 +0300
commit07c056c3291f04c82533fe42bb14be8420167db8 (patch)
tree711d5db792c9ae2e9c689f212a793c63e6e6c987 /os_dep.c
parenta558019b2c61e0fdb20620a96211530f1425ac29 (diff)
downloadbdwgc-07c056c3291f04c82533fe42bb14be8420167db8.tar.gz
Use KB/MB/GB abbreviations uniformly across entire documentation
* README.md (Installation and Portability): Precede MB with a space. * doc/README.amiga (WHATS NEW): Likewise. * doc/debugging.md: Likewise. * README.md (The C Interface to the Allocator): Replace Kbytes to KB. * doc/gc.man: Likewise. * README.Mac: Replace k to KB with a preceding space. * doc/debugging.md: Likewise. * doc/README.amiga: Precede MHz with a space. * doc/debugging.md: Precede KB with a space. * include/gc.h (GC_malloc_ignore_off_page): Replace K to KB with a preceding space in a comment. * tests/test.c (BIG): Likewise. * include/private/gc_priv.h (ALL_INTERIOR_POINTERS, HBLKSIZE, CPP_LOG_HBLKSIZE, LOG_PHT_ENTRIES): Likewise. * include/private/gc_priv.h (LOG_PHT_ENTRIES): Replace M to MB with a preceding space in a comment. * include/private/gc_priv.h (LOG_PHT_ENTRIES): Replace G to GB with a preceding space in a comment. * os_dep.c [GC_USE_MEM_TOP_DOWN && USE_WINALLOC] (GC_mem_top_down): Likewise. * include/gc_priv.h (GC_printf): Replace k to KB with a preceding space in a comment. * include/private/specific.h (quick_thread_id): Likewise. * os_dep.c [MSWINCE] (GC_wince_get_mem): Likewise. * os_dep.c [USE_WINALLOC && !MSWIN_XBOX1 || CYGWIN32] (GC_win32_get_mem): Likewise. * include/private/gcconfig.h [I386 && LINUX] (HEAP_START): Precede GB with a space in a comment.
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os_dep.c b/os_dep.c
index 73b251d8..875eb4b1 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -2334,8 +2334,8 @@ void * os2_alloc(size_t bytes)
GC_pages_executable ? PAGE_EXECUTE_READWRITE :
PAGE_READWRITE);
if (HBLKDISPL(result) != 0) ABORT("Bad VirtualAlloc result");
- /* If I read the documentation correctly, this can */
- /* only happen if HBLKSIZE > 64k or not a power of 2. */
+ /* If I read the documentation correctly, this can */
+ /* only happen if HBLKSIZE > 64 KB or not a power of 2. */
if (GC_n_heap_bases >= MAX_HEAP_SECTS) ABORT("Too many heap sections");
if (result == NULL) return NULL;
GC_heap_bases[GC_n_heap_bases] = result;
@@ -2370,7 +2370,7 @@ void * os2_alloc(size_t bytes)
DWORD GC_mem_top_down = MEM_TOP_DOWN;
/* Use GC_USE_MEM_TOP_DOWN for better 64-bit */
/* testing. Otherwise all addresses tend to */
- /* end up in first 4GB, hiding bugs. */
+ /* end up in first 4 GB, hiding bugs. */
# else
# define GC_mem_top_down 0
# endif /* !GC_USE_MEM_TOP_DOWN */
@@ -2431,7 +2431,7 @@ void * os2_alloc(size_t bytes)
# endif /* USE_WINALLOC */
if (HBLKDISPL(result) != 0) ABORT("Bad VirtualAlloc result");
/* If I read the documentation correctly, this can */
- /* only happen if HBLKSIZE > 64k or not a power of 2. */
+ /* only happen if HBLKSIZE > 64 KB or not a power of 2. */
if (GC_n_heap_bases >= MAX_HEAP_SECTS) ABORT("Too many heap sections");
if (0 != result) GC_heap_bases[GC_n_heap_bases++] = result;
return(result);