From: Nobuyoshi Nakada Date: 2011-09-08T17:22:56+09:00 Subject: [ruby-core:39362] Re: What is the role of rb_objspace_t in gc.c? Hi, (11/09/08 12:44), Kurt Stephens wrote: > What is the role of rb_objectspace_t and the pointers to it inside gc.c? > > From what I can tell there is only one "object space" -- it is a singleton. If so, why bother passing it around? > > Is this a vestigial design artifact for a feature that was never finished or is now unused? It's a feature for the future, i.e., MVM. And it's not "bothering", but was improving the performance actually on my environment. Probably, a global variable in ix86 PIC mode is much slower than a local variable. -- Nobu Nakada