To use V8 from multiple threads you have to use the Locker/Unlocker API. Even if you know that only one thread is using V8 at a time. The error that you are getting is probably a stack overflow exception because one thread is using the stack limit from another thread.
Cheers, -- Mads On Wed, Jun 30, 2010 at 6:15 PM, Kelly <[email protected]> wrote: > Thanks Nate, I think there must be more going on. I should have > started with a simpler test case (http://code.google.com/apis/v8/ > get_started.html), so I did, and I got the same error. Upon further > investigation I found a NEW macro that would return NULL if a certain > boolean (precompile, precache, I forget exactly) was false, which > would be interpreted as OOM and throw this error. > > I ended up moving everything to one thread and the problem is gone. > The odd part is, my first thread made no references to v8 after the > initial call, so I don't know why v8 would crash (with improper error) > just because the next call to it was from a different thread. > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
