Yes. The single runtime is stored in a static Ruby 'instance'
On Jul 8, 2007, at 2:39 AM, Ola Bini wrote:
Alan McKean wrote:
So far, everything seems to work. But I have some questsions about
the runtime. When Rails is running multiple runtimes, does it
maintain a pool of them or does it instantiate a new runtime every
time it needs one. I currently have only one runtime. It's a
singleton and I use Ruby.getDefaultInstance() to fetch it when I
need it. I realize this is not the best strategy, but it seems
that even if I grab the runtime that is created in Main, there
will still be only one in the VM. Should there be a pool of them
and should I getNextRuntime() ... or something like that?
Have you changed getDefaultInstance to always return the same
instance? Because the current implementation creates a new JRuby
runtime every time you call getDefaultInstance...
Cheers
--
Ola Bini (http://ola-bini.blogspot.com) JRuby Core Developer
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
"Yields falsehood when quined" yields falsehood when quined.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email