From c278f47315889d9c66049d719c4b3772581b01c6 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 --- 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); }