| Index: test/cctest/test-threads.cc
|
| diff --git a/test/cctest/test-threads.cc b/test/cctest/test-threads.cc
|
| index 4709961636f0995e25c2a57c22ded4ccfddf93d0..41f8b2d4c0ada4bbe8974dd81ab90f5cebb31d49 100644
|
| --- a/test/cctest/test-threads.cc
|
| +++ b/test/cctest/test-threads.cc
|
| @@ -33,28 +33,6 @@
|
| #include "cctest.h"
|
|
|
|
|
| -TEST(Preemption) {
|
| - v8::Isolate* isolate = CcTest::isolate();
|
| - v8::Locker locker(isolate);
|
| - v8::V8::Initialize();
|
| - v8::HandleScope scope(isolate);
|
| - v8::Handle<v8::Context> context = v8::Context::New(isolate);
|
| - v8::Context::Scope context_scope(context);
|
| -
|
| - v8::Locker::StartPreemption(isolate, 100);
|
| -
|
| - v8::Handle<v8::Script> script = v8::Script::Compile(
|
| - v8::String::New("var count = 0; var obj = new Object(); count++;\n"));
|
| -
|
| - script->Run();
|
| -
|
| - v8::Locker::StopPreemption(isolate);
|
| - v8::internal::OS::Sleep(500); // Make sure the timer fires.
|
| -
|
| - script->Run();
|
| -}
|
| -
|
| -
|
| enum Turn {
|
| FILL_CACHE,
|
| CLEAN_CACHE,
|
| @@ -80,7 +58,8 @@ class ThreadA : public v8::internal::Thread {
|
|
|
| // Fill String.search cache.
|
| v8::Handle<v8::Script> script = v8::Script::Compile(
|
| - v8::String::New(
|
| + v8::String::NewFromUtf8(
|
| + isolate,
|
| "for (var i = 0; i < 3; i++) {"
|
| " var result = \"a\".search(\"a\");"
|
| " if (result != 0) throw \"result: \" + result + \" @\" + i;"
|
|
|