Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add explanatory comment
  • Loading branch information
nornagon committed Jun 29, 2022
commit 57a51c4bb1ba48585e1ce8f1c81cbe284d7c3911
1 change: 1 addition & 0 deletions src/node_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class NodeArrayBufferAllocator : public ArrayBufferAllocator {
uint32_t zero_fill_field_ = 1; // Boolean but exposed as uint32 to JS land.
std::atomic<size_t> total_mem_usage_ {0};

// Delegate to V8's allocator for compatibility with the V8 memory cage.
std::unique_ptr<v8::ArrayBuffer::Allocator> allocator_{
Comment thread
nornagon marked this conversation as resolved.
v8::ArrayBuffer::Allocator::NewDefaultAllocator()};
};
Expand Down