]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix typos
authorslava <slava@factorcode.org>
Mon, 16 Oct 2006 22:21:21 +0000 (22:21 +0000)
committerslava <slava@factorcode.org>
Mon, 16 Oct 2006 22:21:21 +0000 (22:21 +0000)
doc/handbook/alien.facts

index 96a7c391cdf5c806688c44ed25a4ab57ef233b3f..4438c8c69c5b829146b42ddaf9d260260f2208db 100644 (file)
@@ -41,9 +41,9 @@ ARTICLE: "alien-callback" "Calling Factor from C"
 { $subsection "alien-callback-gc" } ;
 
 ARTICLE: "alien-callback-gc" "Callbacks and code GC"
-"A callback consits of two parts; the callback word, which pushes the address of the callback on the stack when executed, and the callback body itself. If the callback word, redefined, removed from the dictionary using " { $link forget } ", or recompiled, C code will potentially still have a reference to the callback body, so the callback body will not be eligible for garbage collection."
+"A callback consits of two parts; the callback word, which pushes the address of the callback on the stack when executed, and the callback body itself. If the callback word is redefined, removed from the dictionary using " { $link forget } ", or recompiled, the callback body will not be reclaimed by the garbage collector, since potentially C code may be holding a reference to the callback body."
 $terpri
-"This is the safest approach however it can lead to code heap leaks if you are constantly reloading code which defines callbacks. If you are " { $emphasis "completely sure" } " that no running C code is holding a reference to any callbacks, you can blow them all away:"
+"This is the safest approach, however it can lead to code heap leaks when repeatedly reloading code which defines callbacks. If you are " { $emphasis "completely sure" } " that no running C code is holding a reference to any callbacks, you can blow them all away:"
 { $code "USE: alien callbacks get clear-hash code-gc" }
 "This will reclaim all callback bodies which are otherwise unreachable from the dictionary (that is, their associated callback words have since been redefined, recompiled or forgotten)." ;