Perhaps just file it as a bug. https://bugs.chromium.org/p/v8/issues/
On Wednesday, May 17, 2017 at 5:58:44 AM UTC-7, Andre Cunha wrote: > > Hello, > > I'm working on a library where multiple threads can run JS code > independently at the same time. In the library, each thread creates and > uses its own Isolate. However, I noticed clang's AddressSanitizer was > complaining about a data race during Isolate creation. I managed to > reproduce the problem outside our library, and I'm sending both the code > and the sanitizer's error message (the code needs to be compiled with > -std=c++11 and -pthread). I'm using V8 5.8.283.38, but I repeated the test > on the master branch and got the same result. What the test does is spawn > 10 threads; each one of them just creates and destroys Isolates repeatedly. > > I have found a recent issue in the bug tracker [1] that reports a similar > problem, but the commit is not included in V8 5.8, and the problem is > reproducible in the master branch anyway. > > So, my question is: I know that multiple threads can run JS code > simultaneously, provided that each thread has its own Isolate; but does > Isolate creation need to be synchronous? > > Best regards, > Andre > > [1] https://bugs.chromium.org/p/v8/issues/detail?id=5807 > -- -- 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.
