Comment #2 on issue 2755 by [email protected]: memory leak in isolate
new
http://code.google.com/p/v8/issues/detail?id=2755
The bug is not fixed completely. When I add some any other code in my test,
wait for a enough time, memory leak again.
while(true)
{
v8::Isolate* isolate = v8::Isolate::New();
{
v8::Isolate::Scope iscope(isolate);
v8::V8::Initialize();
v8::Locker l(isolate);
HandleScope handle_scope;
Persistent<Context> context = Context::New();
if(context.IsEmpty())
{
LOG_FATAL("get context error");
return 0;
}
Context::Scope context_scope(context);
v8::TryCatch try_catch;
//add some code here , JSConstructor is empty function
Handle<FunctionTemplate> myc = FunctionTemplate::New(JSConstructor);
string strJsCon = load_js();
Handle<String> js = String::New(strJsCon.c_str(),
strJsCon.length());
Handle<Script> script = Script::Compile(js);
if (script.IsEmpty())
{
std::cout << "err complier js" << std::endl;
}
else
{
Handle<Value> result;
{
result = script->Run();
}
}
context.Dispose();
}
isolate->Dispose();
}
--
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.