From: "Iñaki Baz Castillo" Date: 2011-12-02T05:21:26+09:00 Subject: GC.malloc_allocated_size and GC.malloc_allocations not available (#if CALC_EXACT_MALLOC_SIZE) Hi, using Ruby 1.9.3 I cannot use methods GC.malloc_allocated_size and GC.malloc_allocations, which theorically do exist: http://www.ruby-doc.org/core-1.9.3/GC.html#method-c-malloc_allocated_size Inspecting the gc.c file I've found at the end: #if CALC_EXACT_MALLOC_SIZE rb_define_singleton_method(rb_mGC, "malloc_allocated_size", gc_malloc_allocated_size, 0); rb_define_singleton_method(rb_mGC, "malloc_allocations", gc_malloc_allocations, 0); #endif So it seems that in my system CALC_EXACT_MALLOC_SIZE is not set since gc.c file also contains: #define CALC_EXACT_MALLOC_SIZE 0 Why is it unavailable? -- Iñaki Baz Castillo