-----Messaggio originale----- Da: Iñáki Baz Castillo [mailto:ibc / aliax.net] Inviato: gioved1 dicembre 2011 21:21 A: ruby-talk ML Oggetto: 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_sizeInspecting 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ñáki Baz Castillo <ibc / aliax.net> -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: Capodanno a Riccione, Pacchetto Relax: Mezza Pensione + bagno turco + solarium + massaggio. Wifi e parcheggio gratis. 2 giorni euro 199 a persona Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid978&d)-12