diff options
author | Jiawen Geng <technicalcute@gmail.com> | 2020-04-10 09:22:25 +0300 |
---|---|---|
committer | gengjiawen <technicalcute@gmail.com> | 2020-05-14 17:37:58 +0300 |
commit | 4ad26923f480197b16c11e8b7a493ed81b1326d5 (patch) | |
tree | facca3f73ef99e9ae99d6b4b5da594a5fe39a582 /src/node_internals.h | |
parent | eaa16cd477f671804a46b57bfdfe918a02334f4d (diff) |
src: refactor Reallocate since it introduced in upstream v8
PR-URL: https://github.com/nodejs/node/pull/33402
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index 70750cc8717..0ae17f71ecb 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -112,7 +112,7 @@ class NodeArrayBufferAllocator : public ArrayBufferAllocator { void* Allocate(size_t size) override; // Defined in src/node.cc void* AllocateUninitialized(size_t size) override; void Free(void* data, size_t size) override; - virtual void* Reallocate(void* data, size_t old_size, size_t size); + void* Reallocate(void* data, size_t old_size, size_t size) override; virtual void RegisterPointer(void* data, size_t size) { total_mem_usage_.fetch_add(size, std::memory_order_relaxed); } |