clearing all handles from makeContext()

13 views
Skip to first unread message

madana gopal

unread,
Dec 14, 2017, 1:54:15 AM12/14/17
to v8-users
Hi Team,

We are creating a V8 context frequently calling node::makeContext() from c++ code. But it seen, below objects created from native context (in deps/v8/src/context.cc) are not getting cleared, so memory is increasing continuously, on call to makeContext():

1, template instatiation cache (we are creating own function and object templates and attaching the same)
2, extensions
3, embedder data

I couldn't find any api to explicitly clear this data. Could anyone suggest the proper way to destruct all the above items created from makeContext() (i.e any example, showing proper way to use makeContext)

Thanks.

Regards,
Madan

Zac Hansen

unread,
Dec 14, 2017, 3:16:37 AM12/14/17
to v8-users
Wouldn't it be better to ask on a node mailing list?
Reply all
Reply to author
Forward
0 new messages