From: "ara.t.howard" Date: 2007-10-28T15:06:14+09:00 Subject: Re: How fast does your Ruby run? On Oct 27, 2007, at 11:46 PM, Charles Oliver Nutter wrote: > Because ObjectSpace needs to be loaded/enabled *before* the objects > you want to track come into existance. Unlike Ruby's simple GC and > memory model, in JRuby we have to explicitly add objects created to > a walkable list. There's no capability on most modern GCed VMs to > walk the heap at will. Because of that, any objects created before > ObjectSpace is enabled would not be visible during any subsequent > walk. Generally, autoload would be far too late. hmmm. an exception seems best then - force the require up front. or, is there perhaps a lighter weight method to mark things so you *could* bootstrap ObjectSpace once it was loaded? cheers. a @ http://codeforpeople.com/ -- share your knowledge. it's a way to achieve immortality. h.h. the 14th dalai lama