Reviewed by Darin Fisher.
Upstream changes to WorkerContextExecutionProxy for enabling V8 preemption.
https://bugs.webkit.org/show_bug.cgi?id=25034
* bindings/v8/WorkerContextExecutionProxy.cpp:
(WebCore::WorkerContextExecutionProxy::evaluate):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@42281
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2009-04-07 Jian Li <jianli@chromium.org>
+
+ Reviewed by Darin Fisher.
+
+ Upstream changes to WorkerContextExecutionProxy for enabling V8 preemption.
+ https://bugs.webkit.org/show_bug.cgi?id=25034
+
+ * bindings/v8/WorkerContextExecutionProxy.cpp:
+ (WebCore::WorkerContextExecutionProxy::evaluate):
+
2009-04-07 Dan Bernstein <mitz@apple.com>
Reviewed by Darin Adler.
v8::Locker locker;
v8::HandleScope hs;
+ // Enable preemption so that one worker will not be blocked by another long-running worker.
+ const int workerThreadPreemptionIntervalMs = 100;
+ v8::Locker::StartPreemption(workerThreadPreemptionIntervalMs);
+
initContextIfNeeded();
v8::Context::Scope scope(m_context);