From 4ad26923f480197b16c11e8b7a493ed81b1326d5 Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Fri, 10 Apr 2020 14:22:25 +0800 Subject: [PATCH] src: refactor Reallocate since it introduced in upstream v8 PR-URL: https://github.com/nodejs/node/pull/33402 Reviewed-By: Zeyu Yang Reviewed-By: Richard Lau Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- src/node_internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_internals.h b/src/node_internals.h index 70750cc87179ca..0ae17f71ecbcb2 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); }