Sure, a single thread can use as many Isolates as it wants. Most V8 API
functions take an Isolate or a Context (which implies an Isolate) parameter
to facilitate this.
Things to keep in mind:
- creating an Isolate is somewhat expensive, so creating millions of
short-lived Isolates is not great for
Thank you Jakob, now I know it is fine to use multiple isolate in one
thread. :-)
在 2019年12月19日星期四 UTC+8下午5:53:24,Jakob Kummerow写道:
>
> Sure, a single thread can use as many Isolates as it wants. Most V8 API
> functions take an Isolate or a Context (which implies an Isolate) parameter
> to faci
Thank you Jakob, now I know it is fine to use multiple isolate in one
thread. :-)
Sure, a single thread can use as many Isolates as it wants. Most V8 API
> functions take an Isolate or a Context (which implies an Isolate) parameter
> to facilitate this.
>
> Things to keep in mind:
> - creating
Unfortunately this issue transcends export naming. V8 seems to be embracing
STL data types all over its API.
By sheer luck std::unique_ptr is likely to work across STL implementations
(at least when used without a stateful deleter), but other data types
aren't so lucky. V8 already has a bunch o
Just the header file for the public V8 API (
https://chromium.googlesource.com/v8/v8.git/+/refs/heads/master/include/v8.h#18)
includes , , , , and from
the C++ standard library. I'm unclear what they are all needed for, but I
think it's safe to say mixing C++ standard libraries when building a