V8 was designed to in single-threaded environment. So there is no locks
around commondata structures such as heaps and accessing static variables.
We thought adding locks
around these data structures can slow down allocations.
V8 api has a Locker class that can be used to protect V8. Application can
embed V8 in
a multi-threading program by using Locker around V8 api calls.