| Index: test/cctest/test-thread-termination.cc
|
| ===================================================================
|
| --- test/cctest/test-thread-termination.cc (revision 7267)
|
| +++ test/cctest/test-thread-termination.cc (working copy)
|
| @@ -159,6 +159,8 @@
|
|
|
|
|
| class TerminatorThread : public v8::internal::Thread {
|
| + public:
|
| + explicit TerminatorThread(i::Isolate* isolate) : Thread(isolate) { }
|
| void Run() {
|
| semaphore->Wait();
|
| CHECK(!v8::V8::IsExecutionTerminating());
|
| @@ -171,7 +173,7 @@
|
| // from the side by another thread.
|
| TEST(TerminateOnlyV8ThreadFromOtherThread) {
|
| semaphore = v8::internal::OS::CreateSemaphore(0);
|
| - TerminatorThread thread;
|
| + TerminatorThread thread(i::Isolate::Current());
|
| thread.Start();
|
|
|
| v8::HandleScope scope;
|
| @@ -193,6 +195,7 @@
|
|
|
| class LoopingThread : public v8::internal::Thread {
|
| public:
|
| + explicit LoopingThread(i::Isolate* isolate) : Thread(isolate) { }
|
| void Run() {
|
| v8::Locker locker;
|
| v8::HandleScope scope;
|
| @@ -225,9 +228,9 @@
|
| v8::Locker::StartPreemption(1);
|
| semaphore = v8::internal::OS::CreateSemaphore(0);
|
| }
|
| - LoopingThread thread1;
|
| + LoopingThread thread1(i::Isolate::Current());
|
| thread1.Start();
|
| - LoopingThread thread2;
|
| + LoopingThread thread2(i::Isolate::Current());
|
| thread2.Start();
|
| // Wait until both threads have signaled the semaphore.
|
| semaphore->Wait();
|
|
|