diff options
Diffstat (limited to 'src/env.cc')
-rw-r--r-- | src/env.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/env.cc b/src/env.cc index acbbb92b67..c8704cb3be 100644 --- a/src/env.cc +++ b/src/env.cc @@ -1038,21 +1038,6 @@ char* Environment::Reallocate(char* data, size_t old_size, size_t size) { return new_data; } -void Environment::AddArrayBufferAllocatorToKeepAliveUntilIsolateDispose( - std::shared_ptr<v8::ArrayBuffer::Allocator> allocator) { - if (keep_alive_allocators_ == nullptr) { - MultiIsolatePlatform* platform = isolate_data()->platform(); - CHECK_NOT_NULL(platform); - - keep_alive_allocators_ = new ArrayBufferAllocatorList(); - platform->AddIsolateFinishedCallback(isolate(), [](void* data) { - delete static_cast<ArrayBufferAllocatorList*>(data); - }, static_cast<void*>(keep_alive_allocators_)); - } - - keep_alive_allocators_->insert(allocator); -} - bool Environment::RunWeakRefCleanup() { isolate()->ClearKeptObjects(); |