GeezerVison is showing github.com — src: correctly report memory changes to V8 · nodejs/node@bcb29fb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node_mem-inl.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -59,7 +59,7 @@ void* NgLibMemoryManager<Class, T>::ReallocImpl(void* ptr, |
59 | 59 | // Environment*/Isolate* parameter and call the V8 method transparently. |
60 | 60 | const int64_t new_size = size - previous_size; |
61 | 61 | manager->IncreaseAllocatedSize(new_size); |
62 | | - manager->env()->external_memory_accounter()->Increase( |
| 62 | + manager->env()->external_memory_accounter()->Update( |
63 | 63 | manager->env()->isolate(), new_size); |
64 | 64 | *reinterpret_cast<size_t*>(mem) = size; |
65 | 65 | mem += sizeof(size_t); |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_zlib.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -644,7 +644,7 @@ class CompressionStream : public AsyncWrap, public ThreadPoolWork { |
644 | 644 | if (report == 0) return; |
645 | 645 | CHECK_IMPLIES(report < 0, zlib_memory_ >= static_cast<size_t>(-report)); |
646 | 646 | zlib_memory_ += report; |
647 | | - AsyncWrap::env()->external_memory_accounter()->Increase( |
| 647 | + AsyncWrap::env()->external_memory_accounter()->Update( |
648 | 648 | AsyncWrap::env()->isolate(), report); |
649 | 649 | } |
650 | 650 |
|
|