summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-09 23:42:01 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-09 23:42:01 +0000
commit33a63355a7dd650940ce24f85f2f1f685d05689a (patch)
treebf7f4834a1c96f57e228bc40d3ed9b75d0ec977b /gc.c
parentbb979b86f8da41cf3144e40f2e3e5efda984b08f (diff)
* gc.c (gc_malloc_allocated_size): RDoc does not process macros, so
mention this method is only available when ruby is built with CALC_EXACT_MALLOC_SIZE * gc.c (gc_malloc_allocations): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gc.c b/gc.c
index c1460796dd..34d942298d 100644
--- a/gc.c
+++ b/gc.c
@@ -3471,9 +3471,8 @@ ruby_mimmalloc(size_t size)
* call-seq:
* GC.malloc_allocated_size -> Integer
*
- * The allocated size by malloc().
- *
- * It returns the allocated size by malloc().
+ * Returns the size of memory allocated by malloc(). Only available if ruby
+ * was built with CALC_EXACT_MALLOC_SIZE.
*/
static VALUE
@@ -3486,9 +3485,8 @@ gc_malloc_allocated_size(VALUE self)
* call-seq:
* GC.malloc_allocations -> Integer
*
- * The number of allocated memory object by malloc().
- *
- * It returns the number of allocated memory object by malloc().
+ * Returns the number of malloc() allocations. Only available if ruby was
+ * built with CALC_EXACT_MALLOC_SIZE.
*/
static VALUE