| Index: test/cctest/test-heap-profiler.cc
|
| diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc
|
| index a536f30b5d306ad4f1fc96b483284a0632496e62..32344420f4ae918af4ab66bb13b5ce338d691394 100644
|
| --- a/test/cctest/test-heap-profiler.cc
|
| +++ b/test/cctest/test-heap-profiler.cc
|
| @@ -1663,41 +1663,6 @@ TEST(NoDebugObjectInSnapshot) {
|
| #endif // ENABLE_DEBUGGER_SUPPORT
|
|
|
|
|
| -TEST(PersistentHandleCount) {
|
| - LocalContext env;
|
| - v8::Isolate* isolate = env->GetIsolate();
|
| - v8::HandleScope scope(isolate);
|
| -
|
| - // V8 also uses global handles internally, so we can't test for an absolute
|
| - // number.
|
| - int global_handle_count = v8::HeapProfiler::GetPersistentHandleCount();
|
| -
|
| - // Create some persistent handles.
|
| - v8::Persistent<v8::String> p_AAA =
|
| - v8::Persistent<v8::String>::New(isolate, v8_str("AAA"));
|
| - CHECK_EQ(global_handle_count + 1,
|
| - v8::HeapProfiler::GetPersistentHandleCount());
|
| - v8::Persistent<v8::String> p_BBB =
|
| - v8::Persistent<v8::String>::New(isolate, v8_str("BBB"));
|
| - CHECK_EQ(global_handle_count + 2,
|
| - v8::HeapProfiler::GetPersistentHandleCount());
|
| - v8::Persistent<v8::String> p_CCC =
|
| - v8::Persistent<v8::String>::New(isolate, v8_str("CCC"));
|
| - CHECK_EQ(global_handle_count + 3,
|
| - v8::HeapProfiler::GetPersistentHandleCount());
|
| -
|
| - // Dipose the persistent handles in a different order.
|
| - p_AAA.Dispose(env->GetIsolate());
|
| - CHECK_EQ(global_handle_count + 2,
|
| - v8::HeapProfiler::GetPersistentHandleCount());
|
| - p_CCC.Dispose(env->GetIsolate());
|
| - CHECK_EQ(global_handle_count + 1,
|
| - v8::HeapProfiler::GetPersistentHandleCount());
|
| - p_BBB.Dispose(env->GetIsolate());
|
| - CHECK_EQ(global_handle_count, v8::HeapProfiler::GetPersistentHandleCount());
|
| -}
|
| -
|
| -
|
| TEST(AllStrongGcRootsHaveNames) {
|
| LocalContext env;
|
| v8::HandleScope scope(env->GetIsolate());
|
|
|