that is correct. the concurrent steps of GC can safely run on an arbitrary thread.
initializing v8, the platform, and ICU once per process is enough. You might also want to set all flags (e.g. from command line flags) before starting to create isolates. On Thu Oct 09 2014 at 10:25:20 AM Joseph Sullivan <[email protected]> wrote: > OK, just so I make sure I understand properly. A multithreaded (multiple > isolate) usage would run InitializeICU/Platform/etc ONCE at the start, and > then it would be free to create a bunch of v8::Isolate and pass them to > worker threads for simultaneous execution - like this: > > > [main thread] > V8::InitializeICU(); > V8::InitializePlatform(platform::CreateDefaultPlatform()); > V8::Initialize(); > (create a bunch of Isolates) > > [worker thread] > (get spawned and assigned an isolate] > Isolate::Scope > HandleScope > Local<Context> > script->Run() > > This would imply that the global v8::Platform can safely perform GC for > all the v8::Isolate, even though they are running in different threads? > > > BTW: I take it back. "Hello World" only runs as posted (x64) if v8 is > dynamically linked. Statically linking (as per the example instructions) > creates an executable that dies unless a v8::Platform is created. So that > part of the world makes sense. Kinda. :) > > > > > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
