| Index: test/cctest/test-cpu-profiler.cc
|
| diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc
|
| index e880d17f1b79574dd5af8ad407658e3d0b0ea261..e4ef412e32514497a1ddcc23cb28f7f7829088a4 100644
|
| --- a/test/cctest/test-cpu-profiler.cc
|
| +++ b/test/cctest/test-cpu-profiler.cc
|
| @@ -40,6 +40,7 @@ using i::CodeEntry;
|
| using i::CpuProfile;
|
| using i::CpuProfiler;
|
| using i::CpuProfilesCollection;
|
| +using i::Heap;
|
| using i::ProfileGenerator;
|
| using i::ProfileNode;
|
| using i::ProfilerEventsProcessor;
|
| @@ -995,6 +996,9 @@ TEST(FunctionCallSample) {
|
| LocalContext env;
|
| v8::HandleScope scope(env->GetIsolate());
|
|
|
| + // Collect garbage that might have be generated while installing extensions.
|
| + HEAP->CollectAllGarbage(Heap::kNoGCFlags);
|
| +
|
| v8::Script::Compile(v8::String::New(call_function_test_source))->Run();
|
| v8::Local<v8::Function> function = v8::Local<v8::Function>::Cast(
|
| env->Global()->Get(v8::String::New("start")));
|
|
|