Forum: JRuby disable global variable sharing over multiple evaluations

Posted by Markus n/a (albundy)
on 2012-10-09 10:35
Hi,

we've updated jruby from 1.5.8 to 1.6.8 and now global variables are
shared over all evaluations.

To ensure that our scripts have to side-effects we want to enabled the
old behavior.

Does anybody know the settings we should use?

Thanks

Markus
Posted by Markus n/a (albundy)
on 2012-10-28 19:22
It seems that setting the local context scope to threadsafe ensures that 
each evaluation started from java will have a new context.

https://github.com/jruby/jruby/wiki/RedBridge#wiki...

Markus
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.