[v8-users] Re: ArrayBuffer::Allocator::Free() length differing from Allocate() length?

2018-03-14 Thread Zac Hansen
Have you compiled with ASAN? Presumably if you're deleting more memory than you have, that would fire. Just for debugging this, you could even put in a map of allocated addresses and sizes and just track what requests come in that don't seem to match. It seems like requests that would cause

[v8-users] ArrayBuffer::Allocator::Free() length differing from Allocate() length?

2018-03-14 Thread 'Kenton Varda' via v8-users
Hi v8-users, We have an ArrayBufferAllocator implementation that counts how much memory has been allocated. It basically looks like this: class AllocatorImpl final: public v8::ArrayBuffer::Allocator { public: AllocatorImpl(): allocated(0) {} ~AllocatorImpl(); inline size_t getMemoryUsa