| Index: runtime/vm/os_linux.cc
|
| ===================================================================
|
| --- runtime/vm/os_linux.cc (revision 27750)
|
| +++ runtime/vm/os_linux.cc (working copy)
|
| @@ -132,9 +132,10 @@
|
| const char* format = "/tmp/perf-%"Pd".map";
|
| intptr_t pid = getpid();
|
| intptr_t len = OS::SNPrint(NULL, 0, format, pid);
|
| - char* filename = Isolate::Current()->current_zone()->Alloc<char>(len + 1);
|
| + char* filename = new char[len + 1];
|
| OS::SNPrint(filename, len + 1, format, pid);
|
| out_file_ = (*file_open)(filename, true);
|
| + delete[] filename;
|
| }
|
|
|
| ~PerfCodeObserver() {
|
|
|