Comment #1 on issue 729 by AlgorithmX2: V8's preemption mechanism (Locker::StartPreemption()) is broken
http://code.google.com/p/v8/issues/detail?id=729

Expecting preemption in a situation like this...

c++
v8::Locker::StartPreemption( 60 );

js:
var test = 0;
while(1) { test += 1; }

Is extremely unpredictable.

I've tested it on a quad core win7 machine, and the results vary. I've seen times where a locked thread gained access almost instantly, and I've also seen cases where the locked thread gained access after 30 seconds, or longer, and the longer cases seem to the majority.

I can only imagine that this gets much worse if you have multiple locked threads.

I think this definitely needs improvement.

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

Reply via email to