We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3086813 commit ca5ebcfCopy full SHA for ca5ebcf
tools/code_cache/mkcodecache.cc
@@ -49,8 +49,8 @@ int main(int argc, char* argv[]) {
49
50
// Create a new Isolate and make it the current one.
51
Isolate::CreateParams create_params;
52
- create_params.array_buffer_allocator =
53
- ArrayBuffer::Allocator::NewDefaultAllocator();
+ create_params.array_buffer_allocator_shared.reset(
+ ArrayBuffer::Allocator::NewDefaultAllocator());
54
Isolate* isolate = Isolate::New(create_params);
55
{
56
Isolate::Scope isolate_scope(isolate);
@@ -65,6 +65,7 @@ int main(int argc, char* argv[]) {
65
out << cache;
66
out.close();
67
}
68
+ isolate->Dispose();
69
70
v8::V8::ShutdownPlatform();
71
return 0;
0 commit comments