Chromium Code Reviews| Index: runtime/vm/virtual_memory.cc |
| diff --git a/runtime/vm/virtual_memory.cc b/runtime/vm/virtual_memory.cc |
| index 2f2c1bc855681688a6e8a8e7d3d6af33af7b7c64..af1757cd4947ea7ea6acd9200baa475259843895 100644 |
| --- a/runtime/vm/virtual_memory.cc |
| +++ b/runtime/vm/virtual_memory.cc |
| @@ -33,7 +33,9 @@ VirtualMemory* VirtualMemory::ForInstructionsSnapshot(void* pointer, |
| // Memory for precompilated instructions was allocated by the embedder, so |
| // create a VirtualMemory without allocating. |
| MemoryRegion region(pointer, size); |
| - return new VirtualMemory(region); |
| + VirtualMemory* memory = new VirtualMemory(region); |
| + memory->dummy_ = true; |
|
rmacnak
2015/10/26 21:38:15
How about embedder_allocated_ ?
zra
2015/10/26 21:49:58
Done.
|
| + return memory; |
| } |
| } // namespace dart |