summaryrefslogtreecommitdiff
path: root/ext/objspace
diff options
context:
space:
mode:
Diffstat (limited to 'ext/objspace')
-rw-r--r--ext/objspace/objspace.c29
1 files changed, 9 insertions, 20 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index ae298fc..5fcd95b 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -12,17 +12,6 @@
**********************************************************************/
-/* objspace library extends ObjectSpace module and add several
- * methods to get internal statistic information about
- * object/memory management.
- *
- * Generally, you *SHOULD NOT*use this library if you do not know
- * about the MRI implementation. Mainly, this library is for (memory)
- * profiler developers and MRI developers who need to know how MRI
- * memory usage.
- *
- */
-
#include <ruby/ruby.h>
#include <ruby/st.h>
#include <ruby/io.h>
@@ -721,13 +710,13 @@ collect_values(st_data_t key, st_data_t value, st_data_t data)
* [MRI specific feature] Return all reachable objects from `obj'.
*
* This method returns all reachable objects from `obj'.
- * If `obj' has references two or more references to same object `x',
- * them returned array only include one `x' object.
- * If `obj' is non-markable (non-heap management) object such as
- * true, false, nil, symbols and Fixnums (and Flonum) them it simply
+ * If `obj' has two or more references to the same object `x',
+ * then returned array only includes one `x' object.
+ * If `obj' is a non-markable (non-heap management) object such as
+ * true, false, nil, symbols and Fixnums (and Flonum) then it simply
* returns nil.
*
- * If `obj' has references to internal object, then it returns
+ * If `obj' has references to an internal object, then it returns
* instances of `ObjectSpace::InternalObjectWrapper' class.
* This object contains a reference to an internal object and
* you can check the type of internal object with `type' method.
@@ -738,7 +727,7 @@ collect_values(st_data_t key, st_data_t value, st_data_t data)
*
* With this method, you can find memory leaks.
*
- * This method is not expected to work except C Ruby.
+ * This method is not expected to work except in C Ruby.
*
* Example:
* ObjectSpace.reachable_objects_from(['a', 'b', 'c'])
@@ -782,13 +771,13 @@ reachable_objects_from(VALUE self, VALUE obj)
void Init_object_tracing(VALUE rb_mObjSpace);
void Init_gc_hook(VALUE rb_mObjSpace);
-/* objspace library extends ObjectSpace module and add several
+/* The objspace library extends the ObjectSpace module and adds several
* methods to get internal statistic information about
* object/memory management.
*
- * Generally, you *SHOULD NOT*use this library if you do not know
+ * Generally, you *SHOULD NOT* use this library if you do not know
* about the MRI implementation. Mainly, this library is for (memory)
- * profiler developers and MRI developers who need to know how MRI
+ * profiler developers and MRI developers who need to know about MRI
* memory usage.
*/