| Index: test/cctest/test-threads.cc
|
| diff --git a/test/cctest/test-threads.cc b/test/cctest/test-threads.cc
|
| index 713d1e842509f919781322e0b09cf8c8e727ecac..ffb29cdd25feb8f338c496f20b07c972df26ac56 100644
|
| --- a/test/cctest/test-threads.cc
|
| +++ b/test/cctest/test-threads.cc
|
| @@ -34,7 +34,7 @@
|
|
|
|
|
| TEST(Preemption) {
|
| - v8::Locker locker;
|
| + v8::Locker locker(CcTest::default_isolate());
|
| v8::V8::Initialize();
|
| v8::HandleScope scope;
|
| v8::Context::Scope context_scope(v8::Context::New());
|
| @@ -67,7 +67,7 @@ class ThreadA : public v8::internal::Thread {
|
| public:
|
| ThreadA() : Thread("ThreadA") { }
|
| void Run() {
|
| - v8::Locker locker;
|
| + v8::Locker locker(CcTest::default_isolate());
|
| v8::HandleScope scope;
|
| v8::Context::Scope context_scope(v8::Context::New());
|
|
|
| @@ -86,7 +86,7 @@ class ThreadA : public v8::internal::Thread {
|
| turn = CLEAN_CACHE;
|
| do {
|
| {
|
| - v8::Unlocker unlocker;
|
| + v8::Unlocker unlocker(CcTest::default_isolate());
|
| Thread::YieldCPU();
|
| }
|
| } while (turn != SECOND_TIME_FILL_CACHE);
|
| @@ -105,7 +105,7 @@ class ThreadB : public v8::internal::Thread {
|
| void Run() {
|
| do {
|
| {
|
| - v8::Locker locker;
|
| + v8::Locker locker(CcTest::default_isolate());
|
| if (turn == CLEAN_CACHE) {
|
| v8::HandleScope scope;
|
| v8::Context::Scope context_scope(v8::Context::New());
|
|
|