Issue 143: Context::New can't handle preemption
http://code.google.com/p/v8/issues/detail?id=143

New issue report by jcpstuff:
If a thread is running javascript in a context, with preemption enabled,
then creating a context in another thread cannot be done safely.

When the second thread is preempted by V8, several problems occur that
cause V8 to crash.

For this reason, if a process needs to create another Context, the
application must do a lot of bookkeeping to ensure that preemption has
been stopped before creating the Context, and that it is restored after
creating the context. Other operations such as Interrupt also crash the
runtime, even if their desired "target of interruption" is another Context
that is already running.

As an aside, it would be helpful to have a Context::Interrupt method that
could be called from any thread, that would set the interrupt flag on the
thread local storage that is associated with that Context. Currently,
StackGuard::Interrupt just interrupts the first thread that it sees.




Issue attributes:
        Status: New
        Owner: ----

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to