Remove the unlocker from the JS thread in ProfMultipleThreads to

avoid getting a profiling sample while not holding the locker,
because we will not get a stack sample in that case.
Review URL: http://codereview.chromium.org/668063

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4024 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
kasperl@chromium.org 2010-03-04 15:03:36 +00:00
parent 19a5126ee3
commit afe1cfa6de

View File

@ -404,10 +404,7 @@ class LoopingJsThread : public LoopingThread {
"var j; for (var i=0; i<10000; ++i) { j = Math.sin(i); }");
}
context.Dispose();
{
v8::Unlocker unlocker;
i::OS::Sleep(1);
}
i::OS::Sleep(1);
}
}
};