| Index: src/cpu-profiler.cc
|
| diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc
|
| index 74e0d820acbe8bc1367221ff0c932ef04826aeea..e0f7aea18a8633c5c66e4fac6ea088a415f6b6fd 100644
|
| --- a/src/cpu-profiler.cc
|
| +++ b/src/cpu-profiler.cc
|
| @@ -373,7 +373,7 @@ CpuProfiler::CpuProfiler(Isolate* isolate)
|
| : isolate_(isolate),
|
| sampling_interval_(TimeDelta::FromMicroseconds(
|
| FLAG_cpu_profiler_sampling_interval)),
|
| - profiles_(new CpuProfilesCollection()),
|
| + profiles_(new CpuProfilesCollection(isolate->heap())),
|
| next_profile_uid_(1),
|
| generator_(NULL),
|
| processor_(NULL),
|
| @@ -410,7 +410,7 @@ void CpuProfiler::set_sampling_interval(TimeDelta value) {
|
|
|
| void CpuProfiler::ResetProfiles() {
|
| delete profiles_;
|
| - profiles_ = new CpuProfilesCollection();
|
| + profiles_ = new CpuProfilesCollection(isolate()->heap());
|
| }
|
|
|
|
|
|
|