summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-09-24 12:18:19 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-09-26 10:03:45 +0300
commite6061ac46dc1ab64cdb747ce55baf6320bc08866 (patch)
tree9cafa8e660296d0fa0176fabc0108e0934ab7c06 /os_dep.c
parent6dfa9a2030014cb05655865938b650c3d7a86e05 (diff)
downloadbdwgc-e6061ac46dc1ab64cdb747ce55baf6320bc08866.tar.gz
Adjust naming of Win32/64 and x86/64 words in comments and documentation
* ChangeLog: Replace i386 and X86 to x86; replace x86_64 and amd64 to x64; replace "Win32 pthreads" to pthreads-win32; lower case win32s, x86, x64; replace win32 to Win32; replace "MS Windows" to Windows (in documentation and comments). * NT_MAKEFILE: Likewise. * README.md: Likewise. * configure.ac: Likewise. * cord/tests/de_win.c: Likewise. * doc/README.macros: Likewise. * doc/README.solaris2: Likewise. * doc/README.win32: Likewise. * doc/README.win64: Likewise. * doc/debugging.md: Likewise. * doc/leak.md: Likewise. * doc/overview.md: Likewise. * doc/porting.md: Likewise. * extra/msvc_dbg.c: Likewise. * finalize.c: Likewise. * include/gc/cord.h: Likewise. * include/gc/gc.h: Likewise. * include/private/gc_priv.h: Likewise. * include/private/gcconfig.h: Likewise. * include/private/pthread_stop_world.h: Likewise. * mach_dep.c: Likewise. * mark.c: Likewise. * mark_rts.c: Likewise. * misc.c: Likewise. * os_dep.c: Likewise. * tools/threadlibs.c: Likewise. * win32_threads.c: Likewise. * cord/tests/de.c (WIN32): Remove misleading comment. * misc.c (GC_enable_incremental): Change comment about win32s to TODO item.
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/os_dep.c b/os_dep.c
index 3b8f323f..242c0755 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -416,7 +416,7 @@ GC_INNER const char * GC_get_maps(void)
#endif /* NEED_PROC_MAPS */
#if defined(SEARCH_FOR_DATA_START)
- /* The I386 case can be handled without a search. The Alpha case */
+ /* The x86 case can be handled without a search. The Alpha case */
/* used to be handled differently as well, but the rules changed */
/* for recent Linux versions. This seems to be the easiest way to */
/* cover all versions. */
@@ -723,7 +723,7 @@ GC_INNER size_t GC_page_size = 0;
GetSystemInfo(&GC_sysinfo);
# if defined(CYGWIN32) && (defined(MPROTECT_VDB) || defined(USE_MUNMAP))
/* Allocations made with mmap() are aligned to the allocation */
- /* granularity, which (at least on 64-bit Windows OS) is not the */
+ /* granularity, which (at least on Win64) is not the */
/* same as the page size. Probably a separate variable could */
/* be added to distinguish the allocation granularity from the */
/* actual page size, but in practice there is no good reason to */
@@ -2015,7 +2015,7 @@ void GC_register_data_segments(void)
#ifdef DATASTART_USES_BSDGETDATASTART
/* Its unclear whether this should be identical to the above, or */
-/* whether it should apply to non-X86 architectures. */
+/* whether it should apply to non-x86 architectures. */
/* For now we don't assume that there is always an empty page after */
/* etext. But in some cases there actually seems to be slightly more. */
/* This also deals with holes between read-only data and writable data. */
@@ -2962,7 +2962,7 @@ GC_API GC_push_other_roots_proc GC_CALL GC_get_push_other_roots(void)
#ifdef GWW_VDB
-# define GC_GWW_BUF_LEN (MAXHINCR * HBLKSIZE / 4096 /* X86 page size */)
+# define GC_GWW_BUF_LEN (MAXHINCR * HBLKSIZE / 4096 /* x86 page size */)
/* Still susceptible to overflow, if there are very large allocations, */
/* and everything is dirty. */
static PVOID gww_buf[GC_GWW_BUF_LEN];
@@ -3478,7 +3478,7 @@ GC_API GC_push_other_roots_proc GC_CALL GC_get_push_other_roots(void)
GC_VERBOSE_LOG_PRINTF("Replaced other SIGBUS handler\n");
}
# endif
-# endif /* ! MS windows */
+# endif /* !MSWIN32 && !MSWINCE */
# if defined(CPPCHECK) && defined(ADDRESS_SANITIZER)
GC_noop1((word)&__asan_default_options);
# endif
@@ -5003,7 +5003,7 @@ GC_API int GC_CALL GC_get_pages_executable(void)
/* Call stack save code for debugging. Should probably be in */
/* mach_dep.c, but that requires reorganization. */
-/* I suspect the following works for most X86 *nix variants, so */
+/* I suspect the following works for most *nix x86 variants, so */
/* long as the frame pointer is explicitly stored. In the case of gcc, */
/* compiler flags (e.g. -fomit-frame-pointer) determine whether it is. */
#if defined(I386) && defined(LINUX) && defined(SAVE_CALL_CHAIN)