Re: Threading Problem with Nashorn

2013-07-14 Thread Attila Szegedi
I believe that's a reasonable approach. The JavaScript "Global" object is actually ENGINE_SCOPE level state, so you should be fine. Attila. On Jul 13, 2013, at 4:51 PM, Andrew Thompson wrote: > > On Jul 9, 2013, at 6:34 AM, Attila Szegedi wrote: > >> Actually, in your above example, since

Re: Threading Problem with Nashorn

2013-07-14 Thread Andrew Thompson
On Jul 9, 2013, at 6:34 AM, Attila Szegedi wrote: > Actually, in your above example, since the JavaScript program has no explicit > guarding of concurrent access to variable `i` you seem like you would > actually even expect to have an engine that has "THREAD-ISOLATED" as its > threading mode