| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index c3e5eb6b3771c8a32ddbbccd465c44e22d94e2b6..928f0417189c327569300e766eb307594b735b8a 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -1933,8 +1933,8 @@
|
| VerboseAccountingAllocator(Heap* heap, size_t sample_bytes)
|
| : heap_(heap), last_memory_usage_(0), sample_bytes_(sample_bytes) {}
|
|
|
| - v8::internal::Segment* GetSegment(size_t size) override {
|
| - v8::internal::Segment* memory = AccountingAllocator::GetSegment(size);
|
| + v8::internal::Segment* AllocateSegment(size_t size) override {
|
| + v8::internal::Segment* memory = AccountingAllocator::AllocateSegment(size);
|
| if (memory) {
|
| size_t current = GetCurrentMemoryUsage();
|
| if (last_memory_usage_.Value() + sample_bytes_ < current) {
|
| @@ -1945,8 +1945,8 @@
|
| return memory;
|
| }
|
|
|
| - void ReturnSegment(v8::internal::Segment* memory) override {
|
| - AccountingAllocator::ReturnSegment(memory);
|
| + void FreeSegment(v8::internal::Segment* memory) override {
|
| + AccountingAllocator::FreeSegment(memory);
|
| size_t current = GetCurrentMemoryUsage();
|
| if (current + sample_bytes_ < last_memory_usage_.Value()) {
|
| PrintJSON(current);
|
|
|