summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index 03d0a79a6d..534b888e2c 100644
--- a/src/env.h
+++ b/src/env.h
@@ -1251,6 +1251,10 @@ class Environment : public MemoryRetainer {
#endif // HAVE_INSPECTOR
+ // Only available if a MultiIsolatePlatform is in use.
+ void AddArrayBufferAllocatorToKeepAliveUntilIsolateDispose(
+ std::shared_ptr<v8::ArrayBuffer::Allocator>);
+
private:
template <typename Fn>
inline void CreateImmediate(Fn&& cb,
@@ -1425,6 +1429,10 @@ class Environment : public MemoryRetainer {
// Used by embedders to shutdown running Node instance.
AsyncRequest thread_stopper_;
+ typedef std::unordered_set<std::shared_ptr<v8::ArrayBuffer::Allocator>>
+ ArrayBufferAllocatorList;
+ ArrayBufferAllocatorList* keep_alive_allocators_ = nullptr;
+
template <typename T>
void ForEachBaseObject(T&& iterator);