that is the intended behavior. One V8 isolate can only be used without
Lockers from only one thread. If you want to use multiple threads in
one isolate you have to use Lockers even if you know that they are not
accessing V8 at the same time. One of the things you will typically
see when one isolate from multiple threads without Lockers is
stack-overflow exceptions. These are caused by using the stack limit
from one thread while using V8 with another thread. Using Lockers
ensures exclusive access and also sets up various things used
internally such as the stack guard.
Cheers, -- Mads
> --
> v8-users mailing list
> v8-u...@googlegroups.com
> http://groups.google.com/group/v8-users
>
I noticed that if I initialize v8 in one thread, and then try and do
*anything* in a different thread without using a v8::Locker (even
...
On Tue, Jun 7, 2011 at 7:50 AM, Charles Lowell <cow...@thefrontside.net> wrote:I noticed that if I initialize v8 in one thread, and then try and do...
*anything* in a different thread without using a v8::Locker (evenTo expand a tiny bit on Mads' answer: if your library-level routines will use a Locker, be sure that you main() (or pre-v8-setup) routine also contains a Locker in place. If you don't, the lib-level routines will crash with a