From: Ivan Maidanski Date: Thu, 18 May 2017 22:52:59 +0000 (+0300) Subject: Fix various typos in doc/README and .html files X-Git-Tag: v7.4.6~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe951d47953848b1f52a48ae6147757520dbc1ed;p=gc Fix various typos in doc/README and .html files (Cherry-pick commit 6afeb18 from 'master' branch.) * doc/README.Mac: Fix a typo ("command-line"). * doc/README.amiga: Fix typos ("recommendation", "compiling", "favorably"). * doc/README.cords: Fix a typo ("and"). * doc/README.macros: Fix a typo ("canceled"). * doc/README.sgi: Fix a typo ("related"). * doc/README.solaris2: Fix a typo ("offset"). * doc/leak.html: Fix a typo ("e.g."). * doc/overview.html: Fix a typo ("December"). * doc/porting.html: Fix typos ("not supported yet", "signaled", "not defined yet"). * doc/scale.html: Fix typos ("free", "busy-waiting"). * doc/simple_example.html: Fix a typo ("have not yet"). * tests/test_cpp.cc (main): Fix a typo ("command line") in comment. --- diff --git a/doc/README.Mac b/doc/README.Mac index cad50967..0f0a7d0e 100644 --- a/doc/README.Mac +++ b/doc/README.Mac @@ -126,7 +126,7 @@ o 68K Linker Prefix Files to configure the GC sources ---------------------------------------- -The Codewarrior equivalent of commandline compilers -DNAME=X is to use +The Codewarrior equivalent of command-line compilers -DNAME=X is to use prefix-files. A TEXT file that is automatically #included before the first byte of every source file. I used these: diff --git a/doc/README.amiga b/doc/README.amiga index 0aeba0d6..1524df91 100644 --- a/doc/README.amiga +++ b/doc/README.amiga @@ -62,7 +62,7 @@ WHATS NEW: program, and prints out the info when the atexit-handler is called. - My reccomendation is to set all this flags, except GC_AMIGA_PRINTSTATS and + My recommendation is to set all this flags, except GC_AMIGA_PRINTSTATS and GC_AMIGA_ONLYFAST. If your program demands high response-time, you should @@ -70,7 +70,7 @@ WHATS NEW: GC_AMIGA_RETRY does not seem to slow down much. Also, when compiling up programs, and GC_AMIGA_FASTALLOC was not defined when - compilling gc, you can define GC_AMIGA_MAKINGLIB to avoid having these allocation- + compiling gc, you can define GC_AMIGA_MAKINGLIB to avoid having these allocation- functions wrapped. (see gc.h) Note that GC_realloc must not be called before any of @@ -285,7 +285,7 @@ The library as it stands is compatible with the GigaMem commercial virtual memory software, and probably similar PD software. The performance of "gctest" on an Amiga 2630 (68030 @ 25Mhz) -compares favourably with an HP9000 with similar architecture (a 325 +compares favorably with an HP9000 with similar architecture (a 325 with a 68030 I think). ----------------------------------------------------------------------- diff --git a/doc/README.cords b/doc/README.cords index f64dd2e8..985a3a1c 100644 --- a/doc/README.cords +++ b/doc/README.cords @@ -43,7 +43,7 @@ To build the editor, type "make cord/de" in the gc directory. This package assumes an ANSI C compiler such as gcc. It will not compile with an old-style K&R compiler. -Note that CORD_printf iand friends use C functions with variable numbers +Note that CORD_printf and friends use C functions with variable numbers of arguments in non-standard-conforming ways. This code is known to break on some platforms, notably PowerPC. It should be possible to build the remainder of the library (everything but cordprnt.c) on diff --git a/doc/README.macros b/doc/README.macros index a836767d..d8067940 100644 --- a/doc/README.macros +++ b/doc/README.macros @@ -548,7 +548,7 @@ GC_FULL_FREQ= Set alternate default number of partial collections NO_CANCEL_SAFE (Posix platforms with threads only) Don't bother trying to make the collector safe for thread cancellation; cancellation is not used. (Note that if cancellation is used anyway, threads may end up - getting cancelled in unexpected places.) Even without this option, + getting canceled in unexpected places.) Even without this option, PTHREAD_CANCEL_ASYNCHRONOUS is never safe with the collector. (We could argue about its safety without the collector.) diff --git a/doc/README.sgi b/doc/README.sgi index d9e98938..7ed86fee 100644 --- a/doc/README.sgi +++ b/doc/README.sgi @@ -27,7 +27,7 @@ include gc.h. Gc.h redefines some of the pthread primitives as macros which also provide the collector with information it requires. 4) pthread_cond_wait and pthread_cond_timed_wait should be prepared for -premature wakeups. (I believe the pthreads and realted standards require this +premature wakeups. (I believe the pthreads and related standards require this anyway. Irix pthreads often terminate a wait if a signal arrives. The garbage collector uses signals to stop threads.) diff --git a/doc/README.solaris2 b/doc/README.solaris2 index ba7bb2b2..8a2669bf 100644 --- a/doc/README.solaris2 +++ b/doc/README.solaris2 @@ -60,7 +60,7 @@ have it invoke the garbage-collector's allocators only after main has started. (Note that the latter requires a moderately expensive test in operator delete.) -I encountered "symbol : offet .... is non-aligned" errors. These +I encountered "symbol : offset .... is non-aligned" errors. These appear to be traceable to the use of the GNU assembler with the Sun linker. The former appears to generate a relocation not understood by the latter. The fix appears to be to use a consistent tool chain. (As a non-Solaris-expert diff --git a/doc/leak.html b/doc/leak.html index d6e8a4c5..43bc66d5 100644 --- a/doc/leak.html +++ b/doc/leak.html @@ -68,7 +68,7 @@ at least the file name and line number at the allocation point to be saved as part of the object. Leak reports will then also include this information.

-Many collector features (e.g stubborn objects, finalization, +Many collector features (e.g. stubborn objects, finalization, and disappearing links) are less useful in this context, and are not fully supported. Their use will usually generate additional bogus leak reports, since the collector itself drops some associated objects. diff --git a/doc/overview.html b/doc/overview.html index 003ed7a6..b8c6f333 100644 --- a/doc/overview.html +++ b/doc/overview.html @@ -265,7 +265,7 @@ Proceedings of the ACM SIGPLAN '96 Conference on Programming Language Design and Implementation.

Boehm, H., and D. Chase, "A Proposal for Garbage-Collector-Safe C Compilation", -Journal of C Language Translation 4, 2 (Decemeber 1992), pp. 126-141. +Journal of C Language Translation 4, 2 (December 1992), pp. 126-141.

Other related information:

diff --git a/doc/porting.html b/doc/porting.html index 751cbc59..0e682810 100644 --- a/doc/porting.html +++ b/doc/porting.html @@ -131,7 +131,7 @@ should be defined to the limits of the second main data segment.

Should be defined if the stack (or thread stacks) grow towards higher addresses. (This appears to be true only on PA-RISC. If your architecture -has more than one stack per thread, and is not already supported, you will +has more than one stack per thread, and is not supported yet, you will need to do more work. Grep for "IA64" in the source for an example.)
STACKBOTTOM
@@ -166,7 +166,7 @@ The cold end of the stack is determined by taking an address inside GC_init's frame, incrementing it repeatedly in small steps (decrement if STACK_GROWS_UP), and reading the value at each location. We remember the value when the first -Segmentation violation or Bus error is signalled, round that +Segmentation violation or Bus error is signaled, round that to the nearest plausible page boundary, and use that as the stack base.
DYNAMIC_LOADING @@ -214,7 +214,7 @@ tweaking of conditional compilation tests.

For GC7, if your platform supports getcontext(), then defining the macro UNIX_LIKE for your OS in gcconfig.h -(if it isn't defined there already) is likely to solve the problem. +(if it isn't defined there yet) is likely to solve the problem. otherwise, if you are using gcc, _builtin_unwind_init() will be used, and should work fine. If that is not applicable either, the implementation will try to use setjmp(). This will work if your diff --git a/doc/scale.html b/doc/scale.html index 67928277..30d54539 100644 --- a/doc/scale.html +++ b/doc/scale.html @@ -134,7 +134,7 @@ Running with a thread-unsafe collector, the benchmark ran in 9 seconds. With the simple thread-safe collector, built with -DLINUX_THREADS, the execution time increased to 10.3 seconds, or 23.5 elapsed seconds with two clients. -(The times for the malloc/ifree version +(The times for the malloc/free version with glibc malloc are 10.51 (standard library, pthreads not linked), 20.90 (one thread, pthreads linked), @@ -156,7 +156,7 @@ avoided in time-critical code. directly for allocation locking would have been worse still, at least for older versions of linuxthreads. With THREAD_LOCAL_ALLOC, we first repeatedly try to acquire the -lock with pthread_mutex_try_lock(), busy_waiting between attempts. +lock with pthread_mutex_try_lock(), busy-waiting between attempts. After a fixed number of attempts, we use pthread_mutex_lock().)

These measurements do not use incremental collection, nor was prefetching diff --git a/doc/simple_example.html b/doc/simple_example.html index 22bf6948..b56a17f8 100644 --- a/doc/simple_example.html +++ b/doc/simple_example.html @@ -12,7 +12,7 @@ a single-threaded application. The green text contains information about other platforms or scenarios. It can be skipped, especially on first reading.

Building the collector

-If you haven't already so, unpack the collector and enter +If you have not so yet, unpack the collector and enter the newly created directory with
 tar xvfz gc<version>.tar.gz
diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc
index 1a413774..6660e5a2 100644
--- a/tests/test_cpp.cc
+++ b/tests/test_cpp.cc
@@ -204,7 +204,7 @@ int APIENTRY WinMain( HINSTANCE instance ATTR_UNUSED,
         if (0 == argv[ argc ]) break;}
 #elif defined(MACOS)
   int main() {
-    char* argv_[] = {"test_cpp", "10"}; // MacOS doesn't have a commandline
+    char* argv_[] = {"test_cpp", "10"}; // MacOS doesn't have a command line
     argv = argv_;
     argc = sizeof(argv_)/sizeof(argv_[0]);
 #else