Comment #4 on issue 2755 by [email protected]: memory leak in isolate new
http://code.google.com/p/v8/issues/detail?id=2755
Are you sure you are using a version after the bug fix? Your code suggests
that you are still using an older version of V8, not updated to the new V8
API.
I adapted your code into a test case in cctest:
static void EmptyFunction(
const v8::FunctionCallbackInfo<v8::Value>& args) { }
TEST(Regress2755) {
while(true) {
v8::Isolate* isolate = v8::Isolate::New();
{ v8::Isolate::Scope iscope(isolate);
v8::V8::Initialize();
v8::Locker l(isolate);
v8::HandleScope handle_scope;
v8::Local<v8::Context> context = v8::Context::New(isolate);
CHECK(!context.IsEmpty());
v8::Context::Scope context_scope(context);
v8::TryCatch try_catch;
v8::Local<v8::FunctionTemplate> myc =
v8::FunctionTemplate::New(EmptyFunction);
USE(myc);
CompileRun("");
}
isolate->Dispose();
}
}
It runs fine for me. Memory usage remains stable.
Could you please tell me which version of V8 you are using and update your
program to the newest V8 API and try to reproduce again?
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.